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

xignzi006 发布系统代码 [Spring Boot,员工]

上级 9c03285e
......@@ -69,6 +69,7 @@ export class AuthServiceRegister {
this.allAuthService.set('product_product', () => import('@/authservice/product-product/product-product-auth-service'));
this.allAuthService.set('hr_resume_line_type', () => import('@/authservice/hr-resume-line-type/hr-resume-line-type-auth-service'));
this.allAuthService.set('gamification_challenge', () => import('@/authservice/gamification-challenge/gamification-challenge-auth-service'));
this.allAuthService.set('mail_tracking_value', () => import('@/authservice/mail-tracking-value/mail-tracking-value-auth-service'));
this.allAuthService.set('product_category', () => import('@/authservice/product-category/product-category-auth-service'));
this.allAuthService.set('res_partner', () => import('@/authservice/res-partner/res-partner-auth-service'));
this.allAuthService.set('sale_order_line', () => import('@/authservice/sale-order-line/sale-order-line-auth-service'));
......
import AuthService from '../auth-service';
/**
* 邮件跟踪值权限服务对象基类
*
* @export
* @class Mail_tracking_valueAuthServiceBase
* @extends {AuthService}
*/
export default class Mail_tracking_valueAuthServiceBase extends AuthService {
/**
* Creates an instance of Mail_tracking_valueAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof Mail_tracking_valueAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof Mail_tracking_valueAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = this.getSysOPPrivs();
let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
// 统一资源优先
Object.keys(curDefaultOPPrivs).forEach((name:string) => {
if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){
curDefaultOPPrivs[name] = copyDefaultOPPrivs[name];
}
});
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import Mail_tracking_valueAuthServiceBase from './mail-tracking-value-auth-service-base';
/**
* 邮件跟踪值权限服务对象
*
* @export
* @class Mail_tracking_valueAuthService
* @extends {Mail_tracking_valueAuthServiceBase}
*/
export default class Mail_tracking_valueAuthService extends Mail_tracking_valueAuthServiceBase {
/**
* Creates an instance of Mail_tracking_valueAuthService.
*
* @param {*} [opts={}]
* @memberof Mail_tracking_valueAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
/**
* 邮件跟踪值
*
* @export
* @interface Mail_tracking_value
*/
export interface Mail_tracking_value {
/**
* 字段说明
*
* @returns {*}
* @memberof Mail_tracking_value
*/
field_desc?: any;
/**
* 旧字符值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
old_value_char?: any;
/**
* 最后更新时间
*
* @returns {*}
* @memberof Mail_tracking_value
*/
write_date?: any;
/**
* 新日期时间值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
new_value_datetime?: any;
/**
* 旧货币值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
old_value_monetary?: any;
/**
* tracking_sequence
*
* @returns {*}
* @memberof Mail_tracking_value
*/
tracking_sequence?: any;
/**
* 新字符值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
new_value_char?: any;
/**
* 新文本值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
new_value_text?: any;
/**
* 新货币值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
new_value_monetary?: any;
/**
* 旧日期时间值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
old_value_datetime?: any;
/**
* 最后修改日
*
* @returns {*}
* @memberof Mail_tracking_value
*/
__last_update?: any;
/**
* 创建时间
*
* @returns {*}
* @memberof Mail_tracking_value
*/
create_date?: any;
/**
* 旧整数值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
old_value_integer?: any;
/**
* 旧文本值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
old_value_text?: any;
/**
* 字段类型
*
* @returns {*}
* @memberof Mail_tracking_value
*/
field_type?: any;
/**
* 新整数值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
new_value_integer?: any;
/**
* 显示名称
*
* @returns {*}
* @memberof Mail_tracking_value
*/
display_name?: any;
/**
* 新浮点值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
new_value_float?: any;
/**
* ID
*
* @returns {*}
* @memberof Mail_tracking_value
*/
id?: any;
/**
* 更改的字段
*
* @returns {*}
* @memberof Mail_tracking_value
*/
field?: any;
/**
* 旧浮点值
*
* @returns {*}
* @memberof Mail_tracking_value
*/
old_value_float?: any;
/**
* 最后更新者
*
* @returns {*}
* @memberof Mail_tracking_value
*/
write_uid_text?: any;
/**
* 创建人
*
* @returns {*}
* @memberof Mail_tracking_value
*/
create_uid_text?: any;
/**
* 最后更新者
*
* @returns {*}
* @memberof Mail_tracking_value
*/
write_uid?: any;
/**
* 创建人
*
* @returns {*}
* @memberof Mail_tracking_value
*/
create_uid?: any;
/**
* 邮件消息ID
*
* @returns {*}
* @memberof Mail_tracking_value
*/
mail_message_id?: any;
}
\ No newline at end of file
......@@ -30,6 +30,7 @@ import res_config_settings_en_US from '@locale/lanres/entities/res-config-settin
import product_product_en_US from '@locale/lanres/entities/product-product/product-product_en_US';
import hr_resume_line_type_en_US from '@locale/lanres/entities/hr-resume-line-type/hr-resume-line-type_en_US';
import gamification_challenge_en_US from '@locale/lanres/entities/gamification-challenge/gamification-challenge_en_US';
import mail_tracking_value_en_US from '@locale/lanres/entities/mail-tracking-value/mail-tracking-value_en_US';
import product_category_en_US from '@locale/lanres/entities/product-category/product-category_en_US';
import res_partner_en_US from '@locale/lanres/entities/res-partner/res-partner_en_US';
import sale_order_line_en_US from '@locale/lanres/entities/sale-order-line/sale-order-line_en_US';
......@@ -316,6 +317,7 @@ const data: any = {
product_product: product_product_en_US,
hr_resume_line_type: hr_resume_line_type_en_US,
gamification_challenge: gamification_challenge_en_US,
mail_tracking_value: mail_tracking_value_en_US,
product_category: product_category_en_US,
res_partner: res_partner_en_US,
sale_order_line: sale_order_line_en_US,
......
......@@ -30,6 +30,7 @@ import res_config_settings_zh_CN from '@locale/lanres/entities/res-config-settin
import product_product_zh_CN from '@locale/lanres/entities/product-product/product-product_zh_CN';
import hr_resume_line_type_zh_CN from '@locale/lanres/entities/hr-resume-line-type/hr-resume-line-type_zh_CN';
import gamification_challenge_zh_CN from '@locale/lanres/entities/gamification-challenge/gamification-challenge_zh_CN';
import mail_tracking_value_zh_CN from '@locale/lanres/entities/mail-tracking-value/mail-tracking-value_zh_CN';
import product_category_zh_CN from '@locale/lanres/entities/product-category/product-category_zh_CN';
import res_partner_zh_CN from '@locale/lanres/entities/res-partner/res-partner_zh_CN';
import sale_order_line_zh_CN from '@locale/lanres/entities/sale-order-line/sale-order-line_zh_CN';
......@@ -315,6 +316,7 @@ const data: any = {
product_product: product_product_zh_CN,
hr_resume_line_type: hr_resume_line_type_zh_CN,
gamification_challenge: gamification_challenge_zh_CN,
mail_tracking_value: mail_tracking_value_zh_CN,
product_category: product_category_zh_CN,
res_partner: res_partner_zh_CN,
sale_order_line: sale_order_line_zh_CN,
......
export default {
fields: {
field_desc: "字段说明",
old_value_char: "旧字符值",
write_date: "最后更新时间",
new_value_datetime: "新日期时间值",
old_value_monetary: "旧货币值",
tracking_sequence: "tracking_sequence",
new_value_char: "新字符值",
new_value_text: "新文本值",
new_value_monetary: "新货币值",
old_value_datetime: "旧日期时间值",
__last_update: "最后修改日",
create_date: "创建时间",
old_value_integer: "旧整数值",
old_value_text: "旧文本值",
field_type: "字段类型",
new_value_integer: "新整数值",
display_name: "显示名称",
new_value_float: "新浮点值",
id: "ID",
field: "更改的字段",
old_value_float: "旧浮点值",
write_uid_text: "最后更新者",
create_uid_text: "创建人",
write_uid: "最后更新者",
create_uid: "创建人",
mail_message_id: "邮件消息ID",
},
};
\ No newline at end of file
export default {
fields: {
field_desc: "字段说明",
old_value_char: "旧字符值",
write_date: "最后更新时间",
new_value_datetime: "新日期时间值",
old_value_monetary: "旧货币值",
tracking_sequence: "tracking_sequence",
new_value_char: "新字符值",
new_value_text: "新文本值",
new_value_monetary: "新货币值",
old_value_datetime: "旧日期时间值",
__last_update: "最后修改日",
create_date: "创建时间",
old_value_integer: "旧整数值",
old_value_text: "旧文本值",
field_type: "字段类型",
new_value_integer: "新整数值",
display_name: "显示名称",
new_value_float: "新浮点值",
id: "ID",
field: "更改的字段",
old_value_float: "旧浮点值",
write_uid_text: "最后更新者",
create_uid_text: "创建人",
write_uid: "最后更新者",
create_uid: "创建人",
mail_message_id: "邮件消息ID",
},
};
\ No newline at end of file
import qs from 'qs';
import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();
// 模拟数据
const mockDatas: Array<any> = [
];
//getwflink
mock.onGet(new RegExp(/^\/wfcore\/ibizbusinesscentral-app-hr\/mail_tracking_values\/[a-zA-Z0-9\-\;]+\/usertasks\/[a-zA-Z0-9\-\;]+\/ways$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: getwflink");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status,[
{"sequenceFlowId":"dfdsfdsfdsfdsfds","sequenceFlowName":"同意",
"taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1",
"processInstanceId":"ddlfldldfldsfds","refViewKey":""},
{"sequenceFlowId":"ddssdfdfdfdfsfdf","sequenceFlowName":"不同意",
"taskId":"aaaaddddccccddddd","processDefinitionKey":"support-workorders-approve-v1",
"processInstanceId":"ddfdsldlfdlldsf","refViewKey":"workorder_ltform_editview"}
]];
});
// getwfstep
mock.onGet(new RegExp(/^\/wfcore\/ibizbusinesscentral-app-hr\/mail_tracking_values\/process-definitions-nodes$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: getwfstep");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, [
{"userTaskId":"sddfddfd-dfdf-fdfd-fdf-dfdfd",
"userTaskName":"待审",
"cnt":0,
"processDefinitionKey":"support-workorders-approve-v1",
"processDefinitionName":"工单审批流程v1"
},
{"userTaskId":"sddfddfd-dfdf-fdfd-fdf-87927",
"userTaskName":"待分配",
"cnt":3,
"processDefinitionKey":"support-workorders-approve-v1",
"processDefinitionName":"工单审批流程v1"}
]];
});
// createBatch
mock.onPost(new RegExp(/^\/mail_tracking_values\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: createBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// updateBatch
mock.onPut(new RegExp(/^\/mail_tracking_values\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: updateBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// removeBatch
mock.onDelete(new RegExp(/^\/mail_tracking_values\/batch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: removeBatch");
console.table({url:config.url, method: config.method, data:config.data});
console.groupEnd();
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, {}];
}
return [status, {}];
});
// Create
mock.onPost(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Create");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Create
mock.onPost(new RegExp(/^\/mail_tracking_values\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Create");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas[0]);
console.groupEnd();
console.groupEnd();
return [status, mockDatas[0]];
});
// Update
mock.onPut(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: 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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Update
mock.onPut(new RegExp(/^\/mail_tracking_values\/?([a-zA-Z0-9\-\;]{0,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: 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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([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.id, tempValue.id));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['id'] == tempValue['id'] ){
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
mock.onGet(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: GetDraft");
console.table({url:config.url, method: config.method, data:config.data});
// GetDraft
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// GetDraft
mock.onGet(new RegExp(/^\/mail_tracking_values\/getdraft$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: GetDraft");
console.table({url:config.url, method: config.method, data:config.data});
// GetDraft
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: CheckKey");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// CheckKey
mock.onPost(new RegExp(/^\/mail_tracking_values\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: CheckKey");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/checkkey$/).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.id, tempValue.id));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['id'] == tempValue['id'] ){
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];
});
// CreateBatch
mock.onPost(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/createbatch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: CreateBatch");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/createbatch$/).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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// CreateBatch
mock.onPost(new RegExp(/^\/mail_tracking_values\/?([a-zA-Z0-9\-\;]{0,35})\/createbatch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: CreateBatch");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/createbatch$/).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.id, tempValue.id));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['id'] == tempValue['id'] ){
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];
});
// Save
mock.onPost(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Save");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/save$/).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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// Save
mock.onPost(new RegExp(/^\/mail_tracking_values\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Save");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/save$/).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.id, tempValue.id));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['id'] == tempValue['id'] ){
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];
});
// UpdateBatch
mock.onPut(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/updatebatch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: UpdateBatch");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/updatebatch$/).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]
});
});
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table({});
console.groupEnd();
console.groupEnd();
return [status, {}];
});
// UpdateBatch
mock.onPut(new RegExp(/^\/mail_tracking_values\/?([a-zA-Z0-9\-\;]{0,35})\/updatebatch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: UpdateBatch");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/updatebatch$/).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.id, tempValue.id));
let data = JSON.parse(config.data);
mockDatas.forEach((item)=>{
if(item['id'] == tempValue['id'] ){
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];
});
// FetchDefault
mock.onGet(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: FetchDefault");
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> = ['id'];
let tempValue: any = {};
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/fetchdefault$/).exec(config.url);
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 : [];
if (items.length > 0 && paramArray.length > 0) {
paramArray.forEach((paramkey: any) => {
if (tempValue[paramkey] && tempValue[paramkey].indexOf(";") > 0) {
let keysGrounp: Array<any> = tempValue[paramkey].split(new RegExp(/[\;]/));
let tempArray: Array<any> = [];
keysGrounp.forEach((singlekey: any) => {
let _items = items.filter((item: any) => { return item[paramkey] == singlekey });
if(_items.length >0){
tempArray.push(..._items);
}
})
items = tempArray;
} else {
items = items.filter((item: any) => { return item[paramkey] == tempValue[paramkey] });
}
})
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(items);
console.groupEnd();
console.groupEnd();
return [status, items];
});
// FetchDefault
mock.onGet(new RegExp(/^\/mail_tracking_values\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas);
console.groupEnd();
console.groupEnd();
return [status, mockDatas ? mockDatas : []];
});
// FetchDefault
mock.onGet(new RegExp(/^\/mail_tracking_values\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: FetchDefault");
console.table({url:config.url, method: config.method, data:config.data});
if(config.url.includes('page')){
let url = config.url.split('?')[1];
let params = qs.parse(url);
Object.assign(config, params);
}
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
let total = mockDatas.length;
let records: Array<any> = [];
if(!config.page || !config.size){
records = mockDatas;
}else{
if((config.page-1)*config.size < total){
records = mockDatas.slice(config.page,config.size);
}
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(records ? records : []);
console.groupEnd();
console.groupEnd();
return [status, records ? records : []];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock.onDelete(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Remove");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([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.id, tempValue.id));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Remove
mock.onDelete(new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Remove");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([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.id, tempValue.id));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Get");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([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.id, tempValue.id));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// Get
mock.onGet(new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: Get");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([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.id, tempValue.id));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// RemoveBatch
mock.onDelete(new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/removebatch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: RemoveBatch");
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> = ['id','id'];
const matchArray:any = new RegExp(/^\/mail_messages\/([a-zA-Z0-9\-\;]{1,35})\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/removebatch$/).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.id, tempValue.id));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
// RemoveBatch
mock.onDelete(new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/removebatch$/)).reply((config: any) => {
console.groupCollapsed("实体:mail_tracking_value 方法: RemoveBatch");
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> = ['id'];
const matchArray:any = new RegExp(/^\/mail_tracking_values\/([a-zA-Z0-9\-\;]{1,35})\/removebatch$/).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.id, tempValue.id));
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(_items?_items:{});
console.groupEnd();
console.groupEnd();
return [status, _items?_items:{}];
});
......@@ -37,6 +37,7 @@ import './entity/res-config-settingss/res-config-settingss';
import './entity/product-products/product-products';
import './entity/hr-resume-line-types/hr-resume-line-types';
import './entity/gamification-challenges/gamification-challenges';
import './entity/mail-tracking-values/mail-tracking-values';
import './entity/product-categorys/product-categorys';
import './entity/res-partners/res-partners';
import './entity/sale-order-lines/sale-order-lines';
......
<studio-view-style2 viewName="hr_employeemastergridview" viewTitle="首选表格视图" class='degridview hr-employee-master-grid-view'>
<template slot='title'>
<span class='caption-info'>{{viewCaption}}</span>
</template>
<i-input slot='quickSearch' clearable v-show="!isExpandSearchForm" v-model="query" placeholder="名称" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click.apply(_self, arguments)"/>
......
......@@ -69,6 +69,7 @@ export class EntityServiceRegister {
this.allEntityService.set('product_product', () => import('@/service/product-product/product-product-service'));
this.allEntityService.set('hr_resume_line_type', () => import('@/service/hr-resume-line-type/hr-resume-line-type-service'));
this.allEntityService.set('gamification_challenge', () => import('@/service/gamification-challenge/gamification-challenge-service'));
this.allEntityService.set('mail_tracking_value', () => import('@/service/mail-tracking-value/mail-tracking-value-service'));
this.allEntityService.set('product_category', () => import('@/service/product-category/product-category-service'));
this.allEntityService.set('res_partner', () => import('@/service/res-partner/res-partner-service'));
this.allEntityService.set('sale_order_line', () => import('@/service/sale-order-line/sale-order-line-service'));
......
......@@ -59,6 +59,7 @@ export default class Mail_messageServiceBase extends EntityService {
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/mail_messages`,data,isloading);
this.tempStorage.setItem(tempContext.srfsessionkey+'_mail_tracking_values',JSON.stringify(res.data.mail_tracking_values?res.data.mail_tracking_values:[]));
return res;
}
......
import { Http } from '@/utils';
import { Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 邮件跟踪值服务对象基类
*
* @export
* @class Mail_tracking_valueServiceBase
* @extends {EntityServie}
*/
export default class Mail_tracking_valueServiceBase extends EntityService {
/**
* Creates an instance of Mail_tracking_valueServiceBase.
*
* @param {*} [opts={}]
* @memberof Mail_tracking_valueServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof Mail_tracking_valueServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='mail_tracking_value';
this.APPDEKEY = 'id';
this.APPDENAME = 'mail_tracking_values';
this.APPDETEXT = 'id';
this.APPNAME = 'hr';
this.SYSTEMNAME = 'ibizbusinesscentral';
}
// 实体接口
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && true){
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/mail_messages/${context.mail_message}/mail_tracking_values`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/mail_tracking_values`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/mail_tracking_values/${context.mail_tracking_value}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let res:any = Http.getInstance().delete(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/mail_tracking_values/${context.mail_tracking_value}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let res:any = await Http.getInstance().get(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}`,isloading);
return res;
}
let res:any = await Http.getInstance().get(`/mail_tracking_values/${context.mail_tracking_value}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && true){
let res:any = await Http.getInstance().get(`/mail_messages/${context.mail_message}/mail_tracking_values/getdraft`,isloading);
res.data.mail_tracking_value = data.mail_tracking_value;
return res;
}
let res:any = await Http.getInstance().get(`/mail_tracking_values/getdraft`,isloading);
res.data.mail_tracking_value = data.mail_tracking_value;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}/checkkey`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/mail_tracking_values/${context.mail_tracking_value}/checkkey`,data,isloading);
return res;
}
/**
* CreateBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async CreateBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}/createbatch`,data,isloading);
return res;
}
let res:any = Http.getInstance().post(`/mail_tracking_values/${context.mail_tracking_value}/createbatch`,data,isloading);
return res;
}
/**
* RemoveBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async RemoveBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let res:any = Http.getInstance().delete(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}/removebatch`,isloading);
return res;
}
let res:any = Http.getInstance().delete(`/mail_tracking_values/${context.mail_tracking_value}/removebatch`,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}/save`,data,isloading);
return res;
}
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/mail_tracking_values/${context.mail_tracking_value}/save`,data,isloading);
return res;
}
/**
* UpdateBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async UpdateBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && context.mail_tracking_value){
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/mail_messages/${context.mail_message}/mail_tracking_values/${context.mail_tracking_value}/updatebatch`,data,isloading);
return res;
}
let res:any = Http.getInstance().put(`/mail_tracking_values/${context.mail_tracking_value}/updatebatch`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Mail_tracking_valueServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.mail_message && true){
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/mail_messages/${context.mail_message}/mail_tracking_values/fetchdefault`,tempData,isloading);
return res;
}
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/mail_tracking_values/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
import { Http } from '@/utils';
import { Util } from '@/utils';
import Mail_tracking_valueServiceBase from './mail-tracking-value-service-base';
/**
* 邮件跟踪值服务对象
*
* @export
* @class Mail_tracking_valueService
* @extends {Mail_tracking_valueServiceBase}
*/
export default class Mail_tracking_valueService extends Mail_tracking_valueServiceBase {
/**
* Creates an instance of Mail_tracking_valueService.
*
* @param {*} [opts={}]
* @memberof Mail_tracking_valueService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import Mail_tracking_valueService from '@/service/mail-tracking-value/mail-tracking-value-service';
import Mail_tracking_valueAuthService from '@/authservice/mail-tracking-value/mail-tracking-value-auth-service';
/**
* 邮件跟踪值UI服务对象基类
*
* @export
* @class Mail_tracking_valueUIServiceBase
*/
export default class Mail_tracking_valueUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 是否支持实体主状态
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public isEnableDEMainState:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public dataService:Mail_tracking_valueService = new Mail_tracking_valueService();
/**
* 所有关联视图
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of Mail_tracking_valueUIServiceBase.
*
* @param {*} [opts={}]
* @memberof Mail_tracking_valueUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new Mail_tracking_valueAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public initViewMap(){
}
/**
* 初始化主状态集合
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof Mail_tracking_valueUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({mail_tracking_value:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof Mail_tracking_valueUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof Mail_tracking_valueUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const multiFormDEField:string|null =null;
if (multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW:'+objFormValue;
}
return 'EDITVIEW:'+objFormValue;
}
const stateTag = this.getDEMainStateTag(curData);
if(!Environment.isAppMode){
if (stateTag) {
return `MOBEDITVIEW:MSTAG:${stateTag}`;
}
return 'MOBEDITVIEW:';
}
if(stateTag){
return `EDITVIEW:MSTAG:${stateTag}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof Mail_tracking_valueUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if (!(singleMainField in curData)) {
console.warn(`当前数据对象不包含属性「${singleMainField}」,根据「${singleMainField}」属性进行的主状态计算默认为空值`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]] != null && curData[this.mainStateFields[0]] !== "")?(i == 0) ? `${curData[this.mainStateFields[0]]}` : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]] != null && curData[this.mainStateFields[1]] !== "")?`${strTag}__${(j == 0) ? `${curData[this.mainStateFields[1]]}` : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]] != null && curData[this.mainStateFields[2]] !== "")?`${strTag2}__${(k == 0) ? `${curData[this.mainStateFields[2]]}` : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof Mail_tracking_valueUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
const stateTag = this.getDEMainStateTag(data);
if (stateTag) {
return this.allDeMainStateOPPrivsMap.get(stateTag);
} else {
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof Mail_tracking_valueUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
}
\ No newline at end of file
import Mail_tracking_valueUIServiceBase from './mail-tracking-value-ui-service-base';
/**
* 邮件跟踪值UI服务对象
*
* @export
* @class Mail_tracking_valueUIService
*/
export default class Mail_tracking_valueUIService extends Mail_tracking_valueUIServiceBase {
/**
* Creates an instance of Mail_tracking_valueUIService.
*
* @param {*} [opts={}]
* @memberof Mail_tracking_valueUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -69,6 +69,7 @@ export class UIServiceRegister {
this.allUIService.set('product_product', () => import('@/uiservice/product-product/product-product-ui-service'));
this.allUIService.set('hr_resume_line_type', () => import('@/uiservice/hr-resume-line-type/hr-resume-line-type-ui-service'));
this.allUIService.set('gamification_challenge', () => import('@/uiservice/gamification-challenge/gamification-challenge-ui-service'));
this.allUIService.set('mail_tracking_value', () => import('@/uiservice/mail-tracking-value/mail-tracking-value-ui-service'));
this.allUIService.set('product_category', () => import('@/uiservice/product-category/product-category-ui-service'));
this.allUIService.set('res_partner', () => import('@/uiservice/res-partner/res-partner-ui-service'));
this.allUIService.set('sale_order_line', () => import('@/uiservice/sale-order-line/sale-order-line-ui-service'));
......
......@@ -578,7 +578,7 @@ export default class TreeService extends ControlService {
Object.assign(treeNode, { iconcls: 'fa fa-cube' });
Object.assign(treeNode, { expanded: filter.isAutoexpand });
Object.assign(treeNode, { expanded: true });
Object.assign(treeNode, { leaf: false });
Object.assign(treeNode, { nodeid: treeNode.srfkey });
Object.assign(treeNode, { nodeid2: filter.strRealNodeId });
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-hr.jar
EXPOSE 31130
EXPOSE 8080
ADD businesscentral-app-hr.jar /businesscentral-app-hr.jar
......@@ -3,25 +3,9 @@ services:
businesscentral-app-hr:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-hr:latest
ports:
- "31130:31130"
- "8080:8080"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=31130
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=odoo
- SPRING_DATASOURCE_PASSWORD=odoo
- SPRING_DATASOURCE_URL=jdbc:postgresql://172.16.240.158:15432/odoo
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.postgresql.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=odoo
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -131,6 +131,10 @@ zuul:
path: /gamification_challenges/**
serviceId: ${ibiz.ref.service.ibizbusinesscentral-core:ibizbusinesscentral-core}
stripPrefix: false
mail_tracking_value:
path: /mail_tracking_values/**
serviceId: ${ibiz.ref.service.ibizbusinesscentral-core:ibizbusinesscentral-core}
stripPrefix: false
product_category:
path: /product_categories/**
serviceId: ${ibiz.ref.service.ibizbusinesscentral-core:ibizbusinesscentral-core}
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-invoice.jar
EXPOSE 31130
EXPOSE 8080
ADD businesscentral-app-invoice.jar /businesscentral-app-invoice.jar
......@@ -3,25 +3,9 @@ services:
businesscentral-app-invoice:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-invoice:latest
ports:
- "31130:31130"
- "8080:8080"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=31130
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=odoo
- SPRING_DATASOURCE_PASSWORD=odoo
- SPRING_DATASOURCE_URL=jdbc:postgresql://172.16.240.158:15432/odoo
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.postgresql.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=odoo
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-purchase.jar
EXPOSE 31130
EXPOSE 8080
ADD businesscentral-app-purchase.jar /businesscentral-app-purchase.jar
......@@ -3,25 +3,9 @@ services:
businesscentral-app-purchase:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-purchase:latest
ports:
- "31130:31130"
- "8080:8080"
networks:
- agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=31130
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=odoo
- SPRING_DATASOURCE_PASSWORD=odoo
- SPRING_DATASOURCE_URL=jdbc:postgresql://172.16.240.158:15432/odoo
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.postgresql.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=odoo
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy:
resources:
limits:
......
......@@ -37,11 +37,6 @@
git clone -b master $para2 ibizbusinesscentral/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizbusinesscentral/
mvn clean package -Phr
cd businesscentral-app/businesscentral-app-hr
mvn -Phr docker:build
mvn -Phr docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-app-hr.yaml iBizEE --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册