scorpio 2 سال پیش
والد
کامیت
e0b11e0771
2فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 6 2
      src/views/task/component/task-table.vue
  2. 2 2
      src/views/task/component/task.vue

+ 6 - 2
src/views/task/component/task-table.vue

@@ -103,8 +103,12 @@
             v-else
             class="flex-child-average full-height full-width flex flex-center"
           >
-            <div v-if="row.users !== undefined" class="flex flex-center">
-              <div v-for="i in row.users" :key="i.id" class="flex flex-center">
+            <div v-if="row.executeUsers !== undefined" class="flex flex-center">
+              <div
+                v-for="i in row.executeUsers"
+                :key="i.id"
+                class="flex flex-center"
+              >
                 <el-tooltip :content="i.name">
                   <el-avatar
                     class="ml-10 mr-10"

+ 2 - 2
src/views/task/component/task.vue

@@ -325,8 +325,8 @@ export default {
   methods: {
     init() {
       this.form = this.task
-      if (this.task.users !== undefined) {
-        this.executeUser = [...this.task.users]
+      if (this.task.executeUsers !== undefined) {
+        this.executeUser = [...this.task.executeUsers]
       }
       this.canEdit = this.form.createUser === this.user.info.userId
       if (this.task.taskStatus > 2) {