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

ibiz4j 发布系统代码

上级 259c28c1
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
export default { export default {
fields: { fields: {
id: "标识", id: "标识",
code: "代码",
name: "名称", name: "名称",
group: "分组", group: "分组",
memo: "备注", memo: "备注",
...@@ -39,17 +40,18 @@ export default { ...@@ -39,17 +40,18 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
cid: "标识", ccode: "代码",
cname: "名称", cname: "名称",
cgroup: "分组", cgroup: "分组",
memo: "备注", memo: "备注",
cid: "标识",
}, },
uiactions: { uiactions: {
}, },
}, },
main_grid: { main_grid: {
columns: { columns: {
cid: "标识", ccode: "代码",
cname: "名称", cname: "名称",
cgroup: "分组", cgroup: "分组",
memo: "备注", memo: "备注",
...@@ -61,9 +63,9 @@ export default { ...@@ -61,9 +63,9 @@ export default {
default_searchform: { default_searchform: {
details: { details: {
formpage1: "常规条件", formpage1: "常规条件",
n_cid_like: "标识(文本包含(%))", n_ccode_like: "代码",
n_cname_like: "名称(文本包含(%))", n_cname_like: "名称",
n_cgroup_like: "分组(文本包含(%))", n_cgroup_like: "分组",
}, },
uiactions: { uiactions: {
}, },
...@@ -121,10 +123,6 @@ export default { ...@@ -121,10 +123,6 @@ export default {
caption: "Filter", caption: "Filter",
tip: "Filter", tip: "Filter",
}, },
tbitem18: {
caption: "Help",
tip: "Help",
},
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem1: { tbitem1: {
......
export default { export default {
fields: { fields: {
id: "标识", id: "标识",
code: "代码",
name: "名称", name: "名称",
group: "分组", group: "分组",
memo: "备注", memo: "备注",
...@@ -38,17 +39,18 @@ export default { ...@@ -38,17 +39,18 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
cid: "标识", ccode: "代码",
cname: "名称", cname: "名称",
cgroup: "分组", cgroup: "分组",
memo: "备注", memo: "备注",
cid: "标识",
}, },
uiactions: { uiactions: {
}, },
}, },
main_grid: { main_grid: {
columns: { columns: {
cid: "标识", ccode: "代码",
cname: "名称", cname: "名称",
cgroup: "分组", cgroup: "分组",
memo: "备注", memo: "备注",
...@@ -60,9 +62,9 @@ export default { ...@@ -60,9 +62,9 @@ export default {
default_searchform: { default_searchform: {
details: { details: {
formpage1: "常规条件", formpage1: "常规条件",
n_cid_like: "标识(文本包含(%))", n_ccode_like: "代码",
n_cname_like: "名称(文本包含(%))", n_cname_like: "名称",
n_cgroup_like: "分组(文本包含(%))", n_cgroup_like: "分组",
}, },
uiactions: { uiactions: {
}, },
...@@ -120,10 +122,6 @@ export default { ...@@ -120,10 +122,6 @@ export default {
caption: "过滤", caption: "过滤",
tip: "过滤", tip: "过滤",
}, },
tbitem18: {
caption: "帮助",
tip: "帮助",
},
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem1: { tbitem1: {
......
...@@ -58,16 +58,16 @@ export default { ...@@ -58,16 +58,16 @@ export default {
main_grid: { main_grid: {
columns: { columns: {
cid: "目录代码", cid: "目录代码",
cname: "目录",
val: "代码值", val: "代码值",
label: "名称", label: "名称",
pval: "父代码值", pval: "父代码值",
showorder: "排序",
cname: "目录",
cls: "栏目样式", cls: "栏目样式",
iconcls: "图标", iconcls: "图标",
vfilter: "过滤项", vfilter: "过滤项",
disabled: "是否禁用", disabled: "是否禁用",
expired: "过期/失效", expired: "过期/失效",
showorder: "排序",
extension: "扩展", extension: "扩展",
updatedate: "最后修改时间", updatedate: "最后修改时间",
}, },
...@@ -133,9 +133,9 @@ export default { ...@@ -133,9 +133,9 @@ export default {
caption: "-", caption: "-",
tip: "", tip: "",
}, },
tbitem18: { deuiaction2: {
caption: "Help", caption: "Filter",
tip: "Help", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
......
...@@ -57,16 +57,16 @@ export default { ...@@ -57,16 +57,16 @@ export default {
main_grid: { main_grid: {
columns: { columns: {
cid: "目录代码", cid: "目录代码",
cname: "目录",
val: "代码值", val: "代码值",
label: "名称", label: "名称",
pval: "父代码值", pval: "父代码值",
showorder: "排序",
cname: "目录",
cls: "栏目样式", cls: "栏目样式",
iconcls: "图标", iconcls: "图标",
vfilter: "过滤项", vfilter: "过滤项",
disabled: "是否禁用", disabled: "是否禁用",
expired: "过期/失效", expired: "过期/失效",
showorder: "排序",
extension: "扩展", extension: "扩展",
updatedate: "最后修改时间", updatedate: "最后修改时间",
}, },
...@@ -132,9 +132,9 @@ export default { ...@@ -132,9 +132,9 @@ export default {
caption: "-", caption: "-",
tip: "", tip: "",
}, },
tbitem18: { deuiaction2: {
caption: "帮助", caption: "过滤",
tip: "帮助", tip: "过滤",
}, },
}, },
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
......
...@@ -85,13 +85,6 @@ ...@@ -85,13 +85,6 @@
</i-button> </i-button>
<div slot='content'>{{$t('entities.dictcatalog.gridviewtoolbar_toolbar.tbitem19.tip')}}</div> <div slot='content'>{{$t('entities.dictcatalog.gridviewtoolbar_toolbar.tbitem19.tip')}}</div>
</tooltip> </tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem18.visabled" :disabled="toolBarModels.tbitem18.disabled" class='' @click="toolbar_click({ tag: 'tbitem18' }, $event)">
<i class='fa fa-question'></i>
<span class='caption'>{{$t('entities.dictcatalog.gridviewtoolbar_toolbar.tbitem18.caption')}}</span>
</i-button>
<div slot='content'>{{$t('entities.dictcatalog.gridviewtoolbar_toolbar.tbitem18.tip')}}</div>
</tooltip>
</div> </div>
</div> </div>
</div> </div>
...@@ -367,8 +360,6 @@ export default class DictCatalogGridViewBase extends Vue { ...@@ -367,8 +360,6 @@ export default class DictCatalogGridViewBase extends Vue {
tbitem17: { name: 'tbitem17', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem17: { name: 'tbitem17', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem19: { name: 'tbitem19', caption: '过滤', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' } }, tbitem19: { name: 'tbitem19', caption: '过滤', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' } },
tbitem18: { name: 'tbitem18', caption: '帮助', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Help', target: '' } },
}; };
...@@ -721,9 +712,6 @@ export default class DictCatalogGridViewBase extends Vue { ...@@ -721,9 +712,6 @@ export default class DictCatalogGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem19')) { if (Object.is($event.tag, 'tbitem19')) {
this.toolbar_tbitem19_click(null, '', $event2); this.toolbar_tbitem19_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem18')) {
this.toolbar_tbitem18_click(null, '', $event2);
}
} }
...@@ -1160,34 +1148,6 @@ export default class DictCatalogGridViewBase extends Vue { ...@@ -1160,34 +1148,6 @@ export default class DictCatalogGridViewBase extends Vue {
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"DictCatalog"); this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"DictCatalog");
} }
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem18_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"DictCatalog");
}
/** /**
* 打开新建数据视图 * 打开新建数据视图
* *
...@@ -1502,20 +1462,6 @@ export default class DictCatalogGridViewBase extends Vue { ...@@ -1502,20 +1462,6 @@ export default class DictCatalogGridViewBase extends Vue {
_this.isExpandSearchForm = !_this.isExpandSearchForm; _this.isExpandSearchForm = !_this.isExpandSearchForm;
} }
} }
/**
* 帮助
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof DictCatalogGridViewBase
*/
public Help(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '帮助未支持' });
}
/** /**
* 关闭视图 * 关闭视图
......
...@@ -66,11 +66,11 @@ ...@@ -66,11 +66,11 @@
<div slot='content'>{{$t('entities.dictoption.gridviewtoolbar_toolbar.tbitem13.tip')}}</div> <div slot='content'>{{$t('entities.dictoption.gridviewtoolbar_toolbar.tbitem13.tip')}}</div>
</tooltip> </tooltip>
<span class='seperator'>|</span> <tooltip :transfer="true" :max-width="600"> <span class='seperator'>|</span> <tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem18.visabled" :disabled="toolBarModels.tbitem18.disabled" class='' @click="toolbar_click({ tag: 'tbitem18' }, $event)"> <i-button v-show="toolBarModels.deuiaction2.visabled" :disabled="toolBarModels.deuiaction2.disabled" class='' @click="toolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-question'></i> <i class='fa fa-filter'></i>
<span class='caption'>{{$t('entities.dictoption.gridviewtoolbar_toolbar.tbitem18.caption')}}</span> <span class='caption'>{{$t('entities.dictoption.gridviewtoolbar_toolbar.deuiaction2.caption')}}</span>
</i-button> </i-button>
<div slot='content'>{{$t('entities.dictoption.gridviewtoolbar_toolbar.tbitem18.tip')}}</div> <div slot='content'>{{$t('entities.dictoption.gridviewtoolbar_toolbar.deuiaction2.tip')}}</div>
</tooltip> </tooltip>
</div> </div>
</div> </div>
...@@ -345,7 +345,7 @@ export default class DictOptionGridViewBase extends Vue { ...@@ -345,7 +345,7 @@ export default class DictOptionGridViewBase extends Vue {
tbitem13: { name: 'tbitem13', caption: '导出', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000 }, tbitem13: { name: 'tbitem13', caption: '导出', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000 },
tbitem10: { name: 'tbitem10', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } }, tbitem10: { name: 'tbitem10', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem18: { name: 'tbitem18', caption: '帮助', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'Help', target: '' } }, deuiaction2: { name: 'deuiaction2', caption: '过滤', disabled: false, type: 'DEUIACTION', visabled: true, dataaccaction: '', uiaction: { tag: 'ToggleFilter', target: '' } },
}; };
...@@ -693,8 +693,8 @@ export default class DictOptionGridViewBase extends Vue { ...@@ -693,8 +693,8 @@ export default class DictOptionGridViewBase extends Vue {
if (Object.is($event.tag, 'tbitem11')) { if (Object.is($event.tag, 'tbitem11')) {
this.toolbar_tbitem11_click(null, '', $event2); this.toolbar_tbitem11_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem18')) { if (Object.is($event.tag, 'deuiaction2')) {
this.toolbar_tbitem18_click(null, '', $event2); this.toolbar_deuiaction2_click(null, '', $event2);
} }
} }
...@@ -1084,7 +1084,7 @@ export default class DictOptionGridViewBase extends Vue { ...@@ -1084,7 +1084,7 @@ export default class DictOptionGridViewBase extends Vue {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public toolbar_tbitem18_click(params: any = {}, tag?: any, $event?: any) { public toolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数 // 参数
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
...@@ -1101,7 +1101,7 @@ export default class DictOptionGridViewBase extends Vue { ...@@ -1101,7 +1101,7 @@ export default class DictOptionGridViewBase extends Vue {
datas = [params]; datas = [params];
} }
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"DictOption"); this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"DictOption");
} }
/** /**
...@@ -1426,7 +1426,7 @@ export default class DictOptionGridViewBase extends Vue { ...@@ -1426,7 +1426,7 @@ export default class DictOptionGridViewBase extends Vue {
xData.print(); xData.print();
} }
/** /**
* 帮助 * 过滤
* *
* @param {any[]} args 当前数据 * @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文 * @param {any} contextJO 行为附加上下文
...@@ -1436,8 +1436,11 @@ export default class DictOptionGridViewBase extends Vue { ...@@ -1436,8 +1436,11 @@ export default class DictOptionGridViewBase extends Vue {
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof DictOptionGridViewBase * @memberof DictOptionGridViewBase
*/ */
public Help(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public ToggleFilter(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '帮助未支持' }); const _this: any = this;
if (_this.hasOwnProperty('isExpandSearchForm')) {
_this.isExpandSearchForm = !_this.isExpandSearchForm;
}
} }
/** /**
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
<row> <row>
<i-col span="20" class="form-content"> <i-col span="20" class="form-content">
<row> <row>
<i-col v-show="detailsModel.n_cid_like.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }"> <i-col v-show="detailsModel.n_ccode_like.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='n_cid_like' :itemRules="this.rules.n_cid_like" class='' :caption="$t('entities.dictcatalog.default_searchform.details.n_cid_like')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_cid_like.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='n_ccode_like' :itemRules="this.rules.n_ccode_like" class='' :caption="$t('entities.dictcatalog.default_searchform.details.n_ccode_like')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_ccode_like.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.n_cid_like" @enter="onEnter($event)" :disabled="detailsModel.n_cid_like.disabled" type='text' style="width:100px;"></input-box> <input-box v-model="data.n_ccode_like" @enter="onEnter($event)" :disabled="detailsModel.n_ccode_like.disabled" type='text' style="width:100px;"></input-box>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -263,7 +263,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -263,7 +263,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public data: any = { public data: any = {
n_cid_like: null, n_ccode_like: null,
n_cname_like: null, n_cname_like: null,
n_cgroup_like: null, n_cgroup_like: null,
}; };
...@@ -275,23 +275,23 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -275,23 +275,23 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public rules: any = { public rules: any = {
n_cid_like: [ n_ccode_like: [
{ type: 'string', message: '标识(文本包含(%)) 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '标识(文本包含(%)) 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '标识(文本包含(%)) 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '标识(文本包含(%)) 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '代码 值不能为空', trigger: 'blur' },
], ],
n_cname_like: [ n_cname_like: [
{ type: 'string', message: '名称(文本包含(%)) 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '名称 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '名称(文本包含(%)) 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '名称 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '名称(文本包含(%)) 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '名称 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '名称(文本包含(%)) 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '名称 值不能为空', trigger: 'blur' },
], ],
n_cgroup_like: [ n_cgroup_like: [
{ type: 'string', message: '分组(文本包含(%)) 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '分组 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '分组(文本包含(%)) 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '分组 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '分组(文本包含(%)) 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '分组 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '分组(文本包含(%)) 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '分组 值不能为空', trigger: 'blur' },
], ],
} }
...@@ -304,24 +304,24 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -304,24 +304,24 @@ export default class DefaultBase extends Vue implements ControlInterface {
public detailsModel: any = { public detailsModel: any = {
formpage1: new FormPageModel({ caption: '常规条件', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }) formpage1: new FormPageModel({ caption: '常规条件', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
, ,
n_cid_like: new FormItemModel({ caption: '标识(文本包含(%))', detailType: 'FORMITEM', name: 'n_cid_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) n_ccode_like: new FormItemModel({ caption: '代码', detailType: 'FORMITEM', name: 'n_ccode_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
n_cname_like: new FormItemModel({ caption: '名称(文本包含(%))', detailType: 'FORMITEM', name: 'n_cname_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) n_cname_like: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'n_cname_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
n_cgroup_like: new FormItemModel({ caption: '分组(文本包含(%))', detailType: 'FORMITEM', name: 'n_cgroup_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) n_cgroup_like: new FormItemModel({ caption: '分组', detailType: 'FORMITEM', name: 'n_cgroup_like', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
}; };
/** /**
* 监控表单属性 n_cid_like 值 * 监控表单属性 n_ccode_like 值
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof DefaultBase * @memberof DefaultBase
*/ */
@Watch('data.n_cid_like') @Watch('data.n_ccode_like')
onN_cid_likeChange(newVal: any, oldVal: any) { onN_ccode_likeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'n_cid_like', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'n_ccode_like', newVal: newVal, oldVal: oldVal });
} }
/** /**
......
...@@ -26,8 +26,8 @@ export default class DefaultModel { ...@@ -26,8 +26,8 @@ export default class DefaultModel {
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
name: 'n_cid_like', name: 'n_ccode_like',
prop: 'id', prop: 'code',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
...@@ -40,11 +40,6 @@ export default class DefaultModel { ...@@ -40,11 +40,6 @@ export default class DefaultModel {
prop: 'group', prop: 'group',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'dictcatalog',
prop: 'id',
dataType: 'FONTKEY',
},
] ]
} }
......
...@@ -162,7 +162,6 @@ export default class DefaultService extends ControlService { ...@@ -162,7 +162,6 @@ export default class DefaultService extends ControlService {
@Errorlog @Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data); const {data:Data,context:Context} = this.handleRequestData(action,context,data);
Object.assign(Data,{id: data.id, srffrontuf: '1'});
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
let result: Promise<any>; let result: Promise<any>;
const _appEntityService: any = this.appEntityService; const _appEntityService: any = this.appEntityService;
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
<row > <row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.dictcatalog.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" > <app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.dictcatalog.main_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.cid.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }"> <i-col v-show="detailsModel.ccode.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 8, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='cid' :itemRules="this.rules.cid" class='' :caption="$t('entities.dictcatalog.main_form.details.cid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.cid.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='ccode' :itemRules="this.rules.ccode" class='' :caption="$t('entities.dictcatalog.main_form.details.ccode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ccode.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.cid" @enter="onEnter($event)" unit="" :disabled="detailsModel.cid.disabled" type='text' style=""></input-box> <input-box v-model="data.ccode" @enter="onEnter($event)" unit="" :disabled="detailsModel.ccode.disabled" type='text' style=""></input-box>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -377,10 +377,11 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -377,10 +377,11 @@ export default class MainBase extends Vue implements ControlInterface {
srfuf: null, srfuf: null,
srfdeid: null, srfdeid: null,
srfsourcekey: null, srfsourcekey: null,
cid: null, ccode: null,
cname: null, cname: null,
cgroup: null, cgroup: null,
memo: null, memo: null,
cid: null,
dictcatalog:null, dictcatalog:null,
}; };
...@@ -471,17 +472,17 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -471,17 +472,17 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: ' 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
], ],
cid: [ ccode: [
{ type: 'string', message: '标识 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '标识 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '标识 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '标识 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '代码 值不能为空', trigger: 'blur' },
], ],
cname: [ cname: [
{ type: 'string', message: '名称 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '名称 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '名称 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '名称 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '名称 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '名称 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '名称 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '名称 值不能为空', trigger: 'blur' },
], ],
cgroup: [ cgroup: [
{ type: 'string', message: '分组 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '分组 值必须为字符串类型', trigger: 'change' },
...@@ -495,6 +496,12 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -495,6 +496,12 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: '备注 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '备注 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '备注 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '备注 值不能为空', trigger: 'blur' },
], ],
cid: [
{ type: 'string', message: '标识 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '标识 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '标识 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '标识 值不能为空', trigger: 'blur' },
],
} }
/** /**
...@@ -504,7 +511,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -504,7 +511,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase * @memberof MainBase
*/ */
public detailsModel: any = { public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '字典基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, uiActionGroup: { caption: '', langbase: 'entities.dictcatalog.main_form', extractMode: 'ITEM', details: [] } }) group1: new FormGroupPanelModel({ caption: '字典基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.dictcatalog.main_form', extractMode: 'ITEM', details: [] } })
, ,
druipart1: new FormDRUIPartModel({ caption: '字典项', detailType: 'DRUIPART', name: 'druipart1', visible: true, isShowCaption: true, form: this }) druipart1: new FormDRUIPartModel({ caption: '字典项', detailType: 'DRUIPART', name: 'druipart1', visible: true, isShowCaption: true, form: this })
, ,
...@@ -526,13 +533,15 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -526,13 +533,15 @@ export default class MainBase extends Vue implements ControlInterface {
, ,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
cid: new FormItemModel({ caption: '标识', detailType: 'FORMITEM', name: 'cid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) ccode: new FormItemModel({ caption: '代码', detailType: 'FORMITEM', name: 'ccode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
, ,
cname: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'cname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) cname: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'cname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
cgroup: new FormItemModel({ caption: '分组', detailType: 'FORMITEM', name: 'cgroup', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) cgroup: new FormItemModel({ caption: '分组', detailType: 'FORMITEM', name: 'cgroup', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
memo: new FormItemModel({ caption: '备注', detailType: 'FORMITEM', name: 'memo', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) memo: new FormItemModel({ caption: '备注', detailType: 'FORMITEM', name: 'memo', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
cid: new FormItemModel({ caption: '标识', detailType: 'FORMITEM', name: 'cid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
}; };
...@@ -633,15 +642,15 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -633,15 +642,15 @@ export default class MainBase extends Vue implements ControlInterface {
} }
/** /**
* 监控表单属性 cid * 监控表单属性 ccode
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof MainBase * @memberof MainBase
*/ */
@Watch('data.cid') @Watch('data.ccode')
onCidChange(newVal: any, oldVal: any) { onCcodeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'cid', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'ccode', newVal: newVal, oldVal: oldVal });
} }
/** /**
...@@ -680,6 +689,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -680,6 +689,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'memo', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'memo', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 cid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.cid')
onCidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'cid', newVal: newVal, oldVal: oldVal });
}
/** /**
* 重置表单项值 * 重置表单项值
...@@ -731,6 +752,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -731,6 +752,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
/** /**
......
...@@ -56,8 +56,8 @@ export default class MainModel { ...@@ -56,8 +56,8 @@ export default class MainModel {
name: 'srfsourcekey', name: 'srfsourcekey',
}, },
{ {
name: 'cid', name: 'ccode',
prop: 'id', prop: 'code',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
...@@ -75,6 +75,11 @@ export default class MainModel { ...@@ -75,6 +75,11 @@ export default class MainModel {
prop: 'memo', prop: 'memo',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'cid',
prop: 'id',
dataType: 'TEXT',
},
{ {
name: 'dictcatalog', name: 'dictcatalog',
prop: 'id', prop: 'id',
......
...@@ -162,7 +162,6 @@ export default class MainService extends ControlService { ...@@ -162,7 +162,6 @@ export default class MainService extends ControlService {
@Errorlog @Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data); const {data:Data,context:Context} = this.handleRequestData(action,context,data);
Object.assign(Data,{id: data.id, srffrontuf: '1'});
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
let result: Promise<any>; let result: Promise<any>;
const _appEntityService: any = this.appEntityService; const _appEntityService: any = this.appEntityService;
......
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
<template v-if="!isSingleSelect"> <template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column> <el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template> </template>
<template v-if="getColumnState('cid')"> <template v-if="getColumnState('ccode')">
<el-table-column show-overflow-tooltip :prop="'cid'" :label="$t('entities.dictcatalog.main_grid.columns.cid')" :width="200" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'ccode'" :label="$t('entities.dictcatalog.main_grid.columns.ccode')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.dictcatalog.main_grid.columns.cid')}} {{$t('entities.dictcatalog.main_grid.columns.ccode')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.cid}}</span> <span>{{row.ccode}}</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -559,9 +559,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -559,9 +559,9 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public allColumns: any[] = [ public allColumns: any[] = [
{ {
name: 'cid', name: 'ccode',
label: '标识', label: '代码',
langtag: 'entities.dictcatalog.main_grid.columns.cid', langtag: 'entities.dictcatalog.main_grid.columns.ccode',
show: true, show: true,
util: 'PX' util: 'PX'
}, },
...@@ -1573,7 +1573,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1573,7 +1573,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public getCellClassName(args:{row: any, column: any, rowIndex: number, columnIndex:number}){ public getCellClassName(args:{row: any, column: any, rowIndex: number, columnIndex:number}){
let hasRowEdit:any = { let hasRowEdit:any = {
'cid':false, 'ccode':false,
'cname':false, 'cname':false,
'cgroup':false, 'cgroup':false,
'memo':false, 'memo':false,
......
...@@ -26,6 +26,11 @@ export default class MainModel { ...@@ -26,6 +26,11 @@ export default class MainModel {
] ]
}else{ }else{
return [ return [
{
name: 'ccode',
prop: 'code',
dataType: 'TEXT',
},
{ {
name: 'cgroup', name: 'cgroup',
prop: 'group', prop: 'group',
...@@ -41,11 +46,6 @@ export default class MainModel { ...@@ -41,11 +46,6 @@ export default class MainModel {
prop: 'updatedate', prop: 'updatedate',
dataType: 'DATETIME', dataType: 'DATETIME',
}, },
{
name: 'cid',
prop: 'id',
dataType: 'TEXT',
},
{ {
name: 'srfmajortext', name: 'srfmajortext',
prop: 'name', prop: 'name',
...@@ -71,8 +71,8 @@ export default class MainModel { ...@@ -71,8 +71,8 @@ export default class MainModel {
prop: 'id', prop: 'id',
}, },
{ {
name: 'n_cid_like', name: 'n_ccode_like',
prop: 'n_cid_like', prop: 'n_ccode_like',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
...@@ -85,11 +85,6 @@ export default class MainModel { ...@@ -85,11 +85,6 @@ export default class MainModel {
prop: 'n_cgroup_like', prop: 'n_cgroup_like',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'dictcatalog',
prop: 'id',
dataType: 'FONTKEY',
},
{ {
name:'size', name:'size',
......
...@@ -18,6 +18,9 @@ export default class PickupViewpickupviewpanelModel { ...@@ -18,6 +18,9 @@ export default class PickupViewpickupviewpanelModel {
name: 'dictcatalog', name: 'dictcatalog',
prop: 'id', prop: 'id',
}, },
{
name: 'code',
},
{ {
name: 'name', name: 'name',
}, },
......
...@@ -42,11 +42,19 @@ public class DictCatalog extends EntityMP implements Serializable { ...@@ -42,11 +42,19 @@ public class DictCatalog extends EntityMP implements Serializable {
/** /**
* 标识 * 标识
*/ */
@DEField(name = "cid" , isKeyField=true) @DEField(defaultValue = "code" , defaultValueType = DEFieldDefaultValueType.PARAM , isKeyField=true)
@TableId(value= "cid",type=IdType.ASSIGN_UUID) @TableId(value= "cid",type=IdType.ASSIGN_UUID)
@JSONField(name = "id") @JSONField(name = "id")
@JsonProperty("id") @JsonProperty("id")
private String id; private String id;
/**
* 代码
*/
@DEField(name = "ccode")
@TableField(value = "ccode")
@JSONField(name = "code")
@JsonProperty("code")
private String code;
/** /**
* 名称 * 名称
*/ */
...@@ -91,6 +99,14 @@ public class DictCatalog extends EntityMP implements Serializable { ...@@ -91,6 +99,14 @@ public class DictCatalog extends EntityMP implements Serializable {
/**
* 设置 [代码]
*/
public void setCode(String code){
this.code = code ;
this.modify("ccode",code);
}
/** /**
* 设置 [名称] * 设置 [名称]
*/ */
......
...@@ -33,6 +33,13 @@ public class DictCatalogSearchContext extends QueryWrapperContext<DictCatalog> { ...@@ -33,6 +33,13 @@ public class DictCatalogSearchContext extends QueryWrapperContext<DictCatalog> {
if(!ObjectUtils.isEmpty(this.n_cid_like)){ if(!ObjectUtils.isEmpty(this.n_cid_like)){
this.getSearchCond().like("cid", n_cid_like); this.getSearchCond().like("cid", n_cid_like);
} }
}
private String n_ccode_like;//[代码]
public void setN_ccode_like(String n_ccode_like) {
this.n_ccode_like = n_ccode_like;
if(!ObjectUtils.isEmpty(this.n_ccode_like)){
this.getSearchCond().like("ccode", n_ccode_like);
}
} }
private String n_cname_like;//[名称] private String n_cname_like;//[名称]
public void setN_cname_like(String n_cname_like) { public void setN_cname_like(String n_cname_like) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--输出实体[DICT_OPTION]数据结构 --> <!--输出实体[DICT_OPTION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dict_option-85-1"> <changeSet author="a_A_5d9d78509" id="tab-dict_option-87-1">
<createTable tableName="IBZDICTOPTION"> <createTable tableName="IBZDICTOPTION">
<column name="VKEY" remarks="" type="VARCHAR(100)"> <column name="VKEY" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DICT_OPTION_VKEY"/> <constraints primaryKey="true" primaryKeyName="PK_DICT_OPTION_VKEY"/>
...@@ -40,11 +40,13 @@ ...@@ -40,11 +40,13 @@
<!--输出实体[DICT_CATALOG]数据结构 --> <!--输出实体[DICT_CATALOG]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dict_catalog-51-2"> <changeSet author="a_A_5d9d78509" id="tab-dict_catalog-62-2">
<createTable tableName="IBZDICTCATALOG"> <createTable tableName="IBZDICTCATALOG">
<column name="CID" remarks="" type="VARCHAR(100)"> <column name="CID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DICT_CATALOG_CID"/> <constraints primaryKey="true" primaryKeyName="PK_DICT_CATALOG_CID"/>
</column> </column>
<column name="CCODE" remarks="" type="VARCHAR(100)">
</column>
<column name="CNAME" remarks="" type="VARCHAR(100)"> <column name="CNAME" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="CGROUP" remarks="" type="VARCHAR(100)"> <column name="CGROUP" remarks="" type="VARCHAR(100)">
...@@ -59,7 +61,7 @@ ...@@ -59,7 +61,7 @@
</changeSet> </changeSet>
<!--输出实体[DICT_OPTION]外键关系 --> <!--输出实体[DICT_OPTION]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-dict_option-85-3"> <changeSet author="a_A_5d9d78509" id="fk-dict_option-87-3">
<addForeignKeyConstraint baseColumnNames="CID" baseTableName="IBZDICTOPTION" constraintName="DER1N_DICT_OPTION_DICT_CATALOG" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CID" referencedTableName="IBZDICTCATALOG" validate="true"/> <addForeignKeyConstraint baseColumnNames="CID" baseTableName="IBZDICTOPTION" constraintName="DER1N_DICT_OPTION_DICT_CATALOG" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CID" referencedTableName="IBZDICTCATALOG" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[DICT_CATALOG]外键关系 --> <!--输出实体[DICT_CATALOG]外键关系 -->
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="DictCatalogResultMap" databaseId="mysql"> <select id="selectById" resultMap="DictCatalogResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1 ) t1 where cid=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`CCODE`, t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1 ) t1 where cid=#{id}]]>
</select> </select>
<select id="selectById" resultMap="DictCatalogResultMap" databaseId="oracle"> <select id="selectById" resultMap="DictCatalogResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CGROUP, t1.CID, t1.CNAME, t1.ENABLE, t1.MEMO, t1.UPDATEDATE FROM IBZDICTCATALOG t1 ) t1 where cid=#{id}]]> <![CDATA[select t1.* from (SELECT t1.CGROUP, t1.CID, t1.CNAME, t1.ENABLE, t1.MEMO, t1.UPDATEDATE FROM IBZDICTCATALOG t1 ) t1 where cid=#{id}]]>
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="DictCatalogResultMap" type="cn.ibizlab.core.dict.domain.DictCatalog" autoMapping="true"> <resultMap id="DictCatalogResultMap" type="cn.ibizlab.core.dict.domain.DictCatalog" autoMapping="true">
<id property="id" column="cid" /><!--主键字段映射--> <id property="id" column="cid" /><!--主键字段映射-->
<result property="code" column="ccode" />
<result property="name" column="cname" /> <result property="name" column="cname" />
<result property="group" column="cgroup" /> <result property="group" column="cgroup" />
...@@ -35,7 +36,7 @@ ...@@ -35,7 +36,7 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1 <![CDATA[ SELECT t1.`CCODE`, t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1
WHERE t1.ENABLE = 1 WHERE t1.ENABLE = 1
]]> ]]>
</sql> </sql>
...@@ -53,7 +54,7 @@ ...@@ -53,7 +54,7 @@
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1 <![CDATA[ SELECT t1.`CCODE`, t1.`CGROUP`, t1.`CID`, t1.`CNAME`, t1.`ENABLE`, t1.`MEMO`, t1.`UPDATEDATE` FROM `IBZDICTCATALOG` t1
WHERE t1.ENABLE = 1 WHERE t1.ENABLE = 1
]]> ]]>
</sql> </sql>
......
...@@ -31,6 +31,14 @@ public class DictCatalogDTO extends DTOBase implements Serializable { ...@@ -31,6 +31,14 @@ public class DictCatalogDTO extends DTOBase implements Serializable {
@JsonProperty("id") @JsonProperty("id")
private String id; private String id;
/**
* 属性 [CCODE]
*
*/
@JSONField(name = "code")
@JsonProperty("code")
private String code;
/** /**
* 属性 [CNAME] * 属性 [CNAME]
* *
...@@ -73,6 +81,14 @@ public class DictCatalogDTO extends DTOBase implements Serializable { ...@@ -73,6 +81,14 @@ public class DictCatalogDTO extends DTOBase implements Serializable {
private Timestamp updatedate; private Timestamp updatedate;
/**
* 设置 [CCODE]
*/
public void setCode(String code){
this.code = code ;
this.modify("ccode",code);
}
/** /**
* 设置 [CNAME] * 设置 [CNAME]
*/ */
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册