提交 110d740e 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [后台服务,演示应用]

上级 6e9aa1a5
......@@ -89,10 +89,9 @@ export default class EditView3Engine extends EditViewEngine {
*/
public onFormLoad(arg: any = {}): void {
super.onFormLoad(arg);
this.view.formData = arg;
if (this.getDrTab()) {
const tag = this.getDrTab().name;
this.setViewState2({ tag: tag, action: 'state', viewdata: this.view.viewparams });
this.setViewState2({ tag: tag, action: 'state', viewdata: arg });
}
}
......@@ -104,10 +103,9 @@ export default class EditView3Engine extends EditViewEngine {
*/
public onFormSave(arg: any = {}): void {
super.onFormSave(arg);
this.view.formData = arg;
if (this.getDrTab()) {
const tag = this.getDrTab().name;
this.setViewState2({ tag: tag, action: 'state', viewdata: this.view.viewparams });
this.setViewState2({ tag: tag, action: 'state', viewdata: arg });
}
}
......
......@@ -91,7 +91,7 @@ export default class EditView4Engine extends EditViewEngine {
super.onFormLoad(arg);
if (this.getDrTab()) {
const tag = this.getDrTab().name;
this.setViewState2({ tag: tag, action: 'state', viewdata: this.view.viewparams });
this.setViewState2({ tag: tag, action: 'state', viewdata: arg });
}
}
......@@ -105,7 +105,7 @@ export default class EditView4Engine extends EditViewEngine {
super.onFormSave(arg);
if (this.getDrTab()) {
const tag = this.getDrTab().name;
this.setViewState2({ tag: tag, action: 'state', viewdata: this.view.viewparams });
this.setViewState2({ tag: tag, action: 'state', viewdata: arg });
}
}
......
......@@ -53,7 +53,6 @@
ref='drtab'
:viewparams="viewparams"
:context="context"
:formData="formData"
parentName = "IBIZOrder"
@selectionchange='drtab_selectionchange($event)'
@closeview='closeView($event)'>
......@@ -1001,14 +1000,6 @@ export default class IBIZOrderSEditView3Base extends Vue {
* @memberof IBIZOrderSEditView3Base
*/
public selection: any = {};
/**
* 表单数据
*
* @type {*}
* @memberof IBIZOrderSEditView3Base
*/
public formData:any = {};
}
</script>
......
......@@ -72,7 +72,6 @@
ref='drtab'
:viewparams="viewparams"
:context="context"
:formData="formData"
parentName = "IBIZOrder"
:isShowSlot="false"
@selectionchange='drtab_selectionchange($event)'
......@@ -992,12 +991,13 @@ export default class IBIZOrderSEditView4Base extends Vue {
}
/**
* 表单数据
* 选中数据
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public formData:any = {};
public selection: any = {};
}
......
......@@ -196,7 +196,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @type {*}
* @memberof DefaultBase
*/
@Prop({default:{}}) public formData?:any;
public formData:any;
/**
* 获取多项数据
......@@ -282,11 +282,11 @@ export default class DefaultBase extends Vue implements ControlInterface {
}
/**
* 生命周期
* 仿真选中第一项
*
* @memberof DefaultBase
*/
public mounted(){
public selectFirst(){
if(this.items.length>0){
this.isShowSlot?this.tabPanelClick(this.items[0].name):this.items.length>1?this.tabPanelClick(this.items[1].name):()=>{};
}
......@@ -306,6 +306,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
if (Object.is('state', action)) {
const state = !this.context.ibizorder ? true : false;
this.setItemDisabled(state);
this.formData = data;
this.selectFirst();
}
});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册