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

MoneyQ 部署微服务应用 [后台服务,演示应用]

上级 ed4ddb61
......@@ -36,46 +36,6 @@
}
]
},
{
"srfkey": "SAMPLETYPE",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "30",
"label": "MD+IF+IF+IF+MD",
"text": "MD+IF+IF+IF+MD",
"class":"",
"data":"",
"codename":"Item_30",
"value": "30",
"disabled": false
}
, {
"id": "20",
"label": "MD+IF+IF+MD",
"text": "MD+IF+IF+MD",
"class":"",
"data":"",
"codename":"Item_20",
"value": "20",
"disabled": false
}
, {
"id": "10",
"label": "MD+IF+MD",
"text": "MD+IF+MD",
"class":"",
"data":"",
"codename":"Item_10",
"value": "10",
"disabled": false
}
]
},
{
"srfkey": "SCODELIST_NUM",
"emptytext": "未定义",
......@@ -236,35 +196,6 @@
}
]
},
{
"srfkey": "HARDWARETYPE",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "Storage",
"label": "存储",
"text": "存储",
"class":"",
"data":"",
"codename":"Storage",
"value": "Storage",
"disabled": false
}
, {
"id": "CPU",
"label": "处理器",
"text": "处理器",
"class":"",
"data":"",
"codename":"Cpu",
"value": "CPU",
"disabled": false
}
]
},
{
"srfkey": "ORDERTYPE",
"emptytext": "未定义",
......
......@@ -7,12 +7,6 @@ export default {
"Hardware": "硬件",
"empty": ""
},
SAMPLETYPE: {
"30": "MD+IF+IF+IF+MD",
"20": "MD+IF+IF+MD",
"10": "MD+IF+MD",
"empty": ""
},
SCODELIST_NUM: {
"1": "类型1",
"2": "类型2",
......@@ -37,11 +31,6 @@ export default {
"40": "未通过",
"empty": ""
},
HARDWARETYPE: {
"Storage": "存储",
"CPU": "处理器",
"empty": ""
},
ORDERTYPE: {
"empty": "",
},
......
......@@ -7,12 +7,6 @@ export default {
"Hardware": "硬件",
"empty": "",
},
SAMPLETYPE: {
"30": "MD+IF+IF+IF+MD",
"20": "MD+IF+IF+MD",
"10": "MD+IF+MD",
"empty": "",
},
SCODELIST_NUM: {
"1": "类型1",
"2": "类型2",
......@@ -37,11 +31,6 @@ export default {
"40": "未通过",
"empty": "",
},
HARDWARETYPE: {
"Storage": "存储",
"CPU": "处理器",
"empty": "",
},
ORDERTYPE: {
"empty": "",
},
......
......@@ -44,46 +44,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "SAMPLETYPE",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "30",
label: "MD+IF+IF+IF+MD",
text: "MD+IF+IF+IF+MD",
"class":"",
"data":"",
"codename":"Item_30",
value: "30",
disabled: false,
},
{
id: "20",
label: "MD+IF+IF+MD",
text: "MD+IF+IF+MD",
"class":"",
"data":"",
"codename":"Item_20",
value: "20",
disabled: false,
},
{
id: "10",
label: "MD+IF+MD",
text: "MD+IF+MD",
"class":"",
"data":"",
"codename":"Item_10",
value: "10",
disabled: false,
},
]
},
{
srfkey: "SCODELIST_NUM",
emptytext: "未定义",
......@@ -244,35 +204,6 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "HARDWARETYPE",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "Storage",
label: "存储",
text: "存储",
"class":"",
"data":"",
"codename":"Storage",
value: "Storage",
disabled: false,
},
{
id: "CPU",
label: "处理器",
text: "处理器",
"class":"",
"data":"",
"codename":"Cpu",
value: "CPU",
disabled: false,
},
]
},
{
"srfkey": "ORDERTYPE",
"emptytext": "未定义",
......
......@@ -53,6 +53,123 @@ export default class IBIZAccountServiceBase extends EntityService {
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAccountServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/ibizaccounts`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAccountServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/ibizaccounts/${context.ibizaccount}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAccountServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/ibizaccounts/${context.ibizaccount}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAccountServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizaccounts/${context.ibizaccount}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAccountServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizaccounts/getdraft`,isloading);
res.data.ibizaccount = data.ibizaccount;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAccountServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/ibizaccounts/${context.ibizaccount}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAccountServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/ibizaccounts/${context.ibizaccount}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
......@@ -63,5 +180,8 @@ export default class IBIZAccountServiceBase extends EntityService {
* @memberof IBIZAccountServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/ibizaccounts/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
......@@ -53,6 +53,123 @@ export default class IBIZCPUServiceBase extends EntityService {
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCPUServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
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(`/ibizcpus`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCPUServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/ibizcpus/${context.ibizcpu}`,data,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCPUServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/ibizcpus/${context.ibizcpu}`,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCPUServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizcpus/${context.ibizcpu}`,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCPUServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizcpus/getdraft`,isloading);
res.data.ibizcpu = data.ibizcpu;
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCPUServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/ibizcpus/${context.ibizcpu}/checkkey`,data,isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCPUServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/ibizcpus/${context.ibizcpu}/save`,data,isloading);
return res;
}
/**
* FetchDefault接口方法
*
......@@ -63,5 +180,8 @@ export default class IBIZCPUServiceBase extends EntityService {
* @memberof IBIZCPUServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/ibizcpus/fetchdefault`,tempData,isloading);
return res;
}
}
\ No newline at end of file
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册