|
@@ -253,17 +253,17 @@ export default {
|
|
|
if (this.user.code == 'JLCJGLY') {
|
|
|
const res = await this.userquery({ skip, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- let one = res.data.filter(i => i.status == '0');
|
|
|
+ let one = res.data.filter(i => i.status == '0' && i.isdel == '0');
|
|
|
if (one) {
|
|
|
this.$set(this, `oneList`, one);
|
|
|
this.$set(this, `onetotal`, one.length);
|
|
|
}
|
|
|
- let two = res.data.filter(i => i.status == '1');
|
|
|
+ let two = res.data.filter(i => i.status == '1' && i.isdel == '0');
|
|
|
if (two) {
|
|
|
this.$set(this, `twototal`, two.length);
|
|
|
this.$set(this, `twoList`, two);
|
|
|
}
|
|
|
- let three = res.data.filter(i => i.status == '2');
|
|
|
+ let three = res.data.filter(i => i.status == '2' && i.isdel == '0');
|
|
|
if (three) {
|
|
|
this.$set(this, `threeList`, three);
|
|
|
this.$set(this, `threetotal`, three.length);
|
|
@@ -272,18 +272,17 @@ export default {
|
|
|
} else {
|
|
|
const res = await this.userquery({ skip, pid, code: this.user.code, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- let one = res.data.filter(i => i.status == '0');
|
|
|
+ let one = res.data.filter(i => i.status == '0' && i.isdel == '0');
|
|
|
if (one) {
|
|
|
this.$set(this, `oneList`, one);
|
|
|
this.$set(this, `onetotal`, one.length);
|
|
|
}
|
|
|
- let two = res.data.filter(i => i.status == '1');
|
|
|
+ let two = res.data.filter(i => i.status == '1' && i.isdel == '0');
|
|
|
if (two) {
|
|
|
- console.log(two);
|
|
|
this.$set(this, `twototal`, two.length);
|
|
|
this.$set(this, `twoList`, two);
|
|
|
}
|
|
|
- let three = res.data.filter(i => i.status == '2');
|
|
|
+ let three = res.data.filter(i => i.status == '2' && i.isdel == '0');
|
|
|
if (three) {
|
|
|
this.$set(this, `threeList`, three);
|
|
|
this.$set(this, `threetotal`, three.length);
|
|
@@ -340,7 +339,6 @@ export default {
|
|
|
type: 'warning',
|
|
|
})
|
|
|
.then(async () => {
|
|
|
- console.log(data);
|
|
|
if (data.role == '4' || data.role == '5') {
|
|
|
let res = await this.delete(data.uid);
|
|
|
if (this.$checkRes(res)) {
|