|
@@ -54,7 +54,7 @@
|
|
|
return {
|
|
|
defaultPageSizes: defaultPageSizes,
|
|
|
searchOpt: {},
|
|
|
-
|
|
|
+ userId: null,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -78,8 +78,8 @@
|
|
|
},
|
|
|
async handleAudit(data) {
|
|
|
const opt = {
|
|
|
- deId: data.deId,
|
|
|
- // userId: this.userId,
|
|
|
+ wkId: data.wkId,
|
|
|
+ userId: this.userId,
|
|
|
};
|
|
|
const loading = this.$loading({ background: 'rgba(0, 0, 0, 0.7)' });
|
|
|
|
|
@@ -97,8 +97,8 @@
|
|
|
async handleUnAudit(data) {
|
|
|
|
|
|
const opt = {
|
|
|
- deId: data.deId,
|
|
|
- // userId: this.userId,
|
|
|
+ wkId: data.wkId,
|
|
|
+ userId: this.userId,
|
|
|
};
|
|
|
const loading = this.$loading({ background: 'rgba(0, 0, 0, 0.7)' });
|
|
|
|
|
@@ -128,8 +128,7 @@
|
|
|
this.getWeikezhizuoListData();
|
|
|
},
|
|
|
async getWeikezhizuoListData() {
|
|
|
- // const opt = Object.assign({}, this.searchOpt, paginationServiceData, { userId: this.userId });
|
|
|
- const opt = Object.assign({}, this.searchOpt, paginationServiceData);
|
|
|
+ const opt = Object.assign({}, this.searchOpt, paginationServiceData, { userId: this.userId });
|
|
|
delete opt.total;
|
|
|
|
|
|
const loading = this.$loading({ background: 'rgba(0, 0, 0, 0.7)' });
|
|
@@ -157,8 +156,8 @@
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
- /* const userAuth = commonTools.getUserAuth();
|
|
|
- this.userId = userAuth && userAuth.userId;*/
|
|
|
+ const userAuth = commonTools.getUserAuth();
|
|
|
+ this.userId = userAuth && userAuth.userId;
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
this.clearData();
|