diff --git a/src/components/CustomFormComponents/SelectArray.vue b/src/components/CustomFormComponents/SelectArray.vue
index e7be6f10c..df14645b7 100644
--- a/src/components/CustomFormComponents/SelectArray.vue
+++ b/src/components/CustomFormComponents/SelectArray.vue
@@ -16,7 +16,9 @@
multiple
@change="handleChange"
>
-
+
+ {{ checkAll ? '取消全选' : '全选' }}
+
{
+ this.valueArr.push(item.value)
+ list.push(item.value)
+ })
+ this.$emit('input', list)
+ } else {
+ this.valueArr = []
+ this.$emit('input', this.valueArr)
+ }
+ },
handleChange (event) {
- // const value = event.target.value
- this.$emit('input', event)
+ if (event.includes('全选')) {
+ return
+ } else {
+ if (event.length === this.config.options.length) {
+ this.checkAll = true
+ } else {
+ this.checkAll = false
+ }
+ this.$emit('input', event)
+ }
+ // const value = event.target.value
}
},
@@ -91,7 +117,7 @@ export default {
this.valueArr = []
}
}
- }
+ },
},
mounted () {
if (this.value !== '' && this.value !== null && typeof (this.value) !== 'undefined') {
diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
index 2eeed91c5..1a240c36f 100644
--- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
@@ -4086,6 +4086,8 @@ export default {
},
// 保存或修改标准
saveOrUpdateStands() {
+ console.log(this.sarStandardsInfoEO);
+ return
this.isSubmit = true
this.$refs['sarStandardsInfoForm'].validate((valid) => {
if (valid) {