wuhongyu 5 years ago
parent
commit
f23b93dcf2

+ 13 - 2
src/views/adminCenter/duijiehui/parts/applyList.vue

@@ -64,7 +64,13 @@ export default {
       item.id = item._id;
       console.log(item);
       let res = await this.applyUpdate(item);
-      this.$checkRes(res, '通过审核', '添加失败');
+
+      if (this.$checkRes(res)) {
+        this.$message({
+          message: '审核通过',
+          type: 'success',
+        });
+      }
     },
     async jujue(item) {
       console.log(item);
@@ -73,7 +79,12 @@ export default {
       item.id = item._id;
       console.log(item);
       let res = await this.applyUpdate(item);
-      this.$checkRes(res, '审核拒绝', '添加失败');
+      if (this.$checkRes(res)) {
+        this.$message({
+          message: '审核拒绝',
+          type: 'success',
+        });
+      }
     },
   },
   computed: {

+ 2 - 2
src/views/adminCenter/transaction/parts/list.vue

@@ -56,8 +56,8 @@ export default {
     ...transaction({ transactionList: 'query', transactiondtetle: 'delete', shenheupdate: 'update' }),
     async searchInfo() {
       if (this.user.role == '4') {
-        let userid = this.user.uid;
-        let res = await this.transactionList({ userid });
+        let create_userid = this.user.uid;
+        let res = await this.transactionList({ create_userid });
         if (this.$checkRes(res)) {
           this.$set(this, `list`, res.data);
         }