Browse Source

fix:合同列表,客户id为空不跳转客户详情

liuyaqi 2 years ago
parent
commit
e57b474927
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/contract/index.vue

+ 5 - 1
src/views/contract/index.vue

@@ -75,7 +75,11 @@
         show-overflow-tooltip
         :sortable="item.sortable">
         <template #default="{ row }">
-          <el-button v-if="item.prop === 'custName'" class="link-button" type="text" @click="handleCustDetail(row)">
+          <el-button
+            v-if="item.prop === 'custName' && row.custId != 0"
+            class="link-button"
+            type="text"
+            @click="handleCustDetail(row)">
             {{ row.custName }}
           </el-button>
           <span v-else-if="item.prop === 'contractAmount'">