cyy
2024-08-03 bcd40d20e4938069384573f6dfbbe8c7fe978925
pages/modal/3037_2.vue
@@ -459,10 +459,8 @@
               dict_id: dict.id,
               dict_name: dict.name
            };
            // console.log(dataInfo);
            this.$store.dispatch('DictGetInfo', dataInfo).then(async (success) => {
               // console.log(success);
               if (success.err_code == 0) {
            try {
               const success = await this.getDictInfo(dataInfo)
                  var list = [];
                  var itemName = '';
                  success.result.dict_item_list.forEach((item) => {
@@ -492,15 +490,7 @@
                     console.log($this.$data.detail1_styledef);
                  }
               } else {
                  uni.showModal({
                     title: this.translateSys("error") + "1.2",
                     content: success.err_msg,
                     showCancel: false,
                     confirmText: this.translateSys("cancel")
                  });
               }
            }).catch(ex => {
            } catch (ex) {
               // console.log(ex);
               uni.showModal({
                  title: this.translateSys("error") + "1.3",
@@ -508,8 +498,39 @@
                  showCancel: false,
                  confirmText: this.translateSys("cancel")
               });
            });
            }
         },
         getDictInfo(info) { //Mobox3得到得到字典信息字典项列表
            const loginInfo = this.$store.getters.loginid
            const mobxoSApi = this.$store.getters.getMobxoSApi
            return new Promise((resolve, reject) => {
               uni.request({
                  url: mobxoSApi + 'api/dict/GetInfo2?sessionid=' + loginInfo.result.session_id,
                  data: info,
                  method: 'POST',
                  dataType: "json",
                  success: (_res) => {
                     // console.log(_res);
                     const ret = _res.data
                     if (ret.err_code == 0) {
                        resolve(ret);
                     } else {
                        reject({
                           "errMsg": ret.err_msg
                        });
                     }
                  },
                  fail: (err) => {
                     // console.log(err);
                     reject(err);
                  }
               })
            })
         },
         async loadInitEvent(eventid, type) {
            var $this = this;
            var styledef = type == 'head' ? this.head_styledef : this.detail1_styledef;