Browse Source

应用列表操作权限优化

gzb
guozhongbo 8 months ago
parent
commit
be0180b709

+ 3
- 14
src/views/regionSection/applicationManage/applicationManage.vue View File

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

+ 2
- 9
src/views/regionSection/networkManage/whitelist.vue View File

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

+ 0
- 10
src/views/regionSection/regionManage/adminManage.vue View File

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

+ 1
- 1
src/views/regionSection/search/allApps.vue View File

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

+ 7
- 33
src/views/schoolSection/applicationManage/applicationList.vue View File

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

Loading…
Cancel
Save