From 05b908bb4e6c612b5afe4a60c2f74cb7734cf3c5 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 23 四月 2024 13:09:41 +0800 Subject: [PATCH] 完成消息列表页 --- src/components/tool/value-table.vue | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue index 0015027..e3f3b28 100644 --- a/src/components/tool/value-table.vue +++ b/src/components/tool/value-table.vue @@ -1063,7 +1063,31 @@ }, handleCascader(e,label){ this.upData[label] = e; - } + }, + // 鎵归噺鍒犻櫎 + batchDelete(){ + if(this.multipleSelection&&this.multipleSelection.length>0){ + this.$confirm('鏄惁鍒犻櫎閫変腑鐨勬暟鎹�?', "璀﹀憡", { + confirmButtonText: "纭畾", + cancelButtonText: "鍙栨秷", + type: "warning" + }).then(() => { + this.$axios.post(this.delUrl, { + ids: JSON.stringify(this.multipleSelection.map(item => item.id)) + }).then(res => { + if (res.code === 201) { + return + } + this.$message.success('鍒犻櫎鎴愬姛') + this.selectList() + }).catch(e => { + this.$message.error('鍒犻櫎澶辫触') + }) + }).catch(() => {}) + }else{ + this.$message.error('璇烽�夋嫨瑕佸垹闄ょ殑鏁版嵁') + } + }, } } </script> -- Gitblit v1.9.3