From 41b7cd15c6c39c6c0eb37fcd0df7b11150197848 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 18 Sep 2023 14:26:38 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E4=BC=81=E6=A0=87?= =?UTF-8?q?=E5=BA=93=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enterpriseStandardLibraryApi.js | 2 +- src/components/customField/Search.vue | 30 +++++++++++++++---- .../reviewPlan/ReviewPlanList.vue | 10 +++++-- .../standard/EnterpriseStandardList.vue | 16 ++++++++-- .../modules/EnterpriseStandardModal.vue | 2 +- 5 files changed, 47 insertions(+), 13 deletions(-) diff --git a/src/api/enterpriseStandardLibraryApi.js b/src/api/enterpriseStandardLibraryApi.js index 9c4775e7..4a59d9cd 100644 --- a/src/api/enterpriseStandardLibraryApi.js +++ b/src/api/enterpriseStandardLibraryApi.js @@ -11,7 +11,7 @@ const getEnterpriseStandardInfoById = (params) => getAction('/laws/standard/ente // 配置标准 const allocationStandard = (params) => getAction('', params) // 移出标准 -const shiftStandard = (params) => getAction('', params) +const shiftStandard = (params) => getAction('/laws/standard/enterprise/removeStandard', params) // 获取左侧树列表 const getTreeList = (params) => getAction('/laws/standard/lawsTreeNode/enterprise', params) // 左侧树删除 diff --git a/src/components/customField/Search.vue b/src/components/customField/Search.vue index cb88eb73..d0dbe553 100644 --- a/src/components/customField/Search.vue +++ b/src/components/customField/Search.vue @@ -1,7 +1,7 @@ - + @@ -19,7 +19,8 @@ + :triggerChange="false" :dictCode="item.dictField"/> + + + + + + - + @@ -86,7 +103,7 @@ - + + :triggerChange="false" :dictCode="item.dictField" /> @@ -223,6 +240,7 @@ export default { this.getQueryConditionFunc(params).then((res) => { if (res.success) { this.searchList = res.result + console.log(this.searchList) // if (this.searchQueryList && this.searchQueryList.length > 0) { // for (let i = 0; i < this.searchList.length; i++) { // // 是要去掉这个字段的搜索?? diff --git a/src/views/enterpriseStandardLibrary/reviewPlan/ReviewPlanList.vue b/src/views/enterpriseStandardLibrary/reviewPlan/ReviewPlanList.vue index e74e4904..0cb12a7c 100644 --- a/src/views/enterpriseStandardLibrary/reviewPlan/ReviewPlanList.vue +++ b/src/views/enterpriseStandardLibrary/reviewPlan/ReviewPlanList.vue @@ -89,6 +89,13 @@ {{ text || text === 0 ? text : global.emptyLine }} + + + + {{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }} + {{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }} + + @@ -163,8 +170,7 @@ export default { title: this.$t('enterpriseStandardLibrary.reviewPlan.mainDraftingUnit'), align: 'center', width: 180, - dataIndex: 'mainDraftingUnit', - scopedSlots: { customRender: 'text' } + scopedSlots: { customRender: 'mainDraftingUnit' } } ], labelCol: { diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index 143f9462..25a59d4f 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -114,11 +114,20 @@ - - + + {{ text || text === 0 ? text : global.emptyLine }} - {{ text }} + {{ text }} + {{ global.emptyLine }} + + + + + + + {{ text || text === 0 ? text : global.emptyLine }} + {{ text }} {{ global.emptyLine }} @@ -202,6 +211,7 @@ export default { loading: false, getTableHeaderFunc: getEnterpriseStandardTableHeader, getQueryConditionFunc: getEnterpriseStandardSearchForm, + tableSlotField: ['standard_no', 'standard_name'], // 表格中需要插槽的字段 // url传参严格按照当前命名 url: { list: '/laws/standard/enterprise/getCommonPage', // 表格数据 diff --git a/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue b/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue index 7ddd9f4a..df411a05 100644 --- a/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue +++ b/src/views/enterpriseStandardLibrary/standard/modules/EnterpriseStandardModal.vue @@ -12,7 +12,7 @@