Browse Source

学校应用策略

gzb
wangzhonglu 9 months ago
parent
commit
eeb643fb04

+ 11
- 0
src/views/platformSection/deviceImport/deviceImport.vue View File

279
           width: 190,
279
           width: 190,
280
           align: "center"
280
           align: "center"
281
         },
281
         },
282
+        {
283
+          title: "操作人",
284
+          key: "updatename",
285
+          align: "center"
286
+        },
287
+        {
288
+          title: "操作时间",
289
+          key: "updatetime",
290
+          width: 190,
291
+          align: "center"
292
+        },
282
         {
293
         {
283
           title: "操作",
294
           title: "操作",
284
           slot: "actionSlot",
295
           slot: "actionSlot",

+ 29
- 18
src/views/schoolSection/applicationStrategy/appStrategyManageEdit.vue View File

39
           </div>
39
           </div>
40
         </div>
40
         </div>
41
         <div class="app_list">
41
         <div class="app_list">
42
-          <div
43
-            class="app_item"
44
-            :title="appItem.appName"
45
-            v-for="appItem in appList"
46
-            :key="appItem.appid"
47
-            @click="toSelectApp(appItem.appid)"
48
-          >
49
-            <div class="app_item_top">
50
-              <img :src="$api.showImageUrl + appItem.appIcon" />
51
-            </div>
52
-            <div class="app_item_name">
53
-              {{ appItem.appName }}
54
-            </div>
55
-            <div class="app_item_check">
56
-              <Checkbox
57
-                :value="tempStrategyInfo.apps.includes(appItem.appid)"
58
-              ></Checkbox>
42
+          <template v-for="appItem in appList">
43
+            <div
44
+              class="app_item"
45
+              :title="appItem.appName"
46
+              :key="appItem.appid"
47
+              v-if="!appStrategyGroupsSelected.includes(appItem.appid)"
48
+              @click="toSelectApp(appItem.appid)"
49
+            >
50
+              <div class="app_item_top">
51
+                <img :src="$api.showImageUrl + appItem.appIcon" />
52
+              </div>
53
+              <div class="app_item_name">
54
+                {{ appItem.appName }}
55
+              </div>
56
+              <div class="app_item_check">
57
+                <Checkbox
58
+                  :value="tempStrategyInfo.apps.includes(appItem.appid)"
59
+                ></Checkbox>
60
+              </div>
59
             </div>
61
             </div>
60
-          </div>
62
+          </template>
61
         </div>
63
         </div>
62
       </div>
64
       </div>
63
     </div>
65
     </div>
143
   data() {
145
   data() {
144
     return {
146
     return {
145
       weekDay,
147
       weekDay,
148
+      // 已选的需要隐藏
146
       appList: [],
149
       appList: [],
147
       // 应用策略信息
150
       // 应用策略信息
148
       appStrategyInfo: {
151
       appStrategyInfo: {
197
         info.push(groupTimes);
200
         info.push(groupTimes);
198
       });
201
       });
199
       return info;
202
       return info;
203
+    },
204
+    // 分组已选Appid数组
205
+    appStrategyGroupsSelected() {
206
+      let info = [];
207
+      this.appStrategyInfo.groups.forEach((groupItem) => {
208
+        info.push(...groupItem.apps);
209
+      });
210
+      return info;
200
     }
211
     }
201
   },
212
   },
202
   methods: {
213
   methods: {

+ 29
- 18
src/views/schoolSection/applicationStrategy/appStrategyTemplateAdd.vue View File

39
           </div>
39
           </div>
40
         </div>
40
         </div>
41
         <div class="app_list">
41
         <div class="app_list">
42
-          <div
43
-            class="app_item"
44
-            :title="appItem.appName"
45
-            v-for="appItem in appList"
46
-            :key="appItem.appid"
47
-            @click="toSelectApp(appItem.appid)"
48
-          >
49
-            <div class="app_item_top">
50
-              <img :src="$api.showImageUrl + appItem.appIcon" />
51
-            </div>
52
-            <div class="app_item_name">
53
-              {{ appItem.appName }}
54
-            </div>
55
-            <div class="app_item_check">
56
-              <Checkbox
57
-                :value="tempStrategyInfo.apps.includes(appItem.appid)"
58
-              ></Checkbox>
42
+          <template v-for="appItem in appList">
43
+            <div
44
+              class="app_item"
45
+              :title="appItem.appName"
46
+              :key="appItem.appid"
47
+              v-if="!appStrategyGroupsSelected.includes(appItem.appid)"
48
+              @click="toSelectApp(appItem.appid)"
49
+            >
50
+              <div class="app_item_top">
51
+                <img :src="$api.showImageUrl + appItem.appIcon" />
52
+              </div>
53
+              <div class="app_item_name">
54
+                {{ appItem.appName }}
55
+              </div>
56
+              <div class="app_item_check">
57
+                <Checkbox
58
+                  :value="tempStrategyInfo.apps.includes(appItem.appid)"
59
+                ></Checkbox>
60
+              </div>
59
             </div>
61
             </div>
60
-          </div>
62
+          </template>
61
         </div>
63
         </div>
62
       </div>
64
       </div>
63
     </div>
65
     </div>
143
   data() {
145
   data() {
144
     return {
146
     return {
145
       weekDay,
147
       weekDay,
148
+      // 已选的需要隐藏
146
       appList: [],
149
       appList: [],
147
       // 应用策略信息
150
       // 应用策略信息
148
       appStrategyInfo: {
151
       appStrategyInfo: {
194
         info.push(groupTimes);
197
         info.push(groupTimes);
195
       });
198
       });
196
       return info;
199
       return info;
200
+    },
201
+    // 分组已选Appid数组
202
+    appStrategyGroupsSelected() {
203
+      let info = [];
204
+      this.appStrategyInfo.groups.forEach((groupItem) => {
205
+        info.push(...groupItem.apps);
206
+      });
207
+      return info;
197
     }
208
     }
198
   },
209
   },
199
   methods: {
210
   methods: {

+ 29
- 18
src/views/schoolSection/applicationStrategy/appStrategyTemplateEdit.vue View File

39
           </div>
39
           </div>
40
         </div>
40
         </div>
41
         <div class="app_list">
41
         <div class="app_list">
42
-          <div
43
-            class="app_item"
44
-            :title="appItem.appName"
45
-            v-for="appItem in appList"
46
-            :key="appItem.appid"
47
-            @click="toSelectApp(appItem.appid)"
48
-          >
49
-            <div class="app_item_top">
50
-              <img :src="$api.showImageUrl + appItem.appIcon" />
51
-            </div>
52
-            <div class="app_item_name">
53
-              {{ appItem.appName }}
54
-            </div>
55
-            <div class="app_item_check">
56
-              <Checkbox
57
-                :value="tempStrategyInfo.apps.includes(appItem.appid)"
58
-              ></Checkbox>
42
+          <template v-for="appItem in appList">
43
+            <div
44
+              class="app_item"
45
+              :title="appItem.appName"
46
+              :key="appItem.appid"
47
+              v-if="!appStrategyGroupsSelected.includes(appItem.appid)"
48
+              @click="toSelectApp(appItem.appid)"
49
+            >
50
+              <div class="app_item_top">
51
+                <img :src="$api.showImageUrl + appItem.appIcon" />
52
+              </div>
53
+              <div class="app_item_name">
54
+                {{ appItem.appName }}
55
+              </div>
56
+              <div class="app_item_check">
57
+                <Checkbox
58
+                  :value="tempStrategyInfo.apps.includes(appItem.appid)"
59
+                ></Checkbox>
60
+              </div>
59
             </div>
61
             </div>
60
-          </div>
62
+          </template>
61
         </div>
63
         </div>
62
       </div>
64
       </div>
63
     </div>
65
     </div>
143
   data() {
145
   data() {
144
     return {
146
     return {
145
       weekDay,
147
       weekDay,
148
+      // 已选的需要隐藏
146
       appList: [],
149
       appList: [],
147
       // 应用策略信息
150
       // 应用策略信息
148
       appStrategyInfo: {
151
       appStrategyInfo: {
197
         info.push(groupTimes);
200
         info.push(groupTimes);
198
       });
201
       });
199
       return info;
202
       return info;
203
+    },
204
+    // 分组已选Appid数组
205
+    appStrategyGroupsSelected() {
206
+      let info = [];
207
+      this.appStrategyInfo.groups.forEach((groupItem) => {
208
+        info.push(...groupItem.apps);
209
+      });
210
+      return info;
200
     }
211
     }
201
   },
212
   },
202
   methods: {
213
   methods: {

Loading…
Cancel
Save