From 51156d3f3b42aba82d16857260761b53a0e5d797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 31 Oct 2023 10:45:07 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=87=AA=E5=AE=9A=E4=B9=89=E6=AF=94?= =?UTF-8?q?=E5=AF=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../selection/StandardSelectionModal.vue | 14 +++++++++++--- .../modules/CustomComparisonDrawer.vue | 6 +++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index 046ef987..eda1d2cf 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -17,7 +17,8 @@ + :triggerChange="false" dictCode="standard_source" + @change="handleTypeChange" /> @@ -26,9 +27,13 @@ v-model="queryParam.standardNumOrName"> -
+
{{ $t('reset') }} - {{ $t('query') }} + {{ + $t('query') + }} +
@@ -204,6 +209,9 @@ export default { } else { this.$message.warning(this.$t('selectLeastOne')) } + }, + handleTypeChange () { + this.$forceUpdate() } } } diff --git a/src/views/documentTool/customComparison/modules/CustomComparisonDrawer.vue b/src/views/documentTool/customComparison/modules/CustomComparisonDrawer.vue index fe7abe44..49d8cb03 100644 --- a/src/views/documentTool/customComparison/modules/CustomComparisonDrawer.vue +++ b/src/views/documentTool/customComparison/modules/CustomComparisonDrawer.vue @@ -275,7 +275,7 @@ export default { this.$nextTick(() => { document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none' }) - downFile('/customCompare/lawsCustomCompareInfo/exportExcel', {infoId: this.modal.id}).then((data) => { + downFile('/customCompare/lawsCustomCompareInfo/exportExcel', { infoId: this.modal.id }).then((data) => { if (!data) { this.$message.warning('文件下载失败') return @@ -331,6 +331,10 @@ export default { * 对比维护 */ handleComparisonMaintain () { + if (!this.form.getFieldValue('referenceStandard')) { + this.$message.warning(this.$t('pleaseSelectOneStandard')) + return + } this.$refs.comparisonMaintainDrawer.open(this.modal.id) }, /**