You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
278 lines
6.1 KiB
278 lines
6.1 KiB
import Mock from 'mockjs'
|
|
//表格字段数据
|
|
const ListField = [{
|
|
"level": 1,
|
|
"children": [{"level": 2, "name": "666", "pid": 1, "id": 2, "label": "666"}, {
|
|
"level": 2,
|
|
"name": "777",
|
|
"pid": 1,
|
|
"id": 3,
|
|
"label": "777"
|
|
}],
|
|
"name": "办公室",
|
|
"pid": 0,
|
|
"id": 1,
|
|
"label": "办公室"
|
|
}, {"level": 2, "name": "666", "pid": 1, "id": 2, "label": "666"}, {
|
|
"level": 2,
|
|
"name": "777",
|
|
"pid": 1,
|
|
"id": 3,
|
|
"label": "777"
|
|
}]
|
|
//表格list数据
|
|
const roleList = [{
|
|
"name": "系统管理角色",
|
|
"pid": 1,
|
|
"list": [{
|
|
"remark": "超级管理员",
|
|
"pid": 1,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 1,
|
|
"label": null,
|
|
"title": "超级管理员",
|
|
"type": 5,
|
|
"status": 1
|
|
}, {
|
|
"remark": "系统设置管理员",
|
|
"pid": 1,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 2,
|
|
"label": null,
|
|
"title": "系统设置管理员",
|
|
"type": 2,
|
|
"status": 1
|
|
}, {
|
|
"remark": "部门与员工管理员",
|
|
"pid": 1,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 3,
|
|
"label": null,
|
|
"title": "部门与员工管理员",
|
|
"type": 5,
|
|
"status": 1
|
|
}, {
|
|
"remark": "审批流管理员",
|
|
"pid": 1,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 4,
|
|
"label": null,
|
|
"title": "审批流管理员",
|
|
"type": 5,
|
|
"status": 1
|
|
}, {
|
|
"remark": "工作台管理员",
|
|
"pid": 1,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 5,
|
|
"label": null,
|
|
"title": "工作台管理员",
|
|
"type": 5,
|
|
"status": 1
|
|
}, {
|
|
"remark": "客户管理员",
|
|
"pid": 1,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 6,
|
|
"label": null,
|
|
"title": "客户管理员",
|
|
"type": 5,
|
|
"status": 1
|
|
}]
|
|
}, {
|
|
"name": "客户管理角色",
|
|
"pid": 2,
|
|
"list": [{
|
|
"remark": "销售经理角色",
|
|
"pid": 2,
|
|
"rules": {
|
|
"bi": [],
|
|
"crm": [9, 17, 18, 19, 20, 21, 22, 23, 24, 25, 10, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 191, 11, 40, 41, 42, 43, 44, 45, 107, 108, 12, 46, 47, 48, 49, 50, 51, 52, 13, 53, 54, 55, 56, 57, 58, 59, 14, 60, 61, 62, 63, 64, 15, 65, 66, 67, 68, 69, 109, 110, 127, 128, 129, 130, 131]
|
|
},
|
|
"id": 8,
|
|
"label": null,
|
|
"title": "销售经理角色",
|
|
"type": 2,
|
|
"status": 1
|
|
}, {
|
|
"remark": "行政管理",
|
|
"pid": 2,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 9,
|
|
"label": null,
|
|
"title": "行政管理",
|
|
"type": 1,
|
|
"status": 1
|
|
}, {
|
|
"remark": "财务角色",
|
|
"pid": 2,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 10,
|
|
"label": null,
|
|
"title": "财务角色",
|
|
"type": 1,
|
|
"status": 1
|
|
}, {
|
|
"remark": "销售员角色",
|
|
"pid": 2,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 11,
|
|
"label": null,
|
|
"title": "销售员角色",
|
|
"type": 2,
|
|
"status": 1
|
|
}]
|
|
}, {
|
|
"name": "办公管理角色",
|
|
"pid": 7,
|
|
"list": [{
|
|
"remark": "公告管理员",
|
|
"pid": 7,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 7,
|
|
"label": null,
|
|
"title": "公告管理员",
|
|
"type": 5,
|
|
"status": 1
|
|
}]
|
|
}, {
|
|
"name": "项目管理角色",
|
|
"pid": 8,
|
|
"list": [{
|
|
"remark": "项目管理员",
|
|
"pid": 8,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 12,
|
|
"label": 1,
|
|
"title": "项目管理员",
|
|
"type": 5,
|
|
"status": 1
|
|
}, {
|
|
"remark": "测试项目",
|
|
"pid": 8,
|
|
"rules": {"bi": [], "crm": []},
|
|
"id": 47,
|
|
"label": null,
|
|
"title": "测试项目",
|
|
"type": 5,
|
|
"status": 1
|
|
}]
|
|
}, {"name": "自定义角色", "pid": 0, "list": []}]
|
|
|
|
const userList = {
|
|
"totalRow": 2,
|
|
"pageNumber": 1,
|
|
"firstPage": true,
|
|
"lastPage": true,
|
|
"totalPage": 1,
|
|
"pageSize": 15,
|
|
"list": [{
|
|
"deptName": "办公室",
|
|
"img": "",
|
|
"createTime": "2019-02-13 15:43:26",
|
|
"roleId": "1",
|
|
"sex": null,
|
|
"mobile": "12312341234",
|
|
"realname": "admin",
|
|
"parentName": null,
|
|
"post": "1",
|
|
"userId": 3,
|
|
"parentId": 0,
|
|
"roleName": "超级管理员",
|
|
"deptId": 1,
|
|
"email": null,
|
|
"username": "admin",
|
|
"status": 1
|
|
}, {
|
|
"deptName": "办公室",
|
|
"img": null,
|
|
"createTime": "2020-11-10 11:01:49",
|
|
"roleId": "3",
|
|
"sex": null,
|
|
"mobile": "13364306255",
|
|
"realname": "ttt",
|
|
"parentName": null,
|
|
"post": null,
|
|
"userId": 4,
|
|
"parentId": null,
|
|
"roleName": "部门与员工管理员",
|
|
"deptId": 1,
|
|
"email": null,
|
|
"username": "13364306255",
|
|
"status": 1
|
|
}]
|
|
}
|
|
|
|
const sceneList =
|
|
[{
|
|
"isSystem": 1,
|
|
"bydata": null,
|
|
"data": "{\"is_transform\":{\"condition\":\"is\",\"name\":\"is_transform\",\"value\":0}}",
|
|
"sceneId": 22,
|
|
"name": "全部线索",
|
|
"isDefault": 0
|
|
}, {
|
|
"isSystem": 1,
|
|
"bydata": null,
|
|
"data": "{\"owner_user_id\":{\"condition\":\"is\",\"name\":\"owner_user_id\",\"value\":3},\"is_transform\":{\"condition\":\"is\",\"name\":\"is_transform\",\"value\":0}}",
|
|
"sceneId": 23,
|
|
"name": "我负责的线索",
|
|
"isDefault": 0
|
|
}, {
|
|
"isSystem": 1,
|
|
"bydata": null,
|
|
"data": "{\"owner_user_id\":{\"condition\":\"in\",\"name\":\"owner_user_id\",\"value\":\"0\"},\"is_transform\":{\"condition\":\"is\",\"name\":\"is_transform\",\"value\":0}}",
|
|
"sceneId": 24,
|
|
"name": "下属负责的线索",
|
|
"isDefault": 0
|
|
}, {
|
|
"isSystem": 1,
|
|
"bydata": "transform",
|
|
"data": "{\"is_transform\":{\"condition\":\"is\",\"name\":\"is_transform\",\"value\":\"1\"}}",
|
|
"sceneId": 25,
|
|
"name": "已转化的线索",
|
|
"isDefault": 0
|
|
}]
|
|
export default [
|
|
{
|
|
url: '/vue-element-admin/system/dept/queryDeptTreed',
|
|
type: 'get',
|
|
response: _ => {
|
|
return {
|
|
"code": 20000,
|
|
"data": ListField
|
|
}
|
|
}
|
|
},
|
|
{
|
|
url: '/vue-element-admin/system/role/getAllRoleList',
|
|
type: 'get',
|
|
response: _ => {
|
|
return {
|
|
"code": 20000,
|
|
"data": roleList,
|
|
}
|
|
}
|
|
},
|
|
{
|
|
url: '/vue-element-admin/system/user/queryUserList',
|
|
type: 'get',
|
|
response: _ => {
|
|
return {
|
|
"code": 20000,
|
|
"data": userList,
|
|
}
|
|
}
|
|
},
|
|
{
|
|
url: '/vue-element-admin/system/scene/getAllsceneList',
|
|
type: 'get',
|
|
response: _ => {
|
|
return {
|
|
"code": 20000,
|
|
"data": sceneList
|
|
}
|
|
}
|
|
},
|
|
]
|
|
|
|
|