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

ibiz4j 发布系统代码

上级 a869f757
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
} }
>.ivu-card-extra { >.ivu-card-extra {
.item-extract-mode { .item-extract-mode {
display: flex;
.item { .item {
margin-left: 12px; margin-left: 12px;
} }
......
...@@ -6,6 +6,7 @@ export default { ...@@ -6,6 +6,7 @@ export default {
modelversion: '模型版本', modelversion: '模型版本',
modelenable: '模型是否启用', modelenable: '模型是否启用',
pssystemid: '系统标识', pssystemid: '系统标识',
taskprocessdefinitionkey: 'TaskDefinitionKey',
md5check: '校验', md5check: '校验',
bpmnfile: 'BPMN', bpmnfile: 'BPMN',
deploykey: 'DeployKey', deploykey: 'DeployKey',
......
...@@ -5,6 +5,7 @@ export default { ...@@ -5,6 +5,7 @@ export default {
modelversion: '模型版本', modelversion: '模型版本',
modelenable: '模型是否启用', modelenable: '模型是否启用',
pssystemid: '系统标识', pssystemid: '系统标识',
taskprocessdefinitionkey: 'TaskDefinitionKey',
md5check: '校验', md5check: '校验',
bpmnfile: 'BPMN', bpmnfile: 'BPMN',
deploykey: 'DeployKey', deploykey: 'DeployKey',
......
...@@ -562,46 +562,46 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -562,46 +562,46 @@ export default class WFGroupEditViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem7')) { if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click($event, '', $event2); this.toolbar_tbitem7_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem9')) { if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click($event, '', $event2); this.toolbar_tbitem9_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem10')) { if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click($event, '', $event2); this.toolbar_tbitem10_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem12')) { if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click($event, '', $event2); this.toolbar_tbitem12_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem14')) { if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click($event, '', $event2); this.toolbar_tbitem14_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem15')) { if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click($event, '', $event2); this.toolbar_tbitem15_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem26')) { if (Object.is($event.tag, 'tbitem26')) {
this.toolbar_tbitem26_click($event, '', $event2); this.toolbar_tbitem26_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem22')) { if (Object.is($event.tag, 'tbitem22')) {
this.toolbar_tbitem22_click($event, '', $event2); this.toolbar_tbitem22_click(null, '', $event2);
} }
} }
...@@ -665,6 +665,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -665,6 +665,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Save(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -691,6 +694,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -691,6 +694,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -717,6 +723,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -717,6 +723,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -743,6 +752,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -743,6 +752,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -769,6 +781,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -769,6 +781,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -795,6 +810,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -795,6 +810,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -821,6 +839,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -821,6 +839,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -847,6 +868,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -847,6 +868,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -873,6 +897,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -873,6 +897,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -899,6 +926,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -899,6 +926,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -925,6 +955,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -925,6 +955,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -951,6 +984,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -951,6 +984,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -977,6 +1013,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -977,6 +1013,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -1003,6 +1042,9 @@ export default class WFGroupEditViewBase extends Vue { ...@@ -1003,6 +1042,9 @@ export default class WFGroupEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class='view-top-messages'> <div class='view-top-messages'>
</div> </div>
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="请输入组名称" /> <i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="组名称" />
<div class='pull-right'> <div class='pull-right'>
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
...@@ -605,43 +605,43 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -605,43 +605,43 @@ export default class WFGroupGridViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click($event, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click($event, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem13')) { if (Object.is($event.tag, 'tbitem13')) {
this.toolbar_tbitem13_click($event, '', $event2); this.toolbar_tbitem13_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem11')) { if (Object.is($event.tag, 'tbitem11')) {
this.toolbar_tbitem11_click($event, '', $event2); this.toolbar_tbitem11_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem21')) { if (Object.is($event.tag, 'tbitem21')) {
this.toolbar_tbitem21_click($event, '', $event2); this.toolbar_tbitem21_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem19')) { if (Object.is($event.tag, 'tbitem19')) {
this.toolbar_tbitem19_click($event, '', $event2); this.toolbar_tbitem19_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem18')) { if (Object.is($event.tag, 'tbitem18')) {
this.toolbar_tbitem18_click($event, '', $event2); this.toolbar_tbitem18_click(null, '', $event2);
} }
} }
...@@ -765,6 +765,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -765,6 +765,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -791,6 +794,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -791,6 +794,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -817,6 +823,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -817,6 +823,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.View(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.View(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -843,6 +852,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -843,6 +852,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -869,6 +881,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -869,6 +881,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -895,6 +910,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -895,6 +910,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -921,6 +939,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -921,6 +939,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -947,6 +968,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -947,6 +968,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -973,6 +997,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -973,6 +997,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -999,6 +1026,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -999,6 +1026,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -1025,6 +1055,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -1025,6 +1055,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Import(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Import(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -1051,6 +1084,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -1051,6 +1084,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
...@@ -1077,6 +1113,9 @@ export default class WFGroupGridViewBase extends Vue { ...@@ -1077,6 +1113,9 @@ export default class WFGroupGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFGroup"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFGroup");
} }
......
...@@ -562,46 +562,46 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -562,46 +562,46 @@ export default class WFMemberEditViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem7')) { if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click($event, '', $event2); this.toolbar_tbitem7_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem9')) { if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click($event, '', $event2); this.toolbar_tbitem9_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem10')) { if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click($event, '', $event2); this.toolbar_tbitem10_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem12')) { if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click($event, '', $event2); this.toolbar_tbitem12_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem14')) { if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click($event, '', $event2); this.toolbar_tbitem14_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem15')) { if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click($event, '', $event2); this.toolbar_tbitem15_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem26')) { if (Object.is($event.tag, 'tbitem26')) {
this.toolbar_tbitem26_click($event, '', $event2); this.toolbar_tbitem26_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem22')) { if (Object.is($event.tag, 'tbitem22')) {
this.toolbar_tbitem22_click($event, '', $event2); this.toolbar_tbitem22_click(null, '', $event2);
} }
} }
...@@ -665,6 +665,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -665,6 +665,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Save(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -691,6 +694,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -691,6 +694,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -717,6 +723,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -717,6 +723,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -743,6 +752,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -743,6 +752,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -769,6 +781,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -769,6 +781,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -795,6 +810,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -795,6 +810,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -821,6 +839,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -821,6 +839,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -847,6 +868,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -847,6 +868,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -873,6 +897,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -873,6 +897,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -899,6 +926,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -899,6 +926,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -925,6 +955,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -925,6 +955,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -951,6 +984,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -951,6 +984,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -977,6 +1013,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -977,6 +1013,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -1003,6 +1042,9 @@ export default class WFMemberEditViewBase extends Vue { ...@@ -1003,6 +1042,9 @@ export default class WFMemberEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class='view-top-messages'> <div class='view-top-messages'>
</div> </div>
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="请输入组成员名称" /> <i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="组成员名称" />
<div class='pull-right'> <div class='pull-right'>
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
...@@ -605,43 +605,43 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -605,43 +605,43 @@ export default class WFMemberGridViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click($event, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click($event, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem13')) { if (Object.is($event.tag, 'tbitem13')) {
this.toolbar_tbitem13_click($event, '', $event2); this.toolbar_tbitem13_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem11')) { if (Object.is($event.tag, 'tbitem11')) {
this.toolbar_tbitem11_click($event, '', $event2); this.toolbar_tbitem11_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem21')) { if (Object.is($event.tag, 'tbitem21')) {
this.toolbar_tbitem21_click($event, '', $event2); this.toolbar_tbitem21_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem19')) { if (Object.is($event.tag, 'tbitem19')) {
this.toolbar_tbitem19_click($event, '', $event2); this.toolbar_tbitem19_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem18')) { if (Object.is($event.tag, 'tbitem18')) {
this.toolbar_tbitem18_click($event, '', $event2); this.toolbar_tbitem18_click(null, '', $event2);
} }
} }
...@@ -765,6 +765,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -765,6 +765,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -791,6 +794,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -791,6 +794,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -817,6 +823,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -817,6 +823,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.View(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.View(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -843,6 +852,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -843,6 +852,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -869,6 +881,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -869,6 +881,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -895,6 +910,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -895,6 +910,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -921,6 +939,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -921,6 +939,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -947,6 +968,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -947,6 +968,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -973,6 +997,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -973,6 +997,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -999,6 +1026,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -999,6 +1026,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -1025,6 +1055,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -1025,6 +1055,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Import(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Import(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -1051,6 +1084,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -1051,6 +1084,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
...@@ -1077,6 +1113,9 @@ export default class WFMemberGridViewBase extends Vue { ...@@ -1077,6 +1113,9 @@ export default class WFMemberGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFMember"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFMember");
} }
......
...@@ -562,46 +562,46 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -562,46 +562,46 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem7')) { if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click($event, '', $event2); this.toolbar_tbitem7_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem9')) { if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click($event, '', $event2); this.toolbar_tbitem9_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem10')) { if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click($event, '', $event2); this.toolbar_tbitem10_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem12')) { if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click($event, '', $event2); this.toolbar_tbitem12_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem14')) { if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click($event, '', $event2); this.toolbar_tbitem14_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem15')) { if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click($event, '', $event2); this.toolbar_tbitem15_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem26')) { if (Object.is($event.tag, 'tbitem26')) {
this.toolbar_tbitem26_click($event, '', $event2); this.toolbar_tbitem26_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem22')) { if (Object.is($event.tag, 'tbitem22')) {
this.toolbar_tbitem22_click($event, '', $event2); this.toolbar_tbitem22_click(null, '', $event2);
} }
} }
...@@ -665,6 +665,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -665,6 +665,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Save(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -691,6 +694,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -691,6 +694,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -717,6 +723,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -717,6 +723,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -743,6 +752,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -743,6 +752,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -769,6 +781,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -769,6 +781,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -795,6 +810,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -795,6 +810,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -821,6 +839,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -821,6 +839,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -847,6 +868,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -847,6 +868,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -873,6 +897,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -873,6 +897,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -899,6 +926,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -899,6 +926,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -925,6 +955,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -925,6 +955,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -951,6 +984,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -951,6 +984,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -977,6 +1013,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -977,6 +1013,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -1003,6 +1042,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue { ...@@ -1003,6 +1042,9 @@ export default class WFProcessDefinitionEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class='view-top-messages'> <div class='view-top-messages'>
</div> </div>
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="请输入流程定义名称" /> <i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="流程定义名称" />
<div class='pull-right'> <div class='pull-right'>
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
...@@ -605,43 +605,43 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -605,43 +605,43 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click($event, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click($event, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem13')) { if (Object.is($event.tag, 'tbitem13')) {
this.toolbar_tbitem13_click($event, '', $event2); this.toolbar_tbitem13_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem11')) { if (Object.is($event.tag, 'tbitem11')) {
this.toolbar_tbitem11_click($event, '', $event2); this.toolbar_tbitem11_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem21')) { if (Object.is($event.tag, 'tbitem21')) {
this.toolbar_tbitem21_click($event, '', $event2); this.toolbar_tbitem21_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem19')) { if (Object.is($event.tag, 'tbitem19')) {
this.toolbar_tbitem19_click($event, '', $event2); this.toolbar_tbitem19_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem18')) { if (Object.is($event.tag, 'tbitem18')) {
this.toolbar_tbitem18_click($event, '', $event2); this.toolbar_tbitem18_click(null, '', $event2);
} }
} }
...@@ -765,6 +765,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -765,6 +765,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -791,6 +794,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -791,6 +794,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -817,6 +823,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -817,6 +823,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.View(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.View(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -843,6 +852,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -843,6 +852,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -869,6 +881,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -869,6 +881,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -895,6 +910,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -895,6 +910,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -921,6 +939,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -921,6 +939,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -947,6 +968,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -947,6 +968,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -973,6 +997,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -973,6 +997,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -999,6 +1026,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -999,6 +1026,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -1025,6 +1055,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -1025,6 +1055,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Import(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Import(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -1051,6 +1084,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -1051,6 +1084,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
...@@ -1077,6 +1113,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue { ...@@ -1077,6 +1113,9 @@ export default class WFProcessDefinitionGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFProcessDefinition");
} }
......
...@@ -467,7 +467,7 @@ export default class WFREModelEditViewBase extends Vue { ...@@ -467,7 +467,7 @@ export default class WFREModelEditViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem1')) { if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click($event, '', $event2); this.toolbar_tbitem1_click(null, '', $event2);
} }
} }
...@@ -531,6 +531,9 @@ export default class WFREModelEditViewBase extends Vue { ...@@ -531,6 +531,9 @@ export default class WFREModelEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"WFREModel"); this.Save(datas, contextJO,paramJO, $event, xData,this,"WFREModel");
} }
......
...@@ -562,46 +562,46 @@ export default class WFUserEditViewBase extends Vue { ...@@ -562,46 +562,46 @@ export default class WFUserEditViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem7')) { if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click($event, '', $event2); this.toolbar_tbitem7_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem9')) { if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click($event, '', $event2); this.toolbar_tbitem9_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem10')) { if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click($event, '', $event2); this.toolbar_tbitem10_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem12')) { if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click($event, '', $event2); this.toolbar_tbitem12_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem14')) { if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click($event, '', $event2); this.toolbar_tbitem14_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem15')) { if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click($event, '', $event2); this.toolbar_tbitem15_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem26')) { if (Object.is($event.tag, 'tbitem26')) {
this.toolbar_tbitem26_click($event, '', $event2); this.toolbar_tbitem26_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem22')) { if (Object.is($event.tag, 'tbitem22')) {
this.toolbar_tbitem22_click($event, '', $event2); this.toolbar_tbitem22_click(null, '', $event2);
} }
} }
...@@ -665,6 +665,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -665,6 +665,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Save(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -691,6 +694,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -691,6 +694,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -717,6 +723,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -717,6 +723,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -743,6 +752,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -743,6 +752,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -769,6 +781,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -769,6 +781,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -795,6 +810,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -795,6 +810,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -821,6 +839,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -821,6 +839,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -847,6 +868,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -847,6 +868,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -873,6 +897,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -873,6 +897,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -899,6 +926,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -899,6 +926,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.FirstRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -925,6 +955,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -925,6 +955,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.PrevRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -951,6 +984,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -951,6 +984,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.NextRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -977,6 +1013,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -977,6 +1013,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.LastRecord(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -1003,6 +1042,9 @@ export default class WFUserEditViewBase extends Vue { ...@@ -1003,6 +1042,9 @@ export default class WFUserEditViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class='view-top-messages'> <div class='view-top-messages'>
</div> </div>
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="请输入用户名称" /> <i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="用户名称" />
<div class='pull-right'> <div class='pull-right'>
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600"> <tooltip :transfer="true" :max-width="600">
...@@ -605,43 +605,43 @@ export default class WFUserGridViewBase extends Vue { ...@@ -605,43 +605,43 @@ export default class WFUserGridViewBase extends Vue {
*/ */
public toolbar_click($event: any, $event2?: any) { public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem3')) { if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click($event, '', $event2); this.toolbar_tbitem3_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem4')) { if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click($event, '', $event2); this.toolbar_tbitem4_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem5')) { if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click($event, '', $event2); this.toolbar_tbitem5_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem6')) { if (Object.is($event.tag, 'tbitem6')) {
this.toolbar_tbitem6_click($event, '', $event2); this.toolbar_tbitem6_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem24')) { if (Object.is($event.tag, 'tbitem24')) {
this.toolbar_tbitem24_click($event, '', $event2); this.toolbar_tbitem24_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem25')) { if (Object.is($event.tag, 'tbitem25')) {
this.toolbar_tbitem25_click($event, '', $event2); this.toolbar_tbitem25_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem8')) { if (Object.is($event.tag, 'tbitem8')) {
this.toolbar_tbitem8_click($event, '', $event2); this.toolbar_tbitem8_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem13')) { if (Object.is($event.tag, 'tbitem13')) {
this.toolbar_tbitem13_click($event, '', $event2); this.toolbar_tbitem13_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem11')) { if (Object.is($event.tag, 'tbitem11')) {
this.toolbar_tbitem11_click($event, '', $event2); this.toolbar_tbitem11_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem21')) { if (Object.is($event.tag, 'tbitem21')) {
this.toolbar_tbitem21_click($event, '', $event2); this.toolbar_tbitem21_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem23')) { if (Object.is($event.tag, 'tbitem23')) {
this.toolbar_tbitem23_click($event, '', $event2); this.toolbar_tbitem23_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem19')) { if (Object.is($event.tag, 'tbitem19')) {
this.toolbar_tbitem19_click($event, '', $event2); this.toolbar_tbitem19_click(null, '', $event2);
} }
if (Object.is($event.tag, 'tbitem18')) { if (Object.is($event.tag, 'tbitem18')) {
this.toolbar_tbitem18_click($event, '', $event2); this.toolbar_tbitem18_click(null, '', $event2);
} }
} }
...@@ -765,6 +765,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -765,6 +765,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.New(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -791,6 +794,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -791,6 +794,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Edit(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -817,6 +823,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -817,6 +823,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.View(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.View(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -843,6 +852,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -843,6 +852,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Copy(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -869,6 +881,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -869,6 +881,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.ToggleRowEdit(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -895,6 +910,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -895,6 +910,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.NewRow(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -921,6 +939,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -921,6 +939,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Remove(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -947,6 +968,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -947,6 +968,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -973,6 +997,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -973,6 +997,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Print(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -999,6 +1026,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -999,6 +1026,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.ExportModel(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -1025,6 +1055,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -1025,6 +1055,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Import(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Import(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -1051,6 +1084,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -1051,6 +1084,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.ToggleFilter(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
...@@ -1077,6 +1113,9 @@ export default class WFUserGridViewBase extends Vue { ...@@ -1077,6 +1113,9 @@ export default class WFUserGridViewBase extends Vue {
if (xData.getDatas && xData.getDatas instanceof Function) { if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()]; datas = [...xData.getDatas()];
} }
if(params){
datas = [params];
}
// 界面行为 // 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"WFUser"); this.Help(datas, contextJO,paramJO, $event, xData,this,"WFUser");
} }
......
import { Store } from 'vuex'; import { Store } from 'vuex';
import { Util } from '@/utils/util/util'; import { Util } from '@/utils/util/util';
import CodeListService from "@service/app/codelist-service";
/** /**
* 部件服务基类 * 部件服务基类
...@@ -26,6 +27,14 @@ export default class ControlService { ...@@ -26,6 +27,14 @@ export default class ControlService {
*/ */
public model: any | null = null; public model: any | null = null;
/**
* 代码表服务对象
*
* @type {any}
* @memberof ControlService
*/
public codeListService:any;
/** /**
* 是否为从数据模式 * 是否为从数据模式
* *
...@@ -43,6 +52,7 @@ export default class ControlService { ...@@ -43,6 +52,7 @@ export default class ControlService {
constructor(opts: any = {}) { constructor(opts: any = {}) {
this.$store = opts.$store; this.$store = opts.$store;
this.setTempMode(); this.setTempMode();
this.codeListService = new CodeListService({ $store:opts.$store });
} }
/** /**
...@@ -118,17 +128,19 @@ export default class ControlService { ...@@ -118,17 +128,19 @@ export default class ControlService {
* @param {*} response * @param {*} response
* @memberof ControlService * @memberof ControlService
*/ */
public handleResponse(action: string, response: any,isCreate:boolean = false){ public async handleResponse(action: string, response: any,isCreate:boolean = false){
let result = null; let result = null;
if (!response.data) { if (!response.data) {
return return
} else if (response.data instanceof Array) { }
const handleResult:any = (action: string, response: any,isCreate:boolean,codelistArray?:any) =>{
if (response.data instanceof Array) {
result = []; result = [];
response.data.forEach((item:any) =>{ response.data.forEach((item:any) =>{
result.push(this.handleResponseData(action, item, isCreate)); result.push(this.handleResponseData(action, item, isCreate,codelistArray));
}); });
}else{ }else{
result = this.handleResponseData(action, response.data, isCreate); result = this.handleResponseData(action, response.data, isCreate,codelistArray);
} }
// response状态,头文件 // response状态,头文件
if(response.headers){ if(response.headers){
...@@ -144,6 +156,14 @@ export default class ControlService { ...@@ -144,6 +156,14 @@ export default class ControlService {
} }
response.data = result; response.data = result;
} }
let codelistModel:Array<any> = this.handleCodelist();
if(codelistModel.length >0){
let res:any = await this.getAllCodeList(codelistModel);
handleResult(action, response,isCreate,res);
}else{
handleResult(action, response,isCreate);
}
}
/** /**
* 处理返回数据 * 处理返回数据
...@@ -152,7 +172,7 @@ export default class ControlService { ...@@ -152,7 +172,7 @@ export default class ControlService {
* @param {*} response * @param {*} response
* @memberof ControlService * @memberof ControlService
*/ */
public handleResponseData(action: string, data: any = {},isCreate?:boolean){ public handleResponseData(action: string, data: any = {},isCreate?:boolean,codelistArray?:any){
let model: any = this.getMode(); let model: any = this.getMode();
if (!model && model.getDataItems instanceof Function) { if (!model && model.getDataItems instanceof Function) {
return data; return data;
...@@ -167,10 +187,13 @@ export default class ControlService { ...@@ -167,10 +187,13 @@ export default class ControlService {
if((isCreate === undefined || isCreate === null ) && Object.is(dataitem.dataType, 'GUID') && Object.is(dataitem.name, 'srfkey') && (val && !Object.is(val, ''))){ if((isCreate === undefined || isCreate === null ) && Object.is(dataitem.dataType, 'GUID') && Object.is(dataitem.name, 'srfkey') && (val && !Object.is(val, ''))){
isCreate = true; isCreate = true;
} }
// if((Object.is(dataitem.dataType,'DATE') || Object.is(dataitem.dataType,'DATETIME')) && !Object.is(Date.parse(val),NaN)){
// val = Util.dateFormat(new Date(val));
// }
item[dataitem.name] = val; item[dataitem.name] = val;
// 转化代码表
if(codelistArray && dataitem.codelist){
if(codelistArray.get(dataitem.codelist.tag) && codelistArray.get(dataitem.codelist.tag).get(val)){
item[dataitem.name] = codelistArray.get(dataitem.codelist.tag).get(val);
}
}
}); });
item.srfuf = data.srfuf ? data.srfuf : (isCreate ? "0" : "1"); item.srfuf = data.srfuf ? data.srfuf : (isCreate ? "0" : "1");
return item; return item;
...@@ -199,4 +222,88 @@ export default class ControlService { ...@@ -199,4 +222,88 @@ export default class ControlService {
return requestData; return requestData;
} }
/**
* 处理代码表
*
* @memberof ControlService
*/
public handleCodelist(){
let model: any = this.getMode();
if (!model) {
return [];
}
let dataItems: any[] = model.getDataItems();
let codelistMap:Map<string,any> = new Map();
if(dataItems && dataItems.length >0){
dataItems.forEach((item:any) =>{
if(item.codelist){
codelistMap.set(item.name,item.codelist);
}
})
}
if(codelistMap.size >0){
return Array.from(codelistMap).map(item => item[1]);
}else{
return [];
}
}
/**
* 获取所有代码表
*
* @param codelistArray 代码表模型数组
* @memberof ControlService
*/
public getAllCodeList(codelistArray:Array<any>):Promise<any>{
return new Promise((resolve:any,reject:any) =>{
let codeListMap:Map<string,any> = new Map();
let promiseArray:Array<any> = [];
codelistArray.forEach((item:any) =>{
if(!codeListMap.get(item.tag)){
promiseArray.push(this.getCodeList(item));
Promise.all(promiseArray).then((result:any) =>{
if(result && result.length >0){
result.forEach((codeList:any) =>{
let tempCodeListMap:Map<number,any> = new Map();
if(codeList.length >0){
codeList.forEach((codeListItem:any) =>{
tempCodeListMap.set(codeListItem.value,codeListItem.text);
})
}
codeListMap.set(item.tag,tempCodeListMap);
})
resolve(codeListMap);
}
})
}
})
})
}
/**
* 获取代码表
*
* @param codeListObject 传入代码表对象
* @memberof ControlService
*/
public getCodeList(codeListObject:any):Promise<any>{
return new Promise((resolve:any,reject:any) =>{
if(codeListObject.tag && Object.is(codeListObject.codelistType,"STATIC")){
const codelist = (this.getStore() as Store<any>).getters.getCodeList(codeListObject.tag);
if (codelist) {
resolve([...JSON.parse(JSON.stringify(codelist.items))]);
} else {
resolve([]);
console.log(`----${codeListObject.tag}----代码表不存在`);
}
}else if(codeListObject.tag && Object.is(codeListObject.codelistType,"DYNAMIC")){
this.codeListService.getItems(codeListObject.tag).then((res:any) => {
resolve(res);
}).catch((error:any) => {
resolve([]);
console.log(`----${codeListObject.tag}----代码表不存在`);
});
}
})
}
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<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.wfgroup.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.wfgroup.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.groupname.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.groupname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='groupname' :itemRules="this.rules.groupname" class='' :caption="$t('entities.wfgroup.main_form.details.groupname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.groupname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='groupname' :itemRules="this.rules.groupname" class='' :caption="$t('entities.wfgroup.main_form.details.groupname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.groupname.error" :isEmptyCaption="false" labelPos="LEFT">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<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.wfmember.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.wfmember.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.personname.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.personname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='personname' :itemRules="this.rules.personname" class='' :caption="$t('entities.wfmember.main_form.details.personname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.personname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='personname' :itemRules="this.rules.personname" class='' :caption="$t('entities.wfmember.main_form.details.personname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.personname.error" :isEmptyCaption="false" labelPos="LEFT">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<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.wfprocessdefinition.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.wfprocessdefinition.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.deploykey.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.deploykey.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='deploykey' :itemRules="this.rules.deploykey" class='' :caption="$t('entities.wfprocessdefinition.main_form.details.deploykey')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.deploykey.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='deploykey' :itemRules="this.rules.deploykey" class='' :caption="$t('entities.wfprocessdefinition.main_form.details.deploykey')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.deploykey.error" :isEmptyCaption="false" labelPos="LEFT">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<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.wfremodel.main_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" > <app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.wfremodel.main_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.bpmnfile.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.bpmnfile.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='bpmnfile' :itemRules="this.rules.bpmnfile" class='' :caption="$t('entities.wfremodel.main_form.details.bpmnfile')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.bpmnfile.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='bpmnfile' :itemRules="this.rules.bpmnfile" class='' :caption="$t('entities.wfremodel.main_form.details.bpmnfile')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.bpmnfile.error" :isEmptyCaption="false" labelPos="LEFT">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<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.wfuser.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.wfuser.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row> <row>
<i-col v-show="detailsModel.personname.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.personname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='personname' :itemRules="this.rules.personname" class='' :caption="$t('entities.wfuser.main_form.details.personname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.personname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='personname' :itemRules="this.rules.personname" class='' :caption="$t('entities.wfuser.main_form.details.personname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.personname.error" :isEmptyCaption="false" labelPos="LEFT">
......
package cn.ibizlab.core.workflow.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import java.io.Serializable;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.domain.EntityClient;
/**
* ServiceApi [历史] 对象
*/
@Data
public class WFHistory extends EntityClient implements Serializable {
/**
* 标识
*/
@DEField(name = "histid" , isKeyField=true)
@JSONField(name = "id")
@JsonProperty("id")
private String id;
/**
* 操作者标识
*/
@JSONField(name = "author")
@JsonProperty("author")
private String author;
/**
* 操作者
*/
@JSONField(name = "authorName")
@JsonProperty("authorName")
private String authorname;
/**
* 意见
*/
@JSONField(name = "message")
@JsonProperty("message")
private String message;
/**
* 时间
*/
@DEField(name = "actiontime")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "time" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("time")
private Timestamp time;
/**
* 任务标识
*/
@JSONField(name = "taskId")
@JsonProperty("taskId")
private String taskid;
/**
* 实例标识
*/
@DEField(name = "instanceid")
@JSONField(name = "processInstanceId")
@JsonProperty("processInstanceId")
private String processinstanceid;
/**
* 业务键值
*/
@DEField(name = "businesskey")
@JSONField(name = "processInstanceBusinessKey")
@JsonProperty("processInstanceBusinessKey")
private String processinstancebusinesskey;
/**
* 设置 [操作者标识]
*/
public void setAuthor(String author){
this.author = author ;
this.modify("author",author);
}
/**
* 设置 [操作者]
*/
public void setAuthorname(String authorname){
this.authorname = authorname ;
this.modify("authorname",authorname);
}
/**
* 设置 [意见]
*/
public void setMessage(String message){
this.message = message ;
this.modify("message",message);
}
/**
* 设置 [时间]
*/
public void setTime(Timestamp time){
this.time = time ;
this.modify("actiontime",time);
}
/**
* 设置 [任务标识]
*/
public void setTaskid(String taskid){
this.taskid = taskid ;
this.modify("taskid",taskid);
}
/**
* 设置 [实例标识]
*/
public void setProcessinstanceid(String processinstanceid){
this.processinstanceid = processinstanceid ;
this.modify("instanceid",processinstanceid);
}
/**
* 设置 [业务键值]
*/
public void setProcessinstancebusinesskey(String processinstancebusinesskey){
this.processinstancebusinesskey = processinstancebusinesskey ;
this.modify("businesskey",processinstancebusinesskey);
}
}
...@@ -71,6 +71,14 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -71,6 +71,14 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
@JSONField(name = "pssystemid") @JSONField(name = "pssystemid")
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
private String pssystemid; private String pssystemid;
/**
* TaskDefinitionKey
*/
@DEField(name = "taskdefinitionkey")
@TableField(value = "taskdefinitionkey")
@JSONField(name = "taskprocessdefinitionkey")
@JsonProperty("taskprocessdefinitionkey")
private String taskprocessdefinitionkey;
/** /**
* 校验 * 校验
*/ */
...@@ -123,6 +131,13 @@ public class WFProcessDefinition extends EntityMP implements Serializable { ...@@ -123,6 +131,13 @@ public class WFProcessDefinition extends EntityMP implements Serializable {
this.pssystemid = pssystemid ; this.pssystemid = pssystemid ;
this.modify("pssystemid",pssystemid); this.modify("pssystemid",pssystemid);
} }
/**
* 设置 [TaskDefinitionKey]
*/
public void setTaskprocessdefinitionkey(String taskprocessdefinitionkey){
this.taskprocessdefinitionkey = taskprocessdefinitionkey ;
this.modify("taskdefinitionkey",taskprocessdefinitionkey);
}
/** /**
* 设置 [校验] * 设置 [校验]
*/ */
......
...@@ -37,6 +37,14 @@ public class WFTaskWay extends EntityClient implements Serializable { ...@@ -37,6 +37,14 @@ public class WFTaskWay extends EntityClient implements Serializable {
@JsonProperty("sequenceFlowId") @JsonProperty("sequenceFlowId")
private String sequenceflowid; private String sequenceflowid;
/**
* 路径标识
*/
@DEField(name = "wayname")
@JSONField(name = "sequenceFlowName")
@JsonProperty("sequenceFlowName")
private String sequenceflowname;
/** /**
* 任务标识 * 任务标识
*/ */
...@@ -83,18 +91,17 @@ public class WFTaskWay extends EntityClient implements Serializable { ...@@ -83,18 +91,17 @@ public class WFTaskWay extends EntityClient implements Serializable {
@JsonProperty("refViewKey") @JsonProperty("refViewKey")
private String refviewkey; private String refviewkey;
/**
* 路径标识
*/
@DEField(name = "wayname")
@JSONField(name = "sequenceFlowName")
@JsonProperty("sequenceFlowName")
private String sequenceflowname;
/**
* 设置 [路径标识]
*/
public void setSequenceflowname(String sequenceflowname){
this.sequenceflowname = sequenceflowname ;
this.modify("wayname",sequenceflowname);
}
/** /**
* 设置 [任务标识] * 设置 [任务标识]
*/ */
...@@ -137,13 +144,6 @@ public class WFTaskWay extends EntityClient implements Serializable { ...@@ -137,13 +144,6 @@ public class WFTaskWay extends EntityClient implements Serializable {
this.refviewkey = refviewkey ; this.refviewkey = refviewkey ;
this.modify("refviewkey",refviewkey); this.modify("refviewkey",refviewkey);
} }
/**
* 设置 [路径标识]
*/
public void setSequenceflowname(String sequenceflowname){
this.sequenceflowname = sequenceflowname ;
this.modify("wayname",sequenceflowname);
}
} }
......
package cn.ibizlab.core.workflow.filter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import cn.ibizlab.util.filter.SearchContextBase;
/**
* ServiceApi数据实体[WFHistory] 查询条件对象
*/
@Slf4j
@Data
public class WFHistorySearchContext extends SearchContextBase {
private String n_authorname_like;//[操作者]
}
...@@ -27,6 +27,8 @@ public interface WFGroupMapper extends BaseMapper<WFGroup>{ ...@@ -27,6 +27,8 @@ public interface WFGroupMapper extends BaseMapper<WFGroup>{
@Override @Override
int updateById(@Param(Constants.ENTITY) WFGroup entity); int updateById(@Param(Constants.ENTITY) WFGroup entity);
@Override @Override
int update(@Param(Constants.ENTITY) WFGroup entity, @Param("ew") Wrapper<WFGroup> updateWrapper);
@Override
int deleteById(Serializable id); int deleteById(Serializable id);
/** /**
* 自定义查询SQL * 自定义查询SQL
......
...@@ -27,6 +27,8 @@ public interface WFMemberMapper extends BaseMapper<WFMember>{ ...@@ -27,6 +27,8 @@ public interface WFMemberMapper extends BaseMapper<WFMember>{
@Override @Override
int updateById(@Param(Constants.ENTITY) WFMember entity); int updateById(@Param(Constants.ENTITY) WFMember entity);
@Override @Override
int update(@Param(Constants.ENTITY) WFMember entity, @Param("ew") Wrapper<WFMember> updateWrapper);
@Override
int deleteById(Serializable id); int deleteById(Serializable id);
/** /**
* 自定义查询SQL * 自定义查询SQL
......
...@@ -27,6 +27,8 @@ public interface WFProcessDefinitionMapper extends BaseMapper<WFProcessDefinitio ...@@ -27,6 +27,8 @@ public interface WFProcessDefinitionMapper extends BaseMapper<WFProcessDefinitio
@Override @Override
int updateById(@Param(Constants.ENTITY) WFProcessDefinition entity); int updateById(@Param(Constants.ENTITY) WFProcessDefinition entity);
@Override @Override
int update(@Param(Constants.ENTITY) WFProcessDefinition entity, @Param("ew") Wrapper<WFProcessDefinition> updateWrapper);
@Override
int deleteById(Serializable id); int deleteById(Serializable id);
/** /**
* 自定义查询SQL * 自定义查询SQL
......
...@@ -27,6 +27,8 @@ public interface WFSystemMapper extends BaseMapper<WFSystem>{ ...@@ -27,6 +27,8 @@ public interface WFSystemMapper extends BaseMapper<WFSystem>{
@Override @Override
int updateById(@Param(Constants.ENTITY) WFSystem entity); int updateById(@Param(Constants.ENTITY) WFSystem entity);
@Override @Override
int update(@Param(Constants.ENTITY) WFSystem entity, @Param("ew") Wrapper<WFSystem> updateWrapper);
@Override
int deleteById(Serializable id); int deleteById(Serializable id);
/** /**
* 自定义查询SQL * 自定义查询SQL
......
...@@ -27,6 +27,8 @@ public interface WFUserMapper extends BaseMapper<WFUser>{ ...@@ -27,6 +27,8 @@ public interface WFUserMapper extends BaseMapper<WFUser>{
@Override @Override
int updateById(@Param(Constants.ENTITY) WFUser entity); int updateById(@Param(Constants.ENTITY) WFUser entity);
@Override @Override
int update(@Param(Constants.ENTITY) WFUser entity, @Param("ew") Wrapper<WFUser> updateWrapper);
@Override
int deleteById(Serializable id); int deleteById(Serializable id);
/** /**
* 自定义查询SQL * 自定义查询SQL
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFGroup; import cn.ibizlab.core.workflow.domain.WFGroup;
import cn.ibizlab.core.workflow.filter.WFGroupSearchContext; import cn.ibizlab.core.workflow.filter.WFGroupSearchContext;
......
package cn.ibizlab.core.workflow.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFHistory;
import cn.ibizlab.core.workflow.filter.WFHistorySearchContext;
/**
* 实体[WFHistory] 服务对象接口
*/
public interface IWFHistoryService{
boolean checkKey(WFHistory et) ;
boolean update(WFHistory et) ;
void updateBatch(List<WFHistory> list) ;
boolean save(WFHistory et) ;
void saveBatch(List<WFHistory> list) ;
boolean create(WFHistory et) ;
void createBatch(List<WFHistory> list) ;
WFHistory get(String key) ;
boolean remove(String key) ;
void removeBatch(Collection<String> idList) ;
WFHistory getDraft(WFHistory et) ;
Page<WFHistory> searchDefault(WFHistorySearchContext context) ;
}
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFMember; import cn.ibizlab.core.workflow.domain.WFMember;
import cn.ibizlab.core.workflow.filter.WFMemberSearchContext; import cn.ibizlab.core.workflow.filter.WFMemberSearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFProcessDefinition; import cn.ibizlab.core.workflow.domain.WFProcessDefinition;
import cn.ibizlab.core.workflow.filter.WFProcessDefinitionSearchContext; import cn.ibizlab.core.workflow.filter.WFProcessDefinitionSearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFProcessInstance; import cn.ibizlab.core.workflow.domain.WFProcessInstance;
import cn.ibizlab.core.workflow.filter.WFProcessInstanceSearchContext; import cn.ibizlab.core.workflow.filter.WFProcessInstanceSearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFProcessNode; import cn.ibizlab.core.workflow.domain.WFProcessNode;
import cn.ibizlab.core.workflow.filter.WFProcessNodeSearchContext; import cn.ibizlab.core.workflow.filter.WFProcessNodeSearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFREModel; import cn.ibizlab.core.workflow.domain.WFREModel;
import cn.ibizlab.core.workflow.filter.WFREModelSearchContext; import cn.ibizlab.core.workflow.filter.WFREModelSearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFSystem; import cn.ibizlab.core.workflow.domain.WFSystem;
import cn.ibizlab.core.workflow.filter.WFSystemSearchContext; import cn.ibizlab.core.workflow.filter.WFSystemSearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFTask; import cn.ibizlab.core.workflow.domain.WFTask;
import cn.ibizlab.core.workflow.filter.WFTaskSearchContext; import cn.ibizlab.core.workflow.filter.WFTaskSearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFTaskWay; import cn.ibizlab.core.workflow.domain.WFTaskWay;
import cn.ibizlab.core.workflow.filter.WFTaskWaySearchContext; import cn.ibizlab.core.workflow.filter.WFTaskWaySearchContext;
......
...@@ -12,6 +12,7 @@ import java.math.BigInteger; ...@@ -12,6 +12,7 @@ import java.math.BigInteger;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.workflow.domain.WFUser; import cn.ibizlab.core.workflow.domain.WFUser;
import cn.ibizlab.core.workflow.filter.WFUserSearchContext; import cn.ibizlab.core.workflow.filter.WFUserSearchContext;
......
package cn.ibizlab.core.workflow.service.impl;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.Map;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.math.BigInteger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy;
import cn.ibizlab.core.workflow.domain.WFHistory;
import cn.ibizlab.core.workflow.filter.WFHistorySearchContext;
import cn.ibizlab.core.workflow.service.IWFHistoryService;
import cn.ibizlab.util.helper.CachedBeanCopier;
/**
* 实体[历史] 无存储服务对象接口实现
*/
@Slf4j
@Service
public class WFHistoryServiceImpl implements IWFHistoryService {
@Override
public boolean checkKey(WFHistory et) {
return false;
}
@Override
public boolean update(WFHistory et) {
//代码实现
return true;
}
public void updateBatch(List<WFHistory> list){
}
@Override
@Transactional
public boolean save(WFHistory et) {
//代码实现
return true;
}
@Override
public void saveBatch(List<WFHistory> list) {
}
@Override
public boolean create(WFHistory et) {
//代码实现
return true;
}
public void createBatch(List<WFHistory> list){
}
@Override
public WFHistory get(String key) {
WFHistory et = new WFHistory();
et.setId(key);
return et;
}
@Override
public boolean remove(String key) {
return true;
}
public void removeBatch(Collection<String> idList){
}
@Override
public WFHistory getDraft(WFHistory et) {
return et;
}
/**
* 查询集合 DEFAULT
*/
@Override
public Page<WFHistory> searchDefault(WFHistorySearchContext context) {
return new PageImpl<WFHistory>(new ArrayList(),context.getPageable(),0);
}
}
...@@ -81,12 +81,36 @@ ...@@ -81,12 +81,36 @@
</column> </column>
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[WF_HISTORY]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-wf_history-17-7">
<createTable tableName="IBZWFHISTORY">
<column name="HISTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WF_HISTORY_HISTID"/>
</column>
<column name="AUTHOR" remarks="" type="VARCHAR(100)">
</column>
<column name="AUTHORNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="MESSAGE" remarks="" type="VARCHAR(2000)">
</column>
<column name="ACTIONTIME" remarks="" type="DATETIME">
</column>
<column name="TASKID" remarks="" type="VARCHAR(100)">
</column>
<column name="INSTANCEID" remarks="" type="VARCHAR(100)">
</column>
<column name="BUSINESSKEY" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[WF_TASK_WAY]数据结构 --> <!--输出实体[WF_TASK_WAY]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-wf_task_way-23-7"> <changeSet author="a_A_5d9d78509" id="tab-wf_task_way-24-8">
<createTable tableName="IBZWFTASKWAY"> <createTable tableName="IBZWFTASKWAY">
<column name="WAYID" remarks="" type="VARCHAR(100)"> <column name="WAYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WF_TASK_WAY_WAYID"/> <constraints primaryKey="true" primaryKeyName="PK_WF_TASK_WAY_WAYID"/>
</column> </column>
<column name="WAYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="TASKID" remarks="" type="VARCHAR(100)"> <column name="TASKID" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="TASKDEFINITIONKEY" remarks="" type="VARCHAR(100)"> <column name="TASKDEFINITIONKEY" remarks="" type="VARCHAR(100)">
...@@ -99,12 +123,10 @@ ...@@ -99,12 +123,10 @@
</column> </column>
<column name="REFVIEWKEY" remarks="" type="VARCHAR(100)"> <column name="REFVIEWKEY" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="WAYNAME" remarks="" type="VARCHAR(100)">
</column>
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[WF_DEFINITION]数据结构 --> <!--输出实体[WF_DEFINITION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-wf_definition-50-8"> <changeSet author="a_A_5d9d78509" id="tab-wf_definition-51-9">
<createTable tableName="IBZWFDEFINITION"> <createTable tableName="IBZWFDEFINITION">
<column name="DEFINITIONKEY" remarks="" type="VARCHAR(100)"> <column name="DEFINITIONKEY" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WF_DEFINITION_DEFINITIONKEY"/> <constraints primaryKey="true" primaryKeyName="PK_WF_DEFINITION_DEFINITIONKEY"/>
...@@ -117,6 +139,8 @@ ...@@ -117,6 +139,8 @@
</column> </column>
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)"> <column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="TASKDEFINITIONKEY" remarks="" type="VARCHAR(100)">
</column>
<column name="MD5CHECK" remarks="" type="VARCHAR(100)"> <column name="MD5CHECK" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="BPMNFILE" remarks="" type="VARCHAR(1000)"> <column name="BPMNFILE" remarks="" type="VARCHAR(1000)">
...@@ -126,7 +150,7 @@ ...@@ -126,7 +150,7 @@
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[WF_GROUP_MEMBER]数据结构 --> <!--输出实体[WF_GROUP_MEMBER]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-wf_group_member-39-9"> <changeSet author="a_A_5d9d78509" id="tab-wf_group_member-39-10">
<createTable tableName="IBZWFMEMBER"> <createTable tableName="IBZWFMEMBER">
<column name="MEMBERID" remarks="" type="VARCHAR(100)"> <column name="MEMBERID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WF_GROUP_MEMBER_MEMBERID"/> <constraints primaryKey="true" primaryKeyName="PK_WF_GROUP_MEMBER_MEMBERID"/>
...@@ -140,7 +164,7 @@ ...@@ -140,7 +164,7 @@
</createTable> </createTable>
</changeSet> </changeSet>
<!--输出实体[WF_TASK]数据结构 --> <!--输出实体[WF_TASK]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-wf_task-17-10"> <changeSet author="a_A_5d9d78509" id="tab-wf_task-17-11">
<createTable tableName="IBZTASK"> <createTable tableName="IBZTASK">
<column name="TASKID" remarks="" type="VARCHAR(100)"> <column name="TASKID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WF_TASK_TASKID"/> <constraints primaryKey="true" primaryKeyName="PK_WF_TASK_TASKID"/>
...@@ -164,13 +188,14 @@ ...@@ -164,13 +188,14 @@
<!--输出实体[WF_GROUP]外键关系 --> <!--输出实体[WF_GROUP]外键关系 -->
<!--输出实体[WF_INSTANCE]外键关系 --> <!--输出实体[WF_INSTANCE]外键关系 -->
<!--输出实体[WF_MODEL]外键关系 --> <!--输出实体[WF_MODEL]外键关系 -->
<!--输出实体[WF_HISTORY]外键关系 -->
<!--输出实体[WF_TASK_WAY]外键关系 --> <!--输出实体[WF_TASK_WAY]外键关系 -->
<!--输出实体[WF_DEFINITION]外键关系 --> <!--输出实体[WF_DEFINITION]外键关系 -->
<!--输出实体[WF_GROUP_MEMBER]外键关系 --> <!--输出实体[WF_GROUP_MEMBER]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-wf_group_member-39-11"> <changeSet author="a_A_5d9d78509" id="fk-wf_group_member-39-12">
<addForeignKeyConstraint baseColumnNames="GROUPID" baseTableName="IBZWFMEMBER" constraintName="DER1N_WF_GROUP_MEMBER_WF_GROUP" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="GROUPID" referencedTableName="IBZWFGROUP" validate="true"/> <addForeignKeyConstraint baseColumnNames="GROUPID" baseTableName="IBZWFMEMBER" constraintName="DER1N_WF_GROUP_MEMBER_WF_GROUP" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="GROUPID" referencedTableName="IBZWFGROUP" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_A_5d9d78509" id="fk-wf_group_member-39-12"> <changeSet author="a_A_5d9d78509" id="fk-wf_group_member-39-13">
<addForeignKeyConstraint baseColumnNames="USERID" baseTableName="IBZWFMEMBER" constraintName="DER1N_WF_GROUP_MEMBER_WF_USER_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="USERID" referencedTableName="IBZUSER" validate="true"/> <addForeignKeyConstraint baseColumnNames="USERID" baseTableName="IBZWFMEMBER" constraintName="DER1N_WF_GROUP_MEMBER_WF_USER_" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="USERID" referencedTableName="IBZUSER" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[WF_TASK]外键关系 --> <!--输出实体[WF_TASK]外键关系 -->
......
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性--> <!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="WFProcessDefinitionResultMap" databaseId="mysql"> <select id="selectById" resultMap="WFProcessDefinitionResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID` FROM `IBZWFDEFINITION` t1 ) t1 where definitionkey=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID`, t1.`TASKDEFINITIONKEY` FROM `IBZWFDEFINITION` t1 ) t1 where definitionkey=#{id}]]>
</select> </select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 --> <!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="WFProcessDefinitionResultMap" type="cn.ibizlab.core.workflow.domain.WFProcessDefinition" autoMapping="true"> <resultMap id="WFProcessDefinitionResultMap" type="cn.ibizlab.core.workflow.domain.WFProcessDefinition" autoMapping="true">
<id property="definitionkey" column="definitionkey" /><!--主键字段映射--> <id property="definitionkey" column="definitionkey" /><!--主键字段映射-->
<result property="taskprocessdefinitionkey" column="taskdefinitionkey" />
</resultMap> </resultMap>
...@@ -27,13 +28,13 @@ ...@@ -27,13 +28,13 @@
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="mysql"> <sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID` FROM `IBZWFDEFINITION` t1 <![CDATA[ SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID`, t1.`TASKDEFINITIONKEY` FROM `IBZWFDEFINITION` t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="mysql"> <sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID` FROM `IBZWFDEFINITION` t1 <![CDATA[ SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID`, t1.`TASKDEFINITIONKEY` FROM `IBZWFDEFINITION` t1
]]> ]]>
</sql> </sql>
......
...@@ -63,6 +63,14 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -63,6 +63,14 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
@JsonProperty("pssystemid") @JsonProperty("pssystemid")
private String pssystemid; private String pssystemid;
/**
* 属性 [TASKDEFINITIONKEY]
*
*/
@JSONField(name = "taskprocessdefinitionkey")
@JsonProperty("taskprocessdefinitionkey")
private String taskprocessdefinitionkey;
/** /**
* 属性 [MD5CHECK] * 属性 [MD5CHECK]
* *
...@@ -120,6 +128,14 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable { ...@@ -120,6 +128,14 @@ public class WFProcessDefinitionDTO extends DTOBase implements Serializable {
this.modify("pssystemid",pssystemid); this.modify("pssystemid",pssystemid);
} }
/**
* 设置 [TASKDEFINITIONKEY]
*/
public void setTaskprocessdefinitionkey(String taskprocessdefinitionkey){
this.taskprocessdefinitionkey = taskprocessdefinitionkey ;
this.modify("taskdefinitionkey",taskprocessdefinitionkey);
}
/** /**
* 设置 [MD5CHECK] * 设置 [MD5CHECK]
*/ */
......
...@@ -50,11 +50,14 @@ public class WFGroupResource { ...@@ -50,11 +50,14 @@ public class WFGroupResource {
@Autowired @Autowired
@Lazy @Lazy
private WFGroupMapping wfgroupMapping; public WFGroupMapping wfgroupMapping;
public WFGroupDTO permissionDTO=new WFGroupDTO();
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Save-all')")
@ApiOperation(value = "Save", tags = {"WFGroup" }, notes = "Save") @ApiOperation(value = "Save", tags = {"WFGroup" }, notes = "Save")
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups/save") @RequestMapping(method = RequestMethod.POST, value = "/wfgroups/save")
public ResponseEntity<Boolean> save(@RequestBody WFGroupDTO wfgroupdto) { public ResponseEntity<Boolean> save(@RequestBody WFGroupDTO wfgroupdto) {
...@@ -71,7 +74,7 @@ public class WFGroupResource { ...@@ -71,7 +74,7 @@ public class WFGroupResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Update-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Update-all')")
@ApiOperation(value = "Update", tags = {"WFGroup" }, notes = "Update") @ApiOperation(value = "Update", tags = {"WFGroup" }, notes = "Update")
@RequestMapping(method = RequestMethod.PUT, value = "/wfgroups/{wfgroup_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfgroups/{wfgroup_id}")
@Transactional @Transactional
...@@ -83,7 +86,6 @@ public class WFGroupResource { ...@@ -83,7 +86,6 @@ public class WFGroupResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Update-all')")
@ApiOperation(value = "UpdateBatch", tags = {"WFGroup" }, notes = "UpdateBatch") @ApiOperation(value = "UpdateBatch", tags = {"WFGroup" }, notes = "UpdateBatch")
@RequestMapping(method = RequestMethod.PUT, value = "/wfgroups/batch") @RequestMapping(method = RequestMethod.PUT, value = "/wfgroups/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFGroupDTO> wfgroupdtos) { public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFGroupDTO> wfgroupdtos) {
...@@ -94,6 +96,7 @@ public class WFGroupResource { ...@@ -94,6 +96,7 @@ public class WFGroupResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-GetDraft-all')")
@ApiOperation(value = "GetDraft", tags = {"WFGroup" }, notes = "GetDraft") @ApiOperation(value = "GetDraft", tags = {"WFGroup" }, notes = "GetDraft")
@RequestMapping(method = RequestMethod.GET, value = "/wfgroups/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfgroups/getdraft")
public ResponseEntity<WFGroupDTO> getDraft() { public ResponseEntity<WFGroupDTO> getDraft() {
...@@ -103,6 +106,7 @@ public class WFGroupResource { ...@@ -103,6 +106,7 @@ public class WFGroupResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-CheckKey-all')")
@ApiOperation(value = "CheckKey", tags = {"WFGroup" }, notes = "CheckKey") @ApiOperation(value = "CheckKey", tags = {"WFGroup" }, notes = "CheckKey")
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfgroups/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody WFGroupDTO wfgroupdto) { public ResponseEntity<Boolean> checkKey(@RequestBody WFGroupDTO wfgroupdto) {
...@@ -112,7 +116,7 @@ public class WFGroupResource { ...@@ -112,7 +116,7 @@ public class WFGroupResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Create-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Create-all')")
@ApiOperation(value = "Create", tags = {"WFGroup" }, notes = "Create") @ApiOperation(value = "Create", tags = {"WFGroup" }, notes = "Create")
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups") @RequestMapping(method = RequestMethod.POST, value = "/wfgroups")
@Transactional @Transactional
...@@ -122,7 +126,7 @@ public class WFGroupResource { ...@@ -122,7 +126,7 @@ public class WFGroupResource {
WFGroupDTO dto = wfgroupMapping.toDto(domain); WFGroupDTO dto = wfgroupMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Create-all')")
@ApiOperation(value = "createBatch", tags = {"WFGroup" }, notes = "createBatch") @ApiOperation(value = "createBatch", tags = {"WFGroup" }, notes = "createBatch")
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups/batch") @RequestMapping(method = RequestMethod.POST, value = "/wfgroups/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<WFGroupDTO> wfgroupdtos) { public ResponseEntity<Boolean> createBatch(@RequestBody List<WFGroupDTO> wfgroupdtos) {
...@@ -133,7 +137,7 @@ public class WFGroupResource { ...@@ -133,7 +137,7 @@ public class WFGroupResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Remove-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Remove-all')")
@ApiOperation(value = "Remove", tags = {"WFGroup" }, notes = "Remove") @ApiOperation(value = "Remove", tags = {"WFGroup" }, notes = "Remove")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfgroups/{wfgroup_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfgroups/{wfgroup_id}")
@Transactional @Transactional
...@@ -151,7 +155,7 @@ public class WFGroupResource { ...@@ -151,7 +155,7 @@ public class WFGroupResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Get-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Get-all')")
@ApiOperation(value = "Get", tags = {"WFGroup" }, notes = "Get") @ApiOperation(value = "Get", tags = {"WFGroup" }, notes = "Get")
@RequestMapping(method = RequestMethod.GET, value = "/wfgroups/{wfgroup_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfgroups/{wfgroup_id}")
public ResponseEntity<WFGroupDTO> get(@PathVariable("wfgroup_id") String wfgroup_id) { public ResponseEntity<WFGroupDTO> get(@PathVariable("wfgroup_id") String wfgroup_id) {
...@@ -160,7 +164,7 @@ public class WFGroupResource { ...@@ -160,7 +164,7 @@ public class WFGroupResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Default-all')")
@ApiOperation(value = "fetchDEFAULT", tags = {"WFGroup" } ,notes = "fetchDEFAULT") @ApiOperation(value = "fetchDEFAULT", tags = {"WFGroup" } ,notes = "fetchDEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/wfgroups/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfgroups/fetchdefault")
public ResponseEntity<List<WFGroupDTO>> fetchDefault(WFGroupSearchContext context) { public ResponseEntity<List<WFGroupDTO>> fetchDefault(WFGroupSearchContext context) {
...@@ -173,7 +177,7 @@ public class WFGroupResource { ...@@ -173,7 +177,7 @@ public class WFGroupResource {
.body(list); .body(list);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFGroup-Default-all')")
@ApiOperation(value = "searchDEFAULT", tags = {"WFGroup" } ,notes = "searchDEFAULT") @ApiOperation(value = "searchDEFAULT", tags = {"WFGroup" } ,notes = "searchDEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/wfgroups/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfgroups/searchdefault")
public ResponseEntity<Page<WFGroupDTO>> searchDefault(@RequestBody WFGroupSearchContext context) { public ResponseEntity<Page<WFGroupDTO>> searchDefault(@RequestBody WFGroupSearchContext context) {
...@@ -183,12 +187,6 @@ public class WFGroupResource { ...@@ -183,12 +187,6 @@ public class WFGroupResource {
} }
/**
* 用户权限校验
* @return
*/
public WFGroup getEntity(){
return new WFGroup();
}
} }
...@@ -50,11 +50,14 @@ public class WFMemberResource { ...@@ -50,11 +50,14 @@ public class WFMemberResource {
@Autowired @Autowired
@Lazy @Lazy
private WFMemberMapping wfmemberMapping; public WFMemberMapping wfmemberMapping;
public WFMemberDTO permissionDTO=new WFMemberDTO();
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-CheckKey-all')")
@ApiOperation(value = "CheckKey", tags = {"WFMember" }, notes = "CheckKey") @ApiOperation(value = "CheckKey", tags = {"WFMember" }, notes = "CheckKey")
@RequestMapping(method = RequestMethod.POST, value = "/wfmembers/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfmembers/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody WFMemberDTO wfmemberdto) { public ResponseEntity<Boolean> checkKey(@RequestBody WFMemberDTO wfmemberdto) {
...@@ -64,6 +67,7 @@ public class WFMemberResource { ...@@ -64,6 +67,7 @@ public class WFMemberResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-GetDraft-all')")
@ApiOperation(value = "GetDraft", tags = {"WFMember" }, notes = "GetDraft") @ApiOperation(value = "GetDraft", tags = {"WFMember" }, notes = "GetDraft")
@RequestMapping(method = RequestMethod.GET, value = "/wfmembers/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfmembers/getdraft")
public ResponseEntity<WFMemberDTO> getDraft() { public ResponseEntity<WFMemberDTO> getDraft() {
...@@ -73,7 +77,7 @@ public class WFMemberResource { ...@@ -73,7 +77,7 @@ public class WFMemberResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Create-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Create-all')")
@ApiOperation(value = "Create", tags = {"WFMember" }, notes = "Create") @ApiOperation(value = "Create", tags = {"WFMember" }, notes = "Create")
@RequestMapping(method = RequestMethod.POST, value = "/wfmembers") @RequestMapping(method = RequestMethod.POST, value = "/wfmembers")
@Transactional @Transactional
...@@ -83,7 +87,7 @@ public class WFMemberResource { ...@@ -83,7 +87,7 @@ public class WFMemberResource {
WFMemberDTO dto = wfmemberMapping.toDto(domain); WFMemberDTO dto = wfmemberMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Create-all')")
@ApiOperation(value = "createBatch", tags = {"WFMember" }, notes = "createBatch") @ApiOperation(value = "createBatch", tags = {"WFMember" }, notes = "createBatch")
@RequestMapping(method = RequestMethod.POST, value = "/wfmembers/batch") @RequestMapping(method = RequestMethod.POST, value = "/wfmembers/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<WFMemberDTO> wfmemberdtos) { public ResponseEntity<Boolean> createBatch(@RequestBody List<WFMemberDTO> wfmemberdtos) {
...@@ -94,7 +98,7 @@ public class WFMemberResource { ...@@ -94,7 +98,7 @@ public class WFMemberResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Remove-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Remove-all')")
@ApiOperation(value = "Remove", tags = {"WFMember" }, notes = "Remove") @ApiOperation(value = "Remove", tags = {"WFMember" }, notes = "Remove")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfmembers/{wfmember_id}")
@Transactional @Transactional
...@@ -112,6 +116,7 @@ public class WFMemberResource { ...@@ -112,6 +116,7 @@ public class WFMemberResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Save-all')")
@ApiOperation(value = "Save", tags = {"WFMember" }, notes = "Save") @ApiOperation(value = "Save", tags = {"WFMember" }, notes = "Save")
@RequestMapping(method = RequestMethod.POST, value = "/wfmembers/save") @RequestMapping(method = RequestMethod.POST, value = "/wfmembers/save")
public ResponseEntity<Boolean> save(@RequestBody WFMemberDTO wfmemberdto) { public ResponseEntity<Boolean> save(@RequestBody WFMemberDTO wfmemberdto) {
...@@ -128,7 +133,7 @@ public class WFMemberResource { ...@@ -128,7 +133,7 @@ public class WFMemberResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Update-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Update-all')")
@ApiOperation(value = "Update", tags = {"WFMember" }, notes = "Update") @ApiOperation(value = "Update", tags = {"WFMember" }, notes = "Update")
@RequestMapping(method = RequestMethod.PUT, value = "/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfmembers/{wfmember_id}")
@Transactional @Transactional
...@@ -140,7 +145,6 @@ public class WFMemberResource { ...@@ -140,7 +145,6 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Update-all')")
@ApiOperation(value = "UpdateBatch", tags = {"WFMember" }, notes = "UpdateBatch") @ApiOperation(value = "UpdateBatch", tags = {"WFMember" }, notes = "UpdateBatch")
@RequestMapping(method = RequestMethod.PUT, value = "/wfmembers/batch") @RequestMapping(method = RequestMethod.PUT, value = "/wfmembers/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFMemberDTO> wfmemberdtos) { public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFMemberDTO> wfmemberdtos) {
...@@ -151,7 +155,7 @@ public class WFMemberResource { ...@@ -151,7 +155,7 @@ public class WFMemberResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Get-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Get-all')")
@ApiOperation(value = "Get", tags = {"WFMember" }, notes = "Get") @ApiOperation(value = "Get", tags = {"WFMember" }, notes = "Get")
@RequestMapping(method = RequestMethod.GET, value = "/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfmembers/{wfmember_id}")
public ResponseEntity<WFMemberDTO> get(@PathVariable("wfmember_id") String wfmember_id) { public ResponseEntity<WFMemberDTO> get(@PathVariable("wfmember_id") String wfmember_id) {
...@@ -160,7 +164,7 @@ public class WFMemberResource { ...@@ -160,7 +164,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')")
@ApiOperation(value = "fetchDEFAULT", tags = {"WFMember" } ,notes = "fetchDEFAULT") @ApiOperation(value = "fetchDEFAULT", tags = {"WFMember" } ,notes = "fetchDEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/wfmembers/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfmembers/fetchdefault")
public ResponseEntity<List<WFMemberDTO>> fetchDefault(WFMemberSearchContext context) { public ResponseEntity<List<WFMemberDTO>> fetchDefault(WFMemberSearchContext context) {
...@@ -173,7 +177,7 @@ public class WFMemberResource { ...@@ -173,7 +177,7 @@ public class WFMemberResource {
.body(list); .body(list);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')")
@ApiOperation(value = "searchDEFAULT", tags = {"WFMember" } ,notes = "searchDEFAULT") @ApiOperation(value = "searchDEFAULT", tags = {"WFMember" } ,notes = "searchDEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/wfmembers/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfmembers/searchdefault")
public ResponseEntity<Page<WFMemberDTO>> searchDefault(@RequestBody WFMemberSearchContext context) { public ResponseEntity<Page<WFMemberDTO>> searchDefault(@RequestBody WFMemberSearchContext context) {
...@@ -184,12 +188,14 @@ public class WFMemberResource { ...@@ -184,12 +188,14 @@ public class WFMemberResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-CheckKey-all')")
@ApiOperation(value = "CheckKeyByWFGroup", tags = {"WFMember" }, notes = "CheckKeyByWFGroup") @ApiOperation(value = "CheckKeyByWFGroup", tags = {"WFMember" }, notes = "CheckKeyByWFGroup")
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups/{wfgroup_id}/wfmembers/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfgroups/{wfgroup_id}/wfmembers/checkkey")
public ResponseEntity<Boolean> checkKeyByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @RequestBody WFMemberDTO wfmemberdto) { public ResponseEntity<Boolean> checkKeyByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @RequestBody WFMemberDTO wfmemberdto) {
return ResponseEntity.status(HttpStatus.OK).body(wfmemberService.checkKey(wfmemberMapping.toDomain(wfmemberdto))); return ResponseEntity.status(HttpStatus.OK).body(wfmemberService.checkKey(wfmemberMapping.toDomain(wfmemberdto)));
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-GetDraft-all')")
@ApiOperation(value = "GetDraftByWFGroup", tags = {"WFMember" }, notes = "GetDraftByWFGroup") @ApiOperation(value = "GetDraftByWFGroup", tags = {"WFMember" }, notes = "GetDraftByWFGroup")
@RequestMapping(method = RequestMethod.GET, value = "/wfgroups/{wfgroup_id}/wfmembers/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfgroups/{wfgroup_id}/wfmembers/getdraft")
public ResponseEntity<WFMemberDTO> getDraftByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id) { public ResponseEntity<WFMemberDTO> getDraftByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id) {
...@@ -198,6 +204,7 @@ public class WFMemberResource { ...@@ -198,6 +204,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(wfmemberMapping.toDto(wfmemberService.getDraft(domain))); return ResponseEntity.status(HttpStatus.OK).body(wfmemberMapping.toDto(wfmemberService.getDraft(domain)));
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Create-all')")
@ApiOperation(value = "CreateByWFGroup", tags = {"WFMember" }, notes = "CreateByWFGroup") @ApiOperation(value = "CreateByWFGroup", tags = {"WFMember" }, notes = "CreateByWFGroup")
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups/{wfgroup_id}/wfmembers") @RequestMapping(method = RequestMethod.POST, value = "/wfgroups/{wfgroup_id}/wfmembers")
@Transactional @Transactional
...@@ -220,6 +227,7 @@ public class WFMemberResource { ...@@ -220,6 +227,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Remove-all')")
@ApiOperation(value = "RemoveByWFGroup", tags = {"WFMember" }, notes = "RemoveByWFGroup") @ApiOperation(value = "RemoveByWFGroup", tags = {"WFMember" }, notes = "RemoveByWFGroup")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfgroups/{wfgroup_id}/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfgroups/{wfgroup_id}/wfmembers/{wfmember_id}")
@Transactional @Transactional
...@@ -234,6 +242,7 @@ public class WFMemberResource { ...@@ -234,6 +242,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Save-all')")
@ApiOperation(value = "SaveByWFGroup", tags = {"WFMember" }, notes = "SaveByWFGroup") @ApiOperation(value = "SaveByWFGroup", tags = {"WFMember" }, notes = "SaveByWFGroup")
@RequestMapping(method = RequestMethod.POST, value = "/wfgroups/{wfgroup_id}/wfmembers/save") @RequestMapping(method = RequestMethod.POST, value = "/wfgroups/{wfgroup_id}/wfmembers/save")
public ResponseEntity<Boolean> saveByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @RequestBody WFMemberDTO wfmemberdto) { public ResponseEntity<Boolean> saveByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @RequestBody WFMemberDTO wfmemberdto) {
...@@ -253,6 +262,7 @@ public class WFMemberResource { ...@@ -253,6 +262,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Update-all')")
@ApiOperation(value = "UpdateByWFGroup", tags = {"WFMember" }, notes = "UpdateByWFGroup") @ApiOperation(value = "UpdateByWFGroup", tags = {"WFMember" }, notes = "UpdateByWFGroup")
@RequestMapping(method = RequestMethod.PUT, value = "/wfgroups/{wfgroup_id}/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfgroups/{wfgroup_id}/wfmembers/{wfmember_id}")
@Transactional @Transactional
...@@ -276,6 +286,7 @@ public class WFMemberResource { ...@@ -276,6 +286,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Get-all')")
@ApiOperation(value = "GetByWFGroup", tags = {"WFMember" }, notes = "GetByWFGroup") @ApiOperation(value = "GetByWFGroup", tags = {"WFMember" }, notes = "GetByWFGroup")
@RequestMapping(method = RequestMethod.GET, value = "/wfgroups/{wfgroup_id}/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfgroups/{wfgroup_id}/wfmembers/{wfmember_id}")
public ResponseEntity<WFMemberDTO> getByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @PathVariable("wfmember_id") String wfmember_id) { public ResponseEntity<WFMemberDTO> getByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @PathVariable("wfmember_id") String wfmember_id) {
...@@ -284,6 +295,7 @@ public class WFMemberResource { ...@@ -284,6 +295,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')")
@ApiOperation(value = "fetchDEFAULTByWFGroup", tags = {"WFMember" } ,notes = "fetchDEFAULTByWFGroup") @ApiOperation(value = "fetchDEFAULTByWFGroup", tags = {"WFMember" } ,notes = "fetchDEFAULTByWFGroup")
@RequestMapping(method= RequestMethod.GET , value="/wfgroups/{wfgroup_id}/wfmembers/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfgroups/{wfgroup_id}/wfmembers/fetchdefault")
public ResponseEntity<List<WFMemberDTO>> fetchWFMemberDefaultByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id,WFMemberSearchContext context) { public ResponseEntity<List<WFMemberDTO>> fetchWFMemberDefaultByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id,WFMemberSearchContext context) {
...@@ -297,6 +309,7 @@ public class WFMemberResource { ...@@ -297,6 +309,7 @@ public class WFMemberResource {
.body(list); .body(list);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')")
@ApiOperation(value = "searchDEFAULTByWFGroup", tags = {"WFMember" } ,notes = "searchDEFAULTByWFGroup") @ApiOperation(value = "searchDEFAULTByWFGroup", tags = {"WFMember" } ,notes = "searchDEFAULTByWFGroup")
@RequestMapping(method= RequestMethod.POST , value="/wfgroups/{wfgroup_id}/wfmembers/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfgroups/{wfgroup_id}/wfmembers/searchdefault")
public ResponseEntity<Page<WFMemberDTO>> searchWFMemberDefaultByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @RequestBody WFMemberSearchContext context) { public ResponseEntity<Page<WFMemberDTO>> searchWFMemberDefaultByWFGroup(@PathVariable("wfgroup_id") String wfgroup_id, @RequestBody WFMemberSearchContext context) {
...@@ -308,12 +321,14 @@ public class WFMemberResource { ...@@ -308,12 +321,14 @@ public class WFMemberResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-CheckKey-all')")
@ApiOperation(value = "CheckKeyByWFUser", tags = {"WFMember" }, notes = "CheckKeyByWFUser") @ApiOperation(value = "CheckKeyByWFUser", tags = {"WFMember" }, notes = "CheckKeyByWFUser")
@RequestMapping(method = RequestMethod.POST, value = "/wfusers/{wfuser_id}/wfmembers/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfusers/{wfuser_id}/wfmembers/checkkey")
public ResponseEntity<Boolean> checkKeyByWFUser(@PathVariable("wfuser_id") String wfuser_id, @RequestBody WFMemberDTO wfmemberdto) { public ResponseEntity<Boolean> checkKeyByWFUser(@PathVariable("wfuser_id") String wfuser_id, @RequestBody WFMemberDTO wfmemberdto) {
return ResponseEntity.status(HttpStatus.OK).body(wfmemberService.checkKey(wfmemberMapping.toDomain(wfmemberdto))); return ResponseEntity.status(HttpStatus.OK).body(wfmemberService.checkKey(wfmemberMapping.toDomain(wfmemberdto)));
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-GetDraft-all')")
@ApiOperation(value = "GetDraftByWFUser", tags = {"WFMember" }, notes = "GetDraftByWFUser") @ApiOperation(value = "GetDraftByWFUser", tags = {"WFMember" }, notes = "GetDraftByWFUser")
@RequestMapping(method = RequestMethod.GET, value = "/wfusers/{wfuser_id}/wfmembers/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfusers/{wfuser_id}/wfmembers/getdraft")
public ResponseEntity<WFMemberDTO> getDraftByWFUser(@PathVariable("wfuser_id") String wfuser_id) { public ResponseEntity<WFMemberDTO> getDraftByWFUser(@PathVariable("wfuser_id") String wfuser_id) {
...@@ -322,6 +337,7 @@ public class WFMemberResource { ...@@ -322,6 +337,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(wfmemberMapping.toDto(wfmemberService.getDraft(domain))); return ResponseEntity.status(HttpStatus.OK).body(wfmemberMapping.toDto(wfmemberService.getDraft(domain)));
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Create-all')")
@ApiOperation(value = "CreateByWFUser", tags = {"WFMember" }, notes = "CreateByWFUser") @ApiOperation(value = "CreateByWFUser", tags = {"WFMember" }, notes = "CreateByWFUser")
@RequestMapping(method = RequestMethod.POST, value = "/wfusers/{wfuser_id}/wfmembers") @RequestMapping(method = RequestMethod.POST, value = "/wfusers/{wfuser_id}/wfmembers")
@Transactional @Transactional
...@@ -344,6 +360,7 @@ public class WFMemberResource { ...@@ -344,6 +360,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Remove-all')")
@ApiOperation(value = "RemoveByWFUser", tags = {"WFMember" }, notes = "RemoveByWFUser") @ApiOperation(value = "RemoveByWFUser", tags = {"WFMember" }, notes = "RemoveByWFUser")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfusers/{wfuser_id}/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfusers/{wfuser_id}/wfmembers/{wfmember_id}")
@Transactional @Transactional
...@@ -358,6 +375,7 @@ public class WFMemberResource { ...@@ -358,6 +375,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Save-all')")
@ApiOperation(value = "SaveByWFUser", tags = {"WFMember" }, notes = "SaveByWFUser") @ApiOperation(value = "SaveByWFUser", tags = {"WFMember" }, notes = "SaveByWFUser")
@RequestMapping(method = RequestMethod.POST, value = "/wfusers/{wfuser_id}/wfmembers/save") @RequestMapping(method = RequestMethod.POST, value = "/wfusers/{wfuser_id}/wfmembers/save")
public ResponseEntity<Boolean> saveByWFUser(@PathVariable("wfuser_id") String wfuser_id, @RequestBody WFMemberDTO wfmemberdto) { public ResponseEntity<Boolean> saveByWFUser(@PathVariable("wfuser_id") String wfuser_id, @RequestBody WFMemberDTO wfmemberdto) {
...@@ -377,6 +395,7 @@ public class WFMemberResource { ...@@ -377,6 +395,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Update-all')")
@ApiOperation(value = "UpdateByWFUser", tags = {"WFMember" }, notes = "UpdateByWFUser") @ApiOperation(value = "UpdateByWFUser", tags = {"WFMember" }, notes = "UpdateByWFUser")
@RequestMapping(method = RequestMethod.PUT, value = "/wfusers/{wfuser_id}/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfusers/{wfuser_id}/wfmembers/{wfmember_id}")
@Transactional @Transactional
...@@ -400,6 +419,7 @@ public class WFMemberResource { ...@@ -400,6 +419,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Get-all')")
@ApiOperation(value = "GetByWFUser", tags = {"WFMember" }, notes = "GetByWFUser") @ApiOperation(value = "GetByWFUser", tags = {"WFMember" }, notes = "GetByWFUser")
@RequestMapping(method = RequestMethod.GET, value = "/wfusers/{wfuser_id}/wfmembers/{wfmember_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfusers/{wfuser_id}/wfmembers/{wfmember_id}")
public ResponseEntity<WFMemberDTO> getByWFUser(@PathVariable("wfuser_id") String wfuser_id, @PathVariable("wfmember_id") String wfmember_id) { public ResponseEntity<WFMemberDTO> getByWFUser(@PathVariable("wfuser_id") String wfuser_id, @PathVariable("wfmember_id") String wfmember_id) {
...@@ -408,6 +428,7 @@ public class WFMemberResource { ...@@ -408,6 +428,7 @@ public class WFMemberResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')")
@ApiOperation(value = "fetchDEFAULTByWFUser", tags = {"WFMember" } ,notes = "fetchDEFAULTByWFUser") @ApiOperation(value = "fetchDEFAULTByWFUser", tags = {"WFMember" } ,notes = "fetchDEFAULTByWFUser")
@RequestMapping(method= RequestMethod.GET , value="/wfusers/{wfuser_id}/wfmembers/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfusers/{wfuser_id}/wfmembers/fetchdefault")
public ResponseEntity<List<WFMemberDTO>> fetchWFMemberDefaultByWFUser(@PathVariable("wfuser_id") String wfuser_id,WFMemberSearchContext context) { public ResponseEntity<List<WFMemberDTO>> fetchWFMemberDefaultByWFUser(@PathVariable("wfuser_id") String wfuser_id,WFMemberSearchContext context) {
...@@ -421,6 +442,7 @@ public class WFMemberResource { ...@@ -421,6 +442,7 @@ public class WFMemberResource {
.body(list); .body(list);
} }
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFMember-Default-all')")
@ApiOperation(value = "searchDEFAULTByWFUser", tags = {"WFMember" } ,notes = "searchDEFAULTByWFUser") @ApiOperation(value = "searchDEFAULTByWFUser", tags = {"WFMember" } ,notes = "searchDEFAULTByWFUser")
@RequestMapping(method= RequestMethod.POST , value="/wfusers/{wfuser_id}/wfmembers/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfusers/{wfuser_id}/wfmembers/searchdefault")
public ResponseEntity<Page<WFMemberDTO>> searchWFMemberDefaultByWFUser(@PathVariable("wfuser_id") String wfuser_id, @RequestBody WFMemberSearchContext context) { public ResponseEntity<Page<WFMemberDTO>> searchWFMemberDefaultByWFUser(@PathVariable("wfuser_id") String wfuser_id, @RequestBody WFMemberSearchContext context) {
...@@ -431,12 +453,6 @@ public class WFMemberResource { ...@@ -431,12 +453,6 @@ public class WFMemberResource {
} }
/**
* 用户权限校验
* @return
*/
public WFMember getEntity(){
return new WFMember();
}
} }
...@@ -50,11 +50,14 @@ public class WFProcessDefinitionResource { ...@@ -50,11 +50,14 @@ public class WFProcessDefinitionResource {
@Autowired @Autowired
@Lazy @Lazy
private WFProcessDefinitionMapping wfprocessdefinitionMapping; public WFProcessDefinitionMapping wfprocessdefinitionMapping;
public WFProcessDefinitionDTO permissionDTO=new WFProcessDefinitionDTO();
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Save-all')")
@ApiOperation(value = "Save", tags = {"WFProcessDefinition" }, notes = "Save") @ApiOperation(value = "Save", tags = {"WFProcessDefinition" }, notes = "Save")
@RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions/save") @RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions/save")
public ResponseEntity<Boolean> save(@RequestBody WFProcessDefinitionDTO wfprocessdefinitiondto) { public ResponseEntity<Boolean> save(@RequestBody WFProcessDefinitionDTO wfprocessdefinitiondto) {
...@@ -71,7 +74,7 @@ public class WFProcessDefinitionResource { ...@@ -71,7 +74,7 @@ public class WFProcessDefinitionResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Update-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Update-all')")
@ApiOperation(value = "Update", tags = {"WFProcessDefinition" }, notes = "Update") @ApiOperation(value = "Update", tags = {"WFProcessDefinition" }, notes = "Update")
@RequestMapping(method = RequestMethod.PUT, value = "/wfprocessdefinitions/{wfprocessdefinition_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfprocessdefinitions/{wfprocessdefinition_id}")
@Transactional @Transactional
...@@ -83,7 +86,6 @@ public class WFProcessDefinitionResource { ...@@ -83,7 +86,6 @@ public class WFProcessDefinitionResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Update-all')")
@ApiOperation(value = "UpdateBatch", tags = {"WFProcessDefinition" }, notes = "UpdateBatch") @ApiOperation(value = "UpdateBatch", tags = {"WFProcessDefinition" }, notes = "UpdateBatch")
@RequestMapping(method = RequestMethod.PUT, value = "/wfprocessdefinitions/batch") @RequestMapping(method = RequestMethod.PUT, value = "/wfprocessdefinitions/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFProcessDefinitionDTO> wfprocessdefinitiondtos) { public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFProcessDefinitionDTO> wfprocessdefinitiondtos) {
...@@ -94,7 +96,7 @@ public class WFProcessDefinitionResource { ...@@ -94,7 +96,7 @@ public class WFProcessDefinitionResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Get-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Get-all')")
@ApiOperation(value = "Get", tags = {"WFProcessDefinition" }, notes = "Get") @ApiOperation(value = "Get", tags = {"WFProcessDefinition" }, notes = "Get")
@RequestMapping(method = RequestMethod.GET, value = "/wfprocessdefinitions/{wfprocessdefinition_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfprocessdefinitions/{wfprocessdefinition_id}")
public ResponseEntity<WFProcessDefinitionDTO> get(@PathVariable("wfprocessdefinition_id") String wfprocessdefinition_id) { public ResponseEntity<WFProcessDefinitionDTO> get(@PathVariable("wfprocessdefinition_id") String wfprocessdefinition_id) {
...@@ -106,6 +108,7 @@ public class WFProcessDefinitionResource { ...@@ -106,6 +108,7 @@ public class WFProcessDefinitionResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-CheckKey-all')")
@ApiOperation(value = "CheckKey", tags = {"WFProcessDefinition" }, notes = "CheckKey") @ApiOperation(value = "CheckKey", tags = {"WFProcessDefinition" }, notes = "CheckKey")
@RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody WFProcessDefinitionDTO wfprocessdefinitiondto) { public ResponseEntity<Boolean> checkKey(@RequestBody WFProcessDefinitionDTO wfprocessdefinitiondto) {
...@@ -115,6 +118,7 @@ public class WFProcessDefinitionResource { ...@@ -115,6 +118,7 @@ public class WFProcessDefinitionResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-GetDraft-all')")
@ApiOperation(value = "GetDraft", tags = {"WFProcessDefinition" }, notes = "GetDraft") @ApiOperation(value = "GetDraft", tags = {"WFProcessDefinition" }, notes = "GetDraft")
@RequestMapping(method = RequestMethod.GET, value = "/wfprocessdefinitions/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfprocessdefinitions/getdraft")
public ResponseEntity<WFProcessDefinitionDTO> getDraft() { public ResponseEntity<WFProcessDefinitionDTO> getDraft() {
...@@ -124,7 +128,7 @@ public class WFProcessDefinitionResource { ...@@ -124,7 +128,7 @@ public class WFProcessDefinitionResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Create-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Create-all')")
@ApiOperation(value = "Create", tags = {"WFProcessDefinition" }, notes = "Create") @ApiOperation(value = "Create", tags = {"WFProcessDefinition" }, notes = "Create")
@RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions") @RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions")
@Transactional @Transactional
...@@ -134,7 +138,7 @@ public class WFProcessDefinitionResource { ...@@ -134,7 +138,7 @@ public class WFProcessDefinitionResource {
WFProcessDefinitionDTO dto = wfprocessdefinitionMapping.toDto(domain); WFProcessDefinitionDTO dto = wfprocessdefinitionMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Create-all')")
@ApiOperation(value = "createBatch", tags = {"WFProcessDefinition" }, notes = "createBatch") @ApiOperation(value = "createBatch", tags = {"WFProcessDefinition" }, notes = "createBatch")
@RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions/batch") @RequestMapping(method = RequestMethod.POST, value = "/wfprocessdefinitions/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<WFProcessDefinitionDTO> wfprocessdefinitiondtos) { public ResponseEntity<Boolean> createBatch(@RequestBody List<WFProcessDefinitionDTO> wfprocessdefinitiondtos) {
...@@ -145,7 +149,7 @@ public class WFProcessDefinitionResource { ...@@ -145,7 +149,7 @@ public class WFProcessDefinitionResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Remove-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Remove-all')")
@ApiOperation(value = "Remove", tags = {"WFProcessDefinition" }, notes = "Remove") @ApiOperation(value = "Remove", tags = {"WFProcessDefinition" }, notes = "Remove")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfprocessdefinitions/{wfprocessdefinition_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfprocessdefinitions/{wfprocessdefinition_id}")
@Transactional @Transactional
...@@ -160,7 +164,7 @@ public class WFProcessDefinitionResource { ...@@ -160,7 +164,7 @@ public class WFProcessDefinitionResource {
return ResponseEntity.status(HttpStatus.OK).body(true); return ResponseEntity.status(HttpStatus.OK).body(true);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Default-all')")
@ApiOperation(value = "fetchDEFAULT", tags = {"WFProcessDefinition" } ,notes = "fetchDEFAULT") @ApiOperation(value = "fetchDEFAULT", tags = {"WFProcessDefinition" } ,notes = "fetchDEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/wfprocessdefinitions/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfprocessdefinitions/fetchdefault")
public ResponseEntity<List<WFProcessDefinitionDTO>> fetchDefault(WFProcessDefinitionSearchContext context) { public ResponseEntity<List<WFProcessDefinitionDTO>> fetchDefault(WFProcessDefinitionSearchContext context) {
...@@ -173,7 +177,7 @@ public class WFProcessDefinitionResource { ...@@ -173,7 +177,7 @@ public class WFProcessDefinitionResource {
.body(list); .body(list);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFProcessDefinition-Default-all')")
@ApiOperation(value = "searchDEFAULT", tags = {"WFProcessDefinition" } ,notes = "searchDEFAULT") @ApiOperation(value = "searchDEFAULT", tags = {"WFProcessDefinition" } ,notes = "searchDEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/wfprocessdefinitions/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfprocessdefinitions/searchdefault")
public ResponseEntity<Page<WFProcessDefinitionDTO>> searchDefault(@RequestBody WFProcessDefinitionSearchContext context) { public ResponseEntity<Page<WFProcessDefinitionDTO>> searchDefault(@RequestBody WFProcessDefinitionSearchContext context) {
...@@ -183,12 +187,6 @@ public class WFProcessDefinitionResource { ...@@ -183,12 +187,6 @@ public class WFProcessDefinitionResource {
} }
/**
* 用户权限校验
* @return
*/
public WFProcessDefinition getEntity(){
return new WFProcessDefinition();
}
} }
...@@ -50,12 +50,14 @@ public class WFREModelResource { ...@@ -50,12 +50,14 @@ public class WFREModelResource {
@Autowired @Autowired
@Lazy @Lazy
private WFREModelMapping wfremodelMapping; public WFREModelMapping wfremodelMapping;
public WFREModelDTO permissionDTO=new WFREModelDTO();
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Update-all')")
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Update-all')")
@ApiOperation(value = "Update", tags = {"WFREModel" }, notes = "Update") @ApiOperation(value = "Update", tags = {"WFREModel" }, notes = "Update")
@RequestMapping(method = RequestMethod.PUT, value = "/wfremodels/{wfremodel_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfremodels/{wfremodel_id}")
@Transactional @Transactional
...@@ -67,7 +69,6 @@ public class WFREModelResource { ...@@ -67,7 +69,6 @@ public class WFREModelResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Update-all')")
@ApiOperation(value = "UpdateBatch", tags = {"WFREModel" }, notes = "UpdateBatch") @ApiOperation(value = "UpdateBatch", tags = {"WFREModel" }, notes = "UpdateBatch")
@RequestMapping(method = RequestMethod.PUT, value = "/wfremodels/batch") @RequestMapping(method = RequestMethod.PUT, value = "/wfremodels/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFREModelDTO> wfremodeldtos) { public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFREModelDTO> wfremodeldtos) {
...@@ -78,6 +79,7 @@ public class WFREModelResource { ...@@ -78,6 +79,7 @@ public class WFREModelResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Save-all')")
@ApiOperation(value = "Save", tags = {"WFREModel" }, notes = "Save") @ApiOperation(value = "Save", tags = {"WFREModel" }, notes = "Save")
@RequestMapping(method = RequestMethod.POST, value = "/wfremodels/save") @RequestMapping(method = RequestMethod.POST, value = "/wfremodels/save")
public ResponseEntity<Boolean> save(@RequestBody WFREModelDTO wfremodeldto) { public ResponseEntity<Boolean> save(@RequestBody WFREModelDTO wfremodeldto) {
...@@ -94,7 +96,7 @@ public class WFREModelResource { ...@@ -94,7 +96,7 @@ public class WFREModelResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Get-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Get-all')")
@ApiOperation(value = "Get", tags = {"WFREModel" }, notes = "Get") @ApiOperation(value = "Get", tags = {"WFREModel" }, notes = "Get")
@RequestMapping(method = RequestMethod.GET, value = "/wfremodels/{wfremodel_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfremodels/{wfremodel_id}")
public ResponseEntity<WFREModelDTO> get(@PathVariable("wfremodel_id") String wfremodel_id) { public ResponseEntity<WFREModelDTO> get(@PathVariable("wfremodel_id") String wfremodel_id) {
...@@ -106,7 +108,7 @@ public class WFREModelResource { ...@@ -106,7 +108,7 @@ public class WFREModelResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Create-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Create-all')")
@ApiOperation(value = "Create", tags = {"WFREModel" }, notes = "Create") @ApiOperation(value = "Create", tags = {"WFREModel" }, notes = "Create")
@RequestMapping(method = RequestMethod.POST, value = "/wfremodels") @RequestMapping(method = RequestMethod.POST, value = "/wfremodels")
@Transactional @Transactional
...@@ -116,7 +118,7 @@ public class WFREModelResource { ...@@ -116,7 +118,7 @@ public class WFREModelResource {
WFREModelDTO dto = wfremodelMapping.toDto(domain); WFREModelDTO dto = wfremodelMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Create-all')")
@ApiOperation(value = "createBatch", tags = {"WFREModel" }, notes = "createBatch") @ApiOperation(value = "createBatch", tags = {"WFREModel" }, notes = "createBatch")
@RequestMapping(method = RequestMethod.POST, value = "/wfremodels/batch") @RequestMapping(method = RequestMethod.POST, value = "/wfremodels/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<WFREModelDTO> wfremodeldtos) { public ResponseEntity<Boolean> createBatch(@RequestBody List<WFREModelDTO> wfremodeldtos) {
...@@ -127,6 +129,7 @@ public class WFREModelResource { ...@@ -127,6 +129,7 @@ public class WFREModelResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-CheckKey-all')")
@ApiOperation(value = "CheckKey", tags = {"WFREModel" }, notes = "CheckKey") @ApiOperation(value = "CheckKey", tags = {"WFREModel" }, notes = "CheckKey")
@RequestMapping(method = RequestMethod.POST, value = "/wfremodels/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfremodels/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody WFREModelDTO wfremodeldto) { public ResponseEntity<Boolean> checkKey(@RequestBody WFREModelDTO wfremodeldto) {
...@@ -136,7 +139,7 @@ public class WFREModelResource { ...@@ -136,7 +139,7 @@ public class WFREModelResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Remove-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Remove-all')")
@ApiOperation(value = "Remove", tags = {"WFREModel" }, notes = "Remove") @ApiOperation(value = "Remove", tags = {"WFREModel" }, notes = "Remove")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfremodels/{wfremodel_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfremodels/{wfremodel_id}")
@Transactional @Transactional
...@@ -154,13 +157,14 @@ public class WFREModelResource { ...@@ -154,13 +157,14 @@ public class WFREModelResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-GetDraft-all')")
@ApiOperation(value = "GetDraft", tags = {"WFREModel" }, notes = "GetDraft") @ApiOperation(value = "GetDraft", tags = {"WFREModel" }, notes = "GetDraft")
@RequestMapping(method = RequestMethod.GET, value = "/wfremodels/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfremodels/getdraft")
public ResponseEntity<WFREModelDTO> getDraft() { public ResponseEntity<WFREModelDTO> getDraft() {
return ResponseEntity.status(HttpStatus.OK).body(wfremodelMapping.toDto(wfremodelService.getDraft(new WFREModel()))); return ResponseEntity.status(HttpStatus.OK).body(wfremodelMapping.toDto(wfremodelService.getDraft(new WFREModel())));
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Default-all')")
@ApiOperation(value = "fetchDEFAULT", tags = {"WFREModel" } ,notes = "fetchDEFAULT") @ApiOperation(value = "fetchDEFAULT", tags = {"WFREModel" } ,notes = "fetchDEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/wfremodels/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfremodels/fetchdefault")
public ResponseEntity<List<WFREModelDTO>> fetchDefault(WFREModelSearchContext context) { public ResponseEntity<List<WFREModelDTO>> fetchDefault(WFREModelSearchContext context) {
...@@ -173,7 +177,7 @@ public class WFREModelResource { ...@@ -173,7 +177,7 @@ public class WFREModelResource {
.body(list); .body(list);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFREModel-Default-all')")
@ApiOperation(value = "searchDEFAULT", tags = {"WFREModel" } ,notes = "searchDEFAULT") @ApiOperation(value = "searchDEFAULT", tags = {"WFREModel" } ,notes = "searchDEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/wfremodels/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfremodels/searchdefault")
public ResponseEntity<Page<WFREModelDTO>> searchDefault(@RequestBody WFREModelSearchContext context) { public ResponseEntity<Page<WFREModelDTO>> searchDefault(@RequestBody WFREModelSearchContext context) {
...@@ -183,12 +187,6 @@ public class WFREModelResource { ...@@ -183,12 +187,6 @@ public class WFREModelResource {
} }
/**
* 用户权限校验
* @return
*/
public WFREModel getEntity(){
return new WFREModel();
}
} }
...@@ -50,12 +50,14 @@ public class WFSystemResource { ...@@ -50,12 +50,14 @@ public class WFSystemResource {
@Autowired @Autowired
@Lazy @Lazy
private WFSystemMapping wfsystemMapping; public WFSystemMapping wfsystemMapping;
public WFSystemDTO permissionDTO=new WFSystemDTO();
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Remove-all')")
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Remove-all')")
@ApiOperation(value = "Remove", tags = {"WFSystem" }, notes = "Remove") @ApiOperation(value = "Remove", tags = {"WFSystem" }, notes = "Remove")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfsystems/{wfsystem_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfsystems/{wfsystem_id}")
@Transactional @Transactional
...@@ -73,7 +75,7 @@ public class WFSystemResource { ...@@ -73,7 +75,7 @@ public class WFSystemResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Update-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Update-all')")
@ApiOperation(value = "Update", tags = {"WFSystem" }, notes = "Update") @ApiOperation(value = "Update", tags = {"WFSystem" }, notes = "Update")
@RequestMapping(method = RequestMethod.PUT, value = "/wfsystems/{wfsystem_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfsystems/{wfsystem_id}")
@Transactional @Transactional
...@@ -85,7 +87,6 @@ public class WFSystemResource { ...@@ -85,7 +87,6 @@ public class WFSystemResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Update-all')")
@ApiOperation(value = "UpdateBatch", tags = {"WFSystem" }, notes = "UpdateBatch") @ApiOperation(value = "UpdateBatch", tags = {"WFSystem" }, notes = "UpdateBatch")
@RequestMapping(method = RequestMethod.PUT, value = "/wfsystems/batch") @RequestMapping(method = RequestMethod.PUT, value = "/wfsystems/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFSystemDTO> wfsystemdtos) { public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFSystemDTO> wfsystemdtos) {
...@@ -96,6 +97,7 @@ public class WFSystemResource { ...@@ -96,6 +97,7 @@ public class WFSystemResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-GetDraft-all')")
@ApiOperation(value = "GetDraft", tags = {"WFSystem" }, notes = "GetDraft") @ApiOperation(value = "GetDraft", tags = {"WFSystem" }, notes = "GetDraft")
@RequestMapping(method = RequestMethod.GET, value = "/wfsystems/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfsystems/getdraft")
public ResponseEntity<WFSystemDTO> getDraft() { public ResponseEntity<WFSystemDTO> getDraft() {
...@@ -105,6 +107,7 @@ public class WFSystemResource { ...@@ -105,6 +107,7 @@ public class WFSystemResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Save-all')")
@ApiOperation(value = "Save", tags = {"WFSystem" }, notes = "Save") @ApiOperation(value = "Save", tags = {"WFSystem" }, notes = "Save")
@RequestMapping(method = RequestMethod.POST, value = "/wfsystems/save") @RequestMapping(method = RequestMethod.POST, value = "/wfsystems/save")
public ResponseEntity<Boolean> save(@RequestBody WFSystemDTO wfsystemdto) { public ResponseEntity<Boolean> save(@RequestBody WFSystemDTO wfsystemdto) {
...@@ -121,7 +124,7 @@ public class WFSystemResource { ...@@ -121,7 +124,7 @@ public class WFSystemResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Create-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Create-all')")
@ApiOperation(value = "Create", tags = {"WFSystem" }, notes = "Create") @ApiOperation(value = "Create", tags = {"WFSystem" }, notes = "Create")
@RequestMapping(method = RequestMethod.POST, value = "/wfsystems") @RequestMapping(method = RequestMethod.POST, value = "/wfsystems")
@Transactional @Transactional
...@@ -131,7 +134,7 @@ public class WFSystemResource { ...@@ -131,7 +134,7 @@ public class WFSystemResource {
WFSystemDTO dto = wfsystemMapping.toDto(domain); WFSystemDTO dto = wfsystemMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Create-all')")
@ApiOperation(value = "createBatch", tags = {"WFSystem" }, notes = "createBatch") @ApiOperation(value = "createBatch", tags = {"WFSystem" }, notes = "createBatch")
@RequestMapping(method = RequestMethod.POST, value = "/wfsystems/batch") @RequestMapping(method = RequestMethod.POST, value = "/wfsystems/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<WFSystemDTO> wfsystemdtos) { public ResponseEntity<Boolean> createBatch(@RequestBody List<WFSystemDTO> wfsystemdtos) {
...@@ -142,6 +145,7 @@ public class WFSystemResource { ...@@ -142,6 +145,7 @@ public class WFSystemResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-CheckKey-all')")
@ApiOperation(value = "CheckKey", tags = {"WFSystem" }, notes = "CheckKey") @ApiOperation(value = "CheckKey", tags = {"WFSystem" }, notes = "CheckKey")
@RequestMapping(method = RequestMethod.POST, value = "/wfsystems/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfsystems/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody WFSystemDTO wfsystemdto) { public ResponseEntity<Boolean> checkKey(@RequestBody WFSystemDTO wfsystemdto) {
...@@ -151,7 +155,7 @@ public class WFSystemResource { ...@@ -151,7 +155,7 @@ public class WFSystemResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Get-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Get-all')")
@ApiOperation(value = "Get", tags = {"WFSystem" }, notes = "Get") @ApiOperation(value = "Get", tags = {"WFSystem" }, notes = "Get")
@RequestMapping(method = RequestMethod.GET, value = "/wfsystems/{wfsystem_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfsystems/{wfsystem_id}")
public ResponseEntity<WFSystemDTO> get(@PathVariable("wfsystem_id") String wfsystem_id) { public ResponseEntity<WFSystemDTO> get(@PathVariable("wfsystem_id") String wfsystem_id) {
...@@ -160,7 +164,7 @@ public class WFSystemResource { ...@@ -160,7 +164,7 @@ public class WFSystemResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Default-all')")
@ApiOperation(value = "fetchDEFAULT", tags = {"WFSystem" } ,notes = "fetchDEFAULT") @ApiOperation(value = "fetchDEFAULT", tags = {"WFSystem" } ,notes = "fetchDEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/wfsystems/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfsystems/fetchdefault")
public ResponseEntity<List<WFSystemDTO>> fetchDefault(WFSystemSearchContext context) { public ResponseEntity<List<WFSystemDTO>> fetchDefault(WFSystemSearchContext context) {
...@@ -173,7 +177,7 @@ public class WFSystemResource { ...@@ -173,7 +177,7 @@ public class WFSystemResource {
.body(list); .body(list);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFSystem-Default-all')")
@ApiOperation(value = "searchDEFAULT", tags = {"WFSystem" } ,notes = "searchDEFAULT") @ApiOperation(value = "searchDEFAULT", tags = {"WFSystem" } ,notes = "searchDEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/wfsystems/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfsystems/searchdefault")
public ResponseEntity<Page<WFSystemDTO>> searchDefault(@RequestBody WFSystemSearchContext context) { public ResponseEntity<Page<WFSystemDTO>> searchDefault(@RequestBody WFSystemSearchContext context) {
...@@ -183,12 +187,6 @@ public class WFSystemResource { ...@@ -183,12 +187,6 @@ public class WFSystemResource {
} }
/**
* 用户权限校验
* @return
*/
public WFSystem getEntity(){
return new WFSystem();
}
} }
...@@ -50,12 +50,14 @@ public class WFUserResource { ...@@ -50,12 +50,14 @@ public class WFUserResource {
@Autowired @Autowired
@Lazy @Lazy
private WFUserMapping wfuserMapping; public WFUserMapping wfuserMapping;
public WFUserDTO permissionDTO=new WFUserDTO();
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Remove-all')")
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Remove-all')")
@ApiOperation(value = "Remove", tags = {"WFUser" }, notes = "Remove") @ApiOperation(value = "Remove", tags = {"WFUser" }, notes = "Remove")
@RequestMapping(method = RequestMethod.DELETE, value = "/wfusers/{wfuser_id}") @RequestMapping(method = RequestMethod.DELETE, value = "/wfusers/{wfuser_id}")
@Transactional @Transactional
...@@ -73,6 +75,7 @@ public class WFUserResource { ...@@ -73,6 +75,7 @@ public class WFUserResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-GetDraft-all')")
@ApiOperation(value = "GetDraft", tags = {"WFUser" }, notes = "GetDraft") @ApiOperation(value = "GetDraft", tags = {"WFUser" }, notes = "GetDraft")
@RequestMapping(method = RequestMethod.GET, value = "/wfusers/getdraft") @RequestMapping(method = RequestMethod.GET, value = "/wfusers/getdraft")
public ResponseEntity<WFUserDTO> getDraft() { public ResponseEntity<WFUserDTO> getDraft() {
...@@ -82,6 +85,7 @@ public class WFUserResource { ...@@ -82,6 +85,7 @@ public class WFUserResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Save-all')")
@ApiOperation(value = "Save", tags = {"WFUser" }, notes = "Save") @ApiOperation(value = "Save", tags = {"WFUser" }, notes = "Save")
@RequestMapping(method = RequestMethod.POST, value = "/wfusers/save") @RequestMapping(method = RequestMethod.POST, value = "/wfusers/save")
public ResponseEntity<Boolean> save(@RequestBody WFUserDTO wfuserdto) { public ResponseEntity<Boolean> save(@RequestBody WFUserDTO wfuserdto) {
...@@ -98,7 +102,7 @@ public class WFUserResource { ...@@ -98,7 +102,7 @@ public class WFUserResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Update-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Update-all')")
@ApiOperation(value = "Update", tags = {"WFUser" }, notes = "Update") @ApiOperation(value = "Update", tags = {"WFUser" }, notes = "Update")
@RequestMapping(method = RequestMethod.PUT, value = "/wfusers/{wfuser_id}") @RequestMapping(method = RequestMethod.PUT, value = "/wfusers/{wfuser_id}")
@Transactional @Transactional
...@@ -110,7 +114,6 @@ public class WFUserResource { ...@@ -110,7 +114,6 @@ public class WFUserResource {
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Update-all')")
@ApiOperation(value = "UpdateBatch", tags = {"WFUser" }, notes = "UpdateBatch") @ApiOperation(value = "UpdateBatch", tags = {"WFUser" }, notes = "UpdateBatch")
@RequestMapping(method = RequestMethod.PUT, value = "/wfusers/batch") @RequestMapping(method = RequestMethod.PUT, value = "/wfusers/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFUserDTO> wfuserdtos) { public ResponseEntity<Boolean> updateBatch(@RequestBody List<WFUserDTO> wfuserdtos) {
...@@ -121,7 +124,7 @@ public class WFUserResource { ...@@ -121,7 +124,7 @@ public class WFUserResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Get-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Get-all')")
@ApiOperation(value = "Get", tags = {"WFUser" }, notes = "Get") @ApiOperation(value = "Get", tags = {"WFUser" }, notes = "Get")
@RequestMapping(method = RequestMethod.GET, value = "/wfusers/{wfuser_id}") @RequestMapping(method = RequestMethod.GET, value = "/wfusers/{wfuser_id}")
public ResponseEntity<WFUserDTO> get(@PathVariable("wfuser_id") String wfuser_id) { public ResponseEntity<WFUserDTO> get(@PathVariable("wfuser_id") String wfuser_id) {
...@@ -133,7 +136,7 @@ public class WFUserResource { ...@@ -133,7 +136,7 @@ public class WFUserResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Create-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Create-all')")
@ApiOperation(value = "Create", tags = {"WFUser" }, notes = "Create") @ApiOperation(value = "Create", tags = {"WFUser" }, notes = "Create")
@RequestMapping(method = RequestMethod.POST, value = "/wfusers") @RequestMapping(method = RequestMethod.POST, value = "/wfusers")
@Transactional @Transactional
...@@ -143,7 +146,7 @@ public class WFUserResource { ...@@ -143,7 +146,7 @@ public class WFUserResource {
WFUserDTO dto = wfuserMapping.toDto(domain); WFUserDTO dto = wfuserMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto); return ResponseEntity.status(HttpStatus.OK).body(dto);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Create-all')")
@ApiOperation(value = "createBatch", tags = {"WFUser" }, notes = "createBatch") @ApiOperation(value = "createBatch", tags = {"WFUser" }, notes = "createBatch")
@RequestMapping(method = RequestMethod.POST, value = "/wfusers/batch") @RequestMapping(method = RequestMethod.POST, value = "/wfusers/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<WFUserDTO> wfuserdtos) { public ResponseEntity<Boolean> createBatch(@RequestBody List<WFUserDTO> wfuserdtos) {
...@@ -154,13 +157,14 @@ public class WFUserResource { ...@@ -154,13 +157,14 @@ public class WFUserResource {
//@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-CheckKey-all')")
@ApiOperation(value = "CheckKey", tags = {"WFUser" }, notes = "CheckKey") @ApiOperation(value = "CheckKey", tags = {"WFUser" }, notes = "CheckKey")
@RequestMapping(method = RequestMethod.POST, value = "/wfusers/checkkey") @RequestMapping(method = RequestMethod.POST, value = "/wfusers/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody WFUserDTO wfuserdto) { public ResponseEntity<Boolean> checkKey(@RequestBody WFUserDTO wfuserdto) {
return ResponseEntity.status(HttpStatus.OK).body(wfuserService.checkKey(wfuserMapping.toDomain(wfuserdto))); return ResponseEntity.status(HttpStatus.OK).body(wfuserService.checkKey(wfuserMapping.toDomain(wfuserdto)));
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Default-all')")
@ApiOperation(value = "fetchDEFAULT", tags = {"WFUser" } ,notes = "fetchDEFAULT") @ApiOperation(value = "fetchDEFAULT", tags = {"WFUser" } ,notes = "fetchDEFAULT")
@RequestMapping(method= RequestMethod.GET , value="/wfusers/fetchdefault") @RequestMapping(method= RequestMethod.GET , value="/wfusers/fetchdefault")
public ResponseEntity<List<WFUserDTO>> fetchDefault(WFUserSearchContext context) { public ResponseEntity<List<WFUserDTO>> fetchDefault(WFUserSearchContext context) {
...@@ -173,7 +177,7 @@ public class WFUserResource { ...@@ -173,7 +177,7 @@ public class WFUserResource {
.body(list); .body(list);
} }
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Default-all')") //@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzwf-WFUser-Default-all')")
@ApiOperation(value = "searchDEFAULT", tags = {"WFUser" } ,notes = "searchDEFAULT") @ApiOperation(value = "searchDEFAULT", tags = {"WFUser" } ,notes = "searchDEFAULT")
@RequestMapping(method= RequestMethod.POST , value="/wfusers/searchdefault") @RequestMapping(method= RequestMethod.POST , value="/wfusers/searchdefault")
public ResponseEntity<Page<WFUserDTO>> searchDefault(@RequestBody WFUserSearchContext context) { public ResponseEntity<Page<WFUserDTO>> searchDefault(@RequestBody WFUserSearchContext context) {
...@@ -183,12 +187,6 @@ public class WFUserResource { ...@@ -183,12 +187,6 @@ public class WFUserResource {
} }
/**
* 用户权限校验
* @return
*/
public WFUser getEntity(){
return new WFUser();
}
} }
...@@ -6,7 +6,9 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; ...@@ -6,7 +6,9 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mongodb.QueryBuilder; import com.mongodb.QueryBuilder;
import cn.ibizlab.util.annotation.DEField; import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.EntityBase; import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.domain.MappingBase;
import cn.ibizlab.util.enums.DEPredefinedFieldType; import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.filter.QueryBuildContext; import cn.ibizlab.util.filter.QueryBuildContext;
import cn.ibizlab.util.filter.QueryWrapperContext; import cn.ibizlab.util.filter.QueryWrapperContext;
...@@ -72,8 +74,10 @@ public class AuthPermissionEvaluator implements PermissionEvaluator { ...@@ -72,8 +74,10 @@ public class AuthPermissionEvaluator implements PermissionEvaluator {
return true; return true;
List paramList = (ArrayList) params; List paramList = (ArrayList) params;
EntityBase entity = (EntityBase) paramList.get(0); String deStorageMode= (String) paramList.get(0);
String deStorageMode= (String) paramList.get(1); MappingBase mappingBase= (MappingBase) paramList.get(1);
DTOBase dtoBase = (DTOBase) paramList.get(2);
EntityBase entity = (EntityBase) mappingBase.toDomain(dtoBase);
if (StringUtils.isEmpty(entity)) if (StringUtils.isEmpty(entity))
return false; return false;
...@@ -82,10 +86,6 @@ public class AuthPermissionEvaluator implements PermissionEvaluator { ...@@ -82,10 +86,6 @@ public class AuthPermissionEvaluator implements PermissionEvaluator {
JSONObject permissionList=userPermission.getJSONObject("entities"); JSONObject permissionList=userPermission.getJSONObject("entities");
String entityName = entity.getClass().getSimpleName(); String entityName = entity.getClass().getSimpleName();
if(action.equalsIgnoreCase("create")){
return validDEActionHasPermission(permissionList,entityName,action);
}
else{
//拥有全部数据访问权限时,则跳过权限检查 //拥有全部数据访问权限时,则跳过权限检查
if(isAllData(permissionList,entityName,action)){ if(isAllData(permissionList,entityName,action)){
return true; return true;
...@@ -94,8 +94,11 @@ public class AuthPermissionEvaluator implements PermissionEvaluator { ...@@ -94,8 +94,11 @@ public class AuthPermissionEvaluator implements PermissionEvaluator {
if(!validDEActionHasPermission(permissionList,entityName,action)){ if(!validDEActionHasPermission(permissionList,entityName,action)){
return false; return false;
} }
//检查是否有数据权限 if(action.equalsIgnoreCase("create")){
return deActionPermissionValidRouter(deStorageMode, entity , action , srfKey, permissionList); return createActionPermissionValid(permissionList,entity, action);
}
else{
return otherActionPermissionValidRouter(deStorageMode, entity , action , srfKey, permissionList);
} }
} }
...@@ -113,7 +116,10 @@ public class AuthPermissionEvaluator implements PermissionEvaluator { ...@@ -113,7 +116,10 @@ public class AuthPermissionEvaluator implements PermissionEvaluator {
if(!permissionList.containsKey(entityName)) if(!permissionList.containsKey(entityName))
return false; return false;
JSONObject entity=permissionList.getJSONObject(entityName); JSONObject entity=permissionList.getJSONObject(entityName);
if(entity.containsKey(action) && entity.getJSONArray(action).contains("ALL")) if(!entity.containsKey(DEActionType))
return false;
JSONObject dataRange=entity.getJSONObject(DEActionType);//获取实体行为对应的数据范围
if(dataRange.containsKey(action) && dataRange.getJSONArray(action).contains("all"))
return true; return true;
return false; return false;
...@@ -144,6 +150,81 @@ public class AuthPermissionEvaluator implements PermissionEvaluator { ...@@ -144,6 +150,81 @@ public class AuthPermissionEvaluator implements PermissionEvaluator {
return hasPermission; return hasPermission;
} }
/**
* 新建行为校验
* @param permissionList
* @param entity
* @param action
* @return
*/
private boolean createActionPermissionValid(JSONObject permissionList,EntityBase entity, String action){
Map<String,String> permissionField=getPermissionField(entity);//获取组织、部门预置属性
String keyField=permissionField.get(keyFieldTag);
if(StringUtils.isEmpty(keyField)){
throw new RuntimeException("权限校验失败,请检查当前实体中是否已经配置主键属性!");
}
//获取权限表达式[全部数据、本单位、本部门等]
JSONObject entityObj=permissionList.getJSONObject(entity.getClass().getSimpleName());//获取实体
JSONObject permissionType= entityObj.getJSONObject(DEActionType);
JSONArray dataRangeList=permissionType.getJSONArray(action);//行为:read;insert...
if(dataRangeList.size()==0)
return false;
boolean isCreate=true;
String orgField=permissionField.get("orgfield");
String orgDeptField=permissionField.get("orgsecfield");
String createManField=permissionField.get("createmanfield");
AuthenticationUser authenticationUser = AuthenticationUser.getAuthenticationUser();
Map<String, Set<String>> userInfo = authenticationUser.getOrgInfo();
Set<String> orgParent = userInfo.get("parentorg");
Set<String> orgChild = userInfo.get("suborg");
Set<String> orgDeptParent = userInfo.get("parentdept");
Set<String> orgDeptChild = userInfo.get("subdept");
Object orgFieldValue=entity.get(orgField);
Object orgDeptFieldValue=entity.get(orgDeptField);
Object crateManFieldValue=entity.get(createManField);
Set<String> userOrg = new HashSet<>();
Set<String> userOrgDept = new HashSet<>();
for(int a=0;a<dataRangeList.size();a++){
String permissionCond=dataRangeList.getString(a);//权限配置条件
if(permissionCond.equals("curorg")){ //本单位
userOrg.add(authenticationUser.getOrgid());
}
else if(permissionCond.equals("porg")){//上级单位
userOrg.addAll(orgParent);
}
else if(permissionCond.equals("sorg")){//下级单位
userOrg.addAll(orgChild);
}
else if(permissionCond.equals("curorgdept")){//本部门
userOrgDept.add(authenticationUser.getMdeptid());
}
else if(permissionCond.equals("porgdept")){//上级部门
userOrgDept.addAll(orgDeptParent);
}
else if(permissionCond.equals("sorgdept")){//下级部门
userOrgDept.addAll(orgDeptChild);
}
}
if(!ObjectUtils.isEmpty(orgFieldValue) && !userOrg.contains(orgFieldValue)){
return false;
}
if(!ObjectUtils.isEmpty(orgDeptFieldValue) && !userOrgDept.contains(orgDeptFieldValue)){
return false;
}
if(!ObjectUtils.isEmpty(crateManFieldValue) && !crateManFieldValue.equals(authenticationUser.getUserid())){
return false;
}
return isCreate;
}
/** /**
* 根据实体存储模式,进行鉴权 * 根据实体存储模式,进行鉴权
...@@ -154,7 +235,7 @@ public class AuthPermissionEvaluator implements PermissionEvaluator { ...@@ -154,7 +235,7 @@ public class AuthPermissionEvaluator implements PermissionEvaluator {
* @param permissionList * @param permissionList
* @return * @return
*/ */
private boolean deActionPermissionValidRouter(String deStorageMode, EntityBase entity , String action , Object srfKey , JSONObject permissionList){ private boolean otherActionPermissionValidRouter(String deStorageMode, EntityBase entity , String action , Object srfKey , JSONObject permissionList){
if(deStorageMode.equalsIgnoreCase("sql")){ if(deStorageMode.equalsIgnoreCase("sql")){
return sqlPermissionValid(entity , action , srfKey, permissionList); return sqlPermissionValid(entity , action , srfKey, permissionList);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册