提交 6e775978 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibz-lite,应用]

上级 5084f748
......@@ -42,6 +42,7 @@ function getLocaleResourceBase(){
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
......
......@@ -42,6 +42,7 @@ function getLocaleResourceBase(){
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
......
......@@ -42,6 +42,7 @@ function getLocaleResourceBase(){
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
uiactions: {
......
......@@ -49,7 +49,7 @@
]"
:context="context"
:viewparams="viewparams"
:localContext ='{}'
:localContext ='{PINSTID:"%metadynamicmodel%"}'
:localParam ='{}'
parameterName='metadynamicmodel'
parentName="MetaDynamicModel"
......
......@@ -436,6 +436,7 @@ export default class MainBase extends Vue implements ControlInterface {
srfsourcekey: null,
configname: null,
formitem: null,
pdynainstid: null,
configid: null,
metadynamicmodel:null,
};
......@@ -624,6 +625,8 @@ export default class MainBase extends Vue implements ControlInterface {
configname: new FormItemModel({ caption: '配置名称', detailType: 'FORMITEM', name: 'configname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: '文件', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
,
pdynainstid: new FormItemModel({ caption: '父实例', detailType: 'FORMITEM', name: 'pdynainstid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
configid: new FormItemModel({ caption: '配置标识', detailType: 'FORMITEM', name: 'configid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -737,6 +740,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 pdynainstid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.pdynainstid')
onPdynainstidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'pdynainstid', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 configid 值
*
......@@ -815,6 +830,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
/**
......@@ -1899,6 +1915,9 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public createDefault(){
if (this.data.hasOwnProperty('pdynainstid')) {
this.data['pdynainstid'] = this.context['pinstid'];
}
}
/**
......
......@@ -60,6 +60,11 @@ export default class MainModel {
prop: 'modelfile',
dataType: 'TEXT',
},
{
name: 'pdynainstid',
prop: 'pdynainstid',
dataType: 'PICKUP',
},
{
name: 'configid',
prop: 'configid',
......
......@@ -244,7 +244,7 @@
<!--输出实体[META_DYNAMICMODEL]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_dynamicmodel-117-12">
<changeSet author="a_A_5d9d78509" id="tab-meta_dynamicmodel-120-12">
<createTable tableName="IBZDYNAMICMODEL">
<column name="DYNAINSTID" remarks="" type="VARCHAR(100)">
</column>
......@@ -448,10 +448,10 @@
<!--输出实体[DST_VIEW]外键关系 -->
<!--输出实体[META_DATASET]外键关系 -->
<!--输出实体[META_DYNAMICMODEL]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-117-18">
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-120-18">
<addForeignKeyConstraint baseColumnNames="SYSTEMID" baseTableName="IBZDYNAMICMODEL" constraintName="DER1N_META_DYNAMICMODEL_DST_SY" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PSSYSTEMID" referencedTableName="IBZPSSYSTEM" validate="true"/>
</changeSet>
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-117-19">
<changeSet author="a_A_5d9d78509" id="fk-meta_dynamicmodel-120-19">
<addForeignKeyConstraint baseColumnNames="PDYNAINSTID" baseTableName="IBZDYNAMICMODEL" constraintName="DER1N_META_DYNAMICMODEL_META_D" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONFIGID" referencedTableName="IBZDYNAMICMODEL" validate="true"/>
</changeSet>
<!--输出实体[META_ENTITY]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册