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

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

上级 0388f97d
......@@ -37,7 +37,6 @@ export default {
},
main_form: {
details: {
lookup: "",
group1: "实体关系基本信息",
formpage1: "基本信息",
srforikey: "",
......@@ -55,6 +54,7 @@ export default {
nestedname: "嵌套代码名称",
refentityid: "引用实体标识",
entityid: "实体标识",
lookup: "Lookup",
relationid: "关系标识",
},
uiactions: {
......
......@@ -36,7 +36,6 @@ export default {
},
main_form: {
details: {
lookup: "",
group1: "实体关系基本信息",
formpage1: "基本信息",
srforikey: "",
......@@ -54,6 +53,7 @@ export default {
nestedname: "嵌套代码名称",
refentityid: "引用实体标识",
entityid: "实体标识",
lookup: "Lookup",
relationid: "关系标识",
},
uiactions: {
......
......@@ -42,7 +42,7 @@
</i-col>
<i-col v-show="detailsModel.meta.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='meta' :itemRules="this.rules().meta" class='' :caption="$t('entities.dstrouter.main_form.details.meta')" uiStyle="DEFAULT" :labelWidth="0" :isShowCaption="false" :error="detailsModel.meta.error" :isEmptyCaption="false" labelPos="NONE">
<avue-custom-form :isSubForm="true" :isParseString="true" :isFormData="false" v-model="data.meta" :formData="data" :url="`/lite/ibzlite-web/components/router_meta`" :formState="formState"></avue-custom-form>
<avue-custom-form :isSubForm="true" :isParseString="true" :isFormData="false" :options="{"column":[{"type":"input","label":"标题caption","span":24,"display":true,"prop":"caption"},{"type":"input","label":"info","span":24,"display":true,"prop":"info"},{"type":"dynamic","label":"参数parameters","span":24,"display":true,"children":{"type":"crud","index":false,"align":"center","headerAlign":"center","addBtn":true,"delBtn":true,"column":[{"type":"input","label":"pathName","span":24,"display":true,"prop":"pathName"},{"type":"input","label":"parameterName","span":24,"display":true,"prop":"parameterName"}]},"prop":"parameters"},{"type":"input","label":"requireAuth","span":24,"display":true,"prop":"requireAuth"}],"labelPosition":"right","labelSuffix":" ","labelWidth":120,"gutter":0,"menuBtn":false,"submitBtn":false,"submitText":"提交","emptyBtn":false,"emptyText":"清空","menuPosition":"center"}" v-model="data.meta" :formData="data" :formState="formState"></avue-custom-form>
</app-form-item>
</i-col>
......
......@@ -118,7 +118,9 @@
</i-col>
<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>
<app-form-item name='lookup' :itemRules="this.rules().lookup" class='' :caption="$t('entities.metarelationship.main_form.details.lookup')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.lookup.error" :isEmptyCaption="false" labelPos="LEFT">
<avue-custom-form :isSubForm="true" :isParseString="true" :isFormData="false" :options="{"column":[{"type":"dynamic","label":"","span":24,"display":true,"children":{"type":"crud","index":false,"align":"center","headerAlign":"center","addBtn":true,"delBtn":true,"column":[{"type":"select","label":"Key field","cascaderItem":[],"span":24,"display":true,"prop":"fieldname","props":{"label":"showName","value":"columnName"},"dicUrl":`lite/ibzlite/entitys/${entityname}/fields`,"dicMethod":"get","filterable":true},{"type":"select","label":"References key field","cascaderItem":[],"span":24,"display":true,"prop":"reffieldname","props":{"label":"showName","value":"columnName"},"dicUrl":`lite/ibzlite/entitys/${refentityname}/fields`,"dicMethod":"get"}]},"prop":"dstlookups"}],"labelPosition":"top","labelSuffix":"","labelWidth":80,"gutter":0,"menuBtn":false,"submitBtn":true,"submitText":"提交","emptyBtn":true,"emptyText":"清空","menuPosition":"center"}" v-model="data.lookup" :formData="data" :formState="formState"></avue-custom-form>
</app-form-item>
</i-col>
......@@ -513,7 +515,6 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public data: any = {
lookup: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
......@@ -529,6 +530,7 @@ export default class MainBase extends Vue implements ControlInterface {
nestedname: null,
refentityid: null,
entityid: null,
lookup: null,
relationid: null,
metarelationship:null,
};
......@@ -605,6 +607,10 @@ 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' },
],
lookup: [
{ required: this.detailsModel.lookup.required, type: 'string', message: 'Lookup 值不能为空', trigger: 'change' },
{ required: this.detailsModel.lookup.required, type: 'string', message: 'Lookup 值不能为空', trigger: 'blur' },
],
}
}
......@@ -710,8 +716,6 @@ 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 })
......@@ -745,6 +749,8 @@ export default class MainBase extends Vue implements ControlInterface {
refentityid: new FormItemModel({ caption: '引用实体标识', detailType: 'FORMITEM', name: 'refentityid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
entityid: new FormItemModel({ caption: '实体标识', detailType: 'FORMITEM', name: 'entityid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
lookup: new FormItemModel({ caption: 'Lookup', detailType: 'FORMITEM', name: 'lookup', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
relationid: new FormItemModel({ caption: '关系标识', detailType: 'FORMITEM', name: 'relationid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -930,6 +936,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'entityid', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 lookup 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.lookup')
onLookupChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'lookup', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 relationid 值
*
......
......@@ -24,10 +24,6 @@ export default class MainModel {
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'lookup',
dataType:'FORMPART'
},
{
name: 'srforikey',
......@@ -94,6 +90,11 @@ export default class MainModel {
prop: 'entity_id',
dataType: 'PICKUP',
},
{
name: 'lookup',
prop: 'lookup',
dataType: 'ONE2MANYDATA',
},
{
name: 'relationid',
prop: 'id',
......
......@@ -132,7 +132,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_datasource-42-7">
<changeSet author="a_A_5d9d78509" id="tab-dst_datasource-44-7">
<createTable tableName="IBZDATASOURCE">
<column name="DSID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/>
......@@ -150,7 +150,7 @@
<!--输出实体[DST_ROUTER]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_router-33-8">
<changeSet author="a_A_5d9d78509" id="tab-dst_router-34-8">
<createTable tableName="IBZROUTER">
<column name="ROUTERID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_ROUTER_ROUTERID"/>
......@@ -360,7 +360,7 @@
<!--输出实体[META_RELATION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_relation-90-16">
<changeSet author="a_A_5d9d78509" id="tab-meta_relation-91-16">
<createTable tableName="IBZRELATION">
<column name="RELATIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册