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

ibiz4j 发布系统代码 [ibz-ou,统一组织单位]

上级 20e93db9
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<template v-else> <template v-else>
<i v-if="isFirst" class='fa fa-cogs app-menu-icon'></i> <i v-if="isFirst" class='fa fa-cogs app-menu-icon'></i>
</template> </template>
<span ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name}`)">{{$t(`app.menus.${ctrlName}.${item.name}`)}}</span> <span ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)">{{$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)}}</span>
</template> </template>
<app-menu-item :isCollapse="isCollapse" :menus="item.items" :ctrlName="ctrlName" :isFirst="false" :counterdata="counterdata" :popper-class="popperClass"></app-menu-item> <app-menu-item :isCollapse="isCollapse" :menus="item.items" :ctrlName="ctrlName" :isFirst="false" :counterdata="counterdata" :popper-class="popperClass"></app-menu-item>
</el-submenu> </el-submenu>
...@@ -23,18 +23,18 @@ ...@@ -23,18 +23,18 @@
<el-menu-item :class="[{'isFirst' : isFirst},item.textcls]" v-show="!item.hidden" :index="item.name" :key="item.id"> <el-menu-item :class="[{'isFirst' : isFirst},item.textcls]" v-show="!item.hidden" :index="item.name" :key="item.id">
<template v-if="item.icon && item.icon != ''"> <template v-if="item.icon && item.icon != ''">
<img :src="item.icon" class='app-menu-icon' /> <img :src="item.icon" class='app-menu-icon' />
<span v-if="(isFirst && isCollapse) ? true : false" ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name}`)">{{$t(`app.menus.${ctrlName}.${item.name}`)}}</span> <span v-if="(isFirst && isCollapse) ? true : false" ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)">{{$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)}}</span>
</template> </template>
<template v-else-if="item.iconcls && item.iconcls != ''"> <template v-else-if="item.iconcls && item.iconcls != ''">
<i :class="[item.iconcls, 'app-menu-icon']"></i> <i :class="[item.iconcls, 'app-menu-icon']"></i>
<span v-if="(isFirst && isCollapse) ? true : false" ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name}`)">{{$t(`app.menus.${ctrlName}.${item.name}`)}}</span> <span v-if="(isFirst && isCollapse) ? true : false" ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)">{{$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)}}</span>
</template> </template>
<template v-else> <template v-else>
<i v-if="isFirst" class='fa fa-cogs app-menu-icon'></i> <i v-if="isFirst" class='fa fa-cogs app-menu-icon'></i>
<span v-if="(isFirst && isCollapse) ? true : false" ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name}`)">{{$t(`app.menus.${ctrlName}.${item.name}`)}}</span> <span v-if="(isFirst && isCollapse) ? true : false" ref="circleText" :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)">{{$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)}}</span>
</template> </template>
<template slot="title"> <template slot="title">
<span :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name}`)">{{$t(`app.menus.${ctrlName}.${item.name}`)}}</span> <span :class="{'app-menu-circle' : appMenuCollapseFlag, 'text' : true}" :title="$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)">{{$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)}}</span>
<template v-if="counterdata && counterdata[item.counterid] && counterdata[item.counterid] > 0"> <template v-if="counterdata && counterdata[item.counterid] && counterdata[item.counterid] > 0">
<span class="pull-right"> <span class="pull-right">
<badge :count="counterdata[item.counterid]" :overflow-count="9999"></badge> <badge :count="counterdata[item.counterid]" :overflow-count="9999"></badge>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<img :src="item.iconcls" v-else-if="!Object.is(item.iconcls, '')" /> <img :src="item.iconcls" v-else-if="!Object.is(item.iconcls, '')" />
<i class="fa fa-cogs" v-else></i> <i class="fa fa-cogs" v-else></i>
</span> </span>
<span>{{$t(`app.menus.${ctrlName}.${item.name}`)}}</span> <span>{{$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)}}</span>
<span class="line"></span> <span class="line"></span>
</p> </p>
<p style=" display: 'flex' "> <p style=" display: 'flex' ">
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<img :src="item.iconcls" v-else-if="!Object.is(item.iconcls, '')" /> <img :src="item.iconcls" v-else-if="!Object.is(item.iconcls, '')" />
<i class="fa fa-cogs" v-else></i> <i class="fa fa-cogs" v-else></i>
</span> </span>
<h4>{{$t(`app.menus.${ctrlName}.${item.name}`)}}</h4> <h4>{{$t(`app.menus.${ctrlName}.${item.name.toLowerCase()}`)}}</h4>
</div> </div>
</card> </card>
</template> </template>
......
...@@ -9,14 +9,6 @@ import GridViewEngine from './grid-view-engine'; ...@@ -9,14 +9,6 @@ import GridViewEngine from './grid-view-engine';
*/ */
export default class GridView8Engine extends GridViewEngine { export default class GridView8Engine extends GridViewEngine {
/**
* 表格部件
*
* @type {*}
* @memberof GridView8Engine
*/
protected grid: any;
/** /**
* 表格部件 * 表格部件
* *
......
...@@ -36,6 +36,8 @@ function getAppLocale(){ ...@@ -36,6 +36,8 @@ function getAppLocale(){
nomore:"དེ་ལས་མང་བ་མི་འདུག", nomore:"དེ་ལས་མང་བ་མི་འདུག",
other:"གཞན་དག", other:"གཞན་དག",
valueNotEmpty:"སྟོང་མི་ཆོག", valueNotEmpty:"སྟོང་མི་ཆོག",
createFailed:"གསར་འཛུགས་ཕམ་པ།",
isExist:"གནས་པ་",
}, },
local:{ local:{
new: "གསར་འཛུགས།", new: "གསར་འཛུགས།",
......
...@@ -36,6 +36,8 @@ function getAppLocale(){ ...@@ -36,6 +36,8 @@ function getAppLocale(){
nomore:"No more", nomore:"No more",
other:"other", other:"other",
valueNotEmpty:"The value cannot be null", valueNotEmpty:"The value cannot be null",
createFailed:"Create Failed",
isExist:"Exist",
}, },
local:{ local:{
new: "New", new: "New",
......
...@@ -36,6 +36,8 @@ function getAppLocale(){ ...@@ -36,6 +36,8 @@ function getAppLocale(){
nomore:"没有更多了", nomore:"没有更多了",
other:"其他", other:"其他",
valueNotEmpty:"值不能为空", valueNotEmpty:"值不能为空",
createFailed:"创建失败",
isExist:"已存在",
}, },
local:{ local:{
new: "新建", new: "新建",
......
因为 它太大了无法显示 源差异 。您可以改为 查看blob
...@@ -87,16 +87,16 @@ mock.onDelete(new RegExp(/^\/sysorganizations\/batch$/)).reply((config: any) => ...@@ -87,16 +87,16 @@ mock.onDelete(new RegExp(/^\/sysorganizations\/batch$/)).reply((config: any) =>
}); });
// Select // CheckKey
mock.onGet(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: Select"); console.groupCollapsed("实体:sysorganization 方法: CheckKey");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['orgid']; const paramArray:Array<any> = ['orgid'];
const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -106,13 +106,23 @@ mock.onGet(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/select$/)). ...@@ -106,13 +106,23 @@ mock.onGet(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).
}); });
}); });
} }
let items = mockDatas ? mockDatas : []; //let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.orgid, tempValue.orgid)); //let _items = items.find((item: any) => Object.is(item.orgid, tempValue.orgid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['orgid'] == tempValue['orgid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: "); console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items); console.table(data);
console.groupEnd(); console.groupEnd();
console.groupEnd(); console.groupEnd();
return [status, _items]; return [status, data];
}); });
// Create // Create
...@@ -141,44 +151,6 @@ mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply( ...@@ -141,44 +151,6 @@ mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply(
return [status, mockDatas[0]]; return [status, mockDatas[0]];
}); });
// Update
mock.onPut(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: Update");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['orgid'];
const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.orgid, tempValue.orgid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['orgid'] == tempValue['orgid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// GetDraft // GetDraft
mock.onGet(new RegExp(/^\/sysorganizations\/getdraft$/)).reply((config: any) => { mock.onGet(new RegExp(/^\/sysorganizations\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: GetDraft"); console.groupCollapsed("实体:sysorganization 方法: GetDraft");
...@@ -195,16 +167,16 @@ mock.onGet(new RegExp(/^\/sysorganizations\/getdraft$/)).reply((config: any) => ...@@ -195,16 +167,16 @@ mock.onGet(new RegExp(/^\/sysorganizations\/getdraft$/)).reply((config: any) =>
return [status, {}]; return [status, {}];
}); });
// CheckKey // Save
mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: CheckKey"); console.groupCollapsed("实体:sysorganization 方法: Save");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['orgid']; const paramArray:Array<any> = ['orgid'];
const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -233,16 +205,16 @@ mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$ ...@@ -233,16 +205,16 @@ mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$
return [status, data]; return [status, data];
}); });
// Save // Update
mock.onPost(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { mock.onPut(new RegExp(/^\/sysorganizations\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: Save"); console.groupCollapsed("实体:sysorganization 方法: Update");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['orgid']; const paramArray:Array<any> = ['orgid'];
const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -366,10 +338,38 @@ mock.onGet(new RegExp(/^\/sysorganizations\/fetchtoporg(\?[\w-./?%&=,]*)*$/)).re ...@@ -366,10 +338,38 @@ mock.onGet(new RegExp(/^\/sysorganizations\/fetchtoporg(\?[\w-./?%&=,]*)*$/)).re
// URI参数传递情况未实现 // URI参数传递情况未实现
// URI参数传递情况未实现 // URI参数传递情况未实现
// Select
mock.onGet(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['orgid'];
const matchArray:any = new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.orgid, tempValue.orgid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Remove // Get
mock.onDelete(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { mock.onGet(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: Remove"); console.groupCollapsed("实体:sysorganization 方法: Get");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
...@@ -395,9 +395,9 @@ mock.onDelete(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply ...@@ -395,9 +395,9 @@ mock.onDelete(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply
return [status, _items?_items:{}]; return [status, _items?_items:{}];
}); });
// Get // Remove
mock.onGet(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { mock.onDelete(new RegExp(/^\/sysorganizations\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:sysorganization 方法: Get"); console.groupCollapsed("实体:sysorganization 方法: Remove");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
......
...@@ -87,16 +87,16 @@ mock.onDelete(new RegExp(/^\/sysposts\/batch$/)).reply((config: any) => { ...@@ -87,16 +87,16 @@ mock.onDelete(new RegExp(/^\/sysposts\/batch$/)).reply((config: any) => {
}); });
// Select // CheckKey
mock.onGet(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: Select"); console.groupCollapsed("实体:syspost 方法: CheckKey");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['postid']; const paramArray:Array<any> = ['postid'];
const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -106,13 +106,23 @@ mock.onGet(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((c ...@@ -106,13 +106,23 @@ mock.onGet(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((c
}); });
}); });
} }
let items = mockDatas ? mockDatas : []; //let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.postid, tempValue.postid)); //let _items = items.find((item: any) => Object.is(item.postid, tempValue.postid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['postid'] == tempValue['postid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: "); console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items); console.table(data);
console.groupEnd(); console.groupEnd();
console.groupEnd(); console.groupEnd();
return [status, _items]; return [status, data];
}); });
// Create // Create
...@@ -141,44 +151,6 @@ mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: ...@@ -141,44 +151,6 @@ mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config:
return [status, mockDatas[0]]; return [status, mockDatas[0]];
}); });
// Update
mock.onPut(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: Update");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['postid'];
const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.postid, tempValue.postid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['postid'] == tempValue['postid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// GetDraft // GetDraft
mock.onGet(new RegExp(/^\/sysposts\/getdraft$/)).reply((config: any) => { mock.onGet(new RegExp(/^\/sysposts\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: GetDraft"); console.groupCollapsed("实体:syspost 方法: GetDraft");
...@@ -195,16 +167,16 @@ mock.onGet(new RegExp(/^\/sysposts\/getdraft$/)).reply((config: any) => { ...@@ -195,16 +167,16 @@ mock.onGet(new RegExp(/^\/sysposts\/getdraft$/)).reply((config: any) => {
return [status, {}]; return [status, {}];
}); });
// CheckKey // Save
mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: CheckKey"); console.groupCollapsed("实体:syspost 方法: Save");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['postid']; const paramArray:Array<any> = ['postid'];
const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -233,16 +205,16 @@ mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).repl ...@@ -233,16 +205,16 @@ mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).repl
return [status, data]; return [status, data];
}); });
// Save // Update
mock.onPost(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { mock.onPut(new RegExp(/^\/sysposts\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: Save"); console.groupCollapsed("实体:syspost 方法: Update");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['postid']; const paramArray:Array<any> = ['postid'];
const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -322,10 +294,38 @@ mock.onGet(new RegExp(/^\/sysposts\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((co ...@@ -322,10 +294,38 @@ mock.onGet(new RegExp(/^\/sysposts\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((co
// URI参数传递情况未实现 // URI参数传递情况未实现
// URI参数传递情况未实现 // URI参数传递情况未实现
// Select
mock.onGet(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['postid'];
const matchArray:any = new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.postid, tempValue.postid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Remove // Get
mock.onDelete(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { mock.onGet(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: Remove"); console.groupCollapsed("实体:syspost 方法: Get");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
...@@ -351,9 +351,9 @@ mock.onDelete(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config ...@@ -351,9 +351,9 @@ mock.onDelete(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config
return [status, _items?_items:{}]; return [status, _items?_items:{}];
}); });
// Get // Remove
mock.onGet(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { mock.onDelete(new RegExp(/^\/sysposts\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:syspost 方法: Get"); console.groupCollapsed("实体:syspost 方法: Remove");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
......
...@@ -87,16 +87,16 @@ mock.onDelete(new RegExp(/^\/systeams\/batch$/)).reply((config: any) => { ...@@ -87,16 +87,16 @@ mock.onDelete(new RegExp(/^\/systeams\/batch$/)).reply((config: any) => {
}); });
// Select // CheckKey
mock.onGet(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => { mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: Select"); console.groupCollapsed("实体:systeam 方法: CheckKey");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['teamid']; const paramArray:Array<any> = ['teamid'];
const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url); const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -106,13 +106,23 @@ mock.onGet(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((c ...@@ -106,13 +106,23 @@ mock.onGet(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((c
}); });
}); });
} }
let items = mockDatas ? mockDatas : []; //let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.teamid, tempValue.teamid)); //let _items = items.find((item: any) => Object.is(item.teamid, tempValue.teamid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['teamid'] == tempValue['teamid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: "); console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items); console.table(data);
console.groupEnd(); console.groupEnd();
console.groupEnd(); console.groupEnd();
return [status, _items]; return [status, data];
}); });
// Create // Create
...@@ -141,44 +151,6 @@ mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: ...@@ -141,44 +151,6 @@ mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config:
return [status, mockDatas[0]]; return [status, mockDatas[0]];
}); });
// Update
mock.onPut(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: Update");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['teamid'];
const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.teamid, tempValue.teamid));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['teamid'] == tempValue['teamid'] ){
for(let value in data){
if(item.hasOwnProperty(value)){
item[value] = data[value];
}
}
}
})
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(data);
console.groupEnd();
console.groupEnd();
return [status, data];
});
// GetDraft // GetDraft
mock.onGet(new RegExp(/^\/systeams\/getdraft$/)).reply((config: any) => { mock.onGet(new RegExp(/^\/systeams\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: GetDraft"); console.groupCollapsed("实体:systeam 方法: GetDraft");
...@@ -195,16 +167,16 @@ mock.onGet(new RegExp(/^\/systeams\/getdraft$/)).reply((config: any) => { ...@@ -195,16 +167,16 @@ mock.onGet(new RegExp(/^\/systeams\/getdraft$/)).reply((config: any) => {
return [status, {}]; return [status, {}];
}); });
// CheckKey // Save
mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => { mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: CheckKey"); console.groupCollapsed("实体:systeam 方法: Save");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['teamid']; const paramArray:Array<any> = ['teamid'];
const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).exec(config.url); const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -233,16 +205,16 @@ mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).repl ...@@ -233,16 +205,16 @@ mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).repl
return [status, data]; return [status, data];
}); });
// Save // Update
mock.onPost(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => { mock.onPut(new RegExp(/^\/systeams\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: Save"); console.groupCollapsed("实体:systeam 方法: Update");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
return [status, null]; return [status, null];
} }
const paramArray:Array<any> = ['teamid']; const paramArray:Array<any> = ['teamid'];
const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/save$/).exec(config.url); const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/).exec(config.url);
let tempValue: any = {}; let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){ if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => { paramArray.forEach((item: any, index: number) => {
...@@ -322,10 +294,38 @@ mock.onGet(new RegExp(/^\/systeams\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((co ...@@ -322,10 +294,38 @@ mock.onGet(new RegExp(/^\/systeams\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((co
// URI参数传递情况未实现 // URI参数传递情况未实现
// URI参数传递情况未实现 // URI参数传递情况未实现
// Select
mock.onGet(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: Select");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
const paramArray:Array<any> = ['teamid'];
const matchArray:any = new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})\/select$/).exec(config.url);
let tempValue: any = {};
if(matchArray && matchArray.length >1 && paramArray && paramArray.length >0){
paramArray.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item, {
enumerable: true,
value: matchArray[index + 1]
});
});
}
let items = mockDatas ? mockDatas : [];
let _items = items.find((item: any) => Object.is(item.teamid, tempValue.teamid));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items);
console.groupEnd();
console.groupEnd();
return [status, _items];
});
// Remove // Get
mock.onDelete(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { mock.onGet(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: Remove"); console.groupCollapsed("实体:systeam 方法: Get");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
...@@ -351,9 +351,9 @@ mock.onDelete(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config ...@@ -351,9 +351,9 @@ mock.onDelete(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config
return [status, _items?_items:{}]; return [status, _items?_items:{}];
}); });
// Get // Remove
mock.onGet(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => { mock.onDelete(new RegExp(/^\/systeams\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:systeam 方法: Get"); console.groupCollapsed("实体:systeam 方法: Remove");
console.table({url:config.url, method: config.method, data:config.data}); console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
if (status !== 200) { if (status !== 200) {
......
...@@ -843,7 +843,7 @@ export default class SysDepartmentMPickupViewBase extends Vue { ...@@ -843,7 +843,7 @@ export default class SysDepartmentMPickupViewBase extends Vue {
} }
if(model.datas.length>0){ if(model.datas.length>0){
model.datas.forEach((data:any,index:any)=>{ model.datas.forEach((data:any,index:any)=>{
Object.assign(data,{srfmajortext: data['deptname']}); Object.assign(data,{srfmajortext: data.hasOwnProperty('srfmajortext') ? data['srfmajortext'] : data['deptname']});
}) })
} }
model.datas.forEach((item: any) => { model.datas.forEach((item: any) => {
......
...@@ -884,6 +884,8 @@ export default class SysDeptMemberGridViewBase extends Vue { ...@@ -884,6 +884,8 @@ export default class SysDeptMemberGridViewBase extends Vue {
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) { public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null; let localContext:any = null;
let localViewParam:any =null; let localViewParam:any =null;
let tempContext:any = this.$util.deepCopy(this.context);
let data:any = this.$util.deepCopy(args[0]);
let batchAddPSAppViews:Array<any>=[]; let batchAddPSAppViews:Array<any>=[];
batchAddPSAppViews=[ batchAddPSAppViews=[
{view:{viewname:'sys-employee-mpickup-view',height: 0,width: 0,title: '人员数据多项选择视图'}, {view:{viewname:'sys-employee-mpickup-view',height: 0,width: 0,title: '人员数据多项选择视图'},
...@@ -903,7 +905,7 @@ export default class SysDeptMemberGridViewBase extends Vue { ...@@ -903,7 +905,7 @@ export default class SysDeptMemberGridViewBase extends Vue {
let otherViewModel:any = batchAddPSAppViews.find((item:any) =>{ let otherViewModel:any = batchAddPSAppViews.find((item:any) =>{
return (item.res && (item.res[0] == this.context.srfparentdename)); return (item.res && (item.res[0] == this.context.srfparentdename));
}) })
let container: Subject<any> = this.$appmodal.openModal(openViewModel.view, JSON.parse(JSON.stringify(this.context)), args[0]); let container: Subject<any> = this.$appmodal.openModal(openViewModel.view, tempContext, data);
container.subscribe((result: any) => { container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) { if (!result || !Object.is(result.ret, 'OK')) {
return; return;
......
...@@ -843,7 +843,7 @@ export default class SysEmployeeMPickupViewBase extends Vue { ...@@ -843,7 +843,7 @@ export default class SysEmployeeMPickupViewBase extends Vue {
} }
if(model.datas.length>0){ if(model.datas.length>0){
model.datas.forEach((data:any,index:any)=>{ model.datas.forEach((data:any,index:any)=>{
Object.assign(data,{srfmajortext: data['personname']}); Object.assign(data,{srfmajortext: data.hasOwnProperty('srfmajortext') ? data['srfmajortext'] : data['personname']});
}) })
} }
model.datas.forEach((item: any) => { model.datas.forEach((item: any) => {
......
...@@ -39,7 +39,7 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -39,7 +39,7 @@ export default class SysDepartmentServiceBase extends EntityService {
// 实体接口 // 实体接口
/** /**
* Select接口方法 * CheckKey接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -47,14 +47,15 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -47,14 +47,15 @@ export default class SysDepartmentServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysDepartmentServiceBase * @memberof SysDepartmentServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && context.sysdepartment){ if(context.sysorganization && context.sysdepartment){
let res:any = Http.getInstance().get(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}/select`,isloading); let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}/checkkey`,data,isloading);
return res; return res;
} }
let res:any = Http.getInstance().get(`/sysdepartments/${context.sysdepartment}/select`,isloading); let res:any = Http.getInstance().post(`/sysdepartments/${context.sysdepartment}/checkkey`,data,isloading);
return res; return res;
} }
...@@ -101,7 +102,7 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -101,7 +102,7 @@ export default class SysDepartmentServiceBase extends EntityService {
} }
/** /**
* Update接口方法 * Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -109,41 +110,19 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -109,41 +110,19 @@ export default class SysDepartmentServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysDepartmentServiceBase * @memberof SysDepartmentServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && context.sysdepartment){ if(context.sysorganization && context.sysdepartment){
let masterData:any = {}; let res:any = await Http.getInstance().get(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}`,isloading);
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}`,data,isloading);
return res; return res;
} }
let masterData:any = {}; let res:any = await Http.getInstance().get(`/sysdepartments/${context.sysdepartment}`,isloading);
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysdepartments/${context.sysdepartment}`,data,isloading);
return res; return res;
} }
/** /**
* Remove接口方法 * GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysDepartmentServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && context.sysdepartment){
let res:any = Http.getInstance().delete(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/sysdepartments/${context.sysdepartment}`,isloading);
return res;
}
/**
* Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -151,19 +130,21 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -151,19 +130,21 @@ export default class SysDepartmentServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysDepartmentServiceBase * @memberof SysDepartmentServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && context.sysdepartment){ if(context.sysorganization && true){
let res:any = await Http.getInstance().get(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}`,isloading); let res:any = await Http.getInstance().get(`/sysorganizations/${context.sysorganization}/sysdepartments/getdraft`,isloading);
res.data.sysdepartment = data.sysdepartment;
return res; return res;
} }
let res:any = await Http.getInstance().get(`/sysdepartments/${context.sysdepartment}`,isloading); let res:any = await Http.getInstance().get(`/sysdepartments/getdraft`,isloading);
res.data.sysdepartment = data.sysdepartment;
return res; return res;
} }
/** /**
* GetDraft接口方法 * Remove接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -171,21 +152,17 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -171,21 +152,17 @@ export default class SysDepartmentServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysDepartmentServiceBase * @memberof SysDepartmentServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && true){ if(context.sysorganization && context.sysdepartment){
let res:any = await Http.getInstance().get(`/sysorganizations/${context.sysorganization}/sysdepartments/getdraft`,isloading); let res:any = Http.getInstance().delete(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}`,isloading);
res.data.sysdepartment = data.sysdepartment;
return res; return res;
} }
let res:any = await Http.getInstance().get(`/sysdepartments/getdraft`,isloading); let res:any = Http.getInstance().delete(`/sysdepartments/${context.sysdepartment}`,isloading);
res.data.sysdepartment = data.sysdepartment;
return res; return res;
} }
/** /**
* CheckKey接口方法 * Save接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -193,20 +170,23 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -193,20 +170,23 @@ export default class SysDepartmentServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysDepartmentServiceBase * @memberof SysDepartmentServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && context.sysdepartment){ if(context.sysorganization && context.sysdepartment){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}/checkkey`,data,isloading); let res:any = await Http.getInstance().post(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}/save`,data,isloading);
return res; return res;
} }
let res:any = Http.getInstance().post(`/sysdepartments/${context.sysdepartment}/checkkey`,data,isloading); let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysdepartments/${context.sysdepartment}/save`,data,isloading);
return res; return res;
} }
/** /**
* Save接口方法 * Update接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -214,17 +194,17 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -214,17 +194,17 @@ export default class SysDepartmentServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysDepartmentServiceBase * @memberof SysDepartmentServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && context.sysdepartment){ if(context.sysorganization && context.sysdepartment){
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}/save`,data,isloading); let res:any = await Http.getInstance().put(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}`,data,isloading);
return res; return res;
} }
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysdepartments/${context.sysdepartment}/save`,data,isloading); let res:any = await Http.getInstance().put(`/sysdepartments/${context.sysdepartment}`,data,isloading);
return res; return res;
} }
...@@ -266,4 +246,24 @@ export default class SysDepartmentServiceBase extends EntityService { ...@@ -266,4 +246,24 @@ export default class SysDepartmentServiceBase extends EntityService {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/sysdepartments/searchdefault`,tempData,isloading); return await Http.getInstance().post(`/sysdepartments/searchdefault`,tempData,isloading);
} }
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysDepartmentServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.sysorganization && context.sysdepartment){
let res:any = Http.getInstance().get(`/sysorganizations/${context.sysorganization}/sysdepartments/${context.sysdepartment}/select`,isloading);
return res;
}
let res:any = Http.getInstance().get(`/sysdepartments/${context.sysdepartment}/select`,isloading);
return res;
}
} }
\ No newline at end of file
...@@ -39,7 +39,7 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -39,7 +39,7 @@ export default class SysOrganizationServiceBase extends EntityService {
// 实体接口 // 实体接口
/** /**
* Select接口方法 * CheckKey接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -47,9 +47,8 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -47,9 +47,8 @@ export default class SysOrganizationServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysOrganizationServiceBase * @memberof SysOrganizationServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysorganizations/${context.sysorganization}/select`,isloading); let res:any = Http.getInstance().post(`/sysorganizations/${context.sysorganization}/checkkey`,data,isloading);
return res; return res;
} }
...@@ -80,7 +79,7 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -80,7 +79,7 @@ export default class SysOrganizationServiceBase extends EntityService {
} }
/** /**
* Update接口方法 * Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -88,30 +87,14 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -88,30 +87,14 @@ export default class SysOrganizationServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysOrganizationServiceBase * @memberof SysOrganizationServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let res:any = await Http.getInstance().get(`/sysorganizations/${context.sysorganization}`,isloading);
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysorganizations/${context.sysorganization}`,data,isloading);
return res; return res;
} }
/** /**
* Remove接口方法 * GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysOrganizationServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/sysorganizations/${context.sysorganization}`,isloading);
return res;
}
/**
* Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -119,14 +102,15 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -119,14 +102,15 @@ export default class SysOrganizationServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysOrganizationServiceBase * @memberof SysOrganizationServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysorganizations/${context.sysorganization}`,isloading); let res:any = await Http.getInstance().get(`/sysorganizations/getdraft`,isloading);
res.data.sysorganization = data.sysorganization;
return res; return res;
} }
/** /**
* GetDraft接口方法 * Remove接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -134,15 +118,13 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -134,15 +118,13 @@ export default class SysOrganizationServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysOrganizationServiceBase * @memberof SysOrganizationServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysorganizations/getdraft`,isloading); let res:any = Http.getInstance().delete(`/sysorganizations/${context.sysorganization}`,isloading);
res.data.sysorganization = data.sysorganization;
return res; return res;
} }
/** /**
* CheckKey接口方法 * Save接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -150,13 +132,16 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -150,13 +132,16 @@ export default class SysOrganizationServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysOrganizationServiceBase * @memberof SysOrganizationServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/sysorganizations/${context.sysorganization}/checkkey`,data,isloading); let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysorganizations/${context.sysorganization}/save`,data,isloading);
return res; return res;
} }
/** /**
* Save接口方法 * Update接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -164,10 +149,10 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -164,10 +149,10 @@ export default class SysOrganizationServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysOrganizationServiceBase * @memberof SysOrganizationServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysorganizations/${context.sysorganization}/save`,data,isloading); let res:any = await Http.getInstance().put(`/sysorganizations/${context.sysorganization}`,data,isloading);
return res; return res;
} }
...@@ -229,4 +214,19 @@ export default class SysOrganizationServiceBase extends EntityService { ...@@ -229,4 +214,19 @@ export default class SysOrganizationServiceBase extends EntityService {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/sysorganizations/searchtoporg`,tempData,isloading); return await Http.getInstance().post(`/sysorganizations/searchtoporg`,tempData,isloading);
} }
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysOrganizationServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysorganizations/${context.sysorganization}/select`,isloading);
return res;
}
} }
\ No newline at end of file
...@@ -39,7 +39,7 @@ export default class SysPostServiceBase extends EntityService { ...@@ -39,7 +39,7 @@ export default class SysPostServiceBase extends EntityService {
// 实体接口 // 实体接口
/** /**
* Select接口方法 * CheckKey接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -47,9 +47,8 @@ export default class SysPostServiceBase extends EntityService { ...@@ -47,9 +47,8 @@ export default class SysPostServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysPostServiceBase * @memberof SysPostServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysposts/${context.syspost}/select`,isloading); let res:any = Http.getInstance().post(`/sysposts/${context.syspost}/checkkey`,data,isloading);
return res; return res;
} }
...@@ -78,7 +77,7 @@ export default class SysPostServiceBase extends EntityService { ...@@ -78,7 +77,7 @@ export default class SysPostServiceBase extends EntityService {
} }
/** /**
* Update接口方法 * Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -86,30 +85,14 @@ export default class SysPostServiceBase extends EntityService { ...@@ -86,30 +85,14 @@ export default class SysPostServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysPostServiceBase * @memberof SysPostServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let res:any = await Http.getInstance().get(`/sysposts/${context.syspost}`,isloading);
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/sysposts/${context.syspost}`,data,isloading);
return res; return res;
} }
/** /**
* Remove接口方法 * GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysPostServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/sysposts/${context.syspost}`,isloading);
return res;
}
/**
* Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -117,14 +100,15 @@ export default class SysPostServiceBase extends EntityService { ...@@ -117,14 +100,15 @@ export default class SysPostServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysPostServiceBase * @memberof SysPostServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysposts/${context.syspost}`,isloading); let res:any = await Http.getInstance().get(`/sysposts/getdraft`,isloading);
res.data.syspost = data.syspost;
return res; return res;
} }
/** /**
* GetDraft接口方法 * Remove接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -132,15 +116,13 @@ export default class SysPostServiceBase extends EntityService { ...@@ -132,15 +116,13 @@ export default class SysPostServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysPostServiceBase * @memberof SysPostServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/sysposts/getdraft`,isloading); let res:any = Http.getInstance().delete(`/sysposts/${context.syspost}`,isloading);
res.data.syspost = data.syspost;
return res; return res;
} }
/** /**
* CheckKey接口方法 * Save接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -148,13 +130,16 @@ export default class SysPostServiceBase extends EntityService { ...@@ -148,13 +130,16 @@ export default class SysPostServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysPostServiceBase * @memberof SysPostServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/sysposts/${context.syspost}/checkkey`,data,isloading); let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysposts/${context.syspost}/save`,data,isloading);
return res; return res;
} }
/** /**
* Save接口方法 * Update接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -162,10 +147,10 @@ export default class SysPostServiceBase extends EntityService { ...@@ -162,10 +147,10 @@ export default class SysPostServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysPostServiceBase * @memberof SysPostServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/sysposts/${context.syspost}/save`,data,isloading); let res:any = await Http.getInstance().put(`/sysposts/${context.syspost}`,data,isloading);
return res; return res;
} }
...@@ -198,4 +183,19 @@ export default class SysPostServiceBase extends EntityService { ...@@ -198,4 +183,19 @@ export default class SysPostServiceBase extends EntityService {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/sysposts/searchdefault`,tempData,isloading); return await Http.getInstance().post(`/sysposts/searchdefault`,tempData,isloading);
} }
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysPostServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/sysposts/${context.syspost}/select`,isloading);
return res;
}
} }
\ No newline at end of file
...@@ -39,7 +39,7 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -39,7 +39,7 @@ export default class SysTeamServiceBase extends EntityService {
// 实体接口 // 实体接口
/** /**
* Select接口方法 * CheckKey接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -47,9 +47,8 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -47,9 +47,8 @@ export default class SysTeamServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysTeamServiceBase * @memberof SysTeamServiceBase
*/ */
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/systeams/${context.systeam}/select`,isloading); let res:any = Http.getInstance().post(`/systeams/${context.systeam}/checkkey`,data,isloading);
return res; return res;
} }
...@@ -79,7 +78,7 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -79,7 +78,7 @@ export default class SysTeamServiceBase extends EntityService {
} }
/** /**
* Update接口方法 * Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -87,30 +86,14 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -87,30 +86,14 @@ export default class SysTeamServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysTeamServiceBase * @memberof SysTeamServiceBase
*/ */
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let res:any = await Http.getInstance().get(`/systeams/${context.systeam}`,isloading);
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/systeams/${context.systeam}`,data,isloading);
return res; return res;
} }
/** /**
* Remove接口方法 * GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysTeamServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/systeams/${context.systeam}`,isloading);
return res;
}
/**
* Get接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -118,14 +101,15 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -118,14 +101,15 @@ export default class SysTeamServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysTeamServiceBase * @memberof SysTeamServiceBase
*/ */
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/systeams/${context.systeam}`,isloading); let res:any = await Http.getInstance().get(`/systeams/getdraft`,isloading);
res.data.systeam = data.systeam;
return res; return res;
} }
/** /**
* GetDraft接口方法 * Remove接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -133,15 +117,13 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -133,15 +117,13 @@ export default class SysTeamServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysTeamServiceBase * @memberof SysTeamServiceBase
*/ */
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/systeams/getdraft`,isloading); let res:any = Http.getInstance().delete(`/systeams/${context.systeam}`,isloading);
res.data.systeam = data.systeam;
return res; return res;
} }
/** /**
* CheckKey接口方法 * Save接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -149,13 +131,16 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -149,13 +131,16 @@ export default class SysTeamServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysTeamServiceBase * @memberof SysTeamServiceBase
*/ */
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/systeams/${context.systeam}/checkkey`,data,isloading); let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/systeams/${context.systeam}/save`,data,isloading);
return res; return res;
} }
/** /**
* Save接口方法 * Update接口方法
* *
* @param {*} [context={}] * @param {*} [context={}]
* @param {*} [data={}] * @param {*} [data={}]
...@@ -163,10 +148,10 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -163,10 +148,10 @@ export default class SysTeamServiceBase extends EntityService {
* @returns {Promise<any>} * @returns {Promise<any>}
* @memberof SysTeamServiceBase * @memberof SysTeamServiceBase
*/ */
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {}; let masterData:any = {};
Object.assign(data,masterData); Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/systeams/${context.systeam}/save`,data,isloading); let res:any = await Http.getInstance().put(`/systeams/${context.systeam}`,data,isloading);
return res; return res;
} }
...@@ -199,4 +184,19 @@ export default class SysTeamServiceBase extends EntityService { ...@@ -199,4 +184,19 @@ export default class SysTeamServiceBase extends EntityService {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/systeams/searchdefault`,tempData,isloading); return await Http.getInstance().post(`/systeams/searchdefault`,tempData,isloading);
} }
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysTeamServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/systeams/${context.systeam}/select`,isloading);
return res;
}
} }
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<template v-else> <template v-else>
<i class='fa fa-cogs app-menu-icon'></i> <i class='fa fa-cogs app-menu-icon'></i>
</template> </template>
<span class='text' :title="$t('app.menus.ouindexview.' + item0.name)">{{$t('app.menus.ouindexview.' + item0.name)}}</span> <span class='text' :title="$t('app.menus.ouindexview.' + item0.name.toLowerCase())">{{$t('app.menus.ouindexview.' + item0.name.toLowerCase())}}</span>
</template> </template>
<template v-for="item1 in item0.items"> <template v-for="item1 in item0.items">
<template v-if="item1.items && Array.isArray(item1.items) && item1.items.length > 0"> <template v-if="item1.items && Array.isArray(item1.items) && item1.items.length > 0">
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<template v-else-if="item1.iconcls && item1.iconcls != ''"> <template v-else-if="item1.iconcls && item1.iconcls != ''">
<i :class="[item1.iconcls, 'app-menu-icon']"></i> <i :class="[item1.iconcls, 'app-menu-icon']"></i>
</template> </template>
<span class='text' :title="$t('app.menus.ouindexview.' + item1.name)">{{$t('app.menus.ouindexview.' + item1.name)}}</span> <span class='text' :title="$t('app.menus.ouindexview.' + item1.name.toLowerCase())">{{$t('app.menus.ouindexview.' + item1.name.toLowerCase())}}</span>
</template> </template>
<template v-for="item2 in item1.items"> <template v-for="item2 in item1.items">
<template v-if="item2.type =='MENUITEM'"> <template v-if="item2.type =='MENUITEM'">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<i :class="[item2.iconcls, 'app-menu-icon']"></i> <i :class="[item2.iconcls, 'app-menu-icon']"></i>
</template> </template>
<template slot="title"> <template slot="title">
<span class="text" :title="$t('app.menus.ouindexview.' + item2.name)">{{$t('app.menus.ouindexview.' + item2.name)}}</span> <span class="text" :title="$t('app.menus.ouindexview.' + item2.name.toLowerCase())">{{$t('app.menus.ouindexview.' + item2.name.toLowerCase())}}</span>
<template v-if="counterdata && counterdata[item2.counterid] && counterdata[item2.counterid] > 0"> <template v-if="counterdata && counterdata[item2.counterid] && counterdata[item2.counterid] > 0">
<span class="pull-right"> <span class="pull-right">
<badge :count="counterdata[item2.counterid]" :overflow-count="9999"></badge> <badge :count="counterdata[item2.counterid]" :overflow-count="9999"></badge>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<i :class="[item1.iconcls, 'app-menu-icon']"></i> <i :class="[item1.iconcls, 'app-menu-icon']"></i>
</template> </template>
<template slot="title"> <template slot="title">
<span class="text" :title="$t('app.menus.ouindexview.' + item1.name)">{{$t('app.menus.ouindexview.' + item1.name)}} </span> <span class="text" :title="$t('app.menus.ouindexview.' + item1.name.toLowerCase())">{{$t('app.menus.ouindexview.' + item1.name.toLowerCase())}} </span>
<template v-if="counterdata && counterdata[item1.counterid] && counterdata[item1.counterid] > 0"> <template v-if="counterdata && counterdata[item1.counterid] && counterdata[item1.counterid] > 0">
<span class="pull-right"> <span class="pull-right">
<badge :count="counterdata[item1.counterid]" :overflow-count="9999"></badge> <badge :count="counterdata[item1.counterid]" :overflow-count="9999"></badge>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<i class='fa fa-cogs app-menu-icon'></i> <i class='fa fa-cogs app-menu-icon'></i>
</template> </template>
<template slot="title"> <template slot="title">
<span class="text" :title="$t('app.menus.ouindexview.' + item0.name)">{{$t('app.menus.ouindexview.' + item0.name)}}</span> <span class="text" :title="$t('app.menus.ouindexview.' + item0.name.toLowerCase())">{{$t('app.menus.ouindexview.' + item0.name.toLowerCase())}}</span>
<template v-if="counterdata && counterdata[item0.counterid] && counterdata[item0.counterid] > 0"> <template v-if="counterdata && counterdata[item0.counterid] && counterdata[item0.counterid] > 0">
<span class="pull-right"> <span class="pull-right">
<badge :count="counterdata[item0.counterid]" :overflow-count="9999"></badge> <badge :count="counterdata[item0.counterid]" :overflow-count="9999"></badge>
......
...@@ -786,8 +786,8 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -786,8 +786,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -1076,8 +1076,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1076,8 +1076,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
...@@ -1127,7 +1127,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1127,7 +1127,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (response && response.status === 401) { if (response && response.status === 401) {
return; return;
} }
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
}); });
} }
...@@ -1212,7 +1212,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1212,7 +1212,7 @@ export default class MainBase extends Vue implements ControlInterface {
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status != 200) { if (response && response.status != 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.message}); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1333,6 +1333,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1333,6 +1333,9 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata); Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
...@@ -2227,8 +2230,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2227,8 +2230,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -479,7 +479,7 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt ...@@ -479,7 +479,7 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt
this.split = this.$store.getters.getViewSplit(this.viewUID); this.split = this.$store.getters.getViewSplit(this.viewUID);
}else{ }else{
let containerWidth:number = (document.getElementById("treeexpviewtreeexpbar") as any).offsetWidth; let containerWidth:number = (document.getElementById("treeexpviewtreeexpbar") as any).offsetWidth;
if(this.ctrlWidth){ if(this.ctrlWidth && containerWidth != 0){
this.split = this.ctrlWidth/containerWidth; this.split = this.ctrlWidth/containerWidth;
} }
this.$store.commit("setViewSplit",{viewUID:this.viewUID,viewSplit:this.split}); this.$store.commit("setViewSplit",{viewUID:this.viewUID,viewSplit:this.split});
......
...@@ -1073,8 +1073,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1073,8 +1073,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
...@@ -1124,7 +1124,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1124,7 +1124,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (response && response.status === 401) { if (response && response.status === 401) {
return; return;
} }
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
}); });
} }
...@@ -1209,7 +1209,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1209,7 +1209,7 @@ export default class MainBase extends Vue implements ControlInterface {
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status != 200) { if (response && response.status != 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.message}); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1330,6 +1330,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1330,6 +1330,9 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata); Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
...@@ -2200,8 +2203,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2200,8 +2203,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -742,8 +742,8 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -742,8 +742,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -1001,8 +1001,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1001,8 +1001,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
...@@ -1052,7 +1052,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1052,7 +1052,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (response && response.status === 401) { if (response && response.status === 401) {
return; return;
} }
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
}); });
} }
...@@ -1137,7 +1137,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1137,7 +1137,7 @@ export default class MainBase extends Vue implements ControlInterface {
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status != 200) { if (response && response.status != 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.message}); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1258,6 +1258,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1258,6 +1258,9 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata); Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
...@@ -2151,8 +2154,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2151,8 +2154,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -756,8 +756,8 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -756,8 +756,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -992,8 +992,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -992,8 +992,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
...@@ -1043,7 +1043,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1043,7 +1043,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (response && response.status === 401) { if (response && response.status === 401) {
return; return;
} }
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
}); });
} }
...@@ -1128,7 +1128,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1128,7 +1128,7 @@ export default class MainBase extends Vue implements ControlInterface {
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status != 200) { if (response && response.status != 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.message}); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1249,6 +1249,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1249,6 +1249,9 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata); Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
...@@ -2137,8 +2140,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2137,8 +2140,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -479,7 +479,7 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt ...@@ -479,7 +479,7 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt
this.split = this.$store.getters.getViewSplit(this.viewUID); this.split = this.$store.getters.getViewSplit(this.viewUID);
}else{ }else{
let containerWidth:number = (document.getElementById("treeexpviewtreeexpbar") as any).offsetWidth; let containerWidth:number = (document.getElementById("treeexpviewtreeexpbar") as any).offsetWidth;
if(this.ctrlWidth){ if(this.ctrlWidth && containerWidth != 0){
this.split = this.ctrlWidth/containerWidth; this.split = this.ctrlWidth/containerWidth;
} }
this.$store.commit("setViewSplit",{viewUID:this.viewUID,viewSplit:this.split}); this.$store.commit("setViewSplit",{viewUID:this.viewUID,viewSplit:this.split});
......
...@@ -634,8 +634,8 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -634,8 +634,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -845,8 +845,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -845,8 +845,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
...@@ -896,7 +896,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -896,7 +896,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (response && response.status === 401) { if (response && response.status === 401) {
return; return;
} }
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
}); });
} }
...@@ -981,7 +981,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -981,7 +981,7 @@ export default class MainBase extends Vue implements ControlInterface {
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status != 200) { if (response && response.status != 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.message}); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1102,6 +1102,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1102,6 +1102,9 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata); Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
...@@ -1963,8 +1966,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1963,8 +1966,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -997,8 +997,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -997,8 +997,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
...@@ -1048,7 +1048,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1048,7 +1048,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (response && response.status === 401) { if (response && response.status === 401) {
return; return;
} }
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
}); });
} }
...@@ -1133,7 +1133,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1133,7 +1133,7 @@ export default class MainBase extends Vue implements ControlInterface {
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status != 200) { if (response && response.status != 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.message}); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1254,6 +1254,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1254,6 +1254,9 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata); Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
...@@ -2121,8 +2124,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2121,8 +2124,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -634,8 +634,8 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -634,8 +634,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -824,8 +824,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -824,8 +824,8 @@ export default class MainBase extends Vue implements ControlInterface {
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
...@@ -875,7 +875,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -875,7 +875,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (response && response.status === 401) { if (response && response.status === 401) {
return; return;
} }
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
}); });
} }
...@@ -960,7 +960,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -960,7 +960,7 @@ export default class MainBase extends Vue implements ControlInterface {
resolve(response); resolve(response);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status != 200) { if (response && response.status != 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.message}); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
return; return;
} }
if (!response || !response.status || !response.data) { if (!response || !response.status || !response.data) {
...@@ -1081,6 +1081,9 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1081,6 +1081,9 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {}; const parentdata: any = {};
this.$emit('beforeload', parentdata); this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata); Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};
Object.assign(tempViewParams,JSON.parse(JSON.stringify(this.viewparams)));
Object.assign(arg,{viewparams:tempViewParams});
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator); const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
...@@ -1939,8 +1942,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1939,8 +1942,8 @@ export default class MainBase extends Vue implements ControlInterface {
let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator); let post: Promise<any> = this.service.loadDraft(this.loaddraftAction, JSON.parse(JSON.stringify(this.context)), args[0], this.showBusyIndicator);
post.then((response: any) => { post.then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
if (response.errorMessage) { if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.errorMessage }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
} }
return; return;
} }
......
...@@ -77,6 +77,32 @@ ...@@ -77,6 +77,32 @@
<workingDirectory>../../app_web</workingDirectory> <workingDirectory>../../app_web</workingDirectory>
</configuration> </configuration>
</execution> </execution>
<execution>
<id>prepare</id>
<configuration>
<executable>cp</executable>
<arguments>
<argument>../../${project.artifactId}.jar</argument>
<argument>${project.basedir}/src/main/docker/</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>buildpush</id>
<configuration>
<executable>docker</executable>
<arguments>
<argument>buildx</argument>
<argument>build</argument>
<argument>--platform</argument>
<argument>linux/amd64,linux/arm64</argument>
<argument>-t</argument>
<argument>${docker.image.prefix}/${project.artifactId}:latest</argument>
<argument>${project.basedir}/src/main/docker</argument>
<argument>--push</argument>
</arguments>
</configuration>
</execution>
</executions> </executions>
</plugin> </plugin>
......
FROM openjdk:8-jre-alpine FROM adoptopenjdk/openjdk8:jdk8u242-b08-centos
ENV TZ=Asia/Shanghai \ ENV TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
......
...@@ -7,6 +7,22 @@ logging: ...@@ -7,6 +7,22 @@ logging:
#zuul网关路由设置 #zuul网关路由设置
zuul: zuul:
routes: routes:
loginv7:
path: /v7/login
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
changepwd:
path: /v7/changepwd
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
uaa:
path: /uaa/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
config:
path: /configs/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
sys_post: sys_post:
path: /sysposts/** path: /sysposts/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
...@@ -35,21 +51,5 @@ zuul: ...@@ -35,21 +51,5 @@ zuul:
path: /sysdeptmembers/** path: /sysdeptmembers/**
serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api} serviceId: ${ibiz.ref.service.ibzou-api:ibzou-api}
stripPrefix: false stripPrefix: false
loginv7:
path: /v7/login
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
changepwd:
path: /v7/changepwd
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
uaa:
path: /uaa/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
config:
path: /configs/**
serviceId: ${ibiz.ref.service.uaa:ibzuaa-api}
stripPrefix: false
sensitive-headers: sensitive-headers:
- Cookie,Set-Cookie,Authorization - Cookie,Set-Cookie,Authorization
...@@ -74,7 +74,7 @@ public class SysDepartment extends EntityMP implements Serializable { ...@@ -74,7 +74,7 @@ public class SysDepartment extends EntityMP implements Serializable {
/** /**
* 单位 * 单位
*/ */
@DEField(preType = DEPredefinedFieldType.ORGID) @DEField(name = "orgid", preType = DEPredefinedFieldType.ORGID)
@TableField(value = "orgid") @TableField(value = "orgid")
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
......
...@@ -162,7 +162,7 @@ public class SysEmployee extends EntityMP implements Serializable { ...@@ -162,7 +162,7 @@ public class SysEmployee extends EntityMP implements Serializable {
/** /**
* 单位 * 单位
*/ */
@DEField(preType = DEPredefinedFieldType.ORGID) @DEField(name = "orgid", preType = DEPredefinedFieldType.ORGID)
@TableField(value = "orgid") @TableField(value = "orgid")
@JSONField(name = "orgid") @JSONField(name = "orgid")
@JsonProperty("orgid") @JsonProperty("orgid")
......
...@@ -31,7 +31,7 @@ public interface SysDepartmentMapper extends BaseMapper<SysDepartment> { ...@@ -31,7 +31,7 @@ public interface SysDepartmentMapper extends BaseMapper<SysDepartment> {
@CacheEvict(value ="sysdepartment", key = "'row:'+#p0.deptid") @CacheEvict(value ="sysdepartment", key = "'row:'+#p0.deptid")
int updateById(@Param(Constants.ENTITY) SysDepartment entity); int updateById(@Param(Constants.ENTITY) SysDepartment entity);
@Override @Override
@CacheEvict(value ="sysdepartment", key = "'row:'+#p0.deptid") @CacheEvict(value ="sysdepartment", key = "'row:'+#p0.deptid" ,condition ="#p0 != null")
int update(@Param(Constants.ENTITY) SysDepartment entity, @Param("ew") Wrapper<SysDepartment> updateWrapper); int update(@Param(Constants.ENTITY) SysDepartment entity, @Param("ew") Wrapper<SysDepartment> updateWrapper);
@Override @Override
@CacheEvict(value ="sysdepartment", key = "'row:'+#p0") @CacheEvict(value ="sysdepartment", key = "'row:'+#p0")
......
...@@ -31,7 +31,7 @@ public interface SysEmployeeMapper extends BaseMapper<SysEmployee> { ...@@ -31,7 +31,7 @@ public interface SysEmployeeMapper extends BaseMapper<SysEmployee> {
@CacheEvict(value ="sysemployee", key = "'row:'+#p0.userid") @CacheEvict(value ="sysemployee", key = "'row:'+#p0.userid")
int updateById(@Param(Constants.ENTITY) SysEmployee entity); int updateById(@Param(Constants.ENTITY) SysEmployee entity);
@Override @Override
@CacheEvict(value ="sysemployee", key = "'row:'+#p0.userid") @CacheEvict(value ="sysemployee", key = "'row:'+#p0.userid" ,condition ="#p0 != null")
int update(@Param(Constants.ENTITY) SysEmployee entity, @Param("ew") Wrapper<SysEmployee> updateWrapper); int update(@Param(Constants.ENTITY) SysEmployee entity, @Param("ew") Wrapper<SysEmployee> updateWrapper);
@Override @Override
@CacheEvict(value ="sysemployee", key = "'row:'+#p0") @CacheEvict(value ="sysemployee", key = "'row:'+#p0")
......
...@@ -32,7 +32,7 @@ public interface SysOrganizationMapper extends BaseMapper<SysOrganization> { ...@@ -32,7 +32,7 @@ public interface SysOrganizationMapper extends BaseMapper<SysOrganization> {
@CacheEvict(value ="sysorganization", key = "'row:'+#p0.orgid") @CacheEvict(value ="sysorganization", key = "'row:'+#p0.orgid")
int updateById(@Param(Constants.ENTITY) SysOrganization entity); int updateById(@Param(Constants.ENTITY) SysOrganization entity);
@Override @Override
@CacheEvict(value ="sysorganization", key = "'row:'+#p0.orgid") @CacheEvict(value ="sysorganization", key = "'row:'+#p0.orgid" ,condition ="#p0 != null")
int update(@Param(Constants.ENTITY) SysOrganization entity, @Param("ew") Wrapper<SysOrganization> updateWrapper); int update(@Param(Constants.ENTITY) SysOrganization entity, @Param("ew") Wrapper<SysOrganization> updateWrapper);
@Override @Override
@CacheEvict(value ="sysorganization", key = "'row:'+#p0") @CacheEvict(value ="sysorganization", key = "'row:'+#p0")
......
...@@ -45,12 +45,16 @@ public interface ISysEmployeeService extends IService<SysEmployee> { ...@@ -45,12 +45,16 @@ public interface ISysEmployeeService extends IService<SysEmployee> {
void saveBatch(List<SysEmployee> list); void saveBatch(List<SysEmployee> list);
Page<SysEmployee> searchDefault(SysEmployeeSearchContext context); Page<SysEmployee> searchDefault(SysEmployeeSearchContext context);
List<SysEmployee> selectByMdeptid(String deptid); List<SysEmployee> selectByMdeptid(String deptid);
@CacheEvict(value = "sysemployee", allEntries = true)
void resetByMdeptid(String deptid); void resetByMdeptid(String deptid);
@CacheEvict(value = "sysemployee", allEntries = true)
void resetByMdeptid(Collection<String> ids); void resetByMdeptid(Collection<String> ids);
@CacheEvict(value = "sysemployee", allEntries = true) @CacheEvict(value = "sysemployee", allEntries = true)
void removeByMdeptid(String deptid); void removeByMdeptid(String deptid);
List<SysEmployee> selectByOrgid(String orgid); List<SysEmployee> selectByOrgid(String orgid);
@CacheEvict(value = "sysemployee", allEntries = true)
void resetByOrgid(String orgid); void resetByOrgid(String orgid);
@CacheEvict(value = "sysemployee", allEntries = true)
void resetByOrgid(Collection<String> ids); void resetByOrgid(Collection<String> ids);
@CacheEvict(value = "sysemployee", allEntries = true) @CacheEvict(value = "sysemployee", allEntries = true)
void removeByOrgid(String orgid); void removeByOrgid(String orgid);
......
package cn.ibizlab.core.util.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
/**
* 通用配置类
*/
@Configuration
public class CommonAutoConfig {
@Value("${jbpm.enable.multi.con:true}")
private String flag;
/**
* 处理逻辑节点支持多来源配置
*/
@Component
public class InstallSystemParamsCommandLineRunner implements CommandLineRunner {
@Override
public void run(String... var1){
System.setProperty("jbpm.enable.multi.con", flag);
}
}
}
...@@ -74,6 +74,40 @@ ...@@ -74,6 +74,40 @@
</resources> </resources>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>prepare</id>
<configuration>
<executable>cp</executable>
<arguments>
<argument>../../${project.artifactId}.jar</argument>
<argument>${project.basedir}/src/main/docker/</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>buildpush</id>
<configuration>
<executable>docker</executable>
<arguments>
<argument>buildx</argument>
<argument>build</argument>
<argument>--platform</argument>
<argument>linux/amd64,linux/arm64</argument>
<argument>-t</argument>
<argument>${docker.image.prefix}/${project.artifactId}:latest</argument>
<argument>${project.basedir}/src/main/docker</argument>
<argument>--push</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>
......
FROM openjdk:8-jre-alpine FROM adoptopenjdk/openjdk8:jdk8u242-b08-centos
ENV TZ=Asia/Shanghai \ ENV TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册