Procházet zdrojové kódy

应用列表操作权限优化

gzb
guozhongbo před 7 měsíci
rodič
revize
be0180b709

+ 3
- 14
src/views/regionSection/applicationManage/applicationManage.vue Zobrazit soubor

@@ -55,12 +55,7 @@
55 55
           <div>{{ row.appType === 1 ? "推荐应用" : "必装应用" }}</div>
56 56
         </template>
57 57
         <template slot-scope="{ row }" slot="enabled">
58
-          <div
59
-            v-if="
60
-              row.createid === userInfo.adminid ||
61
-              row.regionid === powerParams.objectid
62
-            "
63
-          >
58
+          <div v-if="row.regionid === powerParams.objectid">
64 59
             <i-switch
65 60
               size="large"
66 61
               v-model="row.enabled"
@@ -98,19 +93,13 @@
98 93
           <div class="action_list">
99 94
             <div @click="toView(row)">查看</div>
100 95
             <div
101
-              v-if="
102
-                row.createid === userInfo.adminid ||
103
-                row.regionid === powerParams.objectid
104
-              "
96
+              v-if="row.regionid === powerParams.objectid"
105 97
               @click="toEdit(row)"
106 98
             >
107 99
               编辑
108 100
             </div>
109 101
             <div
110
-              v-if="
111
-                row.createid === userInfo.adminid ||
112
-                row.regionid === powerParams.objectid
113
-              "
102
+              v-if="row.regionid === powerParams.objectid"
114 103
               class="action_del"
115 104
               @click="toDel(row)"
116 105
             >

+ 2
- 9
src/views/regionSection/networkManage/whitelist.vue Zobrazit soubor

@@ -31,20 +31,13 @@
31 31
           <div class="action_list">
32 32
             <div v-if="row.whiteType === 1" @click="toView(row)">查看</div>
33 33
             <div
34
-              v-if="
35
-                row.whiteType === 1 &&
36
-                (row.createid === userInfo.adminid ||
37
-                  row.regionid === powerParams.objectid)
38
-              "
34
+              v-if="row.regionid === powerParams.objectid"
39 35
               @click="toEdit(row)"
40 36
             >
41 37
               编辑
42 38
             </div>
43 39
             <div
44
-              v-if="
45
-                row.createid === userInfo.adminid ||
46
-                row.regionid === powerParams.objectid
47
-              "
40
+              v-if="row.regionid === powerParams.objectid"
48 41
               class="action_del"
49 42
               @click="toDel(row)"
50 43
             >

+ 0
- 10
src/views/regionSection/regionManage/adminManage.vue Zobrazit soubor

@@ -173,12 +173,6 @@
173 173
             }}
174 174
           </div>
175 175
         </FormItem>
176
-        <FormItem label="状态" prop="enabled" style="width: 100%">
177
-          <RadioGroup v-model="adminInfo.enabled">
178
-            <Radio :label="1">启用</Radio>
179
-            <Radio :label="2">禁用</Radio>
180
-          </RadioGroup>
181
-        </FormItem>
182 176
         <FormItem label="地址" style="width: 100%">
183 177
           <Input v-model="adminInfo.address" placeholder="请输入地址"></Input>
184 178
         </FormItem>
@@ -412,7 +406,6 @@ export default {
412 406
         address: "",
413 407
         comm: "",
414 408
         atype: 2,
415
-        enabled: 1,
416 409
         schoolid: null,
417 410
         regionid: null
418 411
       },
@@ -597,7 +590,6 @@ export default {
597 590
         oldPhone: "",
598 591
         phone: "",
599 592
         msgcode: "",
600
-        enabled: 1,
601 593
         address: "",
602 594
         comm: "",
603 595
         atype: 2,
@@ -692,7 +684,6 @@ export default {
692 684
             loginpwd: this.adminInfo.loginpwd,
693 685
             phone: this.adminInfo.phone,
694 686
             msgcode: this.adminInfo.msgcode,
695
-            enabled: this.adminInfo.enabled,
696 687
             atype: this.adminInfo.atype,
697 688
             schoolid: this.adminInfo.schoolid || null,
698 689
             regionid: this.adminInfo.regionid,
@@ -767,7 +758,6 @@ export default {
767 758
             phone: res.obj.phone,
768 759
             oldPhone: res.obj.phone,
769 760
             msgcode: "",
770
-            enabled: res.obj.enabled,
771 761
             atype: res.obj.atype,
772 762
             regionid: res.obj.regionid,
773 763
             rversion: row.rversion,

+ 1
- 1
src/views/regionSection/search/allApps.vue Zobrazit soubor

@@ -492,7 +492,7 @@ export default {
492 492
         {
493 493
           title: "操作",
494 494
           slot: "actionSlot",
495
-          width: 100,
495
+          width: 70,
496 496
           align: "center"
497 497
         }
498 498
       ]

+ 7
- 33
src/views/schoolSection/applicationManage/applicationList.vue Zobrazit soubor

@@ -71,12 +71,10 @@
71 71
           <div>{{ row.appType === 1 ? "推荐应用" : "必装应用" }}</div>
72 72
         </template>
73 73
         <template slot-scope="{ row }" slot="enabled">
74
-          <div
75
-            v-if="
76
-              row.createid === userInfo.adminid ||
77
-              row.schoolid === powerParams.objectid
78
-            "
79
-          >
74
+          <div v-if="row.regionSchool === 2">
75
+            {{ row.enabled === 1 ? "启用" : "禁用" }}
76
+          </div>
77
+          <div v-else-if="row.regionSchool === 3">
80 78
             <i-switch
81 79
               size="large"
82 80
               v-model="row.enabled"
@@ -88,9 +86,6 @@
88 86
               <span slot="close">禁用</span>
89 87
             </i-switch>
90 88
           </div>
91
-          <div v-else>
92
-            {{ row.enabled === 1 ? "启用" : "禁用" }}
93
-          </div>
94 89
         </template>
95 90
         <template slot-scope="{ row }" slot="whited">
96 91
           <div class="action_list">
@@ -113,20 +108,9 @@
113 108
         <template slot-scope="{ row }" slot="actionSlot">
114 109
           <div class="action_list">
115 110
             <div @click="toView(row)">查看</div>
111
+            <div v-if="row.regionSchool === 3" @click="toEdit(row)">编辑</div>
116 112
             <div
117
-              v-if="
118
-                row.createid === userInfo.adminid ||
119
-                row.schoolid === powerParams.objectid
120
-              "
121
-              @click="toEdit(row)"
122
-            >
123
-              编辑
124
-            </div>
125
-            <div
126
-              v-if="
127
-                row.createid === userInfo.adminid ||
128
-                row.schoolid === powerParams.objectid
129
-              "
113
+              v-if="row.regionSchool === 3"
130 114
               class="action_del"
131 115
               @click="toDel(row)"
132 116
             >
@@ -210,12 +194,6 @@
210 194
               </template>
211 195
             </Select>
212 196
           </FormItem>
213
-          <FormItem label="状态" style="width: 100%">
214
-            <RadioGroup v-model="wallpaperInfo.enabled">
215
-              <Radio :label="1">启用</Radio>
216
-              <Radio :label="2">禁用</Radio>
217
-            </RadioGroup>
218
-          </FormItem>
219 197
           <FormItem label="应用属性" style="width: 100%">
220 198
             <RadioGroup
221 199
               @on-change="ChangeAppType"
@@ -600,7 +578,7 @@
600 578
           </div>
601 579
           <div class="view_com">
602 580
             <div class="view_t">更新内容</div>
603
-            <div>{{ viewInfo.appRenew || "无"}}</div>
581
+            <div>{{ viewInfo.appRenew || "无" }}</div>
604 582
           </div>
605 583
           <div class="view_com">
606 584
             <div class="view_t">授权型号</div>
@@ -745,7 +723,6 @@ export default {
745 723
         appid: null,
746 724
         appName: "",
747 725
         appgroupid: 0,
748
-        enabled: 1,
749 726
         appType: 1,
750 727
         forced: 0,
751 728
         whited: 1,
@@ -1382,7 +1359,6 @@ export default {
1382 1359
         appid: null,
1383 1360
         appName: "",
1384 1361
         appgroupid: "",
1385
-        enabled: 1,
1386 1362
         appType: 1,
1387 1363
         forced: 0,
1388 1364
         whited: 1,
@@ -1448,7 +1424,6 @@ export default {
1448 1424
             rtype: this.powerParams.rtype,
1449 1425
             objectid: this.powerParams.objectid,
1450 1426
             appName: this.wallpaperInfo.appName,
1451
-            enabled: this.wallpaperInfo.enabled,
1452 1427
             appType: this.wallpaperInfo.appType,
1453 1428
             forced:
1454 1429
               this.wallpaperInfo.appType === 1 ? 0 : this.wallpaperInfo.forced,
@@ -1507,7 +1482,6 @@ export default {
1507 1482
             rversion: res.obj.rversion,
1508 1483
             appName: res.obj.appName,
1509 1484
             appgroupid: res.obj.appgroupid,
1510
-            enabled: res.obj.enabled,
1511 1485
             appType: res.obj.appType,
1512 1486
             forced: res.obj.forced,
1513 1487
             whited: res.obj.whited,

Načítá se…
Zrušit
Uložit