cuiqian2004
2024-07-12 effc285be3229af6b77edafcb5ec71b96a35f53a
pages/modal/classAttr.vue
@@ -326,6 +326,14 @@
            popupParam: {},
         }
      },
      onNavigationBarButtonTap(e) {
         //刷新
         uni.redirectTo({
            url: '../modal/classAttr?param=' + JSON.stringify(this.param) +
               "&titlename=" + this.title
         });
      },
      onLoad(options) {
         // console.log(options);
         uni.setNavigationBarTitle({
@@ -353,21 +361,26 @@
            return;
         }
         this.$data.param = param;
         this.loadData()
      },
      methods: {
         loadData() {
            var $this = this;
         var edit_dlg = {
            Model: param.EditDlgMode,
            Name: param.Edit_dlg.Name
               Model: $this.param.EditDlgMode,
               Name: $this.param.Edit_dlg.Name
         }
         var dataInfo = {
            class_id: param.clsid
               class_id: $this.param.clsid
         };
         var $this = this;
         $this.$store.state.thisareaFuncID = param.clsid;
            $this.$store.state.thisareaFuncID = $this.param.clsid;
         // console.log($this.$store.getters.getclassAttrList);
         //获取
         if ($this.$store.getters.getclassAttrList) {
            $this.$data.classAttrList = $this.$store.getters.getclassAttrList.data;
            $this.classGridStyleInfo();
         } else
            } else {
            $this.$store.dispatch('classAttrList', dataInfo).then(success => {
               // console.log(success);
               if (success.code == '00000') {
@@ -391,9 +404,8 @@
                  confirmText: "取消"
               });
            });
            }
      },
      methods: {
         classAttr_extButton(index, iindex) { //弹框层显示 type:top bottom center left right
            var $this = this;
            $this.$data.popupType = 'right'
@@ -986,12 +998,7 @@
                        icon: "success",
                        duration: 3000
                     });
                  //刷新
                  
                  // uni.redirectTo({
                  //    url: '../modal/classAttr?param=' + JSON.stringify(this.$data.param) +
                  //       "&titlename=" + this.$data.title
                  // });
                  // this.class_attr_init();
               } else {
                  uni.showModal({