feat: 门店评价批量删除
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
</ai-search-bar>
|
||||
<ai-search-bar class="search-bar">
|
||||
<template #left>
|
||||
<el-button icon="iconfont iconDelete" @click="handleDelete" :disabled="!ids.length">删除</el-button>
|
||||
<el-button icon="iconfont iconDelete" @click="handleDeleteBach" :disabled="!ids.length">删除</el-button>
|
||||
</template>
|
||||
<template #right>
|
||||
<ai-download :instance="instance" url="/app/appintegraluser/girdIntegralExport" :params="search" fileName="门店评价"
|
||||
@@ -177,7 +177,25 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
handleDelete(ids=this.ids.join(',')){
|
||||
handleDeleteBach(){
|
||||
this.$confirm('确定删除该数据?').then(async () => {
|
||||
try {
|
||||
const {code} = await this.instance.post('/app/appshopassess/delete',null,{
|
||||
params:{
|
||||
ids:this.ids.join(",")
|
||||
}
|
||||
})
|
||||
if(code===0){
|
||||
this.$message.success('删除成功')
|
||||
this.getList()
|
||||
}
|
||||
}catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
handleDelete(ids){
|
||||
this.$confirm('确定删除该数据?').then(async () => {
|
||||
try {
|
||||
const {code} = await this.instance.post('/app/appshopassess/delete',null,{
|
||||
|
||||
Reference in New Issue
Block a user