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

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

上级 54e55ad8
......@@ -710,10 +710,10 @@ export default class CtrlAmountBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -772,10 +772,10 @@ export default class CtrlListBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -710,10 +710,10 @@ export default class EditorAmountBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -772,10 +772,10 @@ export default class EditorListBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -710,10 +710,10 @@ export default class ExtendEditorAmountBase extends Vue implements ControlInterf
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -772,10 +772,10 @@ export default class ExtendEditorListBase extends Vue implements ControlInterfac
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -710,10 +710,10 @@ export default class ViewAmountBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -800,10 +800,10 @@ export default class ViewListBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -936,10 +936,10 @@ export default class AutoGroupListBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -730,10 +730,10 @@ export default class BooklistBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -495,8 +495,14 @@ export default class DataViewExpViewdataviewexpbarBase extends Vue implements Co
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -545,7 +545,7 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
* @param {boolean} [isReset=false] 是否重置items
* @memberof GroupByCodelistKanBanBase
*/
public async load(opt: any = {}, isReset: boolean = false) {
public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKGroupByCodelistKanBanView' + (this.$t('app.kanban.notConfig.fetchAction') as string) });
return;
......@@ -567,14 +567,23 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
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);
post.then((response: any) => {
if (!(await this.handleCtrlEvents('onbeforeload', { viewparams: arg }))) {
return;
}
try {
const response = await this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onloaderror', { data: response && response.data ? response.data : [] }))) {
return;
}
if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
return;
}
if (!(await this.handleCtrlEvents('onloadsuccess', { data: response.data }))) {
return;
}
const data: any = response.data;
if(!this.isAddBehind){
this.items = [];
......@@ -597,12 +606,15 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
if(this.isSelectFirstDefault){
this.handleClick(this.items[0]);
}
}, (response: any) => {
} catch (response: any) {
if (!(await this.handleCtrlEvents('onloaderror', { data: response && response.data ? response.data : [] }))) {
return;
}
if (response && response.status === 401) {
return;
}
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
});
}
}
/**
......@@ -652,22 +664,29 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
dataInfo = dataInfo + '...' + ' 共' + _datas.length + '条数据';
}
const removeData = () => {
const removeData = async () => {
let keys: any[] = [];
_datas.forEach((data: any) => {
keys.push(data.srfkey);
});
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => {
post.then((response: any) => {
if (!(await this.handleCtrlEvents('onbeforeremove', { data: datas }))) {
return;
}
try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return;
}
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
} else {
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
}
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
_datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......@@ -679,19 +698,19 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
});
this.$emit('remove', null);
this.selections = [];
resolve(response);
}).catch((response: any) => {
return response;
} catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return;
}
if (response && response.status === 401) {
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
return;
}
reject(response);
});
});
return response;
}
}
dataInfo = dataInfo.replace(/[null]/g, '').replace(/[undefined]/g, '').replace(/[ ]/g, '');
......@@ -862,6 +881,10 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
*
*/
public selectchange() {
this.handleCtrlEvents('onselectionchange').then((res: boolean) => {
if (!res) {
return;
}
this.selections = [];
this.items.map((item: any) => {
if (item.isselected) {
......@@ -869,6 +892,7 @@ export default class GroupByCodelistKanBanBase extends Vue implements ControlInt
}
});
this.$emit('selectionchange', this.selections);
})
}
/**
......
......@@ -867,10 +867,10 @@ export default class GroupByCodelistListBase extends Vue implements ControlInter
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -545,7 +545,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @param {boolean} [isReset=false] 是否重置items
* @memberof HasPanelKanBanBase
*/
public async load(opt: any = {}, isReset: boolean = false) {
public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKHasPanelKanBanView' + (this.$t('app.kanban.notConfig.fetchAction') as string) });
return;
......@@ -567,14 +567,23 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
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);
post.then((response: any) => {
if (!(await this.handleCtrlEvents('onbeforeload', { viewparams: arg }))) {
return;
}
try {
const response = await this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onloaderror', { data: response && response.data ? response.data : [] }))) {
return;
}
if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
return;
}
if (!(await this.handleCtrlEvents('onloadsuccess', { data: response.data }))) {
return;
}
const data: any = response.data;
if(!this.isAddBehind){
this.items = [];
......@@ -597,12 +606,15 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
if(this.isSelectFirstDefault){
this.handleClick(this.items[0]);
}
}, (response: any) => {
} catch (response: any) {
if (!(await this.handleCtrlEvents('onloaderror', { data: response && response.data ? response.data : [] }))) {
return;
}
if (response && response.status === 401) {
return;
}
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
});
}
}
/**
......@@ -652,22 +664,29 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
dataInfo = dataInfo + '...' + ' 共' + _datas.length + '条数据';
}
const removeData = () => {
const removeData = async () => {
let keys: any[] = [];
_datas.forEach((data: any) => {
keys.push(data.srfkey);
});
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => {
post.then((response: any) => {
if (!(await this.handleCtrlEvents('onbeforeremove', { data: datas }))) {
return;
}
try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return;
}
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
} else {
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
}
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
_datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......@@ -679,19 +698,19 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
});
this.$emit('remove', null);
this.selections = [];
resolve(response);
}).catch((response: any) => {
return response;
} catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return;
}
if (response && response.status === 401) {
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
return;
}
reject(response);
});
});
return response;
}
}
dataInfo = dataInfo.replace(/[null]/g, '').replace(/[undefined]/g, '').replace(/[ ]/g, '');
......@@ -862,6 +881,10 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*
*/
public selectchange() {
this.handleCtrlEvents('onselectionchange').then((res: boolean) => {
if (!res) {
return;
}
this.selections = [];
this.items.map((item: any) => {
if (item.isselected) {
......@@ -869,6 +892,7 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
}
});
this.$emit('selectionchange', this.selections);
})
}
/**
......
......@@ -724,10 +724,10 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -583,7 +583,7 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
* @param {boolean} [isReset=false] 是否重置items
* @memberof InterFuncKanbanBase
*/
public async load(opt: any = {}, isReset: boolean = false) {
public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKInterFuncKanBanView' + (this.$t('app.kanban.notConfig.fetchAction') as string) });
return;
......@@ -605,14 +605,23 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
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);
post.then((response: any) => {
if (!(await this.handleCtrlEvents('onbeforeload', { viewparams: arg }))) {
return;
}
try {
const response = await this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onloaderror', { data: response && response.data ? response.data : [] }))) {
return;
}
if (response.data && response.data.message) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data.message });
}
return;
}
if (!(await this.handleCtrlEvents('onloadsuccess', { data: response.data }))) {
return;
}
const data: any = response.data;
if(!this.isAddBehind){
this.items = [];
......@@ -635,12 +644,15 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
if(this.isSelectFirstDefault){
this.handleClick(this.items[0]);
}
}, (response: any) => {
} catch (response: any) {
if (!(await this.handleCtrlEvents('onloaderror', { data: response && response.data ? response.data : [] }))) {
return;
}
if (response && response.status === 401) {
return;
}
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: response.data && response.data.message ? response.data.message : "" });
});
}
}
/**
......@@ -690,22 +702,29 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
dataInfo = dataInfo + '...' + ' 共' + _datas.length + '条数据';
}
const removeData = () => {
const removeData = async () => {
let keys: any[] = [];
_datas.forEach((data: any) => {
keys.push(data.srfkey);
});
let _removeAction = keys.length > 1 ? 'removeBatch' : this.removeAction ;
const context:any = JSON.parse(JSON.stringify(this.context));
const post: Promise<any> = this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
return new Promise((resolve: any, reject: any) => {
post.then((response: any) => {
if (!(await this.handleCtrlEvents('onbeforeremove', { data: datas }))) {
return;
}
try {
const response: any = await this.service.delete(_removeAction,Object.assign(context,{ ibizbook: keys.join(';') }),Object.assign({ ibizbook: keys.join(';') },{viewparams:this.viewparams}), this.showBusyIndicator);
if (!response || response.status !== 200) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return;
}
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
} else {
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
}
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
_datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......@@ -717,19 +736,19 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
});
this.$emit('remove', null);
this.selections = [];
resolve(response);
}).catch((response: any) => {
return response;
} catch (response: any) {
if (!(await this.handleCtrlEvents('onremoveerror', { data: response && response.data ? response.data : datas }))) {
return;
}
if (response && response.status === 401) {
return;
}
if (!response || !response.status || !response.data) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: (this.$t('app.commonWords.sysException') as string) });
reject(response);
return;
}
reject(response);
});
});
return response;
}
}
dataInfo = dataInfo.replace(/[null]/g, '').replace(/[undefined]/g, '').replace(/[ ]/g, '');
......@@ -900,6 +919,10 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
*
*/
public selectchange() {
this.handleCtrlEvents('onselectionchange').then((res: boolean) => {
if (!res) {
return;
}
this.selections = [];
this.items.map((item: any) => {
if (item.isselected) {
......@@ -907,6 +930,7 @@ export default class InterFuncKanbanBase extends Vue implements ControlInterface
}
});
this.$emit('selectionchange', this.selections);
})
}
/**
......
......@@ -724,10 +724,10 @@ export default class ListpanelBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -800,10 +800,10 @@ export default class MajorStateListBase extends Vue implements ControlInterface
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -724,10 +724,10 @@ export default class TestListBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -823,10 +823,10 @@ export default class UsrBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -697,7 +697,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -791,7 +791,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -907,7 +907,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -915,7 +915,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){
......
......@@ -69,6 +69,11 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
......
......@@ -744,10 +744,10 @@ export default class OrderDetailsListBase extends Vue implements ControlInterfac
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -703,10 +703,10 @@ export default class OrderDetailsMoneyBase extends Vue implements ControlInterfa
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -703,10 +703,10 @@ export default class OrderDetailsTotalBase extends Vue implements ControlInterfa
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -704,10 +704,10 @@ export default class OrderDetailsTypeBase extends Vue implements ControlInterfac
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -576,8 +576,14 @@ export default class CalendarExpView_layoutcalendarexpbarBase extends Vue implem
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -576,8 +576,14 @@ export default class CalendarExpViewcalendarexpbarBase extends Vue implements Co
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -591,8 +591,14 @@ export default class DataViewExpView_layoutdataviewexpbarBase extends Vue implem
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -591,8 +591,14 @@ export default class DataViewExpViewdataviewexpbarBase extends Vue implements Co
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -589,8 +589,14 @@ export default class GridExpViewgridexpbarBase extends Vue implements ControlInt
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -600,7 +600,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public async load(opt: any = {}): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -730,7 +730,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.removeAction') as string) });
return;
}
if (datas.length === 0) {
......@@ -774,10 +774,10 @@ export default class ListExpBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......@@ -835,7 +835,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -843,7 +843,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){
......
......@@ -593,8 +593,14 @@ export default class ListExpView_layoutlistexpbarBase extends Vue implements Con
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -593,8 +593,14 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -493,8 +493,14 @@ export default class TestCustomLayoutPanelGridExpViewgridexpbarBase extends Vue
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -510,8 +510,14 @@ export default class TreeExpView_layouttreeexpbarBase extends Vue implements Con
viewparams: tempViewparam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -510,8 +510,14 @@ export default class TreeExpViewtreeexpbarBase extends Vue implements ControlInt
viewparams: tempViewparam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -730,10 +730,10 @@ export default class UsrBase extends Vue implements ControlInterface {
this.$Notice.error({ title: '', desc: (this.$t('app.commonWords.delDataFail') as string) + ',' + response.info });
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
if (!(await this.handleCtrlEvents('onremovesuccess', { data: response.data }))) {
return;
}
this.$Notice.success({ title: '', desc: (this.$t('app.commonWords.deleteSuccess') as string) });
//删除items中已删除的项
datas.forEach((data: any) => {
this.items.some((item:any,index:number)=>{
......
......@@ -576,8 +576,14 @@ export default class Usr2CalendarExpViewcalendarexpbarBase extends Vue implement
viewparams: tempViewParam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -426,8 +426,14 @@ export default class F1TreeExpViewtreeexpbarBase extends Vue implements ControlI
viewparams: tempViewparam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -421,8 +421,14 @@ export default class F2TreeExpViewtreeexpbarBase extends Vue implements ControlI
viewparams: tempViewparam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -419,8 +419,14 @@ export default class F3TreeExpViewtreeexpbarBase extends Vue implements ControlI
viewparams: tempViewparam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
......@@ -419,8 +419,14 @@ export default class F4TreeExpViewtreeexpbarBase extends Vue implements ControlI
viewparams: tempViewparam
}
}
this.handleCtrlEvents('onselectionchange', { data: args }).then((res: boolean) => {
if (!res) {
this.calcToolbarItemState(true);
return;
}
this.calcToolbarItemState(false);
this.$emit('selectionchange', navItem);
})
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册