From 180c3f94deddf340faa78ea4c1165f8afda10940 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 18 Sep 2023 18:37:01 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E8=81=94=E8=B0=83=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=A0=87=E5=87=86=E9=83=A8=E5=88=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enterpriseStandardLibraryApi.js | 7 +- src/components/customField/AddForm.vue | 2 +- src/components/customField/Search.vue | 4 +- .../selection/StandardSelectionModal.vue | 2 +- .../standard/EnterpriseStandardList.vue | 219 ++++++++---------- .../modules/AllocationStandardDrawer.vue | 218 +++++++++++++++++ 6 files changed, 329 insertions(+), 123 deletions(-) create mode 100644 src/views/enterpriseStandardLibrary/standard/modules/AllocationStandardDrawer.vue diff --git a/src/api/enterpriseStandardLibraryApi.js b/src/api/enterpriseStandardLibraryApi.js index 69ec76dd..f2631ff0 100644 --- a/src/api/enterpriseStandardLibraryApi.js +++ b/src/api/enterpriseStandardLibraryApi.js @@ -9,7 +9,9 @@ const getEnterpriseStandardAddForm = (params) => getAction('/laws/standard/enter // 根据id获取详情 const getEnterpriseStandardInfoById = (params) => getAction('/laws/standard/enterprise/getByIdAndModule', params) // 配置标准 -const allocationStandard = (params) => getAction('', params) +const allocationStandard = (params) => getAction('/laws/standard/enterprise/relatedStandard', params) +// 配置标准-获取可配置标准列表 +const allocationStandardList = (params) => getAction('/laws/standard/common/getStandardRightBox', params) // 移出标准 const shiftStandard = (params) => getAction('/laws/standard/enterprise/removeStandard', params) // 获取左侧树列表 @@ -25,7 +27,7 @@ const collectStandard = (params) => postAction('/personal/lawsStandardCollection // 取消收藏企标 const cancelCollectStandard = (params) => postAction('/personal/lawsStandardCollection/enterprise/delete', params) // 分享企标 -const shareStandard = (params) => getAction('', params) +const shareStandard = (params) => postAction('/personal/lawsStandardSharing/enterprise/add', params) // 企标评审会记录-设置优质标准 const setQualityStandard = (params) => getAction('/enterprise/reviewMeeting/setQualityStandards', params) @@ -51,6 +53,7 @@ export { getEnterpriseStandardAddForm, getEnterpriseStandardInfoById, allocationStandard, + allocationStandardList, shiftStandard, getTreeList, deleteTreeNode, diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index 1666d527..bf86f415 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -432,7 +432,7 @@ export default { ruleList.forEach((res, index) => { const rule = [] if (res.fieldMustInput === '1') { - if ((FieldType.TEXT_BOX.value, FieldType.TEXTAREA.value, FieldType.TEXT_LINK.value).includes(res.fieldShowType)) { + if ([FieldType.TEXT_BOX.value, FieldType.TEXTAREA.value, FieldType.TEXT_LINK.value].includes(res.fieldShowType)) { rule.push({ required: true, message: res.dbFieldTxt + this.$t('cannotEmpty'), diff --git a/src/components/customField/Search.vue b/src/components/customField/Search.vue index a6605de2..3a5f1591 100644 --- a/src/components/customField/Search.vue +++ b/src/components/customField/Search.vue @@ -196,8 +196,8 @@ {{ !toggleSearchStatus ? $t('open') : $t('putAway') }} - {{ $t('query') }} - {{ $t('reset') }} + {{ $t('query') }} + {{ $t('reset') }} diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index fe2ef460..058bfaca 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -114,7 +114,7 @@ export default { width: 150 }, { - title: this.$t('textStatus'), + title: this.$t('standardSelect.textState'), dataIndex: 'standardState_dictText', align: 'center', width: 150 diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index 36697641..3fc3bd02 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -1,57 +1,54 @@