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

ibiz4j 发布系统代码

上级 f3a0b58e
......@@ -37,6 +37,7 @@ export default {
},
main_form: {
details: {
lookup: "",
group1: "实体关系基本信息",
formpage1: "基本信息",
srforikey: "",
......@@ -52,7 +53,6 @@ export default {
codename: "代码名称",
refentityname: "引用实体名称",
nestedname: "嵌套代码名称",
dstlookups: "Lookup",
refentityid: "引用实体标识",
entityid: "实体标识",
relationid: "关系标识",
......
......@@ -36,6 +36,7 @@ export default {
},
main_form: {
details: {
lookup: "",
group1: "实体关系基本信息",
formpage1: "基本信息",
srforikey: "",
......@@ -51,7 +52,6 @@ export default {
codename: "代码名称",
refentityname: "引用实体名称",
nestedname: "嵌套代码名称",
dstlookups: "Lookup",
refentityid: "引用实体标识",
entityid: "实体标识",
relationid: "关系标识",
......
......@@ -117,10 +117,8 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.dstlookups.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='dstlookups' :itemRules="this.rules().dstlookups" class='' :caption="$t('entities.metarelationship.main_form.details.dstlookups')" uiStyle="DEFAULT" :labelWidth="0" :isShowCaption="false" :error="detailsModel.dstlookups.error" :isEmptyCaption="false" labelPos="NONE">
<avue-custom-form :isSubForm="true" :isParseString="true" :isFormData="false" v-model="data.dstlookups" :formData="data" :url="`/lite/ibzlite-web/components/lookup`" :formState="formState"></avue-custom-form>
</app-form-item>
<i-col v-show="detailsModel.lookup.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-part name="lookup" :context="context" :viewparams="viewparams" :data="mixinData" :formState="formState" systemCodeName="ibzlite" appCodeName="web" deCodeName="MetaRelationship" formCodeName="Main" formDetailCodeName="lookup" @change="onFormItemValueChange"></app-form-part>
</i-col>
......@@ -468,6 +466,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public data: any = {
lookup: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
......@@ -481,7 +480,6 @@ export default class MainBase extends Vue implements ControlInterface {
codename: null,
refentityname: null,
nestedname: null,
dstlookups: null,
refentityid: null,
entityid: null,
relationid: null,
......@@ -606,12 +604,6 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.nestedname.required, type: 'string', message: '嵌套代码名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.nestedname.required, type: 'string', message: '嵌套代码名称 值不能为空', trigger: 'blur' },
],
dstlookups: [
{ type: 'string', message: 'Lookup 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: 'Lookup 值必须为字符串类型', trigger: 'blur' },
{ required: this.detailsModel.dstlookups.required, type: 'string', message: 'Lookup 值不能为空', trigger: 'change' },
{ required: this.detailsModel.dstlookups.required, type: 'string', message: 'Lookup 值不能为空', trigger: 'blur' },
],
refentityid: [
{ type: 'string', message: '引用实体标识 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '引用实体标识 值必须为字符串类型', trigger: 'blur' },
......@@ -718,6 +710,8 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public detailsModel: any = {
lookup: new FormPartModel({ caption: '', detailType: 'FORMPART', name: 'lookup', visible: true, isShowCaption: true, form: this, isControlledContent: false })
,
group1: new FormGroupPanelModel({ caption: '实体关系基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.metarelationship.main_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, isControlledContent: false })
......@@ -747,8 +741,6 @@ export default class MainBase extends Vue implements ControlInterface {
refentityname: new FormItemModel({ caption: '引用实体名称', detailType: 'FORMITEM', name: 'refentityname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
nestedname: new FormItemModel({ caption: '嵌套代码名称', detailType: 'FORMITEM', name: 'nestedname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
dstlookups: new FormItemModel({ caption: 'Lookup', detailType: 'FORMITEM', name: 'dstlookups', visible: true, isShowCaption: false, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
refentityid: new FormItemModel({ caption: '引用实体标识', detailType: 'FORMITEM', name: 'refentityid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -914,18 +906,6 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'nestedname', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 dstlookups 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.dstlookups')
onDstlookupsChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'dstlookups', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 refentityid 值
*
......
......@@ -24,6 +24,10 @@ export default class MainModel {
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'lookup',
dataType:'FORMPART'
},
{
name: 'srforikey',
......@@ -80,10 +84,6 @@ export default class MainModel {
prop: 'nested_name',
dataType: 'TEXT',
},
{
name: 'dstlookups',
dataType:'FORMITEM',
},
{
name: 'refentityid',
prop: 'ref_entity_id',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册