| | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | // console.log(this.param); |
| | | const paramValue = options.paramValue ?JSON.parse(options.paramValue) :undefined |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | | this.loadData(paramValue) |
| | | }, |
| | | //页面初始化获取焦点 |
| | |
| | | //传入参数值 |
| | | if (paramValue) { |
| | | this.setFormValues(paramValue) |
| | | } |
| | | } |
| | | |
| | | //加载初始界面 |
| | | if (this.param.Show_Welcom_Page) { |
| | |
| | | return 0; |
| | | } |
| | | }, |
| | | setFormValues(attrs) { |
| | | setFormValues(attrs) { |
| | | const head_styledef = this.head_styledef |
| | | if (JSON.stringify(attrs) == '{}') { |
| | | return; |
| | | if (!Array.isArray(attrs)) { |
| | | return |
| | | } |
| | | console.log(attrs) |
| | | attrs.forEach(async (attr, key) => { |
| | |
| | | head_styledef: head_styledef |
| | | }) |
| | | }, //更新分页签中的列表项内容 |
| | | |
| | | |
| | | //更新分页签中的列表项内容 |
| | | viewActionSetRow(value) { |
| | | const $this = this |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | //确定 |
| | | ok() { |
| | | this.Before_OK_Event = this.param.Sub_Page[0].Before_ok; |