| | |
| | | this.pageindex = 1; |
| | | this.page_size = 3; |
| | | this.query_id = ""; |
| | | this.detail1StyleDefList = []; |
| | | await this.loadDataGetList(); |
| | | } |
| | | |
| | |
| | | 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); |
| | | } |
| | | }) |
| | | |
| | | }) |
| | | |
| | | }, |
| | | getUIStyleInfo(info) { //Mobox3数据类界面样式 |
| | | const loginInfo = this.$store.getters.loginid |
| | | const dataSApi = this.$store.getters.getDataSApi |
| | | return new Promise((resolve, reject) => { |
| | | uni.request({ |
| | | url: dataSApi + 'api/class/uistyle/GetInfo?sessionid=' + loginInfo.result |
| | | .session_id, |
| | | data: info, |
| | | method: 'POST', |
| | | dataType: "json", |
| | |
| | | }, |
| | | //跳转 |
| | | async RelatedFunction(btn, style, enviroment) { |
| | | |
| | | const defCode = btn.Related_Function?.Def_Code |
| | | var $this = this; |
| | | if ( |
| | | btn.Related_Function?.Def_Code == "3018" || |
| | | btn.Related_Function?.Def_Code == "3037" || |
| | | btn.Related_Function?.Def_Code == "3200" || |
| | | btn.Related_Function?.Def_Code == "3201" || |
| | | btn.Related_Function?.Def_Code == "5600" || |
| | | btn.Related_Function?.Def_Code == "5601" || |
| | | btn.Related_Function?.Def_Code == "5602" |
| | | defCode == "3018" || |
| | | defCode == "3037" || |
| | | defCode == "3200" || |
| | | defCode == "3201" || |
| | | defCode == "5600" || |
| | | defCode == "5601" || |
| | | defCode == "5602" |
| | | ) { |
| | | let name = btn.Related_Function?.Def_Code |
| | | if (btn.Related_Function?.Def_Code == "3018" || btn.Related_Function?.Def_Code == "3037") |
| | | name = btn.Related_Function?.Def_Code + "_2" |
| | | |
| | | var $this = this; |
| | | let name = defCode |
| | | if (defCode == "3018" || defCode == "3037") |
| | | name = defCode + "_2" |
| | | var json = { |
| | | app_id: appId, |
| | | app_id: [btn.Related_Function.ID], |
| | | }; |
| | | console.log("RelatedFunction2", json); |
| | | this.$store.dispatch('appGetInfo', json).then(success => { |
| | | // console.log(success); |
| | | console.log(success); |
| | | if (success.err_code == 0) { |
| | | if ((success.result || []).length > 0) { |
| | | const app = success.result[0] |
| | |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | console.log(ex); |
| | | uni.showModal({ |
| | | title: this.translateSys("error"), |
| | | content: ex.errMsg, |