Commit 87218b0a by honghong

商家状态为审核中添加删除功能

parent d98064b9
......@@ -133,3 +133,11 @@ export function deptTreeSelect() {
method: 'get'
})
}
// 删除用户
export function delMerchant(userId) {
return request({
url: '/merchant/company/' + userId,
method: 'delete'
})
}
......@@ -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.userId || this.ids;
const userIds = row.id || this.ids;
this.$modal
.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?')
.then(function () {
return delUser(userIds);
return delMerchant(userIds);
})
.then(() => {
this.getList();
......
......@@ -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.181:8089`,
// target: `http://192.168.0.129:8089`,
// target: `http://192.168.0.137:8089`,
// target: `http://192.168.0.199:8089`,
// target: `http://192.168.0.125:8089`,
......
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