Browse Source

添加分组图标非必传

gzb
guozhongbo 8 months ago
parent
commit
9747373d65

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

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

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

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

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

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

Loading…
Cancel
Save