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

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

上级 6f614bc4
......@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -93,11 +93,11 @@ export default class BookCalendarMajorStateService extends ControlService {
_data.push(..._response.data);
});
// 排序
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class CustomCalendarService extends ControlService {
_data.push(..._response.data);
});
// 排序
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class IBIZBOOKMONTHService extends ControlService {
_data.push(..._response.data);
});
// 排序
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class IBIZBOOKPANELService extends ControlService {
_data.push(..._response.data);
});
// 排序
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class IBIZBOOKTIMELINEService extends ControlService {
_data.push(..._response.data);
});
// 排序
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class OrderCalendarNavigationService extends ControlService {
_data.push(..._response.data);
});
// 排序
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
......@@ -93,11 +93,11 @@ export default class OrderCalendarTimelineNavigationService extends ControlServi
_data.push(..._response.data);
});
// 排序
_data.sort((a:any, b:any)=>{
let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
return dateA > dateB ? 1 : -1 ;
});
// _data.sort((a:any, b:any)=>{
// let dateA = new Date(Date.parse(a.start?.replace(/-/g, "/")));
// let dateB = new Date(Date.parse(b.start?.replace(/-/g, "/")));
// return dateA > dateB ? 1 : -1 ;
// });
let result = {status: 200, data: _data};
resolve(result);
}).catch((response: any) => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册