Commit e34fd9a1 by crushh

update: 二次确认

parent 1d9f8bf5
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<el-table-column label="操作" width="180"> <el-table-column label="操作" width="180">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" @click="changeRoute(row)">编辑</el-button> <el-button type="text" @click="changeRoute(row)">编辑</el-button>
<el-button type="text">删除</el-button> <el-button type="text" @click="remove(row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -170,7 +170,21 @@ export default { ...@@ -170,7 +170,21 @@ export default {
changeRoute(row) { changeRoute(row) {
this.$router.push({ path: '/salutatorySet', query: { id: row.welcomeId, type: this.friendSettingType } }); this.$router.push({ path: '/salutatorySet', query: { id: row.welcomeId, type: this.friendSettingType } });
}, },
remove(row) {
this.$confirm(' 是否删除本条欢迎语?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
getRequest('/haoban-manage3-web/welcome/remove', { welcomeId: row.welcomeId }).then(res => {
let resData = res.data;
if (resData.code == 0 && resData.result) {
this.$message.success('删除成功');
this.getData();
}
});
});
},
/** /**
* 获取数据 * 获取数据
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment