Browse Source

合同段回显修改

duy 1 month ago
parent
commit
59aabe8c7f
1 changed files with 15 additions and 16 deletions
  1. 15 16
      src/views/manager/projectinfo/list.vue

+ 15 - 16
src/views/manager/projectinfo/list.vue

@@ -232,32 +232,31 @@
                   </template>
                 
               </el-table-column>
-               <el-table-column
-                prop=""
-                label="合同段权限">
-                <template slot-scope="scope">
-                  <template v-if="scope.row.relationContractInfo > 0">
+                 <el-table-column
+                    prop=""
+                    label="合同段权限"
+                  >
+                    <template slot-scope="scope">
+                     
+                      <template v-if="scope.row.relationContractInfo && scope.row.relationContractInfo.length > 0">
+                 
                         <el-tooltip 
-                          v-for="(item,index) in scope.row.relationContractInfo" 
-                          :key="key"
-                          :content="item.contractName"
+                          v-for="(item, index) in scope.row.relationContractInfo.filter(Boolean)" 
+                          :key="index"  
+                          :content="item.contractName || ''" 
                           placement="top"
-                        
                         >
                           <el-tag  
                             size="small" 
                             :type="item.contractType===1?'warning':item.contractType===2?'primary':'success'"   
                             class="custom-ellipse-tag2 ellipsis-tag1"
-                            
                           >
-                            {{item.contractName}}
+                            {{ item.contractName || '' }}  
                           </el-tag>
                         </el-tooltip>
-                  </template>
-                
-                </template>
-
-              </el-table-column>
+                      </template>
+                    </template>
+                  </el-table-column>
                <el-table-column
                width="180px"
                 prop="address"