| | |
| | | import buttonClickMixin from '@/mixins/button-click.js'; |
| | | import { |
| | | showInfo, |
| | | showError |
| | | showError, |
| | | showLoading, |
| | | hideLoading |
| | | } from "@/js/Page.js" |
| | | |
| | | export default { |
| | |
| | | |
| | | 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 { |