Browse Source

管理员禁用优化

gzb
wangzhonglu 7 months ago
parent
commit
a6514fa17f
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/views/platformSection/regionManage/adminManage.vue

+ 4
- 1
src/views/platformSection/regionManage/adminManage.vue View File

39
     <div class="table_wrap">
39
     <div class="table_wrap">
40
       <Table :columns="columns" :data="searchForm.list">
40
       <Table :columns="columns" :data="searchForm.list">
41
         <template slot-scope="{ row }" slot="enabledSlot">
41
         <template slot-scope="{ row }" slot="enabledSlot">
42
+          <div v-if="row.adminid === userInfo.adminid">
43
+            {{ row.enabled === 1 ? "启用" : row.enabled === 2 ? "禁用" : "" }}
44
+          </div>
42
           <i-switch
45
           <i-switch
43
             size="large"
46
             size="large"
44
-            :disabled="row.adminid === userInfo.adminid"
47
+            v-else
45
             v-model="row.enabled"
48
             v-model="row.enabled"
46
             :true-value="1"
49
             :true-value="1"
47
             :false-value="2"
50
             :false-value="2"

Loading…
Cancel
Save