changjiaming 7 月之前
父節點
當前提交
acf63bf120
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/purchaseContractManagement/components/PurchaseContractReviewContent.vue

+ 1 - 1
src/views/purchaseContractManagement/components/PurchaseContractReviewContent.vue

@@ -283,7 +283,7 @@
           <el-table-column prop="name" label="操作" width="200" v-if="!isView">
             <template slot-scope="scope">
               <el-button type="text" @click="ruleForm.purchContractApproval.uploadPurchContracts.push({contractName: '', fileId: '', fileStorages: [], id: '', personList: []})">增加</el-button>
-              <el-button v-if="scope.$index !== 0" type="text" @click="deleteContract(scope.$index)">删除</el-button>
+              <el-button v-if="ruleForm.purchContractApproval && ruleForm.purchContractApproval.uploadPurchContracts && ruleForm.purchContractApproval.uploadPurchContracts.length > 1" type="text" @click="deleteContract(scope.$index)">删除</el-button>
             </template>
           </el-table-column>
         </el-table>