From f450367d25cc92950b3ebed3e19d97627e0b3fb7 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 11 十月 2023 12:07:25 +0800 Subject: [PATCH] 跟进记录的编码 接口联调和修改 --- src/views/client/salesLead/index.vue | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/views/client/salesLead/index.vue b/src/views/client/salesLead/index.vue index 014a51c..d629572 100644 --- a/src/views/client/salesLead/index.vue +++ b/src/views/client/salesLead/index.vue @@ -12,7 +12,7 @@ > <template slot="leftButton"> <el-button size="small" type="primary" @click="addBtnClick">鏂板缓</el-button> - <el-button size="small" @click="delClick">鍒犻櫎</el-button> + <!-- <el-button size="small" @click="delClick">鍒犻櫎</el-button> --> </template> </CommonSearch> @@ -31,12 +31,12 @@ @selTableCol="selTableCol" > <template slot="tableButton"> - <el-table-column label="鎿嶄綔" width="120"> + <el-table-column label="鎿嶄綔" width="160"> <template slot-scope="scope"> <el-button @click="handleClick(scope.row)" type="text" size="small">缂栬緫</el-button> <el-button @click="followupClick(scope.row)" type="text" size="small">璺熻繘</el-button> <el-button @click="advanceClick(scope.row)" type="text" size="small">鎺ㄨ繘</el-button> - <!-- <el-button @click="delClick(scope.row.id)" type="text" size="small">鍒犻櫎</el-button> --> + <el-button @click="delClick(scope.row.id)" type="text" size="small">鍒犻櫎</el-button> </template> </el-table-column> </template> @@ -156,6 +156,7 @@ methods: { setTable() { this.tableList = { + selectIndex: true, tableInfomation: [], allcol: [], showcol: this.showCol, @@ -243,8 +244,13 @@ } }, // 鍒犻櫎 - delClick() { - if (this.selValueList && this.selValueList.length > 0) { + delClick(id) { + if(!id){ + if (this.selValueList && this.selValueList.length == 0) { + this.$message.warning("璇疯嚦灏戦�夋嫨涓�鏉¤褰�") + return true; + } + } this.$confirm("鏄惁纭鍒犻櫎?", "璀﹀憡", { confirmButtonText: "纭畾", cancelButtonText: "鍙栨秷", @@ -252,7 +258,11 @@ }) .then(() => { console.log("dddd") - getDeleteSalesLeads({ ids: this.selValueList }).then((response) => { + let params={ids: this.selValueList } + if(id){ + params={ids: [id]} + } + getDeleteSalesLeads(params).then((response) => { if (response.code === 200) { this.$message.success("鍒犻櫎鎴愬姛") this.getData() @@ -262,9 +272,6 @@ }) }) .catch(() => {}) - } else { - this.$message.warning("璇疯嚦灏戦�夋嫨涓�鏉¤褰�") - } }, getSelectArray(val) { this.selValueList = [] -- Gitblit v1.8.0