Prechádzať zdrojové kódy

培训管理-签到信息

tianxinyu 4 mesiacov pred
rodič
commit
4cb2501e49

+ 15 - 5
src/views/component/trainingManage/registerInfoDialog.vue

@@ -74,12 +74,13 @@
                             width="150"
                         >
                             <template slot-scope="{row}">
+
                                 <ibps-user-selector
                                     type="user"
                                     :value="row.ren_yuan_id_"
                                     readonly-text="text"
                                     :disabled="true"
-                                    :multiple="true"
+                                    :multiple="false"
                                 />
                             </template>
                         </el-table-column>
@@ -258,7 +259,7 @@ export default {
                 case 't_fwxyhyqdb':
                     peopleList = data[0].bian_zhi_can_hui_?.split(',')
                     break
-                case 't_rypxcjb':
+                case 't_lhrypxjlb':
                     peopleList = data[0].pei_xun_ren_yuan_?.split(',')
                     break
                 default:
@@ -275,7 +276,7 @@ export default {
                 }
             })
             await this.getRegisterPeople()
-            if (this.params.tableName === 't_rypxcjb') {
+            if (this.params.tableName === 't_lhrypxjlb') {
                 if (data[0].shi_fou_guo_shen_ === '进行中') {
                     this.addPeople()
                 }
@@ -308,17 +309,26 @@ export default {
             data.forEach(person => {
                 const p = this.tableList.find(item => item.ren_yuan_id_ === person.ren_yuan_id_)
                 if (!p) {
-                    this.tableList.push({
+                    // this.tableList.push({
+                    // ren_yuan_id_: person.ren_yuan_id_,
+                    // status: '已签到',
+                    // qian_dao_shi_jian: person.qian_dao_shi_jian
+                    // })
+
+                    const obj = {
                         ren_yuan_id_: person.ren_yuan_id_,
                         status: '已签到',
                         qian_dao_shi_jian: person.qian_dao_shi_jian
-                    })
+                    }
+
+                    this.$set(this.tableList, this.tableList.length, obj)
                 } else {
                     p.status = '已签到'
                     p.qian_dao_shi_jian = person.qian_dao_shi_jian
                 }
             })
         },
+
         // 当前页码改变
         handleCurrentChange (val) {
             this.pagination.currentPage = val