Commit d95d3878 authored by houjn@hikoon.cn's avatar houjn@hikoon.cn

会员删除文案修改

parent 35557a25
...@@ -341,15 +341,14 @@ export default { ...@@ -341,15 +341,14 @@ export default {
}, },
methods: { methods: {
deleteFn(row){ deleteFn(row){
console.log(row) const nickname = row.nickname;
this.$modal.confirm(`${this.$t('是否要删除昵称为')}${row.nickname}的会员`).then(function (){ this.$modal.confirm(`${this.$t('是否确认删除昵称为{nickname}的会员?', {nickname})}`).then(function (){
return deleteUser(row.id) return deleteUser(row.id)
}).then( res => { }).then( res => {
if(res.code === 0) this.getList(); this.$message.success(this.$t('删除成功')) if(res.code === 0) this.getList(); this.$message.success(this.$t('删除成功'))
}).catch(() =>{ }).catch(() =>{
this.$message.success(this.$t('删除失败')) // this.$message.success(this.$t('删除失败'))
} }
) )
}, },
//导出 //导出
......
...@@ -180,12 +180,14 @@ export default { ...@@ -180,12 +180,14 @@ export default {
}, },
methods: { methods: {
deleteFn(row){ deleteFn(row){
this.$modal.confirm(`${this.$t('是否要删除昵称为')}${row.nickname}${this.$t('的会员')}`).then(function (){ // this.$modal.confirm(`${this.$t('是否要删除昵称为')}${row.nickname}${this.$t('的会员')}`).then(function (){
const nickname = row.nickname;
this.$modal.confirm(`${this.$t('是否确认删除昵称为{nickname}的会员?', {nickname})}`).then(function (){
return deleteUser(row.id) return deleteUser(row.id)
}).then( res => { }).then( res => {
if(res.code === 0) this.getList(); this.$message.success(this.$t('删除成功')) if(res.code === 0) this.getList(); this.$message.success(this.$t('删除成功'))
}).catch(() =>{ }).catch(() =>{
this.$message.success(this.$t('删除失败')) // this.$message.f(this.$t('取消删除'))
} }
) )
......
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