diff --git a/dangan-ui/src/views/dangan/retrieval/index.vue b/dangan-ui/src/views/dangan/retrieval/index.vue index bf63148..48a7eb3 100644 --- a/dangan-ui/src/views/dangan/retrieval/index.vue +++ b/dangan-ui/src/views/dangan/retrieval/index.vue @@ -5,11 +5,14 @@ 检索 - - {{ dict.label }} - +
+ 全选 + + {{ dict.label }} + +
@@ -1471,6 +1474,8 @@ export default { // 显示搜索条件 keyword: '', checkList: [], + // 是否全选 + checkAll: false, // 常住人口登记表1 option1: { // 遮罩层 @@ -1796,6 +1801,23 @@ export default { this.option7.loading = false; }) }, + handleCheckAllChange(val) { + if(val){ + this.checkList = [] + this.dict.type.yw_type.forEach(item => { + this.checkList.push(item.value) + }) + }else { + this.checkList = [] + } + }, + handleCheckboxGroupChange(){ + if(this.checkList.length===this.dict.type.yw_type.length){ + this.checkAll = true; + }else { + this.checkAll = false; + } + } } } diff --git a/dangan-ui/src/views/index.vue b/dangan-ui/src/views/index.vue index 22d2613..cf61779 100644 --- a/dangan-ui/src/views/index.vue +++ b/dangan-ui/src/views/index.vue @@ -5,11 +5,14 @@ 检索 - - {{ dict.label }} - +
+ 全选 + + {{ dict.label }} + +
@@ -21,11 +24,7 @@ - - - + @@ -218,11 +217,7 @@ - - - + @@ -415,11 +410,7 @@ - - - + @@ -612,11 +603,7 @@ - - - + @@ -937,11 +924,7 @@ - - - + @@ -1176,49 +1159,29 @@ - - - + - - - + - - - + - - - + - - - +