Browse Source

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

gzb
wangzhonglu 8 months ago
parent
commit
d9e49f9970

+ 18
- 6
src/views/regionSection/applicationManage/applicationManage.vue View File

206
               </template>
206
               </template>
207
             </Select>
207
             </Select>
208
           </FormItem>
208
           </FormItem>
209
-          <FormItem label="状态" style="width: 300px">
209
+          <FormItem label="状态" style="width: 100%">
210
             <RadioGroup v-model="wallpaperInfo.enabled">
210
             <RadioGroup v-model="wallpaperInfo.enabled">
211
               <Radio :label="1">启用</Radio>
211
               <Radio :label="1">启用</Radio>
212
               <Radio :label="2">禁用</Radio>
212
               <Radio :label="2">禁用</Radio>
213
             </RadioGroup>
213
             </RadioGroup>
214
           </FormItem>
214
           </FormItem>
215
-          <FormItem label="应用属性">
216
-            <RadioGroup v-model="wallpaperInfo.appType">
215
+          <FormItem label="应用属性" style="width: 100%">
216
+            <RadioGroup
217
+              @on-change="ChangeAppType"
218
+              v-model="wallpaperInfo.appType"
219
+            >
217
               <Radio :label="1">推荐应用</Radio>
220
               <Radio :label="1">推荐应用</Radio>
218
               <Radio :label="2">必装应用</Radio>
221
               <Radio :label="2">必装应用</Radio>
219
             </RadioGroup>
222
             </RadioGroup>
221
           <FormItem label="强制安装" style="width: 100%">
224
           <FormItem label="强制安装" style="width: 100%">
222
             <div class="comm">
225
             <div class="comm">
223
               <RadioGroup v-model="wallpaperInfo.forced">
226
               <RadioGroup v-model="wallpaperInfo.forced">
224
-                <Radio :label="1">是</Radio>
225
-                <Radio :label="0">否</Radio>
227
+                <Radio :disabled="wallpaperInfo.appType === 1" :label="1"
228
+                  >是</Radio
229
+                >
230
+                <Radio :disabled="wallpaperInfo.appType === 1" :label="0"
231
+                  >否</Radio
232
+                >
226
               </RadioGroup>
233
               </RadioGroup>
227
               <span>用户进入安全桌面,该应用将被强制安装。</span>
234
               <span>用户进入安全桌面,该应用将被强制安装。</span>
228
             </div>
235
             </div>
959
     this.searchList();
966
     this.searchList();
960
   },
967
   },
961
   methods: {
968
   methods: {
969
+    ChangeAppType() {
970
+      if (this.wallpaperInfo.appType === 1) {
971
+        this.wallpaperInfo.forced = 0;
972
+      }
973
+    },
962
     //下载logo
974
     //下载logo
963
     download(url) {
975
     download(url) {
964
       window.location.href = this.$api.showImageUrl + url;
976
       window.location.href = this.$api.showImageUrl + url;
1507
             appName: this.wallpaperInfo.appName,
1519
             appName: this.wallpaperInfo.appName,
1508
             enabled: this.wallpaperInfo.enabled,
1520
             enabled: this.wallpaperInfo.enabled,
1509
             appType: this.wallpaperInfo.appType,
1521
             appType: this.wallpaperInfo.appType,
1510
-            forced: this.wallpaperInfo.forced,
1522
+            forced: this.wallpaperInfo.appType === 1?0:this.wallpaperInfo.forced,
1511
             whited: this.wallpaperInfo.whited,
1523
             whited: this.wallpaperInfo.whited,
1512
             showico: this.wallpaperInfo.showico,
1524
             showico: this.wallpaperInfo.showico,
1513
             strategy: this.wallpaperInfo.strategy,
1525
             strategy: this.wallpaperInfo.strategy,

+ 5
- 1
src/views/regionSection/regionManage/schoolManage.vue View File

693
           let areaObj = this.regionList.filter(
693
           let areaObj = this.regionList.filter(
694
             (v) => v.areaCode === this.adminInfo.areaCode
694
             (v) => v.areaCode === this.adminInfo.areaCode
695
           )[0];
695
           )[0];
696
+          if (!areaObj) {
697
+            this.$Message.error("请选择省市区!");
698
+            return;
699
+          }
696
           this.adminInfo.areaName = areaObj.areaAll;
700
           this.adminInfo.areaName = areaObj.areaAll;
697
-          this.adminInfo.show = false;
698
           let api = this.adminInfo.schoolid ? school_edit : school_add;
701
           let api = this.adminInfo.schoolid ? school_edit : school_add;
699
           let form = {
702
           let form = {
700
             rtype: this.powerParams.rtype,
703
             rtype: this.powerParams.rtype,
728
           api(form).then((data) => {
731
           api(form).then((data) => {
729
             this.showLoading = false;
732
             this.showLoading = false;
730
             if (data.code === 0) {
733
             if (data.code === 0) {
734
+              this.adminInfo.show = false;
731
               this.searchList();
735
               this.searchList();
732
               this.$Message.success(data.msg);
736
               this.$Message.success(data.msg);
733
             } else {
737
             } else {

+ 20
- 7
src/views/schoolSection/applicationManage/applicationList.vue View File

185
               </template>
185
               </template>
186
             </Select>
186
             </Select>
187
           </FormItem>
187
           </FormItem>
188
-          <FormItem label="状态" style="width: 300px">
188
+          <FormItem label="状态" style="width: 100%">
189
             <RadioGroup v-model="wallpaperInfo.enabled">
189
             <RadioGroup v-model="wallpaperInfo.enabled">
190
               <Radio :label="1">启用</Radio>
190
               <Radio :label="1">启用</Radio>
191
               <Radio :label="2">禁用</Radio>
191
               <Radio :label="2">禁用</Radio>
192
             </RadioGroup>
192
             </RadioGroup>
193
           </FormItem>
193
           </FormItem>
194
-          <FormItem label="应用属性">
195
-            <RadioGroup v-model="wallpaperInfo.appType">
194
+          <FormItem label="应用属性" style="width: 100%">
195
+            <RadioGroup
196
+              @on-change="ChangeAppType"
197
+              v-model="wallpaperInfo.appType"
198
+            >
196
               <Radio :label="1">推荐应用</Radio>
199
               <Radio :label="1">推荐应用</Radio>
197
               <Radio :label="2">必装应用</Radio>
200
               <Radio :label="2">必装应用</Radio>
198
             </RadioGroup>
201
             </RadioGroup>
200
           <FormItem label="强制安装" style="width: 100%">
203
           <FormItem label="强制安装" style="width: 100%">
201
             <div class="comm">
204
             <div class="comm">
202
               <RadioGroup v-model="wallpaperInfo.forced">
205
               <RadioGroup v-model="wallpaperInfo.forced">
203
-                <Radio :label="1">是</Radio>
204
-                <Radio :label="0">否</Radio>
206
+                <Radio :disabled="wallpaperInfo.appType === 1" :label="1"
207
+                  >是</Radio
208
+                >
209
+                <Radio :disabled="wallpaperInfo.appType === 1" :label="0"
210
+                  >否</Radio
211
+                >
205
               </RadioGroup>
212
               </RadioGroup>
206
               <span>用户进入安全桌面,该应用将被强制安装。</span>
213
               <span>用户进入安全桌面,该应用将被强制安装。</span>
207
             </div>
214
             </div>
926
     this.searchList();
933
     this.searchList();
927
   },
934
   },
928
   methods: {
935
   methods: {
936
+    ChangeAppType() {
937
+      if (this.wallpaperInfo.appType === 1) {
938
+        this.wallpaperInfo.forced = 0;
939
+      }
940
+    },
929
     //下载logo
941
     //下载logo
930
     download(url) {
942
     download(url) {
931
       window.location.href = this.$api.showImageUrl + url;
943
       window.location.href = this.$api.showImageUrl + url;
1093
                 align: "center"
1105
                 align: "center"
1094
               },
1106
               },
1095
               {
1107
               {
1096
-                title: "设备名",
1108
+                title: "设备名",
1097
                 key: "sn",
1109
                 key: "sn",
1098
                 align: "center"
1110
                 align: "center"
1099
               },
1111
               },
1400
             appName: this.wallpaperInfo.appName,
1412
             appName: this.wallpaperInfo.appName,
1401
             enabled: this.wallpaperInfo.enabled,
1413
             enabled: this.wallpaperInfo.enabled,
1402
             appType: this.wallpaperInfo.appType,
1414
             appType: this.wallpaperInfo.appType,
1403
-            forced: this.wallpaperInfo.forced,
1415
+            forced:
1416
+              this.wallpaperInfo.appType === 1 ? 0 : this.wallpaperInfo.forced,
1404
             whited: this.wallpaperInfo.whited,
1417
             whited: this.wallpaperInfo.whited,
1405
             showico: this.wallpaperInfo.showico,
1418
             showico: this.wallpaperInfo.showico,
1406
             strategy: this.wallpaperInfo.strategy,
1419
             strategy: this.wallpaperInfo.strategy,

Loading…
Cancel
Save