Prechádzať zdrojové kódy

履职是否下发判定

luojun 2 rokov pred
rodič
commit
bc69da56e2

+ 1 - 1
src/views/check/index.vue

@@ -412,7 +412,7 @@ export default {
       // console.log(row.planOfOrgType == "1"&& row.children.length == 0,"row.children.length")
   
       
-      if (row.planOfOrgType == "1"&& (row.children==null||row.children.length == 0)) {
+      if (row.planOfOrgType == "1"&& row.distribute==null) {
         // console.log("1111")
         return true
       }

+ 5 - 5
src/views/resumption/plan/index.vue

@@ -423,11 +423,11 @@ export default {
     },
     //已完成下发的计划不显示下发按钮
     checkCanPublish(row) {
-      return true
-      // if (row.createOrgType == "1" && row.children.length == 0&&row.planStatus==1) {
-      //   return true;
-      // }
-      // return false;
+      // console.log(row.planOfOrgType,"row.planOfOrgType")
+      if (row.planOfOrgType == "1" && row.distribute==null) {
+        return true;
+      }
+      return false;
     },
     sel(selectList) {
       this.loading = true;