Browse Source

个人策略编辑优化

gzb
guozhongbo 7 months ago
parent
commit
d65cc8c055

+ 9
- 0
src/views/schoolSection/setting/wallpaper.vue View File

50
             :src="$api.showImageUrl + row.vpath"
50
             :src="$api.showImageUrl + row.vpath"
51
           />
51
           />
52
         </div>
52
         </div>
53
+        <template slot-scope="{ row }" slot="wlevel">
54
+          <span>{{ row.wlevel === 2 ? "区域" : "学校" }}</span>
55
+        </template>
53
         <template slot-scope="{ row }" slot="actionSlot">
56
         <template slot-scope="{ row }" slot="actionSlot">
54
           <div class="action_list">
57
           <div class="action_list">
55
             <div @click="toView(row)">查看</div>
58
             <div @click="toView(row)">查看</div>
340
           key: "wname",
343
           key: "wname",
341
           align: "center"
344
           align: "center"
342
         },
345
         },
346
+        {
347
+          title: "归属",
348
+          minWidth: 100,
349
+          slot: "wlevel",
350
+          align: "center"
351
+        },
343
         {
352
         {
344
           title: "操作人",
353
           title: "操作人",
345
           minWidth: 100,
354
           minWidth: 100,

+ 0
- 21
src/views/schoolSection/strategy/personalStrategy.vue View File

882
     },
882
     },
883
     toEdit(row) {
883
     toEdit(row) {
884
       this.initData();
884
       this.initData();
885
-      if (!row.padid) {
886
-        this.strategyInfo = {
887
-          model: "add", //添加
888
-          userid: row.userid,
889
-          username: row.username,
890
-          padid: null,
891
-          rversion: null,
892
-          show: true,
893
-          hastime: false, // 是否开启时间策略:0否 1是
894
-          padTimes: [], // 平板策略时间
895
-          hasapp: false, //是否开启应用策略:0否 1是
896
-          padApps: [], //appid集合
897
-          hasdevice: false, //是否开启设备策略:0否 1是
898
-          padDevices: [], //授权应用
899
-          haswifi: false, //是否开启wifi白名单策略:0否 1是
900
-          padWifis: [], //wifi白名单
901
-          hasviolate: false, //是否开启违规通知:0否 1是
902
-          padViolates: [] //设备违规
903
-        };
904
-        return;
905
-      }
906
       this.showLoading = true;
885
       this.showLoading = true;
907
       stPad_detail_web({ objectid: row.userid }).then((res) => {
886
       stPad_detail_web({ objectid: row.userid }).then((res) => {
908
         this.showLoading = false;
887
         this.showLoading = false;

Loading…
Cancel
Save