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

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

上级 4d3effaf
...@@ -30,6 +30,7 @@ function getLocaleResourceBase(){ ...@@ -30,6 +30,7 @@ function getLocaleResourceBase(){
srfdeid: commonLogic.appcommonhandle("",null), srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null),
modelfile: commonLogic.appcommonhandle("文件",null), modelfile: commonLogic.appcommonhandle("文件",null),
status: commonLogic.appcommonhandle("状态",null),
configid: commonLogic.appcommonhandle("ID",null), configid: commonLogic.appcommonhandle("ID",null),
}, },
uiactions: { uiactions: {
......
...@@ -30,6 +30,7 @@ function getLocaleResourceBase(){ ...@@ -30,6 +30,7 @@ function getLocaleResourceBase(){
srfdeid: commonLogic.appcommonhandle("",null), srfdeid: commonLogic.appcommonhandle("",null),
srfsourcekey: commonLogic.appcommonhandle("",null), srfsourcekey: commonLogic.appcommonhandle("",null),
modelfile: commonLogic.appcommonhandle("文件",null), modelfile: commonLogic.appcommonhandle("文件",null),
status: commonLogic.appcommonhandle("状态",null),
configid: commonLogic.appcommonhandle("ID",null), configid: commonLogic.appcommonhandle("ID",null),
}, },
uiactions: { uiactions: {
......
...@@ -16,6 +16,27 @@ ...@@ -16,6 +16,27 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.status.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='status' :itemRules="this.rules().status" class='' :caption="$t('entities.dynamicmodelconfig.main_form.details.status')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.status.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.status"
:data="data"
:context="context"
:viewparams="viewparams"
:formState="formState"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.status.disabled"
valueType="string"
tag='DynamicModelStatus'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col> </i-col>
...@@ -421,6 +442,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -421,6 +442,7 @@ export default class MainBase extends Vue implements ControlInterface {
srfdeid: null, srfdeid: null,
srfsourcekey: null, srfsourcekey: null,
modelfile: null, modelfile: null,
status: null,
configid: null, configid: null,
dynamicmodelconfig:null, dynamicmodelconfig:null,
}; };
...@@ -477,6 +499,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -477,6 +499,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.modelfile.required, type: 'string', message: '文件 值不能为空', trigger: 'change' }, { required: this.detailsModel.modelfile.required, type: 'string', message: '文件 值不能为空', trigger: 'change' },
{ required: this.detailsModel.modelfile.required, type: 'string', message: '文件 值不能为空', trigger: 'blur' }, { required: this.detailsModel.modelfile.required, type: 'string', message: '文件 值不能为空', trigger: 'blur' },
], ],
status: [
{ required: this.detailsModel.status.required, type: 'string', message: '状态 值不能为空', trigger: 'change' },
{ required: this.detailsModel.status.required, type: 'string', message: '状态 值不能为空', trigger: 'blur' },
],
} }
} }
...@@ -603,6 +629,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -603,6 +629,8 @@ export default class MainBase extends Vue implements ControlInterface {
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
modelfile: new FormItemModel({ caption: '文件', detailType: 'FORMITEM', name: 'modelfile', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) modelfile: new FormItemModel({ caption: '文件', detailType: 'FORMITEM', name: 'modelfile', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
status: new FormItemModel({ caption: '状态', detailType: 'FORMITEM', name: 'status', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
configid: new FormItemModel({ caption: 'ID', detailType: 'FORMITEM', name: 'configid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) configid: new FormItemModel({ caption: 'ID', detailType: 'FORMITEM', name: 'configid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -704,6 +732,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -704,6 +732,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'modelfile', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'modelfile', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 status 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.status')
onStatusChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'status', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 configid 值 * 监控表单属性 configid 值
* *
...@@ -781,6 +821,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -781,6 +821,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
/** /**
......
...@@ -55,6 +55,11 @@ export default class MainModel { ...@@ -55,6 +55,11 @@ export default class MainModel {
prop: 'modelfile', prop: 'modelfile',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'status',
prop: 'status',
dataType: 'SSCODELIST',
},
{ {
name: 'configid', name: 'configid',
prop: 'configid', prop: 'configid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册