scorpioyq 2 år sedan
förälder
incheckning
7e73c835e7
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8 1
      src/views/home/component/owner_serach.vue

+ 8 - 1
src/views/home/component/owner_serach.vue

@@ -183,7 +183,7 @@
         </div>
       </div>
       <div class="flex flex-center mt-20 mb-5">
-        <base-button title="重置" type="0" icon="Refresh"/>
+        <base-button title="重置" type="0" icon="Refresh" @click="orgRefresh"/>
         <base-button class="ml-20" title="确定" icon="Check" @click='orgCheck'/>
       </div>
     </el-dialog>
@@ -399,6 +399,13 @@ export default {
       }
       this.showOrg = false
 
+    },
+    orgRefresh() {
+      this.deptList = this.deptList.map(sub => {
+        sub.checked = false
+        return sub
+      })
+
     },
     change() {
       if (this.keyWords.length === 0) {