<el-link type="primary" @click="del(scope.row)" style="margin-left: 10px">图片删除</el-link>
async del(row) {
const confirmRequest = await this.$confirm('此操作将永久删除图片, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(async () => {
this.TopViewDelPara.viewId = row.viewId
this.TopViewDelPara.admin = sessionStorage.getItem('userid')
const { data: res } = await getTopViewDel(this.TopViewDelPara)
if (res.code == 0) {
this.$message.success(res.msg || '删除成功')
this.TopViewListAdmin()
this.TopViewListAdminData.imgUrl = ''
} else {
this.$message.error(res.msg || '失败')
}
// console.log(res)
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消删除',
})
})
},