提交 39b9ed1f 编写于 作者: ibizdev's avatar ibizdev

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

上级 00c4712d
......@@ -42,6 +42,7 @@ function getLocaleResourceBase(){
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
systemid: commonLogic.appcommonhandle("系统",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
......
......@@ -42,6 +42,7 @@ function getLocaleResourceBase(){
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
systemid: commonLogic.appcommonhandle("系统",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
......
......@@ -42,6 +42,7 @@ function getLocaleResourceBase(){
srfsourcekey: commonLogic.appcommonhandle("",null),
configname: commonLogic.appcommonhandle("配置名称",null),
formitem: commonLogic.appcommonhandle("文件",null),
systemid: commonLogic.appcommonhandle("系统",null),
pdynainstid: commonLogic.appcommonhandle("父实例",null),
configid: commonLogic.appcommonhandle("配置标识",null),
},
......
......@@ -1985,9 +1985,6 @@ export default class DynaInstBase extends Vue implements ControlInterface {
* @memberof DynaInstBase
*/
public createDefault(){
if (this.data.hasOwnProperty('systemid')) {
this.data['systemid'] = this.context['sysid'];
}
}
/**
......
......@@ -25,6 +25,20 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.systemid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='systemid' :itemRules="this.rules().systemid" class='' :caption="$t('entities.metadynamicmodel.main_form.details.systemid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.systemid.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.systemid"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.systemid.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
</row>
......@@ -450,6 +464,7 @@ export default class MainBase extends Vue implements ControlInterface {
srfsourcekey: null,
configname: null,
formitem: null,
systemid: null,
pdynainstid: null,
configid: null,
metadynamicmodel:null,
......@@ -511,6 +526,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem.required, type: 'string', message: '文件 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '文件 值不能为空', trigger: 'blur' },
],
systemid: [
{ required: this.detailsModel.systemid.required, type: 'string', message: '系统 值不能为空', trigger: 'change' },
{ required: this.detailsModel.systemid.required, type: 'string', message: '系统 值不能为空', trigger: 'blur' },
],
pdynainstid: [
{ required: this.detailsModel.pdynainstid.required, type: 'string', message: '父实例 值不能为空', trigger: 'change' },
{ required: this.detailsModel.pdynainstid.required, type: 'string', message: '父实例 值不能为空', trigger: 'blur' },
......@@ -643,6 +662,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 })
,
systemid: new FormItemModel({ caption: '系统', detailType: 'FORMITEM', name: 'systemid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, 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 })
,
......@@ -758,6 +779,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 systemid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.systemid')
onSystemidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'systemid', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 pdynainstid 值
*
......@@ -849,6 +882,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
/**
......@@ -1933,6 +1967,9 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public createDefault(){
if (this.data.hasOwnProperty('systemid')) {
this.data['systemid'] = this.context['sysid'];
}
if (this.data.hasOwnProperty('pdynainstid')) {
this.data['pdynainstid'] = this.context['pinstid'];
}
......
......@@ -60,6 +60,11 @@ export default class MainModel {
prop: 'modelfile',
dataType: 'TEXT',
},
{
name: 'systemid',
prop: 'system_id',
dataType: 'PICKUP',
},
{
name: 'pdynainstid',
prop: 'pdynainstid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册