Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
d95d3878
Commit
d95d3878
authored
Dec 28, 2022
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员删除文案修改
parent
35557a25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
index.vue
src/views/member/user/index.vue
+3
-4
underReview.vue
src/views/member/user/underReview.vue
+4
-2
No files found.
src/views/member/user/index.vue
View file @
d95d3878
...
...
@@ -341,15 +341,14 @@ export default {
}
,
methods
:
{
deleteFn
(
row
){
cons
ole
.
log
(
row
)
this
.
$modal
.
confirm
(
`${this.$t('是否
要删除昵称为')
}
${row.nickname
}
的会员
`
).
then
(
function
(){
cons
t
nickname
=
row
.
nickname
;
this
.
$modal
.
confirm
(
`${this.$t('是否
确认删除昵称为{nickname
}
的会员?', {nickname
}
)
}
`
).
then
(
function
(){
return
deleteUser
(
row
.
id
)
}
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
this
.
getList
();
this
.
$message
.
success
(
this
.
$t
(
'
删除成功
'
))
}
).
catch
(()
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
删除失败
'
))
//
this.$message.success(this.$t('删除失败'))
}
)
}
,
//导出
...
...
src/views/member/user/underReview.vue
View file @
d95d3878
...
...
@@ -180,12 +180,14 @@ export default {
}
,
methods
:
{
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)
}
).then( res => {
if(res.code === 0) this.getList(); this.$message.success(this.$t('删除成功'))
}
).catch(() =>{
this
.
$message
.
success
(
this
.
$t
(
'
删除失败
'
))
// this.$message.f(this.$t('取消删除
'))
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment