|
|
@ -122,31 +122,9 @@ |
|
|
|
</a-modal> |
|
|
|
</a-modal> |
|
|
|
</a-upload> |
|
|
|
</a-upload> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" |
|
|
|
|
|
|
|
:headers="tokenHeader" :action="tablexImportExcelUrl" @change="handleImportExcel">--> |
|
|
|
|
|
|
|
<a-button type="primary" icon="import" |
|
|
|
<a-button type="primary" icon="import" |
|
|
|
@click="showProcess( 1)">导入实体 |
|
|
|
@click="showProcess( tablexData)">导入实体 |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
<!-- <a-button type="primary" icon="import" @click="showModalImport()">导入实体</a-button>--> |
|
|
|
|
|
|
|
<!-- <a-modal |
|
|
|
|
|
|
|
title="正在上传..." |
|
|
|
|
|
|
|
:visible="ModalData.isVisible==='true'" |
|
|
|
|
|
|
|
:confirm-loading="false" |
|
|
|
|
|
|
|
:mask="true" |
|
|
|
|
|
|
|
:maskClosable="false" |
|
|
|
|
|
|
|
:keyboard="false" |
|
|
|
|
|
|
|
:closable="false" |
|
|
|
|
|
|
|
:footer="false" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<p>当前状态:{{ ModalData.status }}</p> |
|
|
|
|
|
|
|
<p>总记录数:{{ ModalData.records }}</p> |
|
|
|
|
|
|
|
<p>已上传:{{ ModalData.uploaded }}</p> |
|
|
|
|
|
|
|
<a-progress |
|
|
|
|
|
|
|
:percent="parseInt(String(ModalData.uploaded/ModalData.records*100))" |
|
|
|
|
|
|
|
title="上传进度:" |
|
|
|
|
|
|
|
status="active" :steps="ModalData.records"/> |
|
|
|
|
|
|
|
</a-modal>--> |
|
|
|
|
|
|
|
<!-- </a-upload>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-button @click="fanhui" type="primary" icon="rollback">返回</a-button> |
|
|
|
<a-button @click="fanhui" type="primary" icon="rollback">返回</a-button> |
|
|
|
<a-button type="primary" icon="download" @click="exportxsxl('模块,功能,规则表')">导出综合表</a-button> |
|
|
|
<a-button type="primary" icon="download" @click="exportxsxl('模块,功能,规则表')">导出综合表</a-button> |
|
|
@ -530,35 +508,25 @@ export default { |
|
|
|
ruleImportExcelUrl: function () { |
|
|
|
ruleImportExcelUrl: function () { |
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.ruleImportExcelUrl}` |
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.ruleImportExcelUrl}` |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
tablexData: function () { |
|
|
|
methods: { |
|
|
|
return { |
|
|
|
// 显示进度 |
|
|
|
note: ['对应模块id(必填):填写正确的模块名称', |
|
|
|
showProcess(type) { |
|
|
|
|
|
|
|
let data = { |
|
|
|
|
|
|
|
uploadUrl: '', |
|
|
|
|
|
|
|
downUrl: '', |
|
|
|
|
|
|
|
title: '', |
|
|
|
|
|
|
|
note: [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
switch (type) { |
|
|
|
|
|
|
|
case 1: { |
|
|
|
|
|
|
|
data.note = ['对应模块id(必填):填写正确的模块名称', |
|
|
|
|
|
|
|
'中文名称(必填):与模块名称相同。', |
|
|
|
'中文名称(必填):与模块名称相同。', |
|
|
|
'英文名称(必填):与模块名称相同,写模块名称的英文名称。', |
|
|
|
'英文名称(必填):与模块名称相同,写模块名称的英文名称。', |
|
|
|
'结构图(选填):类图或E-R图,可以为空,不填写。', |
|
|
|
'结构图(选填):类图或E-R图,可以为空,不填写。', |
|
|
|
'实体状态:可填入值为[正常、停用、废弃],若不填写,默认为“正常”状态。', |
|
|
|
'实体状态:可填入值为[正常、停用、废弃],若不填写,默认为“正常”状态。', |
|
|
|
'版本状态: 可填入值为[当前、历史],若不填写,默认为“当前”状态', |
|
|
|
'版本状态: 可填入值为[当前、历史],若不填写,默认为“当前”状态', |
|
|
|
'版本号:请填写小与五位数的正整数' |
|
|
|
'版本号:请填写小与五位数的正整数' |
|
|
|
] |
|
|
|
], |
|
|
|
data.title = '导入实体' |
|
|
|
title: '导入实体', |
|
|
|
data.uploadUrl = this.tablexImportExcelUrl |
|
|
|
uploadUrl: this.tablexImportExcelUrl, |
|
|
|
data.downUrl = this.tablexDownExcelUrl |
|
|
|
downUrl: this.tablexDownExcelUrl |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
default: { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
// 显示进度 |
|
|
|
|
|
|
|
showProcess(data) { |
|
|
|
let userId = store.getters.userInfo.id |
|
|
|
let userId = store.getters.userInfo.id |
|
|
|
let base_url = window._CONFIG['domianURL'] |
|
|
|
let base_url = window._CONFIG['domianURL'] |
|
|
|
base_url = base_url.replace('http', 'ws') |
|
|
|
base_url = base_url.replace('http', 'ws') |
|
|
|