| | |
| | | |
| | | <script> |
| | | import Base64 from '../../components/js-base64/base64.js' |
| | | import utils from "@/js/utils.js" |
| | | export default { |
| | | modules: { |
| | | Base64, |
| | |
| | | |
| | | if (this.$store.state.areaFunc) |
| | | this.data = this.$store.state.areaFunc.data; |
| | | else |
| | | this.$store.dispatch('areaFunc', {}).then(success => { |
| | | else { |
| | | const appType = utils.session.getValue('app_type') || "MES"; |
| | | this.$store.dispatch('areaFunc', { |
| | | app_type: appType |
| | | }).then(success => { |
| | | // console.log(success); |
| | | if (success.code == '00000' || success.err_code == 0) { |
| | | this.data = success.data; |
| | | |
| | | if (success.err_code != undefined) { //判断是否是Mobox3 |
| | | success.result.forEach(async (area, index) => { |
| | | if (area.client_type == 2) { //判断类型是否是PDA类型 |
| | | area.app_type= appType |
| | | await this.GetFuncTree(index, area); |
| | | } |
| | | }); |
| | |
| | | confirmText:this.translateSys("cancel") |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | methods: { |
| | | async GetFuncTree(index, area) { //Mobox3获取应用领域的功能点 |
| | | this.data = []; |
| | | var $this = this; |
| | | |
| | | var json = { |
| | | app_type: "MES", |
| | | app_type: area.app_type, |
| | | area_id: area.id, |
| | | area_client_type: area.client_type, |
| | | need_ace: '0', |