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)
},
/**