From 6776041df9be4178a1fe2f24c9057828bae071cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 25 Sep 2023 15:06:17 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=AF=BC=E5=85=A5=E6=8B=86=E5=88=86?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=EF=BC=8C=E5=9B=BD=E5=86=85=E6=B5=B7=E5=A4=96?= =?UTF-8?q?=E6=A0=87=E5=87=86=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/en-us.js | 9 ++ src/common/lang/zh-cn.js | 9 ++ src/components/customField/AddForm.vue | 3 + .../documentSplit/DocumentSplit.vue | 30 ++-- .../documentSplit/DocumentSplitDetail.vue | 37 +++-- .../modules/ImportSplitResultModal.vue | 152 ++++++++++++++++++ .../documentSplit/modules/SplitText.vue | 7 +- .../domesticStandard/DomesticStandardList.vue | 8 +- .../modules/DomesticStandardModal.vue | 6 +- .../overseasStandard/OverseasStandardList.vue | 10 +- .../modules/OverseasStandardModal.vue | 2 +- 11 files changed, 231 insertions(+), 42 deletions(-) create mode 100644 src/views/documentTool/documentSplit/modules/ImportSplitResultModal.vue diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js index b77c4c15..43b1e34e 100644 --- a/src/common/lang/en-us.js +++ b/src/common/lang/en-us.js @@ -380,6 +380,15 @@ module.exports = { split: 'Split', article: 'Article', clauseLabel: 'Clause label', + splitResultFile: 'Split result file', + splitImportResultTip: 'Upload the split result file in accordance with the relevant format requirements, please ', + clickToView: 'click to view', + gotIt: 'Got It', + formatRequirement: 'Format requirement', + formatRequirementContentOne: '1.The imported document is in zip format', + formatRequirementContentTwo: '2.The images are in jpg, jpeg, png, gif format', + formatRequirementContentThree: '3.The image in the document is displayed in the form of a link in the exported excel, click the link to jump to the specified local file', + formatRequirementContentFour: '4.The table in the document is displayed in the form of a link in the exported excel. Click the link to jump to the specified sheet page', selectFileType: 'Please select a file type', onlyWord: 'Only word files can be imported', diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index ed05dfee..494fd924 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -380,6 +380,15 @@ module.exports = { split: '拆分', article: '条文', clauseLabel: '条文标签', + splitResultFile: '拆分结果文件', + splitImportResultTip: '上传拆分结果文件需遵循相关格式要求,具体要求请', + clickToView: '点击查看', + gotIt: '知道了', + formatRequirement: '格式要求', + formatRequirementContentOne: '1.导入的文档是zip格式', + formatRequirementContentTwo: '2.图片为jpg、jpeg、png、gif格式', + formatRequirementContentThree: '3.文档中的图片,在导出excel中以链接的形式展示,点击链接跳转到本地指定的文件', + formatRequirementContentFour: '4.文档中的表格,在导出excel中以链接的形式展示,点击链接跳转到指定的sheet页面', selectFileType: '请选择文件类型', onlyWord: '只能导入word文件', diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index 5de86d3a..166d7ee6 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -214,6 +214,7 @@ v-model="formInline[item.dbFieldName]" :getPopupContainer="triggerNode=> triggerNode.parentNode" style="width: 100%" + :disabled="disabled || disabledFieldList.includes(item.dbFieldName)" :tree-data="optionsData[item.dbFieldName]" tree-checkable treeCheckStrictly @@ -232,6 +233,7 @@ {{ $t('reset') }} - + {{ $t('query') }} @@ -86,25 +86,23 @@ - - - + + + + + diff --git a/src/views/documentTool/documentSplit/modules/SplitText.vue b/src/views/documentTool/documentSplit/modules/SplitText.vue index cc264fae..0008d4d3 100644 --- a/src/views/documentTool/documentSplit/modules/SplitText.vue +++ b/src/views/documentTool/documentSplit/modules/SplitText.vue @@ -143,12 +143,10 @@ export default { // 抽屉关闭 onClose () { this.visible = false - this.$emit('visible', false) }, // 取消 cancelSplit () { this.visible = false - this.$emit('visible', false) }, // 拆分 submitSplit () { @@ -166,14 +164,15 @@ export default { const nameSuffix = name[name.length - 1] if (nameSuffix.toLowerCase() === 'doc' || nameSuffix.toLowerCase() === 'docx') { const params = { - id: file.id + fileId: file.id, + id: '2' } this.loading = true addDocSplit(params).then(res => { if (res.success) { this.$message.success(this.$t('operationSuccessful')) this.visible = false - this.$emit('visible', false, 1) + this.$emit('ok') } else { this.$message.warning(res.message) } diff --git a/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue b/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue index 66100039..28a740a2 100644 --- a/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue +++ b/src/views/standardRegulationLibrary/domesticStandard/DomesticStandardList.vue @@ -275,7 +275,13 @@ export default { */ initTreeData () { this.treeLoading = true - getDomesticStandardTree({ nodeName: this.treeInput }).then(res => { + const params = { + nodeName: this.treeInput + } + if (!params.nodeName) { + delete params.nodeName + } + getDomesticStandardTree(params).then(res => { this.treeData = [] this.selectedTreeKeys = [] this.selectedTreeNodeCodes = [] diff --git a/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue b/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue index abb4ae78..e9f68a2b 100644 --- a/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue +++ b/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue @@ -53,7 +53,7 @@ export default { getDocumentInfoFunc: getDomesticStandardDocumentInfo, // 特殊的placeholder specialPlaceholder: { - standard_number: `${this.$t('standardRegulationLibrary.inputExample')}7258` + standard_number_temp: `${this.$t('standardRegulationLibrary.inputExample')}7258` }, defaultValue: { year_number: new Date().getFullYear() + '' @@ -65,8 +65,8 @@ export default { // 不可编辑的字段 disabledField () { if (this.isEdit) { - // 标准编号,被代替标准号,被引用标准号 - return ['standard_number_temp', 'replaced_by_standard_number', 'referenced_standard'] + // 标准编号,被代替标准号,被引用标准号,标准类别,年代号 + return ['standard_number_temp', 'replaced_by_standard_number', 'referenced_standard', 'standard_class', 'year_number'] } return ['replaced_by_standard_number', 'referenced_standard'] } diff --git a/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue b/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue index af15e7cb..b989358f 100644 --- a/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue +++ b/src/views/standardRegulationLibrary/overseasStandard/OverseasStandardList.vue @@ -275,7 +275,13 @@ export default { */ initTreeData () { this.treeLoading = true - getOverseasStandardSystem({ nodeName: this.treeInput }).then(res => { + const params = { + nodeName: this.treeInput + } + if (!params.nodeName) { + delete params.nodeName + } + getOverseasStandardSystem(params).then(res => { this.treeData = [] this.selectedTreeKeys = [] this.selectedTreeNodeCodes = [] @@ -593,7 +599,7 @@ export default { // 销毁这个提示 modalLoading.destroy() }) - }, + } } } diff --git a/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue b/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue index f06ac628..85d2c971 100644 --- a/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue +++ b/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue @@ -53,7 +53,7 @@ export default { getDocumentInfoFunc: getOverseasStandardDocumentInfo, // 特殊的placeholder specialPlaceholder: { - standard_number: `${this.$t('standardRegulationLibrary.inputExample')}7258` + standard_number_temp: `${this.$t('standardRegulationLibrary.inputExample')}7258` }, defaultValue: { year_number: new Date().getFullYear() + ''