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

ibizdev提交

上级 d05574b9
......@@ -615,6 +615,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
}
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -635,6 +636,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
});
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -647,13 +649,17 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
let newSelections:any[] = [];
model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
this.viewSelections.push(_item);
newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
}
this.viewSelections = newSelections;
});
});
}
......@@ -666,6 +672,7 @@ export default class SYS_PERMISSIONMPickupViewBase extends Vue {
public onCLickAllLeft():void {
this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......
......@@ -615,6 +615,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
}
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -635,6 +636,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
});
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -647,13 +649,17 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
let newSelections:any[] = [];
model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
this.viewSelections.push(_item);
newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
}
this.viewSelections = newSelections;
});
});
}
......@@ -666,6 +672,7 @@ export default class SYS_ROLE_PERMISSIONMPickupViewBase extends Vue {
public onCLickAllLeft():void {
this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......
......@@ -615,6 +615,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
}
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -635,6 +636,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
});
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -647,13 +649,17 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
let newSelections:any[] = [];
model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
this.viewSelections.push(_item);
newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
}
this.viewSelections = newSelections;
});
});
}
......@@ -666,6 +672,7 @@ export default class SYS_ROLEMPickupViewBase extends Vue {
public onCLickAllLeft():void {
this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......
......@@ -615,6 +615,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
}
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -635,6 +636,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
});
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -647,13 +649,17 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
let newSelections:any[] = [];
model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
this.viewSelections.push(_item);
newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
}
this.viewSelections = newSelections;
});
});
}
......@@ -666,6 +672,7 @@ export default class SYS_USER_ROLEMPickupViewBase extends Vue {
public onCLickAllLeft():void {
this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......
......@@ -615,6 +615,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
}
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -635,6 +636,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
});
const removeSelect: boolean = this.viewSelections.some((selection: any) => selection._select);
this.containerModel.view_leftbtn.disabled = !removeSelect;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......@@ -647,13 +649,17 @@ export default class SYS_USERMPickupViewBase extends Vue {
if (!Object.is(model.type, 'PICKUPVIEWPANEL')) {
return;
}
let newSelections:any[] = [];
model.selections.forEach((item: any) => {
const index: number = this.viewSelections.findIndex((selection: any) => Object.is(item.srfkey, selection.srfkey));
if (index === -1) {
let _item: any = { ...JSON.parse(JSON.stringify(item)) };
Object.assign(_item, { _select: false })
this.viewSelections.push(_item);
newSelections.push(_item);
}else{
newSelections.push(this.viewSelections[index]);
}
this.viewSelections = newSelections;
});
});
}
......@@ -666,6 +672,7 @@ export default class SYS_USERMPickupViewBase extends Vue {
public onCLickAllLeft():void {
this.viewSelections = [];
this.containerModel.view_leftbtn.disabled = true;
this.selectedData = JSON.stringify(this.viewSelections);
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册