Explorar el Código

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

liuyaqi hace 2 años
padre
commit
e57b474927
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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'">