소스 검색

云塑管理系统列表展示问题修改

ZhouRuiTing 5 년 전
부모
커밋
f5639e4a11
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      ys_int/src/views/base/comp.vue

+ 2 - 2
ys_int/src/views/base/comp.vue

@@ -27,8 +27,8 @@
             </el-table-column>
             <el-table-column prop="relateCompanyList" :label="$t('basic.assProducer')" sortable>
                 <template slot-scope="scope">
-                    <span class="info" v-for="(item, index) in scope.row.relateCompanyList">
-                        {{item.companyName}}
+                    <span class="info" v-for="(item1, index) in scope.row.relateCompanyList" :key="index">
+                        <span v-if="item1 != null">{{item1.companyName}}</span>
                         <span v-if="index != scope.row.relateCompanyList.length-1">、</span>
                     </span>
                 </template>