Browse Source

区域接口增加统一参数

gzb
guozhongbo 9 months ago
parent
commit
f4b6d27fe0
31 changed files with 532 additions and 173 deletions
  1. 1
    1
      src/views/layout.vue
  2. 11
    0
      src/views/regionSection/applicationManage/applicationGroup.vue
  3. 53
    15
      src/views/regionSection/applicationManage/applicationManage.vue
  4. 9
    2
      src/views/regionSection/log/admin.vue
  5. 9
    2
      src/views/regionSection/log/appLaunch.vue
  6. 9
    2
      src/views/regionSection/log/applicationDownload.vue
  7. 9
    2
      src/views/regionSection/log/deviceEvents.vue
  8. 9
    2
      src/views/regionSection/log/deviceExport.vue
  9. 9
    2
      src/views/regionSection/log/deviceInstallation.vue
  10. 36
    29
      src/views/regionSection/log/deviceLocation.vue
  11. 9
    2
      src/views/regionSection/log/devicePush.vue
  12. 9
    2
      src/views/regionSection/log/violatingDevice.vue
  13. 31
    6
      src/views/regionSection/networkManage/whitelist.vue
  14. 11
    2
      src/views/regionSection/networkManage/whitelistLibrary.vue
  15. 41
    32
      src/views/regionSection/notice/index.vue
  16. 21
    2
      src/views/regionSection/regionManage/adminManage.vue
  17. 20
    6
      src/views/regionSection/regionManage/regionManage.vue
  18. 14
    3
      src/views/regionSection/regionManage/schoolManage.vue
  19. 20
    11
      src/views/regionSection/search/allApps.vue
  20. 7
    0
      src/views/regionSection/search/allUsers.vue
  21. 12
    1
      src/views/regionSection/search/allWhitelists.vue
  22. 7
    0
      src/views/regionSection/search/clientVersion.vue
  23. 7
    0
      src/views/regionSection/search/device.vue
  24. 7
    0
      src/views/regionSection/search/deviceModel.vue
  25. 7
    0
      src/views/regionSection/search/deviceUsers.vue
  26. 11
    1
      src/views/regionSection/setting/device.vue
  27. 28
    16
      src/views/regionSection/setting/logo.vue
  28. 11
    2
      src/views/regionSection/setting/powerUp.vue
  29. 17
    2
      src/views/regionSection/setting/wallpaper.vue
  30. 46
    14
      src/views/schoolSection/applicationManage/applicationList.vue
  31. 41
    14
      src/views/schoolSection/userManage/userManage.vue

+ 1
- 1
src/views/layout.vue View File

@@ -82,7 +82,7 @@ export default {
82 82
           regionid: this.powerParams.objectid
83 83
         }).then((data) => {
84 84
           if (data.code === 0) {
85
-            this.belongName = data.obj.regionName;
85
+            this.belongName = data.obj.regionName || "--";
86 86
           } else {
87 87
             this.belongName = "";
88 88
             this.$Message.error(data.msg);

+ 11
- 0
src/views/regionSection/applicationManage/applicationGroup.vue View File

@@ -259,6 +259,11 @@ export default {
259 259
       ]
260 260
     };
261 261
   },
262
+  computed: {
263
+    powerParams() {
264
+      return this.$store.getters.powerParams;
265
+    }
266
+  },
262 267
   mounted() {
263 268
     this.searchList();
264 269
   },
@@ -316,6 +321,8 @@ export default {
316 321
     // 获取列表
317 322
     getList() {
318 323
       appgroup_list({
324
+        rtype: this.powerParams.rtype,
325
+        objectid: this.powerParams.objectid,
319 326
         page: this.searchForm.page,
320 327
         size: this.searchForm.size,
321 328
         appgroupName: this.searchForm.appgroupName
@@ -353,6 +360,8 @@ export default {
353 360
             ? appgroup_edit
354 361
             : appgroup_add;
355 362
           let form = {
363
+            rtype: this.powerParams.rtype,
364
+            objectid: this.powerParams.objectid,
356 365
             appgroupName: this.wallpaperInfo.appgroupName,
357 366
             iconPath: this.wallpaperInfo.iconPath,
358 367
             comm: this.wallpaperInfo.comm,
@@ -411,6 +420,8 @@ export default {
411 420
         content: "您确定删除选中数据吗?",
412 421
         onOk: () => {
413 422
           appgroup_delete({
423
+            rtype: this.powerParams.rtype,
424
+            objectid: this.powerParams.objectid,
414 425
             appgroupid: row.appgroupid,
415 426
             rversion: row.rversion
416 427
           }).then((res) => {

+ 53
- 15
src/views/regionSection/applicationManage/applicationManage.vue View File

@@ -877,6 +877,11 @@ export default {
877 877
       ]
878 878
     };
879 879
   },
880
+  computed: {
881
+    powerParams() {
882
+      return this.$store.getters.powerParams;
883
+    }
884
+  },
880 885
   created() {
881 886
     this.userInfo = JSON.parse(
882 887
       localStorage.getItem("xh_control_userInfo")
@@ -891,7 +896,11 @@ export default {
891 896
     },
892 897
     // 查看
893 898
     toView(row) {
894
-      app_detail({ appid: row.appid }).then((res) => {
899
+      app_detail({
900
+        rtype: this.powerParams.rtype,
901
+        objectid: this.powerParams.objectid,
902
+        appid: row.appid
903
+      }).then((res) => {
895 904
         if (res.code === 0) {
896 905
           this.viewInfo = {
897 906
             show: true,
@@ -927,7 +936,11 @@ export default {
927 936
     },
928 937
     //查看型号
929 938
     see_device(row) {
930
-      app_detail({ appid: row.appid }).then((res) => {
939
+      app_detail({
940
+        rtype: this.powerParams.rtype,
941
+        objectid: this.powerParams.objectid,
942
+        appid: row.appid
943
+      }).then((res) => {
931 944
         if (res.code === 0) {
932 945
           this.deviceInfo = {
933 946
             show: true,
@@ -943,6 +956,8 @@ export default {
943 956
     enabledChange(row) {
944 957
       let api = row.enable === 1 ? app_edit_enable : app_edit_unenable;
945 958
       api({
959
+        rtype: this.powerParams.rtype,
960
+        objectid: this.powerParams.objectid,
946 961
         appid: row.appid,
947 962
         rversion: row.rversion
948 963
       }).then((data) => {
@@ -958,7 +973,11 @@ export default {
958 973
       console.log(row);
959 974
       if (type === 1) {
960 975
         //下载
961
-        app_detail({ appid: row.appid }).then((res) => {
976
+        app_detail({
977
+          rtype: this.powerParams.rtype,
978
+          objectid: this.powerParams.objectid,
979
+          appid: row.appid
980
+        }).then((res) => {
962 981
           if (res.code === 0) {
963 982
             this.downloadInfo = {
964 983
               show: true,
@@ -1100,6 +1119,8 @@ export default {
1100 1119
     init() {
1101 1120
       //获取分组列表
1102 1121
       appgroup_list({
1122
+        rtype: this.powerParams.rtype,
1123
+        objectid: this.powerParams.objectid,
1103 1124
         page: 1,
1104 1125
         size: 100,
1105 1126
         appgroupName: ""
@@ -1120,7 +1141,11 @@ export default {
1120 1141
       });
1121 1142
 
1122 1143
       //获取区域学校
1123
-      region_list_rs({ regionid: this.userInfo.regionid }).then((res) => {
1144
+      region_list_rs({
1145
+        rtype: this.powerParams.rtype,
1146
+        objectid: this.powerParams.objectid,
1147
+        regionid: this.powerParams.objectid
1148
+      }).then((res) => {
1124 1149
         if (res.code === 0) {
1125 1150
           this.getHandleData(res.obj[0]);
1126 1151
           this.curRegion = res.obj;
@@ -1143,7 +1168,9 @@ export default {
1143 1168
       //获取区域学校
1144 1169
       this.showLoading = true;
1145 1170
       region_list_rs({
1146
-        regionid: this.userInfo.regionid,
1171
+        rtype: this.powerParams.rtype,
1172
+        objectid: this.powerParams.objectid,
1173
+        regionid: this.powerParams.objectid,
1147 1174
         regionName: this.wallpaperInfo.schoolname
1148 1175
       }).then((res) => {
1149 1176
         this.showLoading = false;
@@ -1224,6 +1251,8 @@ export default {
1224 1251
     getList() {
1225 1252
       this.showLoading = true;
1226 1253
       app_list({
1254
+        rtype: this.powerParams.rtype,
1255
+        objectid: this.powerParams.objectid,
1227 1256
         page: this.searchForm.page,
1228 1257
         size: this.searchForm.size,
1229 1258
         appName: this.searchForm.appName
@@ -1320,6 +1349,8 @@ export default {
1320 1349
           }
1321 1350
           let appImg = this.wallpaperInfo.appImg.join(";");
1322 1351
           let form = {
1352
+            rtype: this.powerParams.rtype,
1353
+            objectid: this.powerParams.objectid,
1323 1354
             appName: this.wallpaperInfo.appName,
1324 1355
             enable: this.wallpaperInfo.enable,
1325 1356
             appType: this.wallpaperInfo.appType,
@@ -1386,7 +1417,11 @@ export default {
1386 1417
 
1387 1418
     // 编辑
1388 1419
     toEdit(row) {
1389
-      app_detail({ appid: row.appid }).then((res) => {
1420
+      app_detail({
1421
+        rtype: this.powerParams.rtype,
1422
+        objectid: this.powerParams.objectid,
1423
+        appid: row.appid
1424
+      }).then((res) => {
1390 1425
         if (res.code === 0) {
1391 1426
           this.school_list = JSON.parse(JSON.stringify(this.curRegion));
1392 1427
           this.wallpaperInfo = {
@@ -1468,16 +1503,19 @@ export default {
1468 1503
         title: "提示",
1469 1504
         content: "您确定删除选中数据吗?",
1470 1505
         onOk: () => {
1471
-          app_delete({ appid: row.appid, rversion: row.rversion }).then(
1472
-            (res) => {
1473
-              if (res.code === 0) {
1474
-                this.$Message.success(res.msg);
1475
-                this.searchList();
1476
-              } else {
1477
-                this.$Message.error(res.msg);
1478
-              }
1506
+          app_delete({
1507
+            rtype: this.powerParams.rtype,
1508
+            objectid: this.powerParams.objectid,
1509
+            appid: row.appid,
1510
+            rversion: row.rversion
1511
+          }).then((res) => {
1512
+            if (res.code === 0) {
1513
+              this.$Message.success(res.msg);
1514
+              this.searchList();
1515
+            } else {
1516
+              this.$Message.error(res.msg);
1479 1517
             }
1480
-          );
1518
+          });
1481 1519
         },
1482 1520
         onCancel: () => {}
1483 1521
       });

+ 9
- 2
src/views/regionSection/log/admin.vue View File

@@ -94,6 +94,11 @@ export default {
94 94
       ]
95 95
     };
96 96
   },
97
+  computed: {
98
+    powerParams() {
99
+      return this.$store.getters.powerParams;
100
+    }
101
+  },
97 102
   created() {
98 103
     this.userInfo = JSON.parse(
99 104
         localStorage.getItem("xh_control_userInfo")
@@ -124,12 +129,14 @@ export default {
124 129
       let _enddate = this.searchForm.dataRange[1];
125 130
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
126 131
       logOperate_list({
132
+        rtype: this.powerParams.rtype,
133
+        objectid: this.powerParams.objectid,
134
+        regionid: this.powerParams.objectid,
127 135
         page: this.searchForm.page,
128 136
         size: this.searchForm.size,
129 137
         begindate: _begindate,
130 138
         enddate: _enddate,
131
-        name: this.searchForm.name,
132
-        regionid: this.userInfo.regionid
139
+        name: this.searchForm.name
133 140
       }).then((data) => {
134 141
         if (data.code === 0) {
135 142
           this.searchForm.list = data.obj.data;

+ 9
- 2
src/views/regionSection/log/appLaunch.vue View File

@@ -122,6 +122,11 @@ export default {
122 122
       ]
123 123
     };
124 124
   },
125
+  computed: {
126
+    powerParams() {
127
+      return this.$store.getters.powerParams;
128
+    }
129
+  },
125 130
   created() {
126 131
     this.userInfo = JSON.parse(
127 132
       localStorage.getItem("xh_control_userInfo")
@@ -152,12 +157,14 @@ export default {
152 157
       let _enddate = this.searchForm.dataRange[1];
153 158
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
154 159
       logAppStart_list_start({
160
+        rtype: this.powerParams.rtype,
161
+        objectid: this.powerParams.objectid,
162
+        regionid: this.powerParams.objectid,
155 163
         page: this.searchForm.page,
156 164
         size: this.searchForm.size,
157 165
         begindate: _begindate,
158 166
         enddate: _enddate,
159
-        name: this.searchForm.name,
160
-        regionid: this.userInfo.regionid
167
+        name: this.searchForm.name
161 168
       }).then((data) => {
162 169
         if (data.code === 0) {
163 170
           this.searchForm.list = data.obj.data;

+ 9
- 2
src/views/regionSection/log/applicationDownload.vue View File

@@ -114,6 +114,11 @@ export default {
114 114
       ]
115 115
     };
116 116
   },
117
+  computed: {
118
+    powerParams() {
119
+      return this.$store.getters.powerParams;
120
+    }
121
+  },
117 122
   created() {
118 123
     this.userInfo = JSON.parse(
119 124
       localStorage.getItem("xh_control_userInfo")
@@ -144,12 +149,14 @@ export default {
144 149
       let _enddate = this.searchForm.dataRange[1];
145 150
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
146 151
       logAppDown_list({
152
+        rtype: this.powerParams.rtype,
153
+        objectid: this.powerParams.objectid,
154
+        regionid: this.powerParams.objectid,
147 155
         page: this.searchForm.page,
148 156
         size: this.searchForm.size,
149 157
         begindate: _begindate,
150 158
         enddate: _enddate,
151
-        name: this.searchForm.name,
152
-        regionid: this.userInfo.regionid
159
+        name: this.searchForm.name
153 160
       }).then((data) => {
154 161
         if (data.code === 0) {
155 162
           this.searchForm.list = data.obj.data;

+ 9
- 2
src/views/regionSection/log/deviceEvents.vue View File

@@ -150,6 +150,11 @@ export default {
150 150
       ]
151 151
     };
152 152
   },
153
+  computed: {
154
+    powerParams() {
155
+      return this.$store.getters.powerParams;
156
+    }
157
+  },
153 158
   created() {
154 159
     this.userInfo = JSON.parse(
155 160
       localStorage.getItem("xh_control_userInfo")
@@ -180,13 +185,15 @@ export default {
180 185
       let _enddate = this.searchForm.dataRange[1];
181 186
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
182 187
       logdoperate_list_event({
188
+        rtype: this.powerParams.rtype,
189
+        objectid: this.powerParams.objectid,
190
+        regionid: this.powerParams.objectid,
183 191
         page: this.searchForm.page,
184 192
         size: this.searchForm.size,
185 193
         doEvent: this.searchForm.doEvent,
186 194
         begindate: _begindate,
187 195
         enddate: _enddate,
188
-        name: this.searchForm.name,
189
-        regionid: this.userInfo.regionid
196
+        name: this.searchForm.name
190 197
       }).then((data) => {
191 198
         if (data.code === 0) {
192 199
           this.searchForm.list = data.obj.data;

+ 9
- 2
src/views/regionSection/log/deviceExport.vue View File

@@ -95,6 +95,11 @@ export default {
95 95
       ]
96 96
     };
97 97
   },
98
+  computed: {
99
+    powerParams() {
100
+      return this.$store.getters.powerParams;
101
+    }
102
+  },
98 103
   created() {
99 104
     this.userInfo = JSON.parse(
100 105
       localStorage.getItem("xh_control_userInfo")
@@ -121,10 +126,12 @@ export default {
121 126
     // 获取列表
122 127
     getList() {
123 128
       logDeviceBind_list({
129
+        rtype: this.powerParams.rtype,
130
+        objectid: this.powerParams.objectid,
131
+        regionid: this.powerParams.objectid,
124 132
         page: this.searchForm.page,
125 133
         size: this.searchForm.size,
126
-        name: this.searchForm.name,
127
-        regionid: this.userInfo.regionid
134
+        name: this.searchForm.name
128 135
       }).then((data) => {
129 136
         if (data.code === 0) {
130 137
           this.searchForm.list = data.obj.data;

+ 9
- 2
src/views/regionSection/log/deviceInstallation.vue View File

@@ -127,6 +127,11 @@ export default {
127 127
       ]
128 128
     };
129 129
   },
130
+  computed: {
131
+    powerParams() {
132
+      return this.$store.getters.powerParams;
133
+    }
134
+  },
130 135
   created() {
131 136
     this.userInfo = JSON.parse(
132 137
       localStorage.getItem("xh_control_userInfo")
@@ -157,12 +162,14 @@ export default {
157 162
       let _enddate = this.searchForm.dataRange[1];
158 163
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
159 164
       logAppStart_list_install({
165
+        rtype: this.powerParams.rtype,
166
+        objectid: this.powerParams.objectid,
167
+        regionid: this.powerParams.objectid,
160 168
         page: this.searchForm.page,
161 169
         size: this.searchForm.size,
162 170
         begindate: _begindate,
163 171
         enddate: _enddate,
164
-        name: this.searchForm.name,
165
-        regionid: this.userInfo.regionid
172
+        name: this.searchForm.name
166 173
       }).then((data) => {
167 174
         if (data.code === 0) {
168 175
           this.searchForm.list = data.obj.data;

+ 36
- 29
src/views/regionSection/log/deviceLocation.vue View File

@@ -3,26 +3,26 @@
3 3
     <div class="search_header">
4 4
       <div class="search_left">
5 5
         <DatePicker
6
-            v-model="searchForm.dataRange"
7
-            @on-change="searchList()"
8
-            :editable="false"
9
-            :transfer="true"
10
-            format="yyyy-MM-dd"
11
-            type="daterange"
12
-            placement="bottom-start"
13
-            placeholder="请选择日期范围"
14
-            style="margin-right: 10px; width: 220px"
6
+          v-model="searchForm.dataRange"
7
+          @on-change="searchList()"
8
+          :editable="false"
9
+          :transfer="true"
10
+          format="yyyy-MM-dd"
11
+          type="daterange"
12
+          placement="bottom-start"
13
+          placeholder="请选择日期范围"
14
+          style="margin-right: 10px; width: 220px"
15 15
         ></DatePicker>
16 16
         <Input
17
-            v-model="searchForm.name"
18
-            placeholder="请输入登录名、事件"
19
-            search
20
-            @on-search="searchList()"
21
-            style="width: 180px"
17
+          v-model="searchForm.name"
18
+          placeholder="请输入登录名、事件"
19
+          search
20
+          @on-search="searchList()"
21
+          style="width: 180px"
22 22
         />
23 23
       </div>
24 24
       <Button type="primary" class="primary_btn" @click="toExport()"
25
-      >导出</Button
25
+        >导出</Button
26 26
       >
27 27
     </div>
28 28
     <div class="table_wrap">
@@ -30,15 +30,15 @@
30 30
     </div>
31 31
     <div class="page_wrap">
32 32
       <Page
33
-          :transfer="true"
34
-          :total="searchForm.total"
35
-          :current="searchForm.page"
36
-          :page-size="searchForm.size"
37
-          :page-size-opts="[10, 20, 40, 60]"
38
-          @on-change="pageChange"
39
-          @on-page-size-change="pageSizeChange"
40
-          show-total
41
-          show-sizer
33
+        :transfer="true"
34
+        :total="searchForm.total"
35
+        :current="searchForm.page"
36
+        :page-size="searchForm.size"
37
+        :page-size-opts="[10, 20, 40, 60]"
38
+        @on-change="pageChange"
39
+        @on-page-size-change="pageSizeChange"
40
+        show-total
41
+        show-sizer
42 42
       ></Page>
43 43
     </div>
44 44
   </div>
@@ -66,8 +66,8 @@ export default {
66 66
           width: 70,
67 67
           render: (h, params) => {
68 68
             return h(
69
-                "span",
70
-                params.index +
69
+              "span",
70
+              params.index +
71 71
                 (this.searchForm.page - 1) * this.searchForm.size +
72 72
                 1
73 73
             );
@@ -112,9 +112,14 @@ export default {
112 112
       ]
113 113
     };
114 114
   },
115
+  computed: {
116
+    powerParams() {
117
+      return this.$store.getters.powerParams;
118
+    }
119
+  },
115 120
   created() {
116 121
     this.userInfo = JSON.parse(
117
-        localStorage.getItem("xh_control_userInfo")
122
+      localStorage.getItem("xh_control_userInfo")
118 123
     ).content;
119 124
     this.searchList();
120 125
   },
@@ -142,12 +147,14 @@ export default {
142 147
       let _enddate = this.searchForm.dataRange[1];
143 148
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
144 149
       logDeviceLogin_list({
150
+        rtype: this.powerParams.rtype,
151
+        objectid: this.powerParams.objectid,
152
+        regionid: this.powerParams.objectid,
145 153
         page: this.searchForm.page,
146 154
         size: this.searchForm.size,
147 155
         begindate: _begindate,
148 156
         enddate: _enddate,
149
-        name: this.searchForm.name,
150
-        regionid: this.userInfo.regionid
157
+        name: this.searchForm.name
151 158
       }).then((data) => {
152 159
         if (data.code === 0) {
153 160
           this.searchForm.list = data.obj.data;

+ 9
- 2
src/views/regionSection/log/devicePush.vue View File

@@ -105,6 +105,11 @@ export default {
105 105
       ]
106 106
     };
107 107
   },
108
+  computed: {
109
+    powerParams() {
110
+      return this.$store.getters.powerParams;
111
+    }
112
+  },
108 113
   created() {
109 114
     this.userInfo = JSON.parse(
110 115
       localStorage.getItem("xh_control_userInfo")
@@ -135,12 +140,14 @@ export default {
135 140
       let _enddate = this.searchForm.dataRange[1];
136 141
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
137 142
       logPush_list({
143
+        rtype: this.powerParams.rtype,
144
+        objectid: this.powerParams.objectid,
145
+        regionid: this.powerParams.objectid,
138 146
         page: this.searchForm.page,
139 147
         size: this.searchForm.size,
140 148
         begindate: _begindate,
141 149
         enddate: _enddate,
142
-        name: this.searchForm.name,
143
-        regionid: this.userInfo.regionid
150
+        name: this.searchForm.name
144 151
       }).then((data) => {
145 152
         if (data.code === 0) {
146 153
           this.searchForm.list = data.obj.data;

+ 9
- 2
src/views/regionSection/log/violatingDevice.vue View File

@@ -193,6 +193,11 @@ export default {
193 193
       ]
194 194
     };
195 195
   },
196
+  computed: {
197
+    powerParams() {
198
+      return this.$store.getters.powerParams;
199
+    }
200
+  },
196 201
   created() {
197 202
     this.userInfo = JSON.parse(
198 203
       localStorage.getItem("xh_control_userInfo")
@@ -223,13 +228,15 @@ export default {
223 228
       let _enddate = this.searchForm.dataRange[1];
224 229
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
225 230
       logdoperate_list_violate({
231
+        rtype: this.powerParams.rtype,
232
+        objectid: this.powerParams.objectid,
233
+        regionid: this.powerParams.objectid,
226 234
         page: this.searchForm.page,
227 235
         size: this.searchForm.size,
228 236
         doEvent: this.searchForm.doEvent,
229 237
         begindate: _begindate,
230 238
         enddate: _enddate,
231
-        name: this.searchForm.name,
232
-        regionid: this.userInfo.regionid
239
+        name: this.searchForm.name
233 240
       }).then((data) => {
234 241
         if (data.code === 0) {
235 242
           this.searchForm.list = data.obj.data;

+ 31
- 6
src/views/regionSection/networkManage/whitelist.vue View File

@@ -330,6 +330,11 @@ export default {
330 330
       ]
331 331
     };
332 332
   },
333
+  computed: {
334
+    powerParams() {
335
+      return this.$store.getters.powerParams;
336
+    }
337
+  },
333 338
   created() {
334 339
     this.userInfo = JSON.parse(
335 340
       localStorage.getItem("xh_control_userInfo")
@@ -340,7 +345,11 @@ export default {
340 345
   methods: {
341 346
     init() {
342 347
       //获取区域学校
343
-      region_list_rs({ regionid: this.userInfo.regionid }).then((res) => {
348
+      region_list_rs({
349
+        rtype: this.powerParams.rtype,
350
+        objectid: this.powerParams.objectid,
351
+        regionid: this.powerParams.objectid
352
+      }).then((res) => {
344 353
         if (res.code === 0) {
345 354
           this.getHandleData(res.obj[0]);
346 355
           this.curRegion = res.obj;
@@ -382,7 +391,9 @@ export default {
382 391
     getSchool() {
383 392
       //获取区域学校
384 393
       region_list_rs({
385
-        regionid: this.userInfo.regionid,
394
+        rtype: this.powerParams.rtype,
395
+        objectid: this.powerParams.objectid,
396
+        regionid: this.powerParams.objectid,
386 397
         name: this.whiteLibraryInfo.schoolname
387 398
       }).then((res) => {
388 399
         if (res.code === 0) {
@@ -424,7 +435,9 @@ export default {
424 435
         page: this.searchForm.page,
425 436
         size: this.searchForm.size,
426 437
         whiteName: this.searchForm.whiteName,
427
-        regionid: this.userInfo.regionid
438
+        rtype: this.powerParams.rtype,
439
+        objectid: this.powerParams.objectid,
440
+        regionid: this.powerParams.objectid
428 441
       }).then((data) => {
429 442
         if (data.code === 0) {
430 443
           this.searchForm.list = data.obj.data;
@@ -468,9 +481,11 @@ export default {
468 481
           }
469 482
           let api = this.whiteLibraryInfo.whiteid ? white_edit : white_add;
470 483
           let form = {
484
+            rtype: this.powerParams.rtype,
485
+            objectid: this.powerParams.objectid,
486
+            regionid: this.powerParams.objectid,
471 487
             whiteName: this.whiteLibraryInfo.whiteName,
472 488
             targetSchool: this.whiteLibraryInfo.targetSchool,
473
-            regionid: this.userInfo.regionid,
474 489
             website: this.whiteLibraryInfo.website,
475 490
             comm: this.whiteLibraryInfo.comm,
476 491
             schoolids: this.whiteLibraryInfo.schoolids
@@ -494,7 +509,11 @@ export default {
494 509
     },
495 510
     // 查看
496 511
     toView(row) {
497
-      white_detail({ whiteid: row.whiteid }).then((res) => {
512
+      white_detail({
513
+        rtype: this.powerParams.rtype,
514
+        objectid: this.powerParams.objectid,
515
+        whiteid: row.whiteid
516
+      }).then((res) => {
498 517
         if (res.code === 0) {
499 518
           this.viewInfo = {
500 519
             show: true,
@@ -516,7 +535,11 @@ export default {
516 535
     // 编辑
517 536
     toEdit(row) {
518 537
       this.school_list = JSON.parse(JSON.stringify(this.curRegion));
519
-      white_detail({ whiteid: row.whiteid }).then((res) => {
538
+      white_detail({
539
+        rtype: this.powerParams.rtype,
540
+        objectid: this.powerParams.objectid,
541
+        whiteid: row.whiteid
542
+      }).then((res) => {
520 543
         if (res.code === 0) {
521 544
           this.whiteLibraryInfo = {
522 545
             show: true,
@@ -550,6 +573,8 @@ export default {
550 573
         content: "您确定删除选中数据吗?",
551 574
         onOk: () => {
552 575
           white_delete({
576
+            rtype: this.powerParams.rtype,
577
+            objectid: this.powerParams.objectid,
553 578
             whiteid: row.whiteid,
554 579
             rversion: row.rversion
555 580
           }).then((data) => {

+ 11
- 2
src/views/regionSection/networkManage/whitelistLibrary.vue View File

@@ -111,6 +111,11 @@ export default {
111 111
       ]
112 112
     };
113 113
   },
114
+  computed: {
115
+    powerParams() {
116
+      return this.$store.getters.powerParams;
117
+    }
118
+  },
114 119
   created() {
115 120
     this.userInfo = JSON.parse(
116 121
       localStorage.getItem("xh_control_userInfo")
@@ -137,6 +142,8 @@ export default {
137 142
     // 获取列表
138 143
     getList() {
139 144
       whiteLibrary_list({
145
+        rtype: this.powerParams.rtype,
146
+        objectid: this.powerParams.objectid,
140 147
         page: this.searchForm.page,
141 148
         size: this.searchForm.size,
142 149
         name: this.searchForm.name
@@ -159,8 +166,10 @@ export default {
159 166
           '</span>" 加到白名单?',
160 167
         onOk: () => {
161 168
           whiteLibrary_add_white({
162
-            wlid: row.wlid,
163
-            regionid: this.userInfo.regionid
169
+            rtype: this.powerParams.rtype,
170
+            objectid: this.powerParams.objectid,
171
+            regionid: this.powerParams.objectid,
172
+            wlid: row.wlid
164 173
           }).then((data) => {
165 174
             if (data.code === 0) {
166 175
               this.searchList();

+ 41
- 32
src/views/regionSection/notice/index.vue View File

@@ -3,22 +3,22 @@
3 3
     <div class="search_header">
4 4
       <div class="search_left">
5 5
         <DatePicker
6
-            v-model="searchForm.dataRange"
7
-            @on-change="searchList()"
8
-            :editable="false"
9
-            :transfer="true"
10
-            format="yyyy-MM-dd"
11
-            type="daterange"
12
-            placement="bottom-start"
13
-            placeholder="请选择日期范围"
14
-            style="margin-right: 10px; width: 220px"
6
+          v-model="searchForm.dataRange"
7
+          @on-change="searchList()"
8
+          :editable="false"
9
+          :transfer="true"
10
+          format="yyyy-MM-dd"
11
+          type="daterange"
12
+          placement="bottom-start"
13
+          placeholder="请选择日期范围"
14
+          style="margin-right: 10px; width: 220px"
15 15
         ></DatePicker>
16 16
         <Input
17
-            v-model="searchForm.title"
18
-            placeholder="请输入标题"
19
-            search
20
-            @on-search="searchList()"
21
-            style="width: 150px"
17
+          v-model="searchForm.title"
18
+          placeholder="请输入标题"
19
+          search
20
+          @on-search="searchList()"
21
+          style="width: 150px"
22 22
         />
23 23
       </div>
24 24
     </div>
@@ -33,23 +33,23 @@
33 33
     </div>
34 34
     <div class="page_wrap">
35 35
       <Page
36
-          :transfer="true"
37
-          :total="searchForm.total"
38
-          :current="searchForm.page"
39
-          :page-size="searchForm.size"
40
-          :page-size-opts="[10, 20, 40, 60]"
41
-          @on-change="pageChange"
42
-          @on-page-size-change="pageSizeChange"
43
-          show-total
44
-          show-sizer
36
+        :transfer="true"
37
+        :total="searchForm.total"
38
+        :current="searchForm.page"
39
+        :page-size="searchForm.size"
40
+        :page-size-opts="[10, 20, 40, 60]"
41
+        @on-change="pageChange"
42
+        @on-page-size-change="pageSizeChange"
43
+        show-total
44
+        show-sizer
45 45
       ></Page>
46 46
     </div>
47 47
     <!-- 查看 -->
48 48
     <Modal
49
-        class="modal1"
50
-        :mask-closable="false"
51
-        v-model="viewInfo.show"
52
-        title="查看"
49
+      class="modal1"
50
+      :mask-closable="false"
51
+      v-model="viewInfo.show"
52
+      title="查看"
53 53
     >
54 54
       <div class="notice_title">{{ viewInfo.noticeTitle }}</div>
55 55
       <div class="notice_create">
@@ -96,8 +96,8 @@ export default {
96 96
           width: 70,
97 97
           render: (h, params) => {
98 98
             return h(
99
-                "span",
100
-                params.index +
99
+              "span",
100
+              params.index +
101 101
                 (this.searchForm.page - 1) * this.searchForm.size +
102 102
                 1
103 103
             );
@@ -129,9 +129,14 @@ export default {
129 129
       ]
130 130
     };
131 131
   },
132
+  computed: {
133
+    powerParams() {
134
+      return this.$store.getters.powerParams;
135
+    }
136
+  },
132 137
   created() {
133 138
     this.userInfo = JSON.parse(
134
-        localStorage.getItem("xh_control_userInfo")
139
+      localStorage.getItem("xh_control_userInfo")
135 140
     ).content;
136 141
     this.searchList();
137 142
   },
@@ -159,6 +164,8 @@ export default {
159 164
       let _enddate = this.searchForm.dataRange[1];
160 165
       _enddate = _enddate ? dateFormat(_enddate, "yyyy-MM-dd") : null;
161 166
       notice_list_region({
167
+        rtype: this.powerParams.rtype,
168
+        objectid: this.powerParams.objectid,
162 169
         page: this.searchForm.page,
163 170
         size: this.searchForm.size,
164 171
         title: this.searchForm.title,
@@ -176,6 +183,8 @@ export default {
176 183
     // 查看
177 184
     toView(row) {
178 185
       notice_detail_region({
186
+        rtype: this.powerParams.rtype,
187
+        objectid: this.powerParams.objectid,
179 188
         noticeid: row.noticeid
180 189
       }).then((data) => {
181 190
         if (data.code === 0) {
@@ -188,7 +197,7 @@ export default {
188 197
             noticeType: data.obj.noticeType,
189 198
             regions: data.obj.noticeType === 1 ? [] : data.obj.regions
190 199
           };
191
-          console.log(data.obj.noticeContent)
200
+          console.log(data.obj.noticeContent);
192 201
         } else {
193 202
           this.$Message.error(data.msg);
194 203
         }
@@ -229,7 +238,7 @@ export default {
229 238
 }
230 239
 .notice_content {
231 240
   font-size: 16px;
232
-  /deep/ img{
241
+  /deep/ img {
233 242
     width: 100%;
234 243
   }
235 244
 }

+ 21
- 2
src/views/regionSection/regionManage/adminManage.vue View File

@@ -413,6 +413,11 @@ export default {
413 413
       userInfo: {}
414 414
     };
415 415
   },
416
+  computed: {
417
+    powerParams() {
418
+      return this.$store.getters.powerParams;
419
+    }
420
+  },
416 421
   created() {
417 422
     this.userInfo = JSON.parse(
418 423
       localStorage.getItem("xh_control_userInfo")
@@ -423,7 +428,10 @@ export default {
423 428
   methods: {
424 429
     // 获取搜索区域列表
425 430
     getSearchRegionList() {
426
-      region_list_sel_qy({ regionid: this.userInfo.regionid }).then((data) => {
431
+      region_list_sel_qy({
432
+        rtype: this.powerParams.rtype,
433
+        objectid: this.powerParams.objectid,
434
+        regionid: this.powerParams.objectid }).then((data) => {
427 435
         if (data.code === 0) {
428 436
           this.searchForm.dropList = data.obj;
429 437
         } else {
@@ -450,6 +458,8 @@ export default {
450 458
     // 获取列表
451 459
     getList() {
452 460
       admin_list_qy({
461
+        rtype: this.powerParams.rtype,
462
+        objectid: this.powerParams.objectid,
453 463
         page: this.searchForm.page,
454 464
         size: this.searchForm.size,
455 465
         enabled: this.searchForm.enabled,
@@ -553,6 +563,8 @@ export default {
553 563
           this.adminInfo.show = false;
554 564
           let api = this.adminInfo.adminid ? admin_edit : admin_add;
555 565
           let form = {
566
+            rtype: this.powerParams.rtype,
567
+            objectid: this.powerParams.objectid,
556 568
             aname: this.adminInfo.aname,
557 569
             loginname: this.adminInfo.loginname,
558 570
             loginpwd: this.adminInfo.loginpwd,
@@ -590,7 +602,10 @@ export default {
590 602
     },
591 603
     // 编辑
592 604
     toEdit(row) {
593
-      admin_detail({ adminid: row.adminid }).then((res) => {
605
+      admin_detail({
606
+        rtype: this.powerParams.rtype,
607
+        objectid: this.powerParams.objectid,
608
+        adminid: row.adminid }).then((res) => {
594 609
         if (res.code === 0) {
595 610
           this.adminInfo = {
596 611
             show: true,
@@ -620,6 +635,8 @@ export default {
620 635
         content: "您确定删除选中数据吗?",
621 636
         onOk: () => {
622 637
           admin_delete({
638
+            rtype: this.powerParams.rtype,
639
+            objectid: this.powerParams.objectid,
623 640
             adminid: row.adminid,
624 641
             rversion: row.rversion
625 642
           }).then((data) => {
@@ -637,6 +654,8 @@ export default {
637 654
     enabledChange(row) {
638 655
       let api = row.enabled === 1 ? admin_enable : admin_disabled;
639 656
       api({
657
+        rtype: this.powerParams.rtype,
658
+        objectid: this.powerParams.objectid,
640 659
         adminid: row.adminid,
641 660
         rversion: row.rversion
642 661
       }).then((data) => {

+ 20
- 6
src/views/regionSection/regionManage/regionManage.vue View File

@@ -198,18 +198,20 @@ export default {
198 198
     const reg = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,32}$/;
199 199
     // 密码验证
200 200
     const pwdCheck = (rule, value, callback) => {
201
-      if (!reg.test(this.regionInfo.admin.loginpwd)) {
201
+      if (!reg.test(value)) {
202 202
         return callback(new Error("密码格式不正确!"));
203 203
       }
204
+      callback();
204 205
     };
205 206
     // 重复密码验证
206 207
     const pwdAgainCheck = async (rule, value, callback) => {
207
-      if (!reg.test(this.regionInfo.admin.loginpwd1)) {
208
+      if (!reg.test(value)) {
208 209
         return callback(new Error("密码格式不正确!"));
209 210
       }
210
-      if (this.regionInfo.admin.loginpwd != this.regionInfo.admin.loginpwd1) {
211
+      if (this.regionInfo.admin.loginpwd != value) {
211 212
         return callback(new Error("两次输入密码不一致!"));
212 213
       }
214
+      callback();
213 215
     };
214 216
     return {
215 217
       searchForm: {
@@ -488,7 +490,9 @@ export default {
488 490
           this.regionInfo.show = false;
489 491
           region_add({
490 492
             regionName: this.regionInfo.regionName,
491
-            regionPid: this.userInfo.regionid,
493
+            rtype: this.powerParams.rtype,
494
+            objectid: this.powerParams.objectid,
495
+            regionPid: this.powerParams.objectid,
492 496
             admin: {
493 497
               aname: this.regionInfo.admin.aname,
494 498
               loginname: this.regionInfo.admin.loginname,
@@ -512,8 +516,10 @@ export default {
512 516
       this.$refs.modifyForm.validate((valid) => {
513 517
         if (valid) {
514 518
           region_edit({
515
-            regionName: this.modifyRegion.regionName,
519
+            rtype: this.powerParams.rtype,
520
+            objectid: this.powerParams.objectid,
516 521
             regionid: this.modifyRegion.regionid,
522
+            regionName: this.modifyRegion.regionName,
517 523
             rversion: this.modifyRegion.rversion
518 524
           }).then((data) => {
519 525
             this.modifyRegion.show = false;
@@ -538,6 +544,8 @@ export default {
538 544
     // 查看管理员列表
539 545
     toView(row) {
540 546
       region_list_admin({
547
+        rtype: this.powerParams.rtype,
548
+        objectid: this.powerParams.objectid,
541 549
         regionid: row.regionid
542 550
       }).then((data) => {
543 551
         if (data.code === 0) {
@@ -551,7 +559,11 @@ export default {
551 559
     },
552 560
     // 编辑
553 561
     toEdit(row) {
554
-      region_detail({ regionid: row.regionid }).then((res) => {
562
+      region_detail({
563
+        rtype: this.powerParams.rtype,
564
+        objectid: this.powerParams.objectid,
565
+        regionid: row.regionid
566
+      }).then((res) => {
555 567
         if (res.code === 0) {
556 568
           this.modifyRegion = {
557 569
             show: true,
@@ -571,6 +583,8 @@ export default {
571 583
         content: "您确定删除选中数据吗?",
572 584
         onOk: () => {
573 585
           region_delete({
586
+            rtype: this.powerParams.rtype,
587
+            objectid: this.powerParams.objectid,
574 588
             regionid: row.regionid,
575 589
             rversion: row.rversion
576 590
           }).then((data) => {

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

@@ -567,7 +567,9 @@ export default {
567 567
     },
568 568
     // 获取搜索区域列表
569 569
     getSearchRegionList() {
570
-      region_list_sel_qy({ regionid: this.userInfo.regionid }).then((data) => {
570
+      region_list_sel_qy({  rtype: this.powerParams.rtype,
571
+        objectid: this.powerParams.objectid,
572
+        regionid: this.powerParams.objectid }).then((data) => {
571 573
         if (data.code === 0) {
572 574
           this.searchForm.dropList = data.obj;
573 575
         } else {
@@ -624,7 +626,7 @@ export default {
624 626
         areaName: "",
625 627
         address: "",
626 628
         schoolAbbr: "",
627
-        regionid: this.userInfo.regionid,
629
+        regionid: this.powerParams.objectid,
628 630
         createAdmin: false,
629 631
         admin: {
630 632
           aname: "",
@@ -709,6 +711,8 @@ export default {
709 711
           this.adminInfo.show = false;
710 712
           let api = this.adminInfo.schoolid ? school_edit : school_add;
711 713
           let form = {
714
+            rtype: this.powerParams.rtype,
715
+            objectid: this.powerParams.objectid,
712 716
             schoolName: this.adminInfo.schoolName,
713 717
             regionid: this.adminInfo.regionid,
714 718
             areaCode: this.adminInfo.areaCode,
@@ -755,7 +759,10 @@ export default {
755 759
     toEdit(row) {
756 760
       this.marketList = [];
757 761
       this.regionList = [];
758
-      school_detail({ schoolid: row.schoolid }).then((res) => {
762
+      school_detail({
763
+        rtype: this.powerParams.rtype,
764
+        objectid: this.powerParams.objectid,
765
+        schoolid: row.schoolid }).then((res) => {
759 766
         if (res.code === 0) {
760 767
           let str = res.obj.areaCode;
761 768
           let obj1 = { areaCode: "" },
@@ -800,6 +807,8 @@ export default {
800 807
         content: "您确定删除选中数据吗?",
801 808
         onOk: () => {
802 809
           school_delete({
810
+            rtype: this.powerParams.rtype,
811
+            objectid: this.powerParams.objectid,
803 812
             schoolid: row.schoolid,
804 813
             rversion: row.rversion
805 814
           }).then((data) => {
@@ -817,6 +826,8 @@ export default {
817 826
     enabledChange(row) {
818 827
       let api = row.enabled === 1 ? school_enable : school_disabled;
819 828
       api({
829
+        rtype: this.powerParams.rtype,
830
+        objectid: this.powerParams.objectid,
820 831
         schoolid: row.schoolid,
821 832
         rversion: row.rversion
822 833
       }).then((data) => {

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

@@ -34,11 +34,11 @@
34 34
         </template>
35 35
         <template slot-scope="{ row }" slot="enable">
36 36
           <i-switch
37
-              size="large"
38
-              v-model="row.enable"
39
-              :true-value="1"
40
-              :false-value="2"
41
-              @on-change="enabledChange(row)"
37
+            size="large"
38
+            v-model="row.enable"
39
+            :true-value="1"
40
+            :false-value="2"
41
+            @on-change="enabledChange(row)"
42 42
           >
43 43
             <span slot="open">启用</span>
44 44
             <span slot="close">禁用</span>
@@ -101,8 +101,8 @@
101 101
 </template>
102 102
 
103 103
 <script>
104
-import { search_list_app} from "@/api/region";
105
-import {app_edit_enable, app_edit_unenable} from "@/api/appgroup";
104
+import { search_list_app } from "@/api/region";
105
+import { app_edit_enable, app_edit_unenable } from "@/api/appgroup";
106 106
 export default {
107 107
   data() {
108 108
     return {
@@ -185,6 +185,11 @@ export default {
185 185
       ]
186 186
     };
187 187
   },
188
+  computed: {
189
+    powerParams() {
190
+      return this.$store.getters.powerParams;
191
+    }
192
+  },
188 193
   created() {
189 194
     this.searchList();
190 195
   },
@@ -193,6 +198,8 @@ export default {
193 198
       let api = row.enable === 1 ? app_edit_enable : app_edit_unenable;
194 199
       this.showLoading = true;
195 200
       api({
201
+        rtype: this.powerParams.rtype,
202
+        objectid: this.powerParams.objectid,
196 203
         appid: row.appid,
197 204
         rversion: row.rversion
198 205
       }).then((data) => {
@@ -205,9 +212,9 @@ export default {
205 212
         }
206 213
       });
207 214
     },
208
-    countSlot(){},
209
-    toView(){},
210
-    toDel(){},
215
+    countSlot() {},
216
+    toView() {},
217
+    toDel() {},
211 218
     // 搜索
212 219
     searchList() {
213 220
       this.searchForm.page = 1;
@@ -228,6 +235,8 @@ export default {
228 235
     getList() {
229 236
       this.showLoading = true;
230 237
       search_list_app({
238
+        rtype: this.powerParams.rtype,
239
+        objectid: this.powerParams.objectid,
231 240
         page: this.searchForm.page,
232 241
         size: this.searchForm.size,
233 242
         name: this.searchForm.name,
@@ -236,7 +245,7 @@ export default {
236 245
         this.showLoading = false;
237 246
         if (data.code === 0) {
238 247
           this.searchForm.list = data.obj.data;
239
-          console.log(this.searchForm.list)
248
+          console.log(this.searchForm.list);
240 249
           this.searchForm.total = data.obj.total;
241 250
         } else {
242 251
           this.$Message.error(data.msg);

+ 7
- 0
src/views/regionSection/search/allUsers.vue View File

@@ -106,6 +106,11 @@ export default {
106 106
       ]
107 107
     };
108 108
   },
109
+  computed: {
110
+    powerParams() {
111
+      return this.$store.getters.powerParams;
112
+    }
113
+  },
109 114
   created() {
110 115
     this.searchList();
111 116
   },
@@ -129,6 +134,8 @@ export default {
129 134
     // 获取列表
130 135
     getList() {
131 136
       search_list_user({
137
+        rtype: this.powerParams.rtype,
138
+        objectid: this.powerParams.objectid,
132 139
         page: this.searchForm.page,
133 140
         size: this.searchForm.size,
134 141
         name: this.searchForm.name,

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

@@ -168,12 +168,21 @@ export default {
168 168
       ]
169 169
     };
170 170
   },
171
+  computed: {
172
+    powerParams() {
173
+      return this.$store.getters.powerParams;
174
+    }
175
+  },
171 176
   created() {
172 177
     this.searchList();
173 178
   },
174 179
   methods: {
175 180
     toView(row) {
176
-      white_detail({ whiteid: row.whiteid }).then((res) => {
181
+      white_detail({
182
+        rtype: this.powerParams.rtype,
183
+        objectid: this.powerParams.objectid,
184
+        whiteid: row.whiteid
185
+      }).then((res) => {
177 186
         if (res.code === 0) {
178 187
           this.viewInfo = {
179 188
             show: true,
@@ -211,6 +220,8 @@ export default {
211 220
     // 获取列表
212 221
     getList() {
213 222
       search_list_white({
223
+        rtype: this.powerParams.rtype,
224
+        objectid: this.powerParams.objectid,
214 225
         page: this.searchForm.page,
215 226
         size: this.searchForm.size,
216 227
         name: this.searchForm.name

+ 7
- 0
src/views/regionSection/search/clientVersion.vue View File

@@ -102,6 +102,11 @@ export default {
102 102
       ]
103 103
     };
104 104
   },
105
+  computed: {
106
+    powerParams() {
107
+      return this.$store.getters.powerParams;
108
+    }
109
+  },
105 110
   created() {
106 111
     this.searchList();
107 112
   },
@@ -125,6 +130,8 @@ export default {
125 130
     // 获取列表
126 131
     getList() {
127 132
       search_list_client({
133
+        rtype: this.powerParams.rtype,
134
+        objectid: this.powerParams.objectid,
128 135
         page: this.searchForm.page,
129 136
         size: this.searchForm.size,
130 137
         doEvent: this.searchForm.doEvent,

+ 7
- 0
src/views/regionSection/search/device.vue View File

@@ -85,6 +85,11 @@ export default {
85 85
       ]
86 86
     };
87 87
   },
88
+  computed: {
89
+    powerParams() {
90
+      return this.$store.getters.powerParams;
91
+    }
92
+  },
88 93
   created() {
89 94
     this.searchList();
90 95
   },
@@ -108,6 +113,8 @@ export default {
108 113
     // 获取列表
109 114
     getList() {
110 115
       search_list_device({
116
+        rtype: this.powerParams.rtype,
117
+        objectid: this.powerParams.objectid,
111 118
         page: this.searchForm.page,
112 119
         size: this.searchForm.size,
113 120
         name: this.searchForm.name

+ 7
- 0
src/views/regionSection/search/deviceModel.vue View File

@@ -92,6 +92,11 @@ export default {
92 92
       ]
93 93
     };
94 94
   },
95
+  computed: {
96
+    powerParams() {
97
+      return this.$store.getters.powerParams;
98
+    }
99
+  },
95 100
   created() {
96 101
     this.searchList();
97 102
   },
@@ -115,6 +120,8 @@ export default {
115 120
     // 获取列表
116 121
     getList() {
117 122
       search_list_dmodel({
123
+        rtype: this.powerParams.rtype,
124
+        objectid: this.powerParams.objectid,
118 125
         page: this.searchForm.page,
119 126
         size: this.searchForm.size,
120 127
         name: this.searchForm.name,

+ 7
- 0
src/views/regionSection/search/deviceUsers.vue View File

@@ -85,6 +85,11 @@ export default {
85 85
       ]
86 86
     };
87 87
   },
88
+  computed: {
89
+    powerParams() {
90
+      return this.$store.getters.powerParams;
91
+    }
92
+  },
88 93
   created() {
89 94
     this.searchList();
90 95
   },
@@ -108,6 +113,8 @@ export default {
108 113
     // 获取列表
109 114
     getList() {
110 115
       search_list_duser({
116
+        rtype: this.powerParams.rtype,
117
+        objectid: this.powerParams.objectid,
111 118
         page: this.searchForm.page,
112 119
         size: this.searchForm.size,
113 120
         name: this.searchForm.name

+ 11
- 1
src/views/regionSection/setting/device.vue View File

@@ -52,6 +52,11 @@ export default {
52 52
       showLoading: false
53 53
     };
54 54
   },
55
+  computed: {
56
+    powerParams() {
57
+      return this.$store.getters.powerParams;
58
+    }
59
+  },
55 60
   created() {
56 61
     this.userInfo = JSON.parse(
57 62
       localStorage.getItem("xh_control_userInfo")
@@ -60,7 +65,10 @@ export default {
60 65
   },
61 66
   methods: {
62 67
     init() {
63
-      password_detail({}).then((res) => {
68
+      password_detail({
69
+        rtype: this.powerParams.rtype,
70
+        objectid: this.powerParams.objectid
71
+      }).then((res) => {
64 72
         this.showLoading = false;
65 73
         if (res.code === 0) {
66 74
           if (res.obj) {
@@ -84,6 +92,8 @@ export default {
84 92
         return;
85 93
       }
86 94
       let form = {
95
+        rtype: this.powerParams.rtype,
96
+        objectid: this.powerParams.objectid,
87 97
         trend: this.adminInfo.trend,
88 98
         password: this.adminInfo.password
89 99
       };

+ 28
- 16
src/views/regionSection/setting/logo.vue View File

@@ -88,6 +88,11 @@ export default {
88 88
       }
89 89
     };
90 90
   },
91
+  computed: {
92
+    powerParams() {
93
+      return this.$store.getters.powerParams;
94
+    }
95
+  },
91 96
   created() {
92 97
     this.userInfo = JSON.parse(
93 98
       localStorage.getItem("xh_control_userInfo")
@@ -96,23 +101,26 @@ export default {
96 101
   },
97 102
   methods: {
98 103
     init() {
99
-      logo_detail({ objectid: this.userInfo.regionid, llevel: 2 }).then(
100
-        (res) => {
101
-          this.showLoading = false;
102
-          if (res.code === 0) {
103
-            if (res.obj) {
104
-              this.form = {
105
-                logoPath: res.obj.logoPath,
106
-                rversion: res.obj.rversion,
107
-                objectid: res.obj.objectid,
108
-                logoid: res.obj.logoid
109
-              };
110
-            }
111
-          } else {
112
-            this.$Message.error(res.msg);
104
+      logo_detail({
105
+        rtype: this.powerParams.rtype,
106
+        objectid: this.powerParams.objectid,
107
+        regionid: this.powerParams.objectid,
108
+        llevel: 2
109
+      }).then((res) => {
110
+        this.showLoading = false;
111
+        if (res.code === 0) {
112
+          if (res.obj) {
113
+            this.form = {
114
+              logoPath: res.obj.logoPath,
115
+              rversion: res.obj.rversion,
116
+              objectid: res.obj.objectid,
117
+              logoid: res.obj.logoid
118
+            };
113 119
           }
120
+        } else {
121
+          this.$Message.error(res.msg);
114 122
         }
115
-      );
123
+      });
116 124
     },
117 125
     upLoad(file) {
118 126
       let str = file.name.split(".");
@@ -151,6 +159,8 @@ export default {
151 159
     resetting() {
152 160
       this.showLoading = true;
153 161
       logo_delete({
162
+        rtype: this.powerParams.rtype,
163
+        objectid: this.powerParams.objectid,
154 164
         rversion: this.form.rversion,
155 165
         logoid: this.form.logoid
156 166
       }).then((res) => {
@@ -168,7 +178,9 @@ export default {
168 178
       let form = {
169 179
         logoPath: this.form.logoPath,
170 180
         llevel: 2,
171
-        objectid: this.userInfo.regionid
181
+        rtype: this.powerParams.rtype,
182
+        objectid: this.powerParams.objectid,
183
+        regionid: this.powerParams.objectid
172 184
       };
173 185
       console.log(form);
174 186
       this.showLoading = true;

+ 11
- 2
src/views/regionSection/setting/powerUp.vue View File

@@ -59,6 +59,11 @@ export default {
59 59
       showLoading: false
60 60
     };
61 61
   },
62
+  computed: {
63
+    powerParams() {
64
+      return this.$store.getters.powerParams;
65
+    }
66
+  },
62 67
   created() {
63 68
     this.userInfo = JSON.parse(
64 69
       localStorage.getItem("xh_control_userInfo")
@@ -67,7 +72,9 @@ export default {
67 72
   },
68 73
   methods: {
69 74
     init() {
70
-      autoapp_detail({ regionid: this.userInfo.regionid }).then((res) => {
75
+      autoapp_detail({  rtype: this.powerParams.rtype,
76
+        objectid: this.powerParams.objectid,
77
+        regionid: this.powerParams.objectid }).then((res) => {
71 78
         this.showLoading = false;
72 79
         if (res.code === 0) {
73 80
           if (res.obj) {
@@ -93,7 +100,9 @@ export default {
93 100
         return;
94 101
       }
95 102
       let form = {
96
-        regionid: this.userInfo.regionid,
103
+        rtype: this.powerParams.rtype,
104
+        objectid: this.powerParams.objectid,
105
+        regionid: this.powerParams.objectid,
97 106
         appPackage: this.adminInfo.appPackage,
98 107
         authUrl: this.adminInfo.authUrl,
99 108
         singleType: this.adminInfo.singleType

+ 17
- 2
src/views/regionSection/setting/wallpaper.vue View File

@@ -261,6 +261,11 @@ export default {
261 261
       ]
262 262
     };
263 263
   },
264
+  computed: {
265
+    powerParams() {
266
+      return this.$store.getters.powerParams;
267
+    }
268
+  },
264 269
   created() {
265 270
     this.userInfo = JSON.parse(
266 271
       localStorage.getItem("xh_control_userInfo")
@@ -339,7 +344,9 @@ export default {
339 344
         page: this.searchForm.page,
340 345
         size: this.searchForm.size,
341 346
         name: this.searchForm.name,
342
-        regionid: this.userInfo.regionid
347
+        rtype: this.powerParams.rtype,
348
+        objectid: this.powerParams.objectid,
349
+        regionid: this.powerParams.objectid
343 350
       }).then((data) => {
344 351
         this.showLoading = false;
345 352
         if (data.code === 0) {
@@ -388,7 +395,9 @@ export default {
388 395
             wname: this.wallpaperInfo.wname,
389 396
             hpath: this.wallpaperInfo.hpath,
390 397
             wlevel: 2,
391
-            objectid: this.userInfo.regionid,
398
+            rtype: this.powerParams.rtype,
399
+            objectid: this.powerParams.objectid,
400
+            regionid: this.powerParams.objectid,
392 401
             deviceids
393 402
           };
394 403
           if (this.wallpaperInfo.wallpaperid) {
@@ -414,6 +423,8 @@ export default {
414 423
     toView(row) {
415 424
       this.showLoading = true;
416 425
       wallpaper_detail({
426
+        rtype: this.powerParams.rtype,
427
+        objectid: this.powerParams.objectid,
417 428
         wallpaperid: row.wallpaperid
418 429
       }).then((data) => {
419 430
         this.showLoading = false;
@@ -433,6 +444,8 @@ export default {
433 444
     toEdit(row) {
434 445
       this.showLoading = true;
435 446
       wallpaper_detail({
447
+        rtype: this.powerParams.rtype,
448
+        objectid: this.powerParams.objectid,
436 449
         wallpaperid: row.wallpaperid
437 450
       }).then((data) => {
438 451
         this.showLoading = false;
@@ -482,6 +495,8 @@ export default {
482 495
         content: "您确定删除选中数据吗?",
483 496
         onOk: () => {
484 497
           wallpaper_delete({
498
+            rtype: this.powerParams.rtype,
499
+            objectid: this.powerParams.objectid,
485 500
             wallpaperid: row.wallpaperid,
486 501
             rversion: row.rversion
487 502
           }).then((data) => {

+ 46
- 14
src/views/schoolSection/applicationManage/applicationList.vue View File

@@ -841,6 +841,11 @@ export default {
841 841
       ]
842 842
     };
843 843
   },
844
+  computed: {
845
+    powerParams() {
846
+      return this.$store.getters.powerParams;
847
+    }
848
+  },
844 849
   created() {
845 850
     this.userInfo = JSON.parse(
846 851
       localStorage.getItem("xh_control_userInfo")
@@ -855,7 +860,11 @@ export default {
855 860
     },
856 861
     // 查看
857 862
     toView(row) {
858
-      app_detail({ appid: row.appid }).then((res) => {
863
+      app_detail({
864
+        rtype: this.powerParams.rtype,
865
+        objectid: this.powerParams.objectid,
866
+        appid: row.appid
867
+      }).then((res) => {
859 868
         if (res.code === 0) {
860 869
           this.viewInfo = {
861 870
             show: true,
@@ -891,7 +900,11 @@ export default {
891 900
     },
892 901
     //查看型号
893 902
     see_device(row) {
894
-      app_detail({ appid: row.appid }).then((res) => {
903
+      app_detail({
904
+        rtype: this.powerParams.rtype,
905
+        objectid: this.powerParams.objectid,
906
+        appid: row.appid
907
+      }).then((res) => {
895 908
         if (res.code === 0) {
896 909
           this.deviceInfo = {
897 910
             show: true,
@@ -907,6 +920,8 @@ export default {
907 920
     enabledChange(row) {
908 921
       let api = row.enable === 1 ? app_edit_enable : app_edit_unenable;
909 922
       api({
923
+        rtype: this.powerParams.rtype,
924
+        objectid: this.powerParams.objectid,
910 925
         appid: row.appid,
911 926
         rversion: row.rversion
912 927
       }).then((data) => {
@@ -922,12 +937,16 @@ export default {
922 937
       console.log(row);
923 938
       if (type === 1) {
924 939
         //下载
925
-        app_detail({ appid: row.appid }).then((res) => {
940
+        app_detail({
941
+          rtype: this.powerParams.rtype,
942
+          objectid: this.powerParams.objectid,
943
+          appid: row.appid
944
+        }).then((res) => {
926 945
           if (res.code === 0) {
927 946
             this.downloadInfo = {
928 947
               show: true,
929 948
               appName: res.obj.appName,
930
-              apkPath:this.$api.showImageUrl +  res.obj.apkPath
949
+              apkPath: this.$api.showImageUrl + res.obj.apkPath
931 950
             };
932 951
             this.$nextTick(() => {
933 952
               let qrcodeEl = this.$refs.ScanShare;
@@ -1052,6 +1071,8 @@ export default {
1052 1071
     init() {
1053 1072
       //获取分组列表
1054 1073
       appgroup_list({
1074
+        rtype: this.powerParams.rtype,
1075
+        objectid: this.powerParams.objectid,
1055 1076
         page: 1,
1056 1077
         size: 100,
1057 1078
         appgroupName: ""
@@ -1137,6 +1158,8 @@ export default {
1137 1158
     getList() {
1138 1159
       this.showLoading = true;
1139 1160
       app_list({
1161
+        rtype: this.powerParams.rtype,
1162
+        objectid: this.powerParams.objectid,
1140 1163
         page: this.searchForm.page,
1141 1164
         size: this.searchForm.size,
1142 1165
         appName: this.searchForm.appName,
@@ -1221,6 +1244,8 @@ export default {
1221 1244
           }
1222 1245
           let appImg = this.wallpaperInfo.appImg.join(";");
1223 1246
           let form = {
1247
+            rtype: this.powerParams.rtype,
1248
+            objectid: this.powerParams.objectid,
1224 1249
             appName: this.wallpaperInfo.appName,
1225 1250
             enable: this.wallpaperInfo.enable,
1226 1251
             appType: this.wallpaperInfo.appType,
@@ -1266,7 +1291,11 @@ export default {
1266 1291
     },
1267 1292
     // 编辑
1268 1293
     toEdit(row) {
1269
-      app_detail({ appid: row.appid }).then((res) => {
1294
+      app_detail({
1295
+        rtype: this.powerParams.rtype,
1296
+        objectid: this.powerParams.objectid,
1297
+        appid: row.appid
1298
+      }).then((res) => {
1270 1299
         if (res.code === 0) {
1271 1300
           this.school_list = JSON.parse(JSON.stringify(this.curRegion));
1272 1301
           this.wallpaperInfo = {
@@ -1336,16 +1365,19 @@ export default {
1336 1365
         title: "提示",
1337 1366
         content: "您确定删除选中数据吗?",
1338 1367
         onOk: () => {
1339
-          app_delete({ appid: row.appid, rversion: row.rversion }).then(
1340
-            (res) => {
1341
-              if (res.code === 0) {
1342
-                this.$Message.success(res.msg);
1343
-                this.searchList();
1344
-              } else {
1345
-                this.$Message.error(res.msg);
1346
-              }
1368
+          app_delete({
1369
+            rtype: this.powerParams.rtype,
1370
+            objectid: this.powerParams.objectid,
1371
+            appid: row.appid,
1372
+            rversion: row.rversion
1373
+          }).then((res) => {
1374
+            if (res.code === 0) {
1375
+              this.$Message.success(res.msg);
1376
+              this.searchList();
1377
+            } else {
1378
+              this.$Message.error(res.msg);
1347 1379
             }
1348
-          );
1380
+          });
1349 1381
         },
1350 1382
         onCancel: () => {}
1351 1383
       });

+ 41
- 14
src/views/schoolSection/userManage/userManage.vue View File

@@ -503,6 +503,11 @@ export default {
503 503
       }
504 504
     };
505 505
   },
506
+  computed: {
507
+    powerParams() {
508
+      return this.$store.getters.powerParams;
509
+    }
510
+  },
506 511
   created() {
507 512
     this.userInfo = JSON.parse(
508 513
       localStorage.getItem("xh_control_userInfo")
@@ -590,7 +595,11 @@ export default {
590 595
     },
591 596
     //导出
592 597
     userExport() {
593
-      user_export({ schoolid: 1 }).then((res) => {
598
+      user_export({
599
+        rtype: this.powerParams.rtype,
600
+        objectid: this.powerParams.objectid,
601
+        schoolid: this.powerParams.objectid
602
+      }).then((res) => {
594 603
         if (res.code === 0) {
595 604
           exportToExcel(
596 605
             [
@@ -653,8 +662,10 @@ export default {
653 662
             loginpwd: this.addInfo.loginpwd,
654 663
             classid: this.addInfo.classid,
655 664
             classname: this.addInfo.classname,
665
+            rtype: this.powerParams.rtype,
666
+            objectid: this.powerParams.objectid,
667
+            regionid: this.powerParams.objectid,
656 668
             schoolid: this.addInfo.schoolid || 1,
657
-            regionid: this.userInfo.regionid,
658 669
             enabled: this.addInfo.enabled,
659 670
             studentno: this.addInfo.studentno,
660 671
             userphone: this.addInfo.userphone,
@@ -675,7 +686,12 @@ export default {
675 686
     },
676 687
     toCare(row) {
677 688
       let api = row.care === 1 ? user_un_care : user_care;
678
-      api({ userid: row.userid, rversion: row.rversion }).then((res) => {
689
+      api({
690
+        rtype: this.powerParams.rtype,
691
+        objectid: this.powerParams.objectid,
692
+        userid: row.userid,
693
+        rversion: row.rversion
694
+      }).then((res) => {
679 695
         if (res.code === 0) {
680 696
           this.searchList();
681 697
           this.$Message.success(res.msg);
@@ -685,20 +701,25 @@ export default {
685 701
       });
686 702
     },
687 703
     toDel(row) {
688
-      user_delete({ userid: row.userid, rversion: row.rversion }).then(
689
-        (res) => {
690
-          if (res.code === 0) {
691
-            this.searchList();
692
-            this.$Message.success(res.msg);
693
-          } else {
694
-            this.$Message.error(res.msg);
695
-          }
704
+      user_delete({
705
+        rtype: this.powerParams.rtype,
706
+        objectid: this.powerParams.objectid,
707
+        userid: row.userid,
708
+        rversion: row.rversion
709
+      }).then((res) => {
710
+        if (res.code === 0) {
711
+          this.searchList();
712
+          this.$Message.success(res.msg);
713
+        } else {
714
+          this.$Message.error(res.msg);
696 715
         }
697
-      );
716
+      });
698 717
     },
699 718
     enabledChange(row) {
700 719
       let api = row.enabled === 1 ? user_enable : user_disabled;
701 720
       api({
721
+        rtype: this.powerParams.rtype,
722
+        objectid: this.powerParams.objectid,
702 723
         userid: row.userid,
703 724
         rversion: row.rversion
704 725
       }).then((data) => {
@@ -716,7 +737,11 @@ export default {
716 737
     },
717 738
     init() {
718 739
       this.showLoading = true;
719
-      class_list({ schoolid: 1 }).then((res) => {
740
+      class_list({
741
+        rtype: this.powerParams.rtype,
742
+        objectid: this.powerParams.objectid,
743
+        schoolid: this.powerParams.objectid
744
+      }).then((res) => {
720 745
         this.showLoading = false;
721 746
         if (res.code === 0) {
722 747
           this.schoolInfo = res.obj;
@@ -748,9 +773,11 @@ export default {
748 773
     getList() {
749 774
       this.showLoading = true;
750 775
       user_list({
776
+        rtype: this.powerParams.rtype,
777
+        objectid: this.powerParams.objectid,
778
+        schoolid: this.powerParams.objectid,
751 779
         page: this.searchForm.page,
752 780
         size: this.searchForm.size,
753
-        schoolid: this.searchForm.schoolid,
754 781
         classid: this.curClass.id,
755 782
         care: this.searchForm.care,
756 783
         enabled: this.searchForm.enabled,

Loading…
Cancel
Save