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

tony001 发布系统代码 [后台服务,演示应用]

上级 2ed30499
...@@ -318,6 +318,7 @@ function getAppLocale(){ ...@@ -318,6 +318,7 @@ function getAppLocale(){
menuitem69: commonLogic.appcommonhandle("Workflow",null), menuitem69: commonLogic.appcommonhandle("Workflow",null),
menuitem30: commonLogic.appcommonhandle("Workflow Dynamic Navigation View",null), menuitem30: commonLogic.appcommonhandle("Workflow Dynamic Navigation View",null),
menuitem31: commonLogic.appcommonhandle("Workflow Start",null), menuitem31: commonLogic.appcommonhandle("Workflow Start",null),
menuitem21: commonLogic.appcommonhandle("工作流动态操作视图",null),
menuitem11: commonLogic.appcommonhandle("Other Views",null), menuitem11: commonLogic.appcommonhandle("Other Views",null),
menuitem98: commonLogic.appcommonhandle("Custom View",null), menuitem98: commonLogic.appcommonhandle("Custom View",null),
menuitem153: commonLogic.appcommonhandle("Logic",null), menuitem153: commonLogic.appcommonhandle("Logic",null),
......
...@@ -318,6 +318,7 @@ function getAppLocale(){ ...@@ -318,6 +318,7 @@ function getAppLocale(){
menuitem69: commonLogic.appcommonhandle("工作流",null), menuitem69: commonLogic.appcommonhandle("工作流",null),
menuitem30: commonLogic.appcommonhandle("工作流动态导航视图",null), menuitem30: commonLogic.appcommonhandle("工作流动态导航视图",null),
menuitem31: commonLogic.appcommonhandle("工作流启动",null), menuitem31: commonLogic.appcommonhandle("工作流启动",null),
menuitem21: commonLogic.appcommonhandle("工作流动态操作视图",null),
menuitem11: commonLogic.appcommonhandle("其他视图",null), menuitem11: commonLogic.appcommonhandle("其他视图",null),
menuitem98: commonLogic.appcommonhandle("自定义视图",null), menuitem98: commonLogic.appcommonhandle("自定义视图",null),
menuitem153: commonLogic.appcommonhandle("逻辑",null), menuitem153: commonLogic.appcommonhandle("逻辑",null),
......
...@@ -107,7 +107,7 @@ function getLocaleResourceBase(){ ...@@ -107,7 +107,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("表格值规则",null), title: commonLogic.appcommonhandle("表格值规则",null),
}, },
usr2meditview9: { usr2meditview9: {
caption: commonLogic.appcommonhandle("实体多表单编辑视图",null), caption: commonLogic.appcommonhandle("Multi Form (top page)",null),
title: commonLogic.appcommonhandle("实体多表单编辑视图",null), title: commonLogic.appcommonhandle("实体多表单编辑视图",null),
}, },
meditview9: { meditview9: {
...@@ -179,7 +179,7 @@ function getLocaleResourceBase(){ ...@@ -179,7 +179,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("图书选择树视图",null), title: commonLogic.appcommonhandle("图书选择树视图",null),
}, },
roweditgridview: { roweditgridview: {
caption: commonLogic.appcommonhandle("表格行编辑",null), caption: commonLogic.appcommonhandle("TableRowEditing",null),
title: commonLogic.appcommonhandle("表格行编辑",null), title: commonLogic.appcommonhandle("表格行编辑",null),
}, },
usr6gridview: { usr6gridview: {
...@@ -259,7 +259,7 @@ function getLocaleResourceBase(){ ...@@ -259,7 +259,7 @@ function getLocaleResourceBase(){
title: commonLogic.appcommonhandle("图书编辑视图",null), title: commonLogic.appcommonhandle("图书编辑视图",null),
}, },
internalfuncgridview: { internalfuncgridview: {
caption: commonLogic.appcommonhandle("表格内置功能",null), caption: commonLogic.appcommonhandle("Built In Features",null),
title: commonLogic.appcommonhandle("表格内置功能",null), title: commonLogic.appcommonhandle("表格内置功能",null),
}, },
newdefaultvaluegridview: { newdefaultvaluegridview: {
......
...@@ -9,8 +9,7 @@ function getLocaleResourceBase(){ ...@@ -9,8 +9,7 @@ function getLocaleResourceBase(){
ibiztaskteamid: commonLogic.appcommonhandle("任务团队标识",null), ibiztaskteamid: commonLogic.appcommonhandle("任务团队标识",null),
createdate: commonLogic.appcommonhandle("建立时间",null), createdate: commonLogic.appcommonhandle("建立时间",null),
updatedate: commonLogic.appcommonhandle("更新时间",null), updatedate: commonLogic.appcommonhandle("更新时间",null),
root: commonLogic.appcommonhandle("任务ID",null), root: commonLogic.appcommonhandle("任务标识",null),
id: commonLogic.appcommonhandle("任务标识",null),
}, },
}; };
return data; return data;
......
...@@ -9,8 +9,7 @@ function getLocaleResourceBase(){ ...@@ -9,8 +9,7 @@ function getLocaleResourceBase(){
ibiztaskteamid: commonLogic.appcommonhandle("任务团队标识",null), ibiztaskteamid: commonLogic.appcommonhandle("任务团队标识",null),
createdate: commonLogic.appcommonhandle("建立时间",null), createdate: commonLogic.appcommonhandle("建立时间",null),
updatedate: commonLogic.appcommonhandle("更新时间",null), updatedate: commonLogic.appcommonhandle("更新时间",null),
root: commonLogic.appcommonhandle("任务ID",null), root: commonLogic.appcommonhandle("任务标识",null),
id: commonLogic.appcommonhandle("任务标识",null),
}, },
}; };
return data; return data;
......
...@@ -2429,6 +2429,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => { ...@@ -2429,6 +2429,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '', textcls: '',
appfunctag: 'AppFunc86', appfunctag: 'AppFunc86',
resourcetag: '', resourcetag: '',
},
{
id: 'FAB29C75-0166-409B-89AF-1221096BFF37',
name: 'menuitem21',
text: '工作流动态操作视图',
type: 'MENUITEM',
counterid: '',
tooltip: '工作流动态操作视图',
expanded: false,
separator: false,
hidden: true,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc94',
resourcetag: '',
}, },
], ],
}, },
......
...@@ -561,8 +561,8 @@ export default class IBIZSample0021WFDynaActionViewBase extends Vue { ...@@ -561,8 +561,8 @@ export default class IBIZSample0021WFDynaActionViewBase extends Vue {
public closeView(args: any[]): void { public closeView(args: any[]): void {
let _view: any = this; let _view: any = this;
if (_view.viewdata) { if (_view.viewdata) {
_view.$emit('viewdataschange', [args]); _view.$emit('viewdataschange', Array.isArray(args)?args:[args]);
_view.$emit('close', [args]); _view.$emit('close', Array.isArray(args)?args:[args]);
} else if (_view.$tabPageExp) { } else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath); _view.$tabPageExp.onClose(_view.$route.fullPath);
} }
......
export const PageComponents = { export const PageComponents = {
install(Vue: any, opt: any) { install(Vue: any, opt: any) {
Vue.component('ibizsample0001-sf6-edit-view', () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue')); Vue.component('ibizsample0021-wfdyna-action-view', () => import('@pages/sample/ibizsample0021-wfdyna-action-view/ibizsample0021-wfdyna-action-view.vue'));
Vue.component('ibizsample0001-sf6-edit-view', () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'));
Vue.component('ibizbookusr2-edit-view', () => import('@pages/sample/ibizbookusr2-edit-view/ibizbookusr2-edit-view.vue')); Vue.component('ibizbookusr2-edit-view', () => import('@pages/sample/ibizbookusr2-edit-view/ibizbookusr2-edit-view.vue'));
Vue.component('ibizcustomer-usr2-grid-view', () => import('@pages/sample/ibizcustomer-usr2-grid-view/ibizcustomer-usr2-grid-view.vue')); Vue.component('ibizcustomer-usr2-grid-view', () => import('@pages/sample/ibizcustomer-usr2-grid-view/ibizcustomer-usr2-grid-view.vue'));
Vue.component('ibizorder-detail-sedit-view9', () => import('@pages/sample/ibizorder-detail-sedit-view9/ibizorder-detail-sedit-view9.vue')); Vue.component('ibizorder-detail-sedit-view9', () => import('@pages/sample/ibizorder-detail-sedit-view9/ibizorder-detail-sedit-view9.vue'));
......
...@@ -35,6 +35,20 @@ const router = new Router({ ...@@ -35,6 +35,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/index/index.vue'), component: () => import('@pages/sample/index/index.vue'),
children: [ children: [
{
path: 'ibizsample0021s/:ibizsample0021?/wfdynaactionview/:wfdynaactionview?',
meta: {
caption: 'entities.ibizsample0021.views.wfdynaactionview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizsample0021s', parameterName: 'ibizsample0021' },
{ pathName: 'wfdynaactionview', parameterName: 'wfdynaactionview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0021-wfdyna-action-view/ibizsample0021-wfdyna-action-view.vue'),
},
{ {
path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?', path: 'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf6editview/:sf6editview?',
meta: { meta: {
...@@ -5043,6 +5057,19 @@ const router = new Router({ ...@@ -5043,6 +5057,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizuniproduct-pickup-view/ibizuniproduct-pickup-view.vue'), component: () => import('@pages/sample/ibizuniproduct-pickup-view/ibizuniproduct-pickup-view.vue'),
}, },
{
path: '/ibizsample0021s/:ibizsample0021?/wfdynaactionview/:wfdynaactionview?',
meta: {
caption: 'entities.ibizsample0021.views.wfdynaactionview.caption',
info:'',
parameters: [
{ pathName: 'ibizsample0021s', parameterName: 'ibizsample0021' },
{ pathName: 'wfdynaactionview', parameterName: 'wfdynaactionview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizsample0021-wfdyna-action-view/ibizsample0021-wfdyna-action-view.vue'),
},
{ {
path: '/ibizbooks/:ibizbook?/groupbycodelistlistview/:groupbycodelistlistview?', path: '/ibizbooks/:ibizbook?/groupbycodelistlistview/:groupbycodelistlistview?',
meta: { meta: {
......
...@@ -193,6 +193,7 @@ export const viewstate: any = { ...@@ -193,6 +193,7 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'edc3db407c73443fffe605bd57831291',
'b09ceb3081717c0ed4fe19f9986598a0', 'b09ceb3081717c0ed4fe19f9986598a0',
'38e135842f7fa4fb952758a785d5f421', '38e135842f7fa4fb952758a785d5f421',
'e6b66fea4568c66355729271ffc9d59f', 'e6b66fea4568c66355729271ffc9d59f',
...@@ -264,9 +265,9 @@ export const viewstate: any = { ...@@ -264,9 +265,9 @@ export const viewstate: any = {
'7f65e6161c444d29e1f53f1cb76e92de', '7f65e6161c444d29e1f53f1cb76e92de',
'756fecec409c3a955f0cd737259d27c7', '756fecec409c3a955f0cd737259d27c7',
'490f607f17e7cc8ceccc77f2d0b9a70d', '490f607f17e7cc8ceccc77f2d0b9a70d',
'ce961e4db11b6cb36fcb604e4a4948a3',
'17c2991a0bd88cfd2bd6f8651537450b', '17c2991a0bd88cfd2bd6f8651537450b',
'13ed6c02918e612bac45715a6f300f2f', '13ed6c02918e612bac45715a6f300f2f',
'ce961e4db11b6cb36fcb604e4a4948a3',
'9c8e1b12e5e55164c2ec0e5617e1574b', '9c8e1b12e5e55164c2ec0e5617e1574b',
'3077eef0d4b96e220a02f795ffb545fc', '3077eef0d4b96e220a02f795ffb545fc',
'e9b54ef29b192ecd2da05ff9570eb4d5', 'e9b54ef29b192ecd2da05ff9570eb4d5',
...@@ -1744,6 +1745,15 @@ export const viewstate: any = { ...@@ -1744,6 +1745,15 @@ export const viewstate: any = {
'80c9ae9ed04e7107ed9fc93734a447d1', '80c9ae9ed04e7107ed9fc93734a447d1',
], ],
}, },
{
viewtag: 'edc3db407c73443fffe605bd57831291',
viewmodule: 'Sample',
viewname: 'IBIZSample0021WFDynaActionView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: 'edca8ee67304eb78c02bbfb9e4cb11bb', viewtag: 'edca8ee67304eb78c02bbfb9e4cb11bb',
viewmodule: 'Sample', viewmodule: 'Sample',
......
...@@ -608,6 +608,9 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -608,6 +608,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc51': case 'AppFunc51':
this.clickAppFunc51(item); this.clickAppFunc51(item);
return; return;
case 'AppFunc94':
this.clickAppFunc94(item);
return;
case 'AppFunc26': case 'AppFunc26':
this.clickAppFunc26(item); this.clickAppFunc26(item);
return; return;
...@@ -785,15 +788,15 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -785,15 +788,15 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc79': case 'AppFunc79':
this.clickAppFunc79(item); this.clickAppFunc79(item);
return; return;
case 'AppFunc92':
this.clickAppFunc92(item);
return;
case 'AppFunc36': case 'AppFunc36':
this.clickAppFunc36(item); this.clickAppFunc36(item);
return; return;
case 'Auto320': case 'Auto320':
this.clickAuto320(item); this.clickAuto320(item);
return; return;
case 'AppFunc92':
this.clickAppFunc92(item);
return;
case 'Auto155': case 'Auto155':
this.clickAuto155(item); this.clickAuto155(item);
return; return;
...@@ -1047,6 +1050,31 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -1047,6 +1050,31 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}) })
} }
/**
* 工作流动态操作视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc94(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizsample0021s', parameterName: 'ibizsample0021' },
];
const view = {
viewname: 'ibizsample0021-wfdyna-action-view',
title: (this.$t('entities.ibizsample0021.views.wfdynaactionview.title') as any),
height: 0,
width: 0,
};
const appmodal = this.$appmodal.openModal(view, JSON.parse(JSON.stringify(this.context)),viewparam);
appmodal.subscribe((result: any) => {
console.log(result);
});
}
/** /**
* 图书看板视图(代码表分组) * 图书看板视图(代码表分组)
* *
...@@ -2405,18 +2433,18 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -2405,18 +2433,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
} }
/** /**
* 功能名称 * 临时模式
* *
* @param {*} [item={}] * @param {*} [item={}]
* @memberof MainMenu * @memberof MainMenu
*/ */
public clickAppFunc36(item: any = {}) { public clickAppFunc92(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' }, { pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'meditview9', parameterName: 'meditview9' }, { pathName: 'f17editview', parameterName: 'f17editview' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){ if(Object.is(this.$route.fullPath,path)){
...@@ -2428,18 +2456,18 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -2428,18 +2456,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
} }
/** /**
* 饼图 * 功能名称
* *
* @param {*} [item={}] * @param {*} [item={}]
* @memberof MainMenu * @memberof MainMenu
*/ */
public clickAuto320(item: any = {}) { public clickAppFunc36(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' }, { pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'piechartview', parameterName: 'piechartview' }, { pathName: 'meditview9', parameterName: 'meditview9' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){ if(Object.is(this.$route.fullPath,path)){
...@@ -2451,18 +2479,18 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -2451,18 +2479,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
} }
/** /**
* 临时模式 * 饼图
* *
* @param {*} [item={}] * @param {*} [item={}]
* @memberof MainMenu * @memberof MainMenu
*/ */
public clickAppFunc92(item: any = {}) { public clickAuto320(item: any = {}) {
const viewparam: any = {}; const viewparam: any = {};
Object.assign(viewparam, {}); Object.assign(viewparam, {});
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' }, { pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'f17editview', parameterName: 'f17editview' }, { pathName: 'piechartview', parameterName: 'piechartview' },
]; ];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam); const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){ if(Object.is(this.$route.fullPath,path)){
......
...@@ -2565,6 +2565,25 @@ export default class MainMenuModel { ...@@ -2565,6 +2565,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc86', appfunctag: 'AppFunc86',
resourcetag: '', resourcetag: '',
authtag:'Web-MainMenu-menuitem31', authtag:'Web-MainMenu-menuitem31',
},
{
id: 'FAB29C75-0166-409B-89AF-1221096BFF37',
name: 'menuitem21',
text: '工作流动态操作视图',
type: 'MENUITEM',
counterid: '',
tooltip: '工作流动态操作视图',
expanded: false,
separator: false,
hidden: true,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc94',
resourcetag: '',
authtag:'Web-MainMenu-menuitem21',
}, },
], ],
}, },
...@@ -3223,6 +3242,18 @@ export default class MainMenuModel { ...@@ -3223,6 +3242,18 @@ export default class MainMenuModel {
{ pathName: 'wizardiwithstateview', parameterName: 'wizardiwithstateview' }, { pathName: 'wizardiwithstateview', parameterName: 'wizardiwithstateview' },
], ],
}, },
{
appfunctag: 'AppFunc94',
appfuncyype: 'APPVIEW',
openmode: 'POPUPMODAL',
codename: 'ibizsample0021wfdynaactionview',
deResParameters: [],
routepath: '/index/:index?/ibizsample0021s/:ibizsample0021?/wfdynaactionview/:wfdynaactionview?',
parameters: [
{ pathName: 'ibizsample0021s', parameterName: 'ibizsample0021' },
{ pathName: 'wfdynaactionview', parameterName: 'wfdynaactionview' },
],
},
{ {
appfunctag: 'AppFunc26', appfunctag: 'AppFunc26',
appfuncyype: 'APPVIEW', appfuncyype: 'APPVIEW',
...@@ -3931,6 +3962,18 @@ export default class MainMenuModel { ...@@ -3931,6 +3962,18 @@ export default class MainMenuModel {
{ pathName: 'usr9gridview', parameterName: 'usr9gridview' }, { pathName: 'usr9gridview', parameterName: 'usr9gridview' },
], ],
}, },
{
appfunctag: 'AppFunc92',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibizorderf17editview',
deResParameters: [],
routepath: '/index/:index?/ibizorders/:ibizorder?/f17editview/:f17editview?',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'f17editview', parameterName: 'f17editview' },
],
},
{ {
appfunctag: 'AppFunc36', appfunctag: 'AppFunc36',
appfuncyype: 'APPVIEW', appfuncyype: 'APPVIEW',
...@@ -3955,18 +3998,6 @@ export default class MainMenuModel { ...@@ -3955,18 +3998,6 @@ export default class MainMenuModel {
{ pathName: 'piechartview', parameterName: 'piechartview' }, { pathName: 'piechartview', parameterName: 'piechartview' },
], ],
}, },
{
appfunctag: 'AppFunc92',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibizorderf17editview',
deResParameters: [],
routepath: '/index/:index?/ibizorders/:ibizorder?/f17editview/:f17editview?',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'f17editview', parameterName: 'f17editview' },
],
},
{ {
appfunctag: 'Auto155', appfunctag: 'Auto155',
appfuncyype: 'APPVIEW', appfuncyype: 'APPVIEW',
......
...@@ -485,8 +485,10 @@ export default class OperationFormBase extends Vue implements ControlInterface { ...@@ -485,8 +485,10 @@ export default class OperationFormBase extends Vue implements ControlInterface {
* @type {*} * @type {*}
* @memberof OperationFormBase * @memberof OperationFormBase
*/ */
public deRules:any = { public deRules(){
}; return {
}
}
/** /**
* 校验属性值规则 * 校验属性值规则
...@@ -495,7 +497,7 @@ export default class OperationFormBase extends Vue implements ControlInterface { ...@@ -495,7 +497,7 @@ export default class OperationFormBase extends Vue implements ControlInterface {
* @param {{ name: string }} { name } * @param {{ name: string }} { name }
* @memberof OperationFormBase * @memberof OperationFormBase
*/ */
public verifyDeRules(name:string,rule:any = this.deRules,op:string = "AND") :{isPast:boolean,infoMessage:string}{ public verifyDeRules(name:string,rule:any = this.deRules(),op:string = "AND") :{isPast:boolean,infoMessage:string}{
let falg:any = {infoMessage:""}; let falg:any = {infoMessage:""};
if(!rule[name]){ if(!rule[name]){
return falg; return falg;
...@@ -1079,7 +1081,7 @@ export default class OperationFormBase extends Vue implements ControlInterface { ...@@ -1079,7 +1081,7 @@ export default class OperationFormBase extends Vue implements ControlInterface {
*/ */
public afterCreated(){ public afterCreated(){
if(this.isautoload){ if(this.isautoload){
this.autoLoad({srfkey:this.context.documentcenter}); this.autoLoad({srfkey:this.context.ibizsample0021});
} }
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
......
...@@ -93,19 +93,12 @@ public class IBIZTASKTEAM extends EntityMP implements Serializable { ...@@ -93,19 +93,12 @@ public class IBIZTASKTEAM extends EntityMP implements Serializable {
@JsonProperty("updatedate") @JsonProperty("updatedate")
private Timestamp updatedate; private Timestamp updatedate;
/** /**
* 任务ID * 任务标识
*/ */
@TableField(value = "root") @TableField(value = "root")
@JSONField(name = "root") @JSONField(name = "root")
@JsonProperty("root") @JsonProperty("root")
private String root; private String root;
/**
* 任务标识
*/
@TableField(value = "id")
@JSONField(name = "id")
@JsonProperty("id")
private String id;
/** /**
* *
...@@ -126,21 +119,13 @@ public class IBIZTASKTEAM extends EntityMP implements Serializable { ...@@ -126,21 +119,13 @@ public class IBIZTASKTEAM extends EntityMP implements Serializable {
} }
/** /**
* 设置 [任务ID] * 设置 [任务标识]
*/ */
public void setRoot(String root) { public void setRoot(String root) {
this.root = root; this.root = root;
this.modify("root", root); this.modify("root", root);
} }
/**
* 设置 [任务标识]
*/
public void setId(String id) {
this.id = id;
this.modify("id", id);
}
/** /**
* 复制当前对象数据到目标对象(粘贴重置) * 复制当前对象数据到目标对象(粘贴重置)
......
...@@ -34,11 +34,11 @@ public class IBIZTASKTEAMSearchContext extends QueryWrapperContext<IBIZTASKTEAM> ...@@ -34,11 +34,11 @@ public class IBIZTASKTEAMSearchContext extends QueryWrapperContext<IBIZTASKTEAM>
this.getSearchCond().like("ibiztaskteamname", n_ibiztaskteamname_like); this.getSearchCond().like("ibiztaskteamname", n_ibiztaskteamname_like);
} }
} }
private String n_id_eq;//[任务标识] private String n_root_eq;//[任务标识]
public void setN_id_eq(String n_id_eq) { public void setN_root_eq(String n_root_eq) {
this.n_id_eq = n_id_eq; this.n_root_eq = n_root_eq;
if(!ObjectUtils.isEmpty(this.n_id_eq)){ if(!ObjectUtils.isEmpty(this.n_root_eq)){
this.getSearchCond().eq("id", n_id_eq); this.getSearchCond().eq("root", n_root_eq);
} }
} }
......
...@@ -62,6 +62,6 @@ public interface IBIZTASKTEAMMapper extends BaseMapper<IBIZTASKTEAM> { ...@@ -62,6 +62,6 @@ public interface IBIZTASKTEAMMapper extends BaseMapper<IBIZTASKTEAM> {
@Delete("${sql}") @Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param); boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<IBIZTASKTEAM> selectById(@Param("ibiztaskid") Serializable ibiztaskid); List<IBIZTASKTEAM> selectByRoot(@Param("ibiztaskid") Serializable ibiztaskid);
} }
...@@ -37,8 +37,8 @@ public interface IIBIZTASKTEAMService extends IService<IBIZTASKTEAM> { ...@@ -37,8 +37,8 @@ public interface IIBIZTASKTEAMService extends IService<IBIZTASKTEAM> {
boolean save(IBIZTASKTEAM et); boolean save(IBIZTASKTEAM et);
void saveBatch(List<IBIZTASKTEAM> list); void saveBatch(List<IBIZTASKTEAM> list);
Page<IBIZTASKTEAM> searchDefault(IBIZTASKTEAMSearchContext context); Page<IBIZTASKTEAM> searchDefault(IBIZTASKTEAMSearchContext context);
List<IBIZTASKTEAM> selectById(String ibiztaskid); List<IBIZTASKTEAM> selectByRoot(String ibiztaskid);
void removeById(String ibiztaskid); void removeByRoot(String ibiztaskid);
/** /**
*自定义查询SQL *自定义查询SQL
* @param sql select * from table where id =#{et.param} * @param sql select * from table where id =#{et.param}
......
...@@ -155,12 +155,12 @@ public class IBIZTASKTEAMServiceImpl extends ServiceImpl<IBIZTASKTEAMMapper, IBI ...@@ -155,12 +155,12 @@ public class IBIZTASKTEAMServiceImpl extends ServiceImpl<IBIZTASKTEAMMapper, IBI
@Override @Override
public List<IBIZTASKTEAM> selectById(String ibiztaskid) { public List<IBIZTASKTEAM> selectByRoot(String ibiztaskid) {
return baseMapper.selectById(ibiztaskid); return baseMapper.selectByRoot(ibiztaskid);
} }
@Override @Override
public void removeById(String ibiztaskid) { public void removeByRoot(String ibiztaskid) {
this.remove(new QueryWrapper<IBIZTASKTEAM>().eq("id",ibiztaskid)); this.remove(new QueryWrapper<IBIZTASKTEAM>().eq("root",ibiztaskid));
} }
......
...@@ -1301,8 +1301,6 @@ ...@@ -1301,8 +1301,6 @@
</column> </column>
<column name="ROOT" remarks="" type="VARCHAR(100)"> <column name="ROOT" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="ID" remarks="" type="VARCHAR(100)">
</column>
</createTable> </createTable>
</changeSet> </changeSet>
...@@ -1506,7 +1504,7 @@ ...@@ -1506,7 +1504,7 @@
<!--输出实体[IBIZTASK]外键关系 --> <!--输出实体[IBIZTASK]外键关系 -->
<!--输出实体[IBIZTASKTEAM]外键关系 --> <!--输出实体[IBIZTASKTEAM]外键关系 -->
<changeSet author="a_LAB01_df847bdfd" id="fk-ibiztaskteam-8-51"> <changeSet author="a_LAB01_df847bdfd" id="fk-ibiztaskteam-8-51">
<addForeignKeyConstraint baseColumnNames="ID" baseTableName="T_IBIZTASKTEAM" constraintName="DER1N_IBIZTASKTEAM_IBIZTASK_ID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="IBIZTASKID" referencedTableName="T_IBIZTASK" validate="true"/> <addForeignKeyConstraint baseColumnNames="ROOT" baseTableName="T_IBIZTASKTEAM" constraintName="DER1N_IBIZTASKTEAM_IBIZTASK_RO" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="IBIZTASKID" referencedTableName="T_IBIZTASK" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[IBIZUNIPRODUCT]外键关系 --> <!--输出实体[IBIZUNIPRODUCT]外键关系 -->
<!--输出实体[IBIZVIEWMSG]外键关系 --> <!--输出实体[IBIZVIEWMSG]外键关系 -->
......
...@@ -5,25 +5,25 @@ ...@@ -5,25 +5,25 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="IBIZTASKTEAMResultMap" databaseId="mysql"> <select id="selectById" resultMap="IBIZTASKTEAMResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ID`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1 ) t1 where ibiztaskteamid=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1 ) t1 where ibiztaskteamid=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="IBIZTASKTEAMResultMap" type="cn.ibizlab.core.sample.domain.IBIZTASKTEAM" autoMapping="true"> <resultMap id="IBIZTASKTEAMResultMap" type="cn.ibizlab.core.sample.domain.IBIZTASKTEAM" autoMapping="true">
<id property="ibiztaskteamid" column="ibiztaskteamid" /><!--主键字段映射--> <id property="ibiztaskteamid" column="ibiztaskteamid" /><!--主键字段映射-->
<result property="id" column="id" /> <result property="root" column="root" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 --> <!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="taskteam" javaType="cn.ibizlab.core.sample.domain.IBIZTASK" column="id" select="cn.ibizlab.core.sample.mapper.IBIZTASKMapper.selectById" fetchType="lazy"></association> <association property="taskteam" javaType="cn.ibizlab.core.sample.domain.IBIZTASK" column="root" select="cn.ibizlab.core.sample.mapper.IBIZTASKMapper.selectById" fetchType="lazy"></association>
</resultMap> </resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_IBIZTASKTEAM_IBIZTASK_ID] --> <!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_IBIZTASKTEAM_IBIZTASK_ROOT] -->
<select id="selectById" resultMap="IBIZTASKTEAMResultMap"> <select id="selectByRoot" resultMap="IBIZTASKTEAMResultMap">
select t1.* from ( select t1.* from (
<include refid="Default" /> <include refid="Default" />
) t1 ) t1
where id=#{ibiztaskid} where root=#{ibiztaskid}
</select> </select>
<!--数据集合[Default]--> <!--数据集合[Default]-->
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ID`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1 <![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ID`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1 <![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1
]]> ]]>
</sql> </sql>
</mapper> </mapper>
......
...@@ -8686,7 +8686,7 @@ ...@@ -8686,7 +8686,7 @@
} }
], ],
"subEntitys":[ "subEntitys":[
{"name":"DER1N_IBIZTASKTEAM_IBIZTASK_ID", {"name":"DER1N_IBIZTASKTEAM_IBIZTASK_ROOT",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"TaskTeam", "code_name":"TaskTeam",
"entity_name":"IBIZTASKTEAM", "entity_name":"IBIZTASKTEAM",
...@@ -8800,25 +8800,11 @@ ...@@ -8800,25 +8800,11 @@
{ {
"fieldname":"ROOT" , "fieldname":"ROOT" ,
"codename":"Root", "codename":"Root",
"field_logic_name":"任务ID",
"entity_name":"IBIZTASKTEAM",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"ID" ,
"codename":"Id",
"field_logic_name":"任务标识", "field_logic_name":"任务标识",
"entity_name":"IBIZTASKTEAM", "entity_name":"IBIZTASKTEAM",
"ref_de":"IBIZTASK", "ref_de":"IBIZTASK",
"ref_field_name":"IBIZTASKID", "ref_field_name":"IBIZTASKID",
"relation_name":"DER1N_IBIZTASKTEAM_IBIZTASK_ID", "relation_name":"DER1N_IBIZTASKTEAM_IBIZTASK_ROOT",
"relation_codename":"TaskTeam", "relation_codename":"TaskTeam",
"field_type":"PICKUP", "field_type":"PICKUP",
"nullable":1, "nullable":1,
...@@ -8833,7 +8819,7 @@ ...@@ -8833,7 +8819,7 @@
"subEntitys":[ "subEntitys":[
], ],
"parentEntitys":[ "parentEntitys":[
{"name":"DER1N_IBIZTASKTEAM_IBIZTASK_ID", {"name":"DER1N_IBIZTASKTEAM_IBIZTASK_ROOT",
"relation_type":"DER1N", "relation_type":"DER1N",
"code_name":"TaskTeam", "code_name":"TaskTeam",
"entity_name":"IBIZTASKTEAM", "entity_name":"IBIZTASKTEAM",
......
...@@ -92,15 +92,6 @@ public class IBIZTASKTEAMDTO extends DTOBase implements Serializable { ...@@ -92,15 +92,6 @@ public class IBIZTASKTEAMDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String root; private String root;
/**
* 属性 [ID]
*
*/
@JSONField(name = "id")
@JsonProperty("id")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String id;
/** /**
* 设置 [IBIZTASKTEAMNAME] * 设置 [IBIZTASKTEAMNAME]
...@@ -118,14 +109,6 @@ public class IBIZTASKTEAMDTO extends DTOBase implements Serializable { ...@@ -118,14 +109,6 @@ public class IBIZTASKTEAMDTO extends DTOBase implements Serializable {
this.modify("root",root); this.modify("root",root);
} }
/**
* 设置 [ID]
*/
public void setId(String id){
this.id = id ;
this.modify("id",id);
}
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册