瀏覽代碼

主管任务审批

zhujindu 6 月之前
父節點
當前提交
3b885bf959
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      src/components/zCheckbox2.vue

+ 13 - 1
src/components/zCheckbox2.vue

@@ -35,8 +35,20 @@ export default {
       zSelectValuec: [],
     };
   },
+  watch: {
+    checkboxval: {
+      handler(va) {
+        if (this.checkboxval == '' || this.checkboxval == undefined) {
+          this.zSelectValuec = [];
+        } else {
+          this.zSelectValuec = this.checkboxval.split(',');
+        }
+      },
+      immediate: true,
+    },
+  },
   activated() {
-    this.checkboxvalFn();
+    // this.checkboxvalFn();
   },
   methods: {
     checkboxvalFn() {