guhongwei 4 anni fa
parent
commit
0aabc5fe4e

+ 4 - 2
src/layout/user/mainForm.vue

@@ -181,11 +181,13 @@ export default {
     ...users(['fetch', 'create', 'update']),
     ...exportuser({ exportuserFetch: 'fetch', exportuserCreate: 'create', exportuserUpdate: 'update' }),
     async search() {
-      if (this.role == '4' || this.role == '5') {
+      if (this.role === '4' || this.role === '5') {
         const res = await this.fetch(this.id);
         if (this.$checkRes(res)) this.$set(this, `form`, res.data);
-      } else if (this.role == '6') {
+        console.log(res.data);
+      } else if (this.role === '6') {
         const res = await this.exportuserFetch(this.id);
+        console.log(res.data);
         if (this.$checkRes(res)) this.$set(this, `form`, res.data);
       }
     },

+ 0 - 1
src/views/duijiehui/duijieshenhe.vue

@@ -81,7 +81,6 @@ export default {
       console.log(data);
       data.status = '2';
       data.dock_id = this.data.id;
-      data.id = data._id;
       console.log(data);
       let res = await this.update(data);
       this.$checkRes(res, '审核拒绝', '添加失败');

+ 1 - 0
src/views/duijiehui/index.vue

@@ -70,6 +70,7 @@ export default {
       // },
     ],
     fields: [
+      { label: '房间号', prop: 'room_id' },
       { label: '对接会标题', prop: 'title' },
       { label: '开始时间', prop: 'start_time' },
       { label: '结束时间', prop: 'end_time' },

+ 1 - 1
src/views/user/index.vue

@@ -75,7 +75,7 @@ export default {
       }
     },
     toEdit({ data }) {
-      this.$router.push({ path: './detail', query: { id: data.id, role: data.role } });
+      this.$router.push({ path: './detail', query: { id: data.uid, role: data.role } });
     },
     async toDelete({ data }) {
       const res = await this.delete(data.id);