Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-vue
Commits
87218b0a
Commit
87218b0a
authored
Jan 05, 2024
by
honghong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商家状态为审核中添加删除功能
parent
d98064b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
+29
-3
src/api/user/merchant/index.js
+8
-0
src/views/user/merchant/index.vue
+20
-2
vue.config.js
+1
-1
No files found.
src/api/user/merchant/index.js
View file @
87218b0a
...
...
@@ -133,3 +133,11 @@ export function deptTreeSelect() {
method
:
'get'
})
}
// 删除用户
export
function
delMerchant
(
userId
)
{
return
request
({
url
:
'/merchant/company/'
+
userId
,
method
:
'delete'
})
}
src/views/user/merchant/index.vue
View file @
87218b0a
...
...
@@ -295,6 +295,23 @@
prop=
"createTime"
width=
"160"
/>
<el-table-column
label=
"操作"
align=
"center"
width=
"160"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.status == 0"
size=
"large"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:user:remove']"
>
删除
</el-button
>
</
template
>
</el-table-column>
<!-- <el-table-column
label="更新时间"
align="center"
...
...
@@ -634,6 +651,7 @@ import {
resetUserPwd
,
changeUserStatus
,
deptTreeSelect
,
delMerchant
}
from
"@/api/user/merchant/index.js"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
Treeselect
from
"@riophae/vue-treeselect"
;
...
...
@@ -949,11 +967,11 @@ export default {
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
userIds
=
row
.
userI
d
||
this
.
ids
;
const
userIds
=
row
.
i
d
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除用户编号为"'
+
userIds
+
'"的数据项?'
)
.
then
(
function
()
{
return
del
User
(
userIds
);
return
del
Merchant
(
userIds
);
})
.
then
(()
=>
{
this
.
getList
();
...
...
vue.config.js
View file @
87218b0a
...
...
@@ -37,7 +37,7 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://localhost:8089`,
target
:
`https://peizheng.shanpeikj.com/api`
,
// target: `http://192.168.0.1
81
:8089`,
// target: `http://192.168.0.1
29
:8089`,
// target: `http://192.168.0.137:8089`,
// target: `http://192.168.0.199:8089`,
// target: `http://192.168.0.125:8089`,
...
...
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