Browse Source

添加分组图标非必传

gzb
guozhongbo 8 months ago
parent
commit
9747373d65

+ 1
- 5
src/views/regionSection/applicationManage/applicationGroup.vue View File

@@ -61,7 +61,7 @@
61 61
             placeholder="请输入名称"
62 62
           ></Input>
63 63
         </FormItem>
64
-        <FormItem label="图标" style="width: 100%" class="require">
64
+        <FormItem label="图标" style="width: 100%">
65 65
           <div class="logo">
66 66
             <Upload
67 67
               action
@@ -337,10 +337,6 @@ export default {
337 337
     saveAddInfo() {
338 338
       this.$refs.addForm.validate((valid) => {
339 339
         if (valid) {
340
-          if (!this.wallpaperInfo.iconPath) {
341
-            this.$Message.error("请上传图标!");
342
-            return;
343
-          }
344 340
           this.wallpaperInfo.show = false;
345 341
           let api = this.wallpaperInfo.appgroupid
346 342
             ? appgroup_edit

+ 0
- 2
src/views/regionSection/applicationManage/applicationManage.vue View File

@@ -989,8 +989,6 @@ export default {
989 989
     this.userInfo = JSON.parse(
990 990
       localStorage.getItem("xh_control_userInfo")
991 991
     ).content;
992
-    console.log(this.userInfo.adminid);
993
-    console.log(this.powerParams.objectid);
994 992
     this.init();
995 993
     this.searchList();
996 994
   },

+ 3
- 0
src/views/schoolSection/strategy/publicStrategy.vue View File

@@ -636,12 +636,14 @@ export default {
636 636
       //true是自身的策略即编辑
637 637
       let hasSave =
638 638
         this.curClass.type === this.strategyInfo.sttype ? true : false;
639
+      console.log(this.curClass.type,this.strategyInfo.sttype)
639 640
       if (hasSave) {
640 641
         //编辑
641 642
         form.padid = this.strategyInfo.padid;
642 643
         form.rversion = this.strategyInfo.rversion;
643 644
       }
644 645
       let api = hasSave ? stPad_edit : stPad_add;
646
+      console.log(hasSave)
645 647
       api(form).then((res) => {
646 648
         if (res.code === 0) {
647 649
           this.$Message.success(res.msg);
@@ -683,6 +685,7 @@ export default {
683 685
         if (document.querySelector(".user_list")) {
684 686
           document.querySelector(".user_list").scrollTop = 0;
685 687
         }
688
+        this.strategyInfo.sttype = 0;
686 689
         if (res.obj) {
687 690
           //数据回显
688 691
           this.strategyInfo = res.obj;

Loading…
Cancel
Save