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

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

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