Browse Source

Merge remote-tracking branch 'origin/gzb' into wzl

gzb
wangzhonglu 9 months ago
parent
commit
01dbd6cd1a

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

@@ -70,23 +70,14 @@
70 70
         </template>
71 71
         <template slot-scope="{ row }" slot="whited">
72 72
           <div class="action_list">
73
-            <div class="action_success">
74
-              {{ row.whited === 1 ? "是" : "否" }}
75
-            </div>
76
-          </div>
77
-        </template>
78
-        <template slot-scope="{ row }" slot="trusted">
79
-          <div class="action_list">
80
-            <div class="action_error">
81
-              {{ row.trusted === 1 ? "是" : "否" }}
82
-            </div>
73
+            <div v-if="row.whited === 1" class="action_success">是</div>
74
+            <div v-else class="action_error">否</div>
83 75
           </div>
84 76
         </template>
85 77
         <template slot-scope="{ row }" slot="showico">
86 78
           <div class="action_list">
87
-            <div class="action_success">
88
-              {{ row.showico === 1 ? "是" : "否" }}
89
-            </div>
79
+            <div v-if="row.showico === 1" class="action_success">是</div>
80
+            <div v-else class="action_error">否</div>
90 81
           </div>
91 82
         </template>
92 83
         <template slot-scope="{ row }" slot="countSlot">
@@ -245,24 +236,13 @@
245 236
               <span>选择白名单例外则该应用访问网络不受网址白名单限制。</span>
246 237
             </div>
247 238
           </FormItem>
248
-          <FormItem label="可信任" style="width: 100%">
249
-            <div class="comm">
250
-              <RadioGroup v-model="wallpaperInfo.trusted">
251
-                <Radio :label="1">是</Radio>
252
-                <Radio :label="0">否</Radio>
253
-              </RadioGroup>
254
-              <span
255
-                >选择可信任时,应用申请权限不需要用户确认,防止用户取消。</span
256
-              >
257
-            </div>
258
-          </FormItem>
259 239
           <FormItem label="显示图标" style="width: 100%">
260 240
             <div class="comm">
261 241
               <RadioGroup v-model="wallpaperInfo.showico">
262 242
                 <Radio :label="1">是</Radio>
263 243
                 <Radio :label="0">否</Radio>
264 244
               </RadioGroup>
265
-              <span>显示图标时,设备安装应用后,桌面显示应用图标。</span>
245
+              <span>显示图标时,设备安装应用后,桌面显示应用图标。</span>
266 246
             </div>
267 247
           </FormItem>
268 248
           <FormItem label="允许清空缓存" style="width: 100%">
@@ -610,10 +590,10 @@
610 590
               <span>强制安装</span>{{ viewInfo.forced === 0 ? "否" : "是" }}
611 591
             </div>
612 592
             <div class="view_item">
613
-              <span>可信任</span>{{ viewInfo.trusted === 0 ? "否" : "是" }}
593
+              <span>显示图标</span>{{ viewInfo.showico === 0 ? "否" : "是" }}
614 594
             </div>
615 595
             <div class="view_item">
616
-              <span>显示图标</span>{{ viewInfo.showico === 0 ? "否" : "是" }}
596
+              <span>应用大小</span>{{ viewInfo.appSize }}
617 597
             </div>
618 598
           </div>
619 599
           <div class="view_comm">
@@ -621,12 +601,10 @@
621 601
               <span>应用属性</span
622 602
               >{{ viewInfo.appType === 1 ? "推荐应用" : "必装应用" }}
623 603
             </div>
624
-            <div class="view_item">
625
-              <span>应用大小</span>{{ viewInfo.appSize }}
626
-            </div>
627
-            <div class="view_item">
604
+            <div class="view_item" style="width: 50%">
628 605
               <span>应用包名</span>{{ viewInfo.appPackage }}
629 606
             </div>
607
+            <div class="view_item"></div>
630 608
           </div>
631 609
           <div class="view_comm">
632 610
             <div class="view_item">
@@ -774,8 +752,7 @@ export default {
774 752
         appType: 1,
775 753
         forced: 0,
776 754
         whited: 1,
777
-        trusted: 1,
778
-        showico: 0,
755
+        showico: 1,
779 756
         cached: 1,
780 757
         strategy: 1,
781 758
         apkPath: "",
@@ -801,7 +778,6 @@ export default {
801 778
         appType: 1,
802 779
         forced: 1,
803 780
         whited: 1,
804
-        trusted: 1,
805 781
         showico: 1,
806 782
         cached: 1,
807 783
         strategy: 1,
@@ -949,11 +925,6 @@ export default {
949 925
           align: "center",
950 926
           width: 140
951 927
         },
952
-        {
953
-          title: "可信任",
954
-          slot: "trusted",
955
-          align: "center"
956
-        },
957 928
         {
958 929
           title: "操作时间",
959 930
           key: "updatetime",
@@ -1026,7 +997,6 @@ export default {
1026 997
             appType: res.obj.appType,
1027 998
             forced: res.obj.forced,
1028 999
             whited: res.obj.whited,
1029
-            trusted: res.obj.trusted,
1030 1000
             showico: res.obj.showico,
1031 1001
             cached: res.obj.cached,
1032 1002
             strategy: res.obj.strategy,
@@ -1463,8 +1433,7 @@ export default {
1463 1433
         appType: 1,
1464 1434
         forced: 0,
1465 1435
         whited: 1,
1466
-        trusted: 1,
1467
-        showico: 0,
1436
+        showico: 1,
1468 1437
         cached: 1,
1469 1438
         strategy: 1,
1470 1439
         apkPath: "",
@@ -1540,7 +1509,6 @@ export default {
1540 1509
             appType: this.wallpaperInfo.appType,
1541 1510
             forced: this.wallpaperInfo.forced,
1542 1511
             whited: this.wallpaperInfo.whited,
1543
-            trusted: this.wallpaperInfo.trusted,
1544 1512
             showico: this.wallpaperInfo.showico,
1545 1513
             strategy: this.wallpaperInfo.strategy,
1546 1514
             cached: this.wallpaperInfo.cached,
@@ -1620,7 +1588,6 @@ export default {
1620 1588
             appType: res.obj.appType,
1621 1589
             forced: res.obj.forced,
1622 1590
             whited: res.obj.whited,
1623
-            trusted: res.obj.trusted,
1624 1591
             showico: res.obj.showico,
1625 1592
             cached: res.obj.cached,
1626 1593
             strategy: res.obj.strategy,

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

@@ -44,7 +44,7 @@
44 44
           </div>
45 45
           <i-switch
46 46
             size="large"
47
-            v-if="row.belong === 1"
47
+            v-if="row.belong === 2"
48 48
             v-model="row.enabled"
49 49
             :true-value="1"
50 50
             :false-value="2"
@@ -56,23 +56,14 @@
56 56
         </template>
57 57
         <template slot-scope="{ row }" slot="whited">
58 58
           <div class="action_list">
59
-            <div class="action_success">
60
-              {{ row.whited === 1 ? "是" : "否" }}
61
-            </div>
62
-          </div>
63
-        </template>
64
-        <template slot-scope="{ row }" slot="trusted">
65
-          <div class="action_list">
66
-            <div class="action_error">
67
-              {{ row.trusted === 1 ? "是" : "否" }}
68
-            </div>
59
+            <div v-if="row.whited === 1" class="action_success">是</div>
60
+            <div v-else class="action_error">否</div>
69 61
           </div>
70 62
         </template>
71 63
         <template slot-scope="{ row }" slot="showico">
72 64
           <div class="action_list">
73
-            <div class="action_success">
74
-              {{ row.showico === 1 ? "是" : "否" }}
75
-            </div>
65
+            <div v-if="row.showico === 1" class="action_success">是</div>
66
+            <div v-else class="action_error">否</div>
76 67
           </div>
77 68
         </template>
78 69
 
@@ -254,168 +245,22 @@
254 245
             <div class="view_item">
255 246
               <span>强制安装</span>{{ viewInfo.forced === 0 ? "否" : "是" }}
256 247
             </div>
257
-            <div class="view_item">
258
-              <span>可信任</span>{{ viewInfo.trusted === 0 ? "否" : "是" }}
259
-            </div>
260 248
             <div class="view_item">
261 249
               <span>显示图标</span>{{ viewInfo.showico === 0 ? "否" : "是" }}
262 250
             </div>
263
-          </div>
264
-          <div class="view_comm">
265
-            <div class="view_item">
266
-              <span>应用属性</span
267
-              >{{ viewInfo.appType === 1 ? "推荐应用" : "必装应用" }}
268
-            </div>
269 251
             <div class="view_item">
270 252
               <span>应用大小</span>{{ viewInfo.appSize }}
271 253
             </div>
272
-            <div class="view_item">
273
-              <span>应用包名</span>{{ viewInfo.appPackage }}
274
-            </div>
275
-          </div>
276
-          <div class="view_comm">
277
-            <div class="view_item">
278
-              <span style="width: 120px">网址白名单例外</span
279
-              >{{ viewInfo.whited === 0 ? "否" : "是" }}
280
-            </div>
281
-            <div class="view_item">
282
-              <span style="width: 120px">允许清空缓存</span
283
-              >{{ viewInfo.cached === 0 ? "否" : "是" }}
284
-            </div>
285
-            <div class="view_item">
286
-              <span style="width: 120px">添加到已有策略</span
287
-              >{{ viewInfo.strategy === 0 ? "否" : "是" }}
288
-            </div>
289
-          </div>
290
-          <div class="view_com">
291
-            <div class="view_t">应用截图</div>
292
-            <div class="view_img">
293
-              <img
294
-                v-for="img in viewInfo.appImg"
295
-                :key="img"
296
-                :src="$api.showImageUrl + img"
297
-              />
298
-            </div>
299
-          </div>
300
-          <div class="view_com">
301
-            <div class="view_t">应用简介</div>
302
-            <div>{{ viewInfo.appAbbr }}</div>
303
-          </div>
304
-          <div class="view_com">
305
-            <div class="view_t">更新</div>
306
-            <div>{{ viewInfo.appRenew }}</div>
307
-          </div>
308
-          <div class="view_com">
309
-            <div class="view_t">授权型号</div>
310
-            <div class="view_devices">
311
-              <div
312
-                class="view_list"
313
-                v-for="item in viewInfo.devices"
314
-                :key="item.dgroupid"
315
-              >
316
-                <div class="dgname" style="line-height: 40px">
317
-                  {{ item.dgname }}
318
-                </div>
319
-                <div class="devices">
320
-                  <span v-for="sitem in item.devices" :key="sitem.deviceid">{{
321
-                    sitem.deviceModel
322
-                  }}</span>
323
-                </div>
324
-              </div>
325
-            </div>
326
-          </div>
327
-          <div class="view_com">
328
-            <div class="view_t">选择学校</div>
329
-            <div class="view_devices">
330
-              <div class="devices">
331
-                <span v-for="item in viewInfo.schools" :key="item.schoolid">{{
332
-                  item.schoolName
333
-                }}</span>
334
-              </div>
335
-            </div>
336
-          </div>
337
-        </div>
338
-      </div>
339
-
340
-      <div slot="footer" style="text-align: center">
341
-        <Button @click="viewInfo.show = false">关闭</Button>
342
-      </div>
343
-    </Modal>
344
-    <!-- 查看 -->
345
-    <Modal
346
-      class="modal1"
347
-      :mask-closable="false"
348
-      v-model="viewInfo.show"
349
-      title="查看"
350
-    >
351
-      <div class="view_conten" v-if="viewInfo.show">
352
-        <div class="view_logo">
353
-          <div>
354
-            <img
355
-              v-if="viewInfo.appIcon"
356
-              :src="$api.showImageUrl + viewInfo.appIcon"
357
-            />
358
-          </div>
359
-          <div class="appIcon" @click="download(viewInfo.appIcon)">
360
-            <Icon type="md-download" />下载
361
-          </div>
362
-        </div>
363
-        <div class="view_conter">
364
-          <div class="view_comm">
365
-            <div class="view_titles">
366
-              {{ viewInfo.appName
367
-              }}<span v-if="viewInfo.enabled === 1" class="qy">启用</span>
368
-            </div>
369
-            <div class="view_item">
370
-              <span>版本号码</span>
371
-              <Select
372
-                :transfer="true"
373
-                v-model="viewInfo.versionName"
374
-                @on-change="viewInfoChange()"
375
-                style="width: 120px"
376
-              >
377
-                <Option
378
-                  v-for="item in viewInfo.apphistorys"
379
-                  :value="item.versionName"
380
-                  :key="item.versionName"
381
-                  >{{ item.versionName }}</Option
382
-                >
383
-              </Select>
384
-            </div>
385
-          </div>
386
-          <div class="view_comm">
387
-            <div class="view_item">
388
-              <span>版本名称</span>{{ viewInfo.versionName }}
389
-            </div>
390
-            <div class="view_item">
391
-              <span>分组</span>{{ viewInfo.appgroupName }}
392
-            </div>
393
-            <div class="view_item">
394
-              <span>开发者</span>{{ viewInfo.appDeveloper }}
395
-            </div>
396
-          </div>
397
-          <div class="view_comm">
398
-            <div class="view_item">
399
-              <span>强制安装</span>{{ viewInfo.forced === 0 ? "否" : "是" }}
400
-            </div>
401
-            <div class="view_item">
402
-              <span>可信任</span>{{ viewInfo.trusted === 0 ? "否" : "是" }}
403
-            </div>
404
-            <div class="view_item">
405
-              <span>显示图标</span>{{ viewInfo.showico === 0 ? "否" : "是" }}
406
-            </div>
407 254
           </div>
408 255
           <div class="view_comm">
409 256
             <div class="view_item">
410 257
               <span>应用属性</span
411 258
               >{{ viewInfo.appType === 1 ? "推荐应用" : "必装应用" }}
412 259
             </div>
413
-            <div class="view_item">
414
-              <span>应用大小</span>{{ viewInfo.appSize }}
415
-            </div>
416
-            <div class="view_item">
260
+            <div class="view_item" style="width: 50%">
417 261
               <span>应用包名</span>{{ viewInfo.appPackage }}
418 262
             </div>
263
+            <div class="view_item"></div>
419 264
           </div>
420 265
           <div class="view_comm">
421 266
             <div class="view_item">
@@ -526,7 +371,6 @@ export default {
526 371
         appType: 1,
527 372
         forced: 1,
528 373
         whited: 1,
529
-        trusted: 1,
530 374
         showico: 1,
531 375
         cached: 1,
532 376
         strategy: 1,
@@ -846,7 +690,6 @@ export default {
846 690
             appType: res.obj.appType,
847 691
             forced: res.obj.forced,
848 692
             whited: res.obj.whited,
849
-            trusted: res.obj.trusted,
850 693
             showico: res.obj.showico,
851 694
             cached: res.obj.cached,
852 695
             strategy: res.obj.strategy,
@@ -864,6 +707,7 @@ export default {
864 707
             devices: res.obj.devices,
865 708
             schools: res.obj.schools
866 709
           };
710
+          console.log(this.viewInfo)
867 711
         } else {
868 712
           this.$Message.error(res.msg);
869 713
         }

+ 11
- 44
src/views/schoolSection/applicationManage/applicationList.vue View File

@@ -86,23 +86,14 @@
86 86
         </template>
87 87
         <template slot-scope="{ row }" slot="whited">
88 88
           <div class="action_list">
89
-            <div class="action_success">
90
-              {{ row.whited === 1 ? "是" : "否" }}
91
-            </div>
92
-          </div>
93
-        </template>
94
-        <template slot-scope="{ row }" slot="trusted">
95
-          <div class="action_list">
96
-            <div class="action_error">
97
-              {{ row.trusted === 1 ? "是" : "否" }}
98
-            </div>
89
+            <div v-if="row.whited === 1" class="action_success">是</div>
90
+            <div v-else class="action_error">否</div>
99 91
           </div>
100 92
         </template>
101 93
         <template slot-scope="{ row }" slot="showico">
102 94
           <div class="action_list">
103
-            <div class="action_success">
104
-              {{ row.showico === 1 ? "是" : "否" }}
105
-            </div>
95
+            <div v-if="row.showico === 1" class="action_success">是</div>
96
+            <div v-else class="action_error">否</div>
106 97
           </div>
107 98
         </template>
108 99
         <template slot-scope="{ row }" slot="countSlot">
@@ -224,24 +215,13 @@
224 215
               <span>选择白名单例外则该应用访问网络不受网址白名单限制。</span>
225 216
             </div>
226 217
           </FormItem>
227
-          <FormItem label="可信任" style="width: 100%">
228
-            <div class="comm">
229
-              <RadioGroup v-model="wallpaperInfo.trusted">
230
-                <Radio :label="1">是</Radio>
231
-                <Radio :label="0">否</Radio>
232
-              </RadioGroup>
233
-              <span
234
-                >选择可信任时,应用申请权限不需要用户确认,防止用户取消。</span
235
-              >
236
-            </div>
237
-          </FormItem>
238 218
           <FormItem label="显示图标" style="width: 100%">
239 219
             <div class="comm">
240 220
               <RadioGroup v-model="wallpaperInfo.showico">
241 221
                 <Radio :label="1">是</Radio>
242 222
                 <Radio :label="0">否</Radio>
243 223
               </RadioGroup>
244
-              <span>显示图标时,设备安装应用后,桌面显示应用图标。</span>
224
+              <span>显示图标时,设备安装应用后,桌面显示应用图标。</span>
245 225
             </div>
246 226
           </FormItem>
247 227
           <FormItem label="允许清空缓存" style="width: 100%">
@@ -544,10 +524,10 @@
544 524
               <span>强制安装</span>{{ viewInfo.forced === 0 ? "否" : "是" }}
545 525
             </div>
546 526
             <div class="view_item">
547
-              <span>可信任</span>{{ viewInfo.trusted === 0 ? "否" : "是" }}
527
+              <span>显示图标</span>{{ viewInfo.showico === 0 ? "否" : "是" }}
548 528
             </div>
549 529
             <div class="view_item">
550
-              <span>显示图标</span>{{ viewInfo.showico === 0 ? "否" : "是" }}
530
+              <span>应用大小</span>{{ viewInfo.appSize }}
551 531
             </div>
552 532
           </div>
553 533
           <div class="view_comm">
@@ -555,12 +535,10 @@
555 535
               <span>应用属性</span
556 536
               >{{ viewInfo.appType === 1 ? "推荐应用" : "必装应用" }}
557 537
             </div>
558
-            <div class="view_item">
559
-              <span>应用大小</span>{{ viewInfo.appSize }}
560
-            </div>
561
-            <div class="view_item">
538
+            <div class="view_item" style="width: 50%">
562 539
               <span>应用包名</span>{{ viewInfo.appPackage }}
563 540
             </div>
541
+            <div class="view_item"></div>
564 542
           </div>
565 543
           <div class="view_comm">
566 544
             <div class="view_item">
@@ -741,8 +719,7 @@ export default {
741 719
         appType: 1,
742 720
         forced: 0,
743 721
         whited: 1,
744
-        trusted: 1,
745
-        showico: 0,
722
+        showico: 1,
746 723
         cached: 1,
747 724
         strategy: 1,
748 725
         apkPath: "",
@@ -768,7 +745,6 @@ export default {
768 745
         appType: 1,
769 746
         forced: 1,
770 747
         whited: 1,
771
-        trusted: 1,
772 748
         showico: 1,
773 749
         cached: 1,
774 750
         strategy: 1,
@@ -916,11 +892,6 @@ export default {
916 892
           align: "center",
917 893
           width: 140
918 894
         },
919
-        {
920
-          title: "可信任",
921
-          slot: "trusted",
922
-          align: "center"
923
-        },
924 895
         {
925 896
           title: "操作时间",
926 897
           key: "updatetime",
@@ -993,7 +964,6 @@ export default {
993 964
             appType: res.obj.appType,
994 965
             forced: res.obj.forced,
995 966
             whited: res.obj.whited,
996
-            trusted: res.obj.trusted,
997 967
             showico: res.obj.showico,
998 968
             cached: res.obj.cached,
999 969
             strategy: res.obj.strategy,
@@ -1373,8 +1343,7 @@ export default {
1373 1343
         appType: 1,
1374 1344
         forced: 0,
1375 1345
         whited: 1,
1376
-        trusted: 1,
1377
-        showico: 0,
1346
+        showico: 1,
1378 1347
         cached: 1,
1379 1348
         strategy: 1,
1380 1349
         apkPath: "",
@@ -1433,7 +1402,6 @@ export default {
1433 1402
             appType: this.wallpaperInfo.appType,
1434 1403
             forced: this.wallpaperInfo.forced,
1435 1404
             whited: this.wallpaperInfo.whited,
1436
-            trusted: this.wallpaperInfo.trusted,
1437 1405
             showico: this.wallpaperInfo.showico,
1438 1406
             strategy: this.wallpaperInfo.strategy,
1439 1407
             cached: this.wallpaperInfo.cached,
@@ -1492,7 +1460,6 @@ export default {
1492 1460
             appType: res.obj.appType,
1493 1461
             forced: res.obj.forced,
1494 1462
             whited: res.obj.whited,
1495
-            trusted: res.obj.trusted,
1496 1463
             showico: res.obj.showico,
1497 1464
             cached: res.obj.cached,
1498 1465
             strategy: res.obj.strategy,

Loading…
Cancel
Save