Selaa lähdekoodia

切换用户管理员标识

luojun 2 vuotta sitten
vanhempi
commit
1bbf87a553
2 muutettua tiedostoa jossa 8 lisäystä ja 5 poistoa
  1. 7 4
      src/views/check/index.vue
  2. 1 1
      src/views/system/user/index.vue

+ 7 - 4
src/views/check/index.vue

@@ -407,12 +407,15 @@ export default {
     ...mapMutations([]),
         //已完成下发的计划不显示下发按钮
     checkCanPublish(row) {
-      console.log(row.planOfOrgType,"row.planOfOrgType")
-      console.log(row.planOfOrgType == "1"&& row.children.length == 0,"row.children.length")
-      if (row.planOfOrgType == "1"&& row.children.length == 0) {
-        console.log("1111")
+      // console.log(row.planOfOrgType,"row.planOfOrgType")
+      // console.log(row.planOfOrgType == "1"&& row.children.length == 0,"row.children.length")
+  
+      
+      if (row.planOfOrgType == "1"&& (row.children==null||row.children.length == 0)) {
+        // console.log("1111")
         return true
       }
+    
       return false;
     },
     splitRoleNames(val) {

+ 1 - 1
src/views/system/user/index.vue

@@ -108,7 +108,7 @@
             <el-table-column label="是否管理人员" align="center" key="isManager" prop="isManager" v-if="columns[5].visible"
               width="120">
               <template slot-scope="scope">
-                {{ scope.row.isManager > 0 ? "是" : "否" }}
+                {{ scope.row.isManage ==='Y'  ? "是" : "否" }}
               </template>
             </el-table-column>
             <el-table-column label="登录IP" align="center" key="lastIp" prop="lastIp" v-if="columns[6].visible"