Просмотр исходного кода

解决设备档案卡列表显示多部门的问题

luoaoxuan 1 год назад
Родитель
Сommit
7f536dc843
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/component/device/index.vue

+ 2 - 2
src/views/component/device/index.vue

@@ -28,7 +28,7 @@
                             v-model="row.bianZhiBuMen"
                             type="position"
                             readonly-text="text"
-                            :multiple="true"
+                            :multiple="false"
                             :disabled="true"
                         />
 
@@ -1448,7 +1448,7 @@ export default {
             const supplierSql = `select id_,gong_ying_shang_m from t_gysxxb where di_dian_ = ${currentPosition}` // 供应商信息
             const deviceGroupSql = `select id_,suo_shu_bu_men_,wei_hu_gang_wei_ from t_sbwhgwpzb where di_dian_ =  ${currentPosition}` // 设备分组信息
             const currentTime = dayjs().format('YYYY-MM-DD HH:mm')
-            const currentApartment = this.$store.getters.userInfo.employee.positions
+            const currentApartment = this.$store.getters.userInfo.employee.positions.split(',').at(-1) || ''
             const currentUser = this.userId
 
             const partOneInvalidResult = this.deviceInvalidPartOne(importData)