| | |
| | | import buttonClickMixin from '@/mixins/button-click.js'; |
| | | import { |
| | | showInfo, |
| | | showError |
| | | showError, |
| | | showLoading, |
| | | hideLoading |
| | | } from "@/js/Page.js" |
| | | |
| | | export default { |
| | |
| | | check_list: {}, |
| | | } |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | var param = JSON.parse(options.param); |
| | | this.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //设置按钮文字 |
| | | this.title = options.titlename; //设置按钮文字param.Add_BtnName ? param.Add_BtnName : |
| | | console.log(param); |
| | | if (!param.Master_Cls.View_Style) { |
| | | showInfo("该功能点未配置界面窗口,请重新配置!") |
| | |
| | | |
| | | async loadData() { |
| | | //主数据类获取 |
| | | const param = this.param |
| | | this.classAttrList = await this.classAttrGetList(param.Master_Cls?.ID) |
| | | this.classGridStyle = await this.classGridStyleInfo(param.Master_Cls.ID, param.Master_Cls |
| | | ?.View_Style?.Name) |
| | | this.viewParam('Mast'); |
| | | this.classAttrList = await this.classAttrGetList(param.Sub_Cls?.ID) |
| | | this.classGridStyle = await this.classGridStyleInfo(param.Sub_Cls?.ID, param.Sub_Cls?.View_Style |
| | | ?.Name) |
| | | this.viewParam('Sub'); |
| | | try { |
| | | showLoading("loading...") |
| | | const param = this.param |
| | | this.classAttrList = await this.classAttrGetList(param.Master_Cls?.ID) |
| | | this.classGridStyle = await this.classGridStyleInfo(param.Master_Cls.ID, param.Master_Cls |
| | | ?.View_Style?.Name) |
| | | this.viewParam('Mast'); |
| | | this.classAttrList = await this.classAttrGetList(param.Sub_Cls?.ID) |
| | | this.classGridStyle = await this.classGridStyleInfo(param.Sub_Cls?.ID, param.Sub_Cls?.View_Style |
| | | ?.Name) |
| | | this.viewParam('Sub'); |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | hideLoading() |
| | | showError(ex, this.translateSys('error') + " 1") |
| | | |
| | | } |
| | | }, |
| | | async DictItemGetList(attr) { //Mobox3得到字典项列表 |
| | | try { |