Bladeren bron

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

gzb
wangzhonglu 8 maanden geleden
bovenliggende
commit
d9e49f9970

+ 18
- 6
src/views/regionSection/applicationManage/applicationManage.vue Bestand weergeven

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

+ 5
- 1
src/views/regionSection/regionManage/schoolManage.vue Bestand weergeven

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

+ 20
- 7
src/views/schoolSection/applicationManage/applicationList.vue Bestand weergeven

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

Laden…
Annuleren
Opslaan