Bladeren bron

学校应用策略

gzb
wangzhonglu 9 maanden geleden
bovenliggende
commit
eeb643fb04

+ 11
- 0
src/views/platformSection/deviceImport/deviceImport.vue Bestand weergeven

@@ -279,6 +279,17 @@ export default {
279 279
           width: 190,
280 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 294
           title: "操作",
284 295
           slot: "actionSlot",

+ 29
- 18
src/views/schoolSection/applicationStrategy/appStrategyManageEdit.vue Bestand weergeven

@@ -39,25 +39,27 @@
39 39
           </div>
40 40
         </div>
41 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 61
             </div>
60
-          </div>
62
+          </template>
61 63
         </div>
62 64
       </div>
63 65
     </div>
@@ -143,6 +145,7 @@ export default {
143 145
   data() {
144 146
     return {
145 147
       weekDay,
148
+      // 已选的需要隐藏
146 149
       appList: [],
147 150
       // 应用策略信息
148 151
       appStrategyInfo: {
@@ -197,6 +200,14 @@ export default {
197 200
         info.push(groupTimes);
198 201
       });
199 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 213
   methods: {

+ 29
- 18
src/views/schoolSection/applicationStrategy/appStrategyTemplateAdd.vue Bestand weergeven

@@ -39,25 +39,27 @@
39 39
           </div>
40 40
         </div>
41 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 61
             </div>
60
-          </div>
62
+          </template>
61 63
         </div>
62 64
       </div>
63 65
     </div>
@@ -143,6 +145,7 @@ export default {
143 145
   data() {
144 146
     return {
145 147
       weekDay,
148
+      // 已选的需要隐藏
146 149
       appList: [],
147 150
       // 应用策略信息
148 151
       appStrategyInfo: {
@@ -194,6 +197,14 @@ export default {
194 197
         info.push(groupTimes);
195 198
       });
196 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 210
   methods: {

+ 29
- 18
src/views/schoolSection/applicationStrategy/appStrategyTemplateEdit.vue Bestand weergeven

@@ -39,25 +39,27 @@
39 39
           </div>
40 40
         </div>
41 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 61
             </div>
60
-          </div>
62
+          </template>
61 63
         </div>
62 64
       </div>
63 65
     </div>
@@ -143,6 +145,7 @@ export default {
143 145
   data() {
144 146
     return {
145 147
       weekDay,
148
+      // 已选的需要隐藏
146 149
       appList: [],
147 150
       // 应用策略信息
148 151
       appStrategyInfo: {
@@ -197,6 +200,14 @@ export default {
197 200
         info.push(groupTimes);
198 201
       });
199 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 213
   methods: {

Laden…
Annuleren
Opslaan