Ver Fonte

共享状态

maxiaoxiao há 9 meses atrás
pai
commit
8785869279
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      src/views/ResourceShare/sharedLocation/index.vue

+ 3 - 2
src/views/ResourceShare/sharedLocation/index.vue

@@ -99,7 +99,9 @@ export default {
       this.model.startTime = this.model.sj[0];
       this.model.endTime = this.model.sj[1];
       let res = await listZyml(this.model);
-
+      res.data.forEach((a) => {
+        a.checked = a.sharestate == 1;
+      });
       this.table = {
         data: handleTree(res.data, "bsm", "pbsm"),
         total: 0,
@@ -139,7 +141,6 @@ export default {
     this.servicetype.forEach((ty) => {
       this.sertypeMap[ty.dictValue] = ty.dictLabel;
     });
-    console.log("--s-s--s", this.sertypeMap);
     this.searchFun();
   },
 };