dev
parent
af2abce52a
commit
17fcc41a74
@ -1,3 +1,3 @@
|
||||
NODE_ENV = 'development'
|
||||
VUE_APP_URL = 'http://121.41.26.225:8002/admin'
|
||||
VUE_APP_URL = 'https://saas.kaidalai.cn/api/merchant'
|
||||
VUE_APP_STATIC = 'https://saas.kaidalai.cn/resource/admin'
|
@ -1,3 +1,3 @@
|
||||
NODE_ENV = 'production'
|
||||
VUE_APP_URL = 'https://saas.kaidalai.cn/api/admin'
|
||||
VUE_APP_URL = 'https://saas.kaidalai.cn/api/merchant'
|
||||
VUE_APP_STATIC = 'https://saas.kaidalai.cn/resource'
|
@ -1,180 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 工单
|
||||
// list
|
||||
export function name(params) {
|
||||
return httpService({
|
||||
url: ` `,
|
||||
method: 'get/post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 所有的工单类型
|
||||
export function getAllWorkOrderType(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrderType/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加工单类型
|
||||
export function AddWorkOrderType(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrderType/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 修改工单类型
|
||||
export function EditWorkOrderType(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrderType/update`,
|
||||
method: 'POST',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 删除工单类型
|
||||
export function DelWorkOrderType(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrderType/delete`,
|
||||
method: 'POST',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 所有的工单信息
|
||||
export function getAllWorkOrder(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询后台工单详情
|
||||
export function getDetail(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/detail`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加工单信息
|
||||
export function addWorkOrder(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 取消后台工单信息
|
||||
export function cancelWorkOrder(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/cancel`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 加入工单池
|
||||
export function joinTicketPool(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/joinTicketPool`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 转移至待分配
|
||||
export function moveToAssignment(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/moveToAssignment`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 指派人员
|
||||
export function designate(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/designate`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 转派人员
|
||||
export function updateDesignate(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/updateDesignate`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 工单处理
|
||||
export function process(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/process`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 完成工单
|
||||
export function finish(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/finish`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 确认工单
|
||||
export function confirm(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/confirm`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 工单结算账单
|
||||
export function workOrderCostList(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/workOrderCostList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 结算工单
|
||||
export function settlement(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/settlement`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 汇报
|
||||
export function report(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/report`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询工单记录
|
||||
export function orderSchedule(params) {
|
||||
return httpService({
|
||||
url: `/user/workOrder/orderSchedule`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 组织
|
||||
// 所有的组织架构
|
||||
export function departmentList(params) {
|
||||
return httpService({
|
||||
url: `/user/department/list`,
|
||||
method: 'get',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 添加组织
|
||||
export function departmentInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/department/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 组织删除
|
||||
export function departmentDel(params) {
|
||||
return httpService({
|
||||
url: `/user/department/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 组织修改
|
||||
export function departmentUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/department/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 组织员工
|
||||
export function findToUser(params) {
|
||||
return httpService({
|
||||
url: `/user/department/findToUser`,
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 新增员工
|
||||
export function insertManageUser(params) {
|
||||
return httpService({
|
||||
url: `/user/manageUser/insertManageUser`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 上传身份证照片
|
||||
export function uploadManageUserIdCard(params) {
|
||||
return httpService({
|
||||
url: `/user/upload/uploadManageUserIdCard`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 员工info
|
||||
export function manageUserInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/manageUser/findById`,
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 员工edit
|
||||
export function EditManageUser(params) {
|
||||
return httpService({
|
||||
url: `/user/manageUser/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 员工开启关闭
|
||||
export function userEnable(params) {
|
||||
return httpService({
|
||||
url: `/user/manageUser/isEnable`,
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 重置密码
|
||||
export function rePassword(params) {
|
||||
return httpService({
|
||||
url: `/user/manageUser/rePassword`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,182 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 房产 楼栋
|
||||
// 楼栋列表
|
||||
export function buildingList(params) {
|
||||
return httpService({
|
||||
url: `/user/building/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 楼栋新增
|
||||
export function buildInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/building/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 楼栋详情
|
||||
export function buildInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/building/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 楼栋修改
|
||||
export function buildUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/building/updateBuilding`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 楼栋删除
|
||||
export function buildingDel(params) {
|
||||
return httpService({
|
||||
url: `/user/building/deleteBuilding`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 全部楼栋
|
||||
export function allBuilding(params) {
|
||||
return httpService({
|
||||
url: `/user/building/findAllBuilding`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 楼栋查单元
|
||||
export function findByBuildingId(params) {
|
||||
return httpService({
|
||||
url: `/user/unit/findByBuildingId`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 单元
|
||||
* list update del
|
||||
*/
|
||||
export function unitAdd(params) {
|
||||
return httpService({
|
||||
url: `/user/unit/insertUnit`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function unitUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/unit/updateUnit`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function unitDel(params) {
|
||||
return httpService({
|
||||
url: `/user/unit/deleteUnit`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 房屋
|
||||
// 房屋列表
|
||||
export function houseList(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 房屋新增
|
||||
export function houseInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 房屋修改
|
||||
export function houseInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 房屋修改
|
||||
export function houseUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 房屋删除
|
||||
export function houseDel(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 房屋租赁切换
|
||||
export function isEnableLease(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/isEnableLease`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 房屋设置 房屋类型
|
||||
export function estateType(params) {
|
||||
return httpService({
|
||||
url: `/user/estateType/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 类型新增
|
||||
export function estateTypeInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/estateType/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 类型修改
|
||||
export function estateTypeUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/estateType/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 类型删除
|
||||
export function estateTypeDel(params) {
|
||||
return httpService({
|
||||
url: `/user/estateType/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 房屋列表级联
|
||||
export function estate(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/findEstateCascade`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 房屋列表级联
|
||||
export function findEstateCascade(params) {
|
||||
return httpService({
|
||||
url: `/user/estate/findEstateCascade`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 查询所有的违禁关键字
|
||||
export function getForbiddenList(params) {
|
||||
return httpService({
|
||||
url: `/user/prohibitedKeywords/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加违禁字
|
||||
export function addForbidden(params) {
|
||||
return httpService({
|
||||
url: `/user/prohibitedKeywords/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除违禁字
|
||||
export function deleteForbidden(params) {
|
||||
return httpService({
|
||||
url: `/user/prohibitedKeywords/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据id查询违禁字
|
||||
export function findForbidden(params) {
|
||||
return httpService({
|
||||
url: `/user/prohibitedKeywords/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改违禁字
|
||||
export function updateForbidden(params) {
|
||||
return httpService({
|
||||
url: `/user/prohibitedKeywords/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
/**
|
||||
*
|
||||
* 住户
|
||||
* @param {*} params
|
||||
* @returns
|
||||
*
|
||||
* 住户列表
|
||||
*/
|
||||
export function residentList(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 新增住户
|
||||
export function residentInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 修改住户
|
||||
export function residentUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function residentInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 迁出
|
||||
export function moveOut(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/moveOut`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 迁入
|
||||
export function moveIn(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/moveIn`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 根据房屋查租户
|
||||
export function findTenantByEstateId(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/findTenantByEstateId`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 根据房屋查业主
|
||||
export function findOwnerByEstateId(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/findOwnerByEstateId`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 住户详情
|
||||
export function residentDetail(params) {
|
||||
return httpService({
|
||||
url: `/user/resident/findDetail`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 住户审核
|
||||
// 审核列表
|
||||
export function reviewList(params) {
|
||||
return httpService({
|
||||
url: `/user/review/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 审核通过 不通过
|
||||
export function review(params) {
|
||||
return httpService({
|
||||
url: `/user/review/review`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,88 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 权限 角色
|
||||
// 角色列表
|
||||
export function getrolelist(params) {
|
||||
return httpService({
|
||||
url: `/user/role/list`,
|
||||
method: 'get',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 新增角色
|
||||
export function roleInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/role/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 编辑角色
|
||||
export function roleUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/role/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 分配角色
|
||||
export function assignRoles(params) {
|
||||
return httpService({
|
||||
url: `/user/role/assignRoles`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 删除角色
|
||||
export function roleDel(params) {
|
||||
return httpService({
|
||||
url: `user/role/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 角色-----员工列表
|
||||
export function listByRole(params) {
|
||||
return httpService({
|
||||
url: `/user/role/listByRole`,
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 查询当前角色下的所有的菜单权限信息 roleId
|
||||
export function FindAllMenus(params) {
|
||||
return httpService({
|
||||
url: `/user/jurisdiction/findAllMenus`,
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function changeMenuShow(params) {
|
||||
return httpService({
|
||||
url: `/user/jurisdiction/isShowMenus`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function getActions(params) {
|
||||
return httpService({
|
||||
url: `/user/jurisdiction/findOperationByMId`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function changeActions(params) {
|
||||
return httpService({
|
||||
url: `/user/jurisdiction/isCheckOperation`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 当前用户菜单
|
||||
export function getMenu(params) {
|
||||
return httpService({
|
||||
url: `/user/manageUser/findAllMenusByUser`,
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 活动列表
|
||||
export function activityList(params) {
|
||||
return httpService({
|
||||
url: `/user/activity/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function organizerSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/activityOrganizer/allList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 报名人
|
||||
export function registrationList(params) {
|
||||
return httpService({
|
||||
url: `/user/activity/registrationList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function activityInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/activity/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function activityInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/activity/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function activityUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/activity/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function activityDel(params) {
|
||||
return httpService({
|
||||
url: `/user/activity/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 主办方列表
|
||||
export function organizerList(params) {
|
||||
return httpService({
|
||||
url: `/user/activityOrganizer/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function organizerInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/activityOrganizer/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function organizerInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/activityOrganizer/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function organizerUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/activityOrganizer/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function organizerDel(params) {
|
||||
return httpService({
|
||||
url: `/user/activityOrganizer/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 公告列表
|
||||
export function announcementList(params) {
|
||||
return httpService({
|
||||
url: `/user/announcement/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function announcementInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/announcement/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function announcementInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/announcement/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function announcementDel(params) {
|
||||
return httpService({
|
||||
url: `/user/announcement/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function announcementUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/announcement/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 查询所有的社区介绍信息
|
||||
export function getCommunityList(params) {
|
||||
return httpService({
|
||||
url: `/user/communityIntroduction/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加社区介绍信息
|
||||
export function AddCommunityIntro(params) {
|
||||
return httpService({
|
||||
url: `/user/communityIntroduction/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据社区介绍主键Id查询社区介绍信息
|
||||
export function findCommunityIntro(params) {
|
||||
return httpService({
|
||||
url: `/user/communityIntroduction/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改社区介绍信息
|
||||
export function updateCommunityIntro(params) {
|
||||
return httpService({
|
||||
url: `/user/communityIntroduction/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除社区介绍信息
|
||||
export function delCommunityIntro(params) {
|
||||
return httpService({
|
||||
url: `/user/communityIntroduction/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 启用社区介绍信息
|
||||
export function enableCommunityIntro(params) {
|
||||
return httpService({
|
||||
url: `/user/communityIntroduction/enable`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
///类型
|
||||
// 查询所有业委会类型信息
|
||||
export function getComList(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommitteeType/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加业委会类型
|
||||
export function addComType(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommitteeType/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改业委会类型
|
||||
export function updateComType(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommitteeType/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除业委会类型
|
||||
export function delComType(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommitteeType/delete`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
///信息
|
||||
// 查询所有业委会信息
|
||||
export function getIndustryCommitteeList(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommittee/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加业委会信息
|
||||
export function addIndustryCom(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommittee/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除业委会信息
|
||||
export function delIndustryCom(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommittee/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据业委会主键id查询业委会信息
|
||||
export function findIndustryCom(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommittee/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据业委会主键id查询业委会信息
|
||||
export function updateIndustryCom(params) {
|
||||
return httpService({
|
||||
url: `/user/industryCommittee/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 动态列表
|
||||
export function dynamicList(params) {
|
||||
return httpService({
|
||||
url: `/user/dynamic/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function dynamicInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/dynamic/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 删除
|
||||
export function dynamicDel(params) {
|
||||
return httpService({
|
||||
url: `/user/dynamic/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 恢复
|
||||
export function dynamicRecover(params) {
|
||||
return httpService({
|
||||
url: `/user/dynamic/recover`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 评论list
|
||||
export function commentList(params) {
|
||||
return httpService({
|
||||
url: `/user/comment/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 删除
|
||||
export function commentDel(params) {
|
||||
return httpService({
|
||||
url: `/user/comment/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 恢复
|
||||
export function commentRecover(params) {
|
||||
return httpService({
|
||||
url: `/user/comment/recover`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 话题列表
|
||||
export function topicList(params) {
|
||||
return httpService({
|
||||
url: `/user/topic/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 话题新增
|
||||
export function topicInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/topic/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 话题信息
|
||||
export function topicInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/topic/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 话题修改
|
||||
export function topicUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/topic/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 话题删除
|
||||
export function topicDelete(params) {
|
||||
return httpService({
|
||||
url: `/user/topic/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
//分类
|
||||
// 查询所有的设施/设备分类
|
||||
export function getFacilitiesList(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesCategory/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加设施/设备分类信息
|
||||
export function addFacility(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesCategory/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 批量删除设施/设备分类
|
||||
export function delFacility(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesCategory/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据设施/设备分类主键id查询设施/设备分类信息
|
||||
export function findFacility(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesCategory/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设施分类信息(不允许修改设施分类类型)
|
||||
export function updateFacility(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesCategory/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
//管理
|
||||
// 查询所有的设施/设备管理
|
||||
export function facilityInfoList(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesManage/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加设施/设备信息
|
||||
export function addFacilityInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesManage/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据设施/设备主键id查询设施/设备信息
|
||||
export function findFacilityInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesManage/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据设施/设备主键id查询设施/设备情况list记录
|
||||
export function findRecordList(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesManage/situationList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设施/设备信息
|
||||
export function updateFacilityInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesManage/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 批量删除设施/设备信息
|
||||
export function delFacilityInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesManage/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
//预约
|
||||
//查询所有的设施设备预约
|
||||
export function getFacilitiesReserve(params) {
|
||||
return httpService({
|
||||
url: `/user/facilitiesReserve/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
export function planList(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPlan/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function planisEnable(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPlan/isEnable`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function routeSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionRoute/allList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function planInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPlan/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function planInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPlan/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function planDel(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPlan/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function planUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPlan/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 巡检记录
|
||||
export function inspectionExecute(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionExecute/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 巡检点
|
||||
// list
|
||||
export function pointList(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPoint/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function pointInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPoint/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function pointInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPoint/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function pointDel(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPoint/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function pointUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPoint/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
|
||||
// 路线
|
||||
export function routeList(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionRoute/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function routeisEnable(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionRoute/isEnable`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function pointSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionPoint/allList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function routeInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionRoute/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function routeInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionRoute/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function routeDel(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionRoute/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function routeUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/inspectionRoute/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
@ -1,45 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 资讯
|
||||
export function newsList(params) {
|
||||
return httpService({
|
||||
url: `/user/information/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function newsInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/information/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function itemSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/informationCategory/allList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function newsUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/information/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function newsDel(params) {
|
||||
return httpService({
|
||||
url: `/user/information/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function newsInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/information/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 资讯分类
|
||||
export function newsItemList(params) {
|
||||
return httpService({
|
||||
url: `/user/informationCategory/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function newsItemUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/informationCategory/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function newsItemDel(params) {
|
||||
return httpService({
|
||||
url: `/user/informationCategory/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function newsItemInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/informationCategory/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 查询所有的咨询建议/投诉表扬
|
||||
export function getAdviceList(params) {
|
||||
return httpService({
|
||||
url: `/user/advice/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询今日咨询建议/投诉表扬数量
|
||||
export function getTodayAdvice(params) {
|
||||
return httpService({
|
||||
url: `/user/advice/findTodayAdviceNum`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 批量删除咨询建议/投诉表扬
|
||||
export function delAdvice(params) {
|
||||
return httpService({
|
||||
url: `/user/advice/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据id查询咨询建议/投诉表扬
|
||||
export function adviceDetail(params) {
|
||||
return httpService({
|
||||
url: `/user/advice/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 回复咨询建议/投诉表扬
|
||||
export function replyDetail(params) {
|
||||
return httpService({
|
||||
url: `/user/advice/reply`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 查询所有问卷调查信息
|
||||
export function getQuestionList(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加问卷调查表信息
|
||||
export function addQuestion(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 更新问卷调查表信息
|
||||
export function updateQuestion(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除问卷调查信息
|
||||
export function delQuestion(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 发布下架问卷调查
|
||||
export function releaseQuestion(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/isRelease`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据问卷调查主键ID查询问卷调查信息
|
||||
export function findQuestion(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据问卷调查主键id查询报表分析信息
|
||||
export function getReport(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/reportAnalysis`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据题目主键id查询开放题内容信息列表
|
||||
export function getAnswerList(params) {
|
||||
return httpService({
|
||||
url: `/user/questionnaire/shortAnswerList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 查询所有便民电话信息
|
||||
export function getPhoneList(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhone/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加便民电话信息
|
||||
export function addPhone(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhone/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据便民电话主键id查询便民电话信息
|
||||
export function findPhone(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhone/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改便民电话信息
|
||||
export function updatePhone(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhone/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 定时检查信息
|
||||
export function reminderInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhone/reminderInfo`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 更新定时检查信息
|
||||
export function updateReminder(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhone/updateReminder`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 批量删除便民电话
|
||||
export function delPhone(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhone/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询所有的便民电话类型
|
||||
export function getPhontTypeList(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhoneType/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加便民电话类型
|
||||
export function addPhontType(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhoneType/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改便民电话类型
|
||||
export function updatePhontType(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhoneType/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除便民电话类型
|
||||
export function delPhontType(params) {
|
||||
return httpService({
|
||||
url: `/user/conveniencePhoneType/delete`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 轮播图列表
|
||||
export function swiperList(params) {
|
||||
return httpService({
|
||||
url: `/user/homepageCarousel/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 删除
|
||||
export function swiperDel(params) {
|
||||
return httpService({
|
||||
url: `/user/homepageCarousel/delete`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 新增
|
||||
export function swiperInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/homepageCarousel/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 修改
|
||||
export function swiperUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/homepageCarousel/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
@ -1,58 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 任务列表
|
||||
export function taskList(params) {
|
||||
return httpService({
|
||||
url: `/user/taskRelease/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 置顶
|
||||
export function topTask(params) {
|
||||
return httpService({
|
||||
url: `/user/taskRelease/topTask`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 取消
|
||||
export function cancelTask(params) {
|
||||
return httpService({
|
||||
url: `/user/taskRelease/cancel`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 撤回
|
||||
export function withdrawTask(params) {
|
||||
return httpService({
|
||||
url: `/user/taskRelease/withdraw`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 确认
|
||||
export function confirmTask(params) {
|
||||
return httpService({
|
||||
url: `/user/taskRelease/confirm`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 获取任务设置
|
||||
export function getSetting(params) {
|
||||
return httpService({
|
||||
url: `/user/settingTaskRelease/getSetting`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 保存任务设置
|
||||
export function Setting(params) {
|
||||
return httpService({
|
||||
url: `/user/settingTaskRelease/setting`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,82 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 查询所有投票信息
|
||||
export function getVoteList(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 添加投票信息
|
||||
export function addVote(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除投票信息
|
||||
export function deleteVote(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据投票主键id查询投票信息
|
||||
export function findVote(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改投票信息
|
||||
export function updateVote(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 发布下架投票
|
||||
export function releaseVote(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/isRelease`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询候选项信息(详情页面)
|
||||
export function getCandidateList(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/findCandidateList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 查询候选人被投票信息(详情页面)
|
||||
export function getPersonalList(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/findPersonnelList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 即将开始的投票个数
|
||||
export function getTodayVote(params) {
|
||||
return httpService({
|
||||
url: `/user/vote/countVoteExpectedStart`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 后台账单list
|
||||
export function getBillList(params) {
|
||||
return httpService({
|
||||
url: `/user/bill/billList`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 账单废除
|
||||
export function abolition(params) {
|
||||
return httpService({
|
||||
url: `/user/bill/abolition`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 账单恢复
|
||||
export function recover(params) {
|
||||
return httpService({
|
||||
url: `/user/bill/recover`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 账单线下支付
|
||||
export function offlinePayments(params) {
|
||||
return httpService({
|
||||
url: `/user/bill/offlinePayments`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据账单主键id查询账单订单
|
||||
export function findBillOrderList(params) {
|
||||
return httpService({
|
||||
url: `/user/bill/findBillOrderList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 收费标准列表
|
||||
export function bindList(params) {
|
||||
return httpService({
|
||||
url: `/user/chargesBind/list`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function bind(params) {
|
||||
return httpService({
|
||||
url: `/user/chargesBind/bind`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function unbind(params) {
|
||||
return httpService({
|
||||
url: `/user/chargesBind/unbind`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 收费标准列表
|
||||
export function chargesList(params) {
|
||||
return httpService({
|
||||
url: `/user/charges/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function chargesInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/charges/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function chargesInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/charges/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function chargesUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/charges/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function chargesDel(params) {
|
||||
return httpService({
|
||||
url: `/user/charges/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 手动生成后台账单
|
||||
export function manuallyGenerateBills(params) {
|
||||
return httpService({
|
||||
url: `/user/bill/manuallyGenerateBills`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 自动生成后台账单计划
|
||||
export function autoGenerateBills(params) {
|
||||
return httpService({
|
||||
url: `/user/billAuto/autoGenerateBills`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 后台自动生成账单List
|
||||
export function billAutoList(params) {
|
||||
return httpService({
|
||||
url: `/user/billAuto/billAutoList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除后台自动生成账单计划
|
||||
export function deleteAutoGenerateBills(params) {
|
||||
return httpService({
|
||||
url: `/user/billAuto/deleteAutoGenerateBills`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 生成后台账单自动扣费计划
|
||||
export function autoDeductionBills(params) {
|
||||
return httpService({
|
||||
url: `/user/billAutoDeduction/autoDeductionBills`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 后台自动扣费账单list
|
||||
export function getAutoDeductionBills(params) {
|
||||
return httpService({
|
||||
url: `/user/billAutoDeduction/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 删除后台自动扣费账单计划
|
||||
export function deleteAutoDeductionBills(params) {
|
||||
return httpService({
|
||||
url: `/user/billAutoDeduction/deleteAutoDeductionBills`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据账单自动生成主键id获取账单自动生成信息
|
||||
export function findByIdByBillAutoId(params) {
|
||||
return httpService({
|
||||
url: `/user/billAuto/findByIdByBillAutoId`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据账单自动扣费主键id获取账单自动扣费信息
|
||||
export function findById(params) {
|
||||
return httpService({
|
||||
url: `/user/billAutoDeduction/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改自动生成后台账单计划
|
||||
export function updateAutoGenerateBills(params) {
|
||||
return httpService({
|
||||
url: `/user/billAuto/updateAutoGenerateBills`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 修改自动扣费后台账单计划
|
||||
export function updateAutoDeductionBills(params) {
|
||||
return httpService({
|
||||
url: `/user/billAutoDeduction/updateAutoDeductionBills`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 预缴列表
|
||||
export function prepaymentList(params) {
|
||||
return httpService({
|
||||
url: `/user/prepayment/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function rechargeList(params) {
|
||||
return httpService({
|
||||
url: `/user/prepayment/rechargeList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function recharge(params) {
|
||||
return httpService({
|
||||
url: `/user/prepayment/recharge`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 注册-发送验证码
|
||||
export function userInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/getUserInfo`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 商品
|
||||
// 品牌
|
||||
export function brandList(params) {
|
||||
return httpService({
|
||||
url: `/user/shopBrand/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function brandInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/shopBrand/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function brandDel(params) {
|
||||
return httpService({
|
||||
url: `/user/shopBrand/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function brandUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/shopBrand/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 商品
|
||||
// 品牌
|
||||
export function cateList(params) {
|
||||
return httpService({
|
||||
url: `/user/shopCategory/listAll`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function cateShow(params) {
|
||||
return httpService({
|
||||
url: `/user/shopCategory/isShow`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function cateInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/shopCategory/listByParentId`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function cateUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/shopCategory/updateCategory`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function cateInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/shopCategory/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function cateDel(params) {
|
||||
return httpService({
|
||||
url: `/user/shopCategory/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 商品
|
||||
// list
|
||||
export function shopPushList(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/shopPushList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function jcookGoodsList(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/jcookGoodsList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function offShelf(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/offShelf`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function onShelf(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/onShelf`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function jcookGoodsBatchPush(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/jcookGoodsBatchPush`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function jcookGoodsPush(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/jcookGoodsPush`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function goodsEdit(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function goodsInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/shop/findById`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 分类
|
||||
export function cateSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/shopCategory/listAll`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 店铺
|
||||
export function shopSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/shopShop/allList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 供应商
|
||||
export function vendorSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/shopVendor/allList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 品牌
|
||||
export function brandSelect(params) {
|
||||
return httpService({
|
||||
url: `/user/shopBrand/allList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
//开启/关闭积分兑换
|
||||
export function isEnableRedeem(params) {
|
||||
return httpService({
|
||||
url: `/user/pointsGoods/isEnableRedeem`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
//查询所有积分商品
|
||||
export function getPointList(params) {
|
||||
return httpService({
|
||||
url: `/user/pointsGoods/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
//设置积分
|
||||
export function settingPoints(params) {
|
||||
return httpService({
|
||||
url: `/user/pointsGoods/settingPoints`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 订单
|
||||
// list
|
||||
export function orderList(params) {
|
||||
return httpService({
|
||||
url: `/user/shopOrder/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 订单详情
|
||||
export function orderInfo(params) {
|
||||
return httpService({
|
||||
url: `/user/shopOrder/findDetail`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 取消订单
|
||||
export function shopOrderCancel(params) {
|
||||
return httpService({
|
||||
url: `/user/shopOrder/cancel`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
||||
// 根据ID查询订单记录
|
||||
export function getOrderRecord(params) {
|
||||
return httpService({
|
||||
url: `/user/shopOrder/orderRecord`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 获取任务设置
|
||||
export function getSetting(params) {
|
||||
return httpService({
|
||||
url: `/user/pointsSetting/earnPointsSettingInfo`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
// 保存任务设置
|
||||
export function Setting(params) {
|
||||
return httpService({
|
||||
url: `/user/pointsSetting/savePintsSetting`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 商品
|
||||
// 店铺
|
||||
export function shopList(params) {
|
||||
return httpService({
|
||||
url: `/user/shopShop/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function shopInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/shopShop/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function shopDel(params) {
|
||||
return httpService({
|
||||
url: `/user/shopShop/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function shopUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/shopShop/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 商品
|
||||
// 轮播图
|
||||
export function swiperList(params) {
|
||||
return httpService({
|
||||
url: `/user/shopRotation/findRotationList`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function swiperDel(params) {
|
||||
return httpService({
|
||||
url: `/user/shopRotation/delete`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function swiperUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/shopRotation/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function swiperInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/shopRotation/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 商品
|
||||
// 供应商
|
||||
export function vendorList(params) {
|
||||
return httpService({
|
||||
url: `/user/shopVendor/list`,
|
||||
method: 'get',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
export function vendorInsert(params) {
|
||||
return httpService({
|
||||
url: `/user/shopVendor/insert`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function vendorDel(params) {
|
||||
return httpService({
|
||||
url: `/user/shopVendor/delete`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
export function vendorUpdate(params) {
|
||||
return httpService({
|
||||
url: `/user/shopVendor/update`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,139 +0,0 @@
|
||||
|
||||
export default [
|
||||
{
|
||||
path: '/Employee',
|
||||
name: "Employee",
|
||||
title: "员工管理",
|
||||
icon: 'team',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/Employee'], resolve),
|
||||
meta: {title: '员工管理'}
|
||||
},
|
||||
{
|
||||
path: '/authority',
|
||||
name: "Authority",
|
||||
title: "权限管理",
|
||||
icon: 'appstore',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/Authority'], resolve),
|
||||
meta: {title: '权限管理'},
|
||||
// children: [
|
||||
// {
|
||||
// path: '/Authority/_details',
|
||||
// name: "Authority_details",
|
||||
// title: "账单管理-详情",
|
||||
// icon: 'profile',
|
||||
// hide: true,
|
||||
// component: resolve => require(['@/views/Basic/Authority/_details'], resolve),
|
||||
// meta: {title: '账单管理-详情'},
|
||||
// }
|
||||
// ]
|
||||
},
|
||||
{
|
||||
path: '/EstateInfo',
|
||||
name: "EstateInfo",
|
||||
title: "小区信息",
|
||||
icon: 'home',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/EstateInfo'], resolve),
|
||||
redirect: '/EstateInfo/BuildingManage',
|
||||
meta: {title: '小区信息'},
|
||||
children: [
|
||||
{
|
||||
path: '/EstateInfo/BuildingManage',
|
||||
name: "BuildingManage",
|
||||
title: "楼栋管理",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/EstateInfo/_buildingManage'], resolve),
|
||||
meta: {title: '楼栋管理'},
|
||||
},
|
||||
{
|
||||
path: '/EstateInfo/HouseManage',
|
||||
name: "HouseManage",
|
||||
title: "房屋管理",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/EstateInfo/_houseManage'], resolve),
|
||||
meta: {title: '房屋管理'},
|
||||
},
|
||||
{
|
||||
path: '/EstateInfo/HouseHoldInfo',
|
||||
name: "HouseHoldInfo",
|
||||
title: "住户信息",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/EstateInfo/_houseHoldInfo'], resolve),
|
||||
meta: {title: '住户信息'},
|
||||
},
|
||||
{
|
||||
path: '/EstateInfo/HouseHoldAudit',
|
||||
name: "HouseHoldAudit",
|
||||
title: "住户审核",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/EstateInfo/_houseHoldAudit'], resolve),
|
||||
meta: {title: '住户审核'},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/Workorder',
|
||||
name: "Workorder",
|
||||
title: "工单管理",
|
||||
icon: 'solution',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/WorkOrder'], resolve),
|
||||
meta: {title: '工单管理'}
|
||||
},
|
||||
{
|
||||
path: '/Forbidden',
|
||||
name: "Forbidden",
|
||||
title: "违禁字管理",
|
||||
icon: 'stop',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Basic/Forbidden'], resolve),
|
||||
meta: {title: '违禁字管理'}
|
||||
},
|
||||
// {
|
||||
// path: '/attendance',
|
||||
// name: "Attendance",
|
||||
// title: "考勤管理",
|
||||
// icon: 'reconciliation',
|
||||
// hide: false,
|
||||
// redirect: '/attendance/record',
|
||||
// component: resolve => require(['@/views/Basic/Attendance'], resolve),
|
||||
// meta: {title: '考勤管理'},
|
||||
// children: [
|
||||
// {
|
||||
// path: '/attendance/record',
|
||||
// name: "Attendance_record",
|
||||
// title: "考勤记录",
|
||||
// hide: false,
|
||||
// component: resolve => require(['@/views/Basic/Attendance/_record'], resolve),
|
||||
// meta: {title: '考勤记录'},
|
||||
// },
|
||||
// {
|
||||
// path: '/attendance/application',
|
||||
// name: "Attendance_application",
|
||||
// title: "申请记录",
|
||||
// hide: false,
|
||||
// component: resolve => require(['@/views/Basic/Attendance/application'], resolve),
|
||||
// meta: {title: '申请记录'},
|
||||
// },
|
||||
// {
|
||||
// path: '/attendance/attendanceteam',
|
||||
// name: "Attendance_attendanceteam",
|
||||
// title: "考勤小组",
|
||||
// hide: false,
|
||||
// component: resolve => require(['@/views/Basic/Attendance/_attendanceteam'], resolve),
|
||||
// meta: {title: '考勤小组'},
|
||||
// },
|
||||
// {
|
||||
// path: '/attendance/scheduling',
|
||||
// name: "Attendance_scheduling",
|
||||
// title: "排班计划",
|
||||
// hide: false,
|
||||
// component: resolve => require(['@/views/Basic/Attendance/_scheduling'], resolve),
|
||||
// meta: {title: '排班计划'},
|
||||
// },
|
||||
|
||||
// ]
|
||||
// }
|
||||
]
|
@ -1,306 +0,0 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-24 14:52:24
|
||||
* @LastEditTime: 2021-11-24 14:52:24
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: /LittleBeeSaas/src/router/operation.js
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
path: '/ClientSet',
|
||||
name: "ClientSet",
|
||||
title: "用户端设置",
|
||||
icon: 'setting',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/clientSet'], resolve),
|
||||
meta: {title: '用户端设置'},
|
||||
},
|
||||
{
|
||||
path: '/InspectionManage',
|
||||
name: "InspectionManage",
|
||||
title: "巡检管理",
|
||||
icon: 'retweet',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/InspectionManage'], resolve),
|
||||
redirect: '/InspectionManage/InspectionPoint',
|
||||
meta: {title: '巡检管理'},
|
||||
children: [
|
||||
{
|
||||
path: '/InspectionManage/InspectionPoint',
|
||||
name: "InspectionPoint",
|
||||
title: "巡检点",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/InspectionManage/_inspectionPoint'], resolve),
|
||||
meta: {title: '巡检点'},
|
||||
},
|
||||
{
|
||||
path: '/InspectionManage/InspectionRoute',
|
||||
name: "InspectionRoute",
|
||||
title: "巡检路线",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/InspectionManage/_inspectionRoute'], resolve),
|
||||
meta: {title: '巡检路线'},
|
||||
},
|
||||
{
|
||||
path: '/InspectionManage/InspectionPlan',
|
||||
name: "InspectionPlan",
|
||||
title: "巡检计划",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/InspectionManage/_inspectionPlan'], resolve),
|
||||
meta: {title: '巡检计划'},
|
||||
},
|
||||
{
|
||||
path: '/InspectionManage/InspectionExecute',
|
||||
name: "InspectionExecute",
|
||||
title: "巡检记录",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/InspectionManage/_inspectionExecute/index.vue'], resolve),
|
||||
meta: {title: '巡检记录'},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/Activity',
|
||||
name: "Activity",
|
||||
title: "活动",
|
||||
icon: 'notification',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Activity'], resolve),
|
||||
redirect: '/Activity/ActivityManage',
|
||||
meta: {title: '活动'},
|
||||
children: [
|
||||
{
|
||||
path: '/Activity/ActivityManage',
|
||||
name: "ActivityManage",
|
||||
title: "活动管理",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Activity/_activityManage'], resolve),
|
||||
meta: {title: '活动管理'},
|
||||
},
|
||||
{
|
||||
path: '/Activity/Organizers',
|
||||
name: "Organizers",
|
||||
title: "活动主办方",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Activity/_organizers'], resolve),
|
||||
meta: {title: '活动主办方'},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/Announcement',
|
||||
name: "Announcement",
|
||||
title: "公告",
|
||||
icon: 'file-search',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Announcement'], resolve),
|
||||
meta: {title: '公告'},
|
||||
},
|
||||
{
|
||||
path: '/News',
|
||||
name: "News",
|
||||
title: "资讯",
|
||||
icon: 'global',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/News'], resolve),
|
||||
redirect: '/News/',
|
||||
meta: {title: '资讯'},
|
||||
children: [
|
||||
{
|
||||
path: '/News/NewsManage',
|
||||
name: "NewsManage",
|
||||
title: "资讯管理",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/News/_newsManage'], resolve),
|
||||
meta: {title: '资讯管理'},
|
||||
},
|
||||
{
|
||||
path: '/News/NewsItem',
|
||||
name: "NewsItem",
|
||||
title: "资讯分类",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/News/_newsItem'], resolve),
|
||||
meta: {title: '资讯分类'},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/TaskManage',
|
||||
name: "TaskManage",
|
||||
title: "任务",
|
||||
icon: 'form',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/TaskManage'], resolve),
|
||||
redirect: '/TaskManage/TaskList',
|
||||
meta: {title: '任务'},
|
||||
children: [
|
||||
{
|
||||
path: '/TaskManage/TaskList',
|
||||
name: "TaskList",
|
||||
title: "任务管理",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/TaskManage/_taskList'], resolve),
|
||||
meta: {title: '任务管理'},
|
||||
},
|
||||
{
|
||||
path: '/TaskManage/TaskSet',
|
||||
name: "TaskSet",
|
||||
title: "任务设置",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/TaskManage/_taskSet'], resolve),
|
||||
meta: {title: '任务设置'},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/BBS',
|
||||
name: "BBS",
|
||||
title: "社区",
|
||||
icon: 'home',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/BBS'], resolve),
|
||||
redirect: '/BBS/Dynamic',
|
||||
meta: {title: '社区'},
|
||||
children: [
|
||||
{
|
||||
path: '/BBS/Dynamic',
|
||||
name: "Dynamic",
|
||||
title: "社区动态",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/BBS/_dynamic'], resolve),
|
||||
meta: {title: '社区动态'},
|
||||
},
|
||||
{
|
||||
path: '/BBS/DynamicDetail',
|
||||
name: "DynamicDetail",
|
||||
title: "社区动态详情",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Operation/BBS/_dynamic/detail'], resolve),
|
||||
meta: {title: '社区动态详情'},
|
||||
},
|
||||
{
|
||||
path: '/BBS/Topic',
|
||||
name: "Topic",
|
||||
title: "社区话题",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/BBS/_topic'], resolve),
|
||||
meta: {title: '社区话题'},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/Recommand',
|
||||
name: "Recommand",
|
||||
title: "建议咨询",
|
||||
icon: 'question-circle',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Recommand'], resolve),
|
||||
meta: {title: '建议咨询'},
|
||||
},
|
||||
{
|
||||
path: '/Suggestion',
|
||||
name: "Suggestion",
|
||||
title: "便民电话",
|
||||
icon: 'phone',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Suggestion'], resolve),
|
||||
meta: {title: '便民电话'},
|
||||
},
|
||||
{
|
||||
path: '/CommunityIntro',
|
||||
name: "CommunityIntro",
|
||||
title: "社区介绍",
|
||||
icon: 'snippets',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/CommunityIntro'], resolve),
|
||||
meta: {title: '社区介绍'},
|
||||
},
|
||||
{
|
||||
path: '/Facility',
|
||||
name: "Facility",
|
||||
title: "设施设备",
|
||||
icon: 'solution',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Facility'], resolve),
|
||||
redirect: '/Facility/FacilityType',
|
||||
meta: {title: '设施设备'},
|
||||
children: [
|
||||
{
|
||||
path: '/Facility/FacilityType',
|
||||
name: "FacilityType",
|
||||
title: "设施设备分类",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Facility/_facilityType'], resolve),
|
||||
meta: {title: '设施设备分类'},
|
||||
},
|
||||
{
|
||||
path: '/Facility/FacilityInfo',
|
||||
name: "FacilityInfo",
|
||||
title: "设施设备管理",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Facility/_facilityInfo'], resolve),
|
||||
meta: {title: '设施设备管理'},
|
||||
},
|
||||
{
|
||||
path: '/Facility/FacilityPreOrder',
|
||||
name: "FacilityPreOrder",
|
||||
title: "预约管理",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Facility/_facilityPreOrder'], resolve),
|
||||
meta: {title: '预约管理'},
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/Commission',
|
||||
name: "Commission",
|
||||
title: "业委会",
|
||||
icon: 'cluster',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Commission'], resolve),
|
||||
meta: {title: '业委会'},
|
||||
},
|
||||
{
|
||||
path: '/Scroll',
|
||||
name: "Scroll",
|
||||
title: "问卷调查",
|
||||
icon: 'container',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Scroll'], resolve),
|
||||
meta: {title: '问卷调查'},
|
||||
},
|
||||
{
|
||||
path: '/Scroll/addScroll',
|
||||
name: "addScroll",
|
||||
title: "新增问卷调查",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Operation/Scroll/addScroll'], resolve),
|
||||
meta: {title: '新增问卷调查'},
|
||||
},
|
||||
{
|
||||
path: '/Scroll/editScroll',
|
||||
name: "editScroll",
|
||||
title: "编辑问卷调查",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Operation/Scroll/editScroll'], resolve),
|
||||
meta: {title: '编辑问卷调查'},
|
||||
},
|
||||
{
|
||||
path: '/Scroll/analyze',
|
||||
name: "analyze",
|
||||
title: "问卷调查报表分析",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Operation/Scroll/analyze'], resolve),
|
||||
meta: {title: '问卷调查报表分析'},
|
||||
},
|
||||
{
|
||||
path: '/Vote',
|
||||
name: "Vote",
|
||||
title: "投票管理",
|
||||
icon: 'bar-chart',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Operation/Vote'], resolve),
|
||||
meta: {title: '投票管理'},
|
||||
},
|
||||
]
|
@ -1,106 +0,0 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-24 14:48:01
|
||||
* @LastEditTime: 2021-11-24 14:48:02
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: /LittleBeeSaas/src/router/payment.js
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
path: '/ChargeStandardManage',
|
||||
name: "ChargeStandardManage",
|
||||
title: "收费标准管理",
|
||||
icon: 'form',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Payment/ChargeStandardManage'], resolve),
|
||||
meta: {title: '收费标准管理'},
|
||||
},
|
||||
{
|
||||
path: '/ChargeStandardBind',
|
||||
name: "ChargeStandardBind",
|
||||
title: "收费标准绑定",
|
||||
icon: 'sliders',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Payment/ChargeStandardBind'], resolve),
|
||||
meta: {title: '收费标准绑定'},
|
||||
},
|
||||
{
|
||||
path: '/PrepayManage',
|
||||
name: "PrepayManage",
|
||||
title: "预缴管理",
|
||||
icon: 'book',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Payment/PrepayManage'], resolve),
|
||||
meta: {title: '预缴管理'},
|
||||
},
|
||||
{
|
||||
path: '/PayPlan',
|
||||
name: "PayPlan",
|
||||
title: "缴费计划",
|
||||
icon: 'transaction',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Payment/PayPlan'], resolve),
|
||||
meta: {title: '缴费计划'},
|
||||
},
|
||||
{
|
||||
path: '/BillManage',
|
||||
name: "BillManage",
|
||||
title: "账单管理",
|
||||
icon: 'audit',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Payment/BillManage'], resolve),
|
||||
redirect: '/Payment/ActivityManage',
|
||||
meta: {title: '账单管理'},
|
||||
children: [
|
||||
{
|
||||
path: '/BillManage/PayInfo',
|
||||
name: "PayInfo",
|
||||
title: "账单明细",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Payment/BillManage/_payInfo'], resolve),
|
||||
meta: {title: '账单明细'},
|
||||
},
|
||||
{
|
||||
path: '/BillManage/PayList',
|
||||
name: "PayList",
|
||||
title: "缴费明细",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Payment/BillManage/_payList'], resolve),
|
||||
meta: {title: '缴费明细'},
|
||||
},
|
||||
{
|
||||
path: '/BillManage/OweList',
|
||||
name: "OweList",
|
||||
title: "欠费明细",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Payment/BillManage/_oweList'], resolve),
|
||||
meta: {title: '欠费明细'},
|
||||
},
|
||||
{
|
||||
path: '/BillManage/PayRateReport',
|
||||
name: "PayRateReport",
|
||||
title: "收缴率报表",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Payment/BillManage/_payRateReport'], resolve),
|
||||
meta: {title: '收缴率报表'},
|
||||
},
|
||||
{
|
||||
path: '/BillManage/RefundRecord',
|
||||
name: "RefundRecord",
|
||||
title: "退款记录",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Payment/BillManage/_refundRecord'], resolve),
|
||||
meta: {title: '退款记录'},
|
||||
},
|
||||
{
|
||||
path: '/BillManage/BillNotice',
|
||||
name: "BillNotice",
|
||||
title: "账单通知",
|
||||
hide: true,
|
||||
component: resolve => require(['@/views/Payment/BillManage/_billNotice'], resolve),
|
||||
meta: {title: '账单通知'},
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
@ -1,11 +0,0 @@
|
||||
export default [
|
||||
{
|
||||
path: '/basicSet',
|
||||
name: "basicSet",
|
||||
title: "基础设置",
|
||||
hide: false,
|
||||
icon: 'container',
|
||||
component: resolve => require(['@/views/Set/basicSet'], resolve),
|
||||
meta: {title: '基础设置'}
|
||||
},
|
||||
]
|
@ -1,124 +0,0 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-24 14:50:31
|
||||
* @LastEditTime: 2021-11-24 14:50:31
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: /LittleBeeSaas/src/router/smartMall.js
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
path: '/GoodsManage',
|
||||
name: "GoodsManage",
|
||||
title: "商品管理",
|
||||
icon: 'home',
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Shop/GoodsManage'], resolve),
|
||||
redirect: '/GoodsManage/GoodsList',
|
||||
meta: {title: '商品管理'},
|
||||
children: [
|
||||
{
|
||||
path: '/GoodsManage/GoodsList',
|
||||
name: "GoodsList",
|
||||
title: "商品列表",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Shop/GoodsManage/_goodsList'], resolve),
|
||||
meta: {title: '商品列表'},
|
||||
},
|
||||
{
|
||||
path: '/GoodsManage/PointGoods',
|
||||
name: "PointGoods",
|
||||
title: "兑换商品设置",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Shop/GoodsManage/_pointGoods'], resolve),
|
||||
meta: {title: '兑换商品设置'},
|
||||
},
|
||||
{
|
||||
path: '/GoodsManage/JcookList',
|
||||
name: "JcookList",
|
||||
title: "jcook商品库",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Shop/GoodsManage/_jcookList'], resolve),
|
||||
meta: {title: 'jcook商品库'},
|
||||
},
|
||||
{
|
||||
path: '/GoodsManage/GoodsCate',
|
||||
name: "GoodsCate",
|
||||
title: "商品分类",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Shop/GoodsManage/_goodsCate'], resolve),
|
||||
meta: {title: '商品分类'},
|
||||
},
|
||||
// {
|
||||
// path: '/GoodsManage/GoodsCate',
|
||||
// name: "GoodsCate",
|
||||
// title: "商品审核",
|
||||
// hide: false,
|
||||
// component: resolve => require(['@/views/Shop/GoodsManage/_goodsCate'], resolve),
|
||||
// meta: {title: '商品分类'},
|
||||
// },
|
||||
{
|
||||
path: '/GoodsManage/Brand',
|
||||
name: "Brand",
|
||||
title: "品牌资质",
|
||||
hide: false,
|
||||
component: resolve => require(['@/views/Shop/GoodsManage/_brand'], resolve),
|
||||
meta: {title: '品牌资质'},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/OrderManage',
|
||||
name: "OrderManage",
|
||||
title: "订单列表",
|
||||
hide: false,
|
||||
icon: 'container',
|
||||
component: resolve => require(['@/views/Shop/OrderManage'], resolve),
|
||||
meta: {title: '订单列表'}
|
||||
},
|
||||
{
|
||||
path: '/OrderDetail',
|
||||
name: "OrderDetail",
|
||||
title: "订单详情",
|
||||
hide: true,
|
||||
icon: 'container',
|
||||
component: resolve => require(['@/views/Shop/OrderManage/depend/detail'], resolve),
|
||||
meta: {title: '订单详情'}
|
||||
},
|
||||
{
|
||||
path: '/SupplierManage',
|
||||
name: "SupplierManage",
|
||||
title: "供应商管理",
|
||||
hide: false,
|
||||
icon: 'contacts',
|
||||
component: resolve => require(['@/views/Shop/SupplierManage'], resolve),
|
||||
meta: {title: '供应商管理'}
|
||||
},
|
||||
{
|
||||
path: '/StoreManage',
|
||||
name: "StoreManage",
|
||||
title: "店铺管理",
|
||||
hide: false,
|
||||
icon: 'shop',
|
||||
component: resolve => require(['@/views/Shop/StoreManage'], resolve),
|
||||
meta: {title: '店铺管理'}
|
||||
},
|
||||
{
|
||||
path: '/SwiperManage',
|
||||
name: "SwiperManage",
|
||||
title: "商城轮播图管理",
|
||||
hide: false,
|
||||
icon: 'bars',
|
||||
component: resolve => require(['@/views/Shop/SwiperManage'], resolve),
|
||||
meta: {title: '商城轮播图管理'}
|
||||
},
|
||||
{
|
||||
path: '/ScoreSetting',
|
||||
name: "ScoreSetting",
|
||||
title: "积分设置",
|
||||
hide: false,
|
||||
icon: 'crown',
|
||||
component: resolve => require(['@/views/Shop/ScoreSetting'], resolve),
|
||||
meta: {title: '积分设置'}
|
||||
},
|
||||
]
|
@ -0,0 +1,47 @@
|
||||
export const columns1 = [
|
||||
{
|
||||
title: "认证材料",
|
||||
dataIndex: "mat",
|
||||
width: "40%",
|
||||
},
|
||||
{
|
||||
title: "详情",
|
||||
dataIndex: "detail",
|
||||
width: "60%",
|
||||
scopedSlots: { customRender: "detail" },
|
||||
},
|
||||
];
|
||||
export const tableData3 = [
|
||||
{
|
||||
mat: '法定代表人证件照正反面照片、法定代表人手持证件照',
|
||||
detail: true,
|
||||
},
|
||||
];
|
||||
export const tableData1 = [
|
||||
{
|
||||
mat: '统一社会信用代码证',
|
||||
detail: '-',
|
||||
},
|
||||
{
|
||||
mat: '法定证件照正反面照片、法人手持证件照',
|
||||
detail: true,
|
||||
},
|
||||
{
|
||||
mat: '门店门头照片、门店内景照片、收银台照片',
|
||||
detail: '无实体门店的商家可提供线上店铺首页、管理后台、商品照片',
|
||||
},
|
||||
];
|
||||
export const tableData2 = [
|
||||
{
|
||||
mat: '统一社会信用代码证',
|
||||
detail: '-',
|
||||
},
|
||||
{
|
||||
mat: '法定证件照正反面照片、法人手持证件照',
|
||||
detail: true,
|
||||
},
|
||||
{
|
||||
mat: '门店门头照片、门店内景照片、收银台照片',
|
||||
detail: '无实体门店的商家可提供线上店铺首页、管理后台、商品照片',
|
||||
},
|
||||
]
|
@ -1,13 +0,0 @@
|
||||
<template>
|
||||
<div>brandAuthor</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
@ -0,0 +1,109 @@
|
||||
export const columns = [
|
||||
{
|
||||
title: "商品状态",
|
||||
width: "6%",
|
||||
dataIndex: "status",
|
||||
customRender: function (status) {
|
||||
switch (status) {
|
||||
case false:
|
||||
return '已下架'
|
||||
case true:
|
||||
return '上架中'
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "商品编号",
|
||||
width: "11%",
|
||||
dataIndex: "skuNumber",
|
||||
},
|
||||
{
|
||||
title: "商品图片",
|
||||
width: "8%",
|
||||
dataIndex: "mainPhoto",
|
||||
scopedSlots: { customRender: "mainPhoto"}
|
||||
},
|
||||
{
|
||||
title: "商品名称",
|
||||
width: "11%",
|
||||
dataIndex: "skuName",
|
||||
},
|
||||
{
|
||||
title: "所属分类",
|
||||
width: "6%",
|
||||
dataIndex: "mallType",
|
||||
customRender: function (mallType) {
|
||||
switch (mallType) {
|
||||
case 1:
|
||||
return 'Jcook'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "店铺名称",
|
||||
width: "10%",
|
||||
dataIndex: "shopName",
|
||||
},
|
||||
{
|
||||
title: "售货价",
|
||||
width: "7%",
|
||||
dataIndex: "price",
|
||||
},
|
||||
{
|
||||
title: "库存",
|
||||
width: "6%",
|
||||
dataIndex: "discountPrice",
|
||||
},
|
||||
{
|
||||
title: "销量",
|
||||
width: "5%",
|
||||
dataIndex: "viewsNum",
|
||||
},
|
||||
{
|
||||
title: "创建时间",
|
||||
width: "10%",
|
||||
dataIndex: "creatTime",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "action",
|
||||
key: "action",
|
||||
width: "250",
|
||||
fixed: "right",
|
||||
scopedSlots: { customRender: "action" },
|
||||
},
|
||||
]
|
||||
export const formItem = [
|
||||
{
|
||||
type: 'input',
|
||||
label:'sku编码',
|
||||
prop:'skuId',
|
||||
placeholder:'请输入'
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label:'商品名称',
|
||||
prop:'skuName',
|
||||
placeholder:'请输入'
|
||||
},
|
||||
// {
|
||||
// type: 'select',
|
||||
// label:'上架状态',
|
||||
// prop:'status',
|
||||
// placeholder:'请选择',
|
||||
// option:[{ id: false,name:'下架'},{ id: true,name:'上架'}],
|
||||
// },
|
||||
]
|
||||
export const pagination = {
|
||||
current: 1,
|
||||
total: 0,
|
||||
pageSize: 100,
|
||||
showTotal: (total) => `共 ${total} 条`,
|
||||
pageSizeOptions: ['10','50','100','200'],
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
export const form = {
|
||||
id:undefined,
|
||||
status:undefined,
|
||||
skuName:undefined,
|
||||
shopId:undefined,
|
||||
vendorId:undefined,
|
||||
brandId:undefined,
|
||||
categoryFirstId:undefined,
|
||||
categorySecondId:undefined,
|
||||
categoryThirdId:undefined,
|
||||
sellPrice:undefined,
|
||||
discountPrice:undefined,
|
||||
}
|
||||
export const rules = {
|
||||
skuName:[{required:true,message:'请输入',trigger:'blur'}],
|
||||
shopId:[{required:true,message:'请选择',trigger:'change'}],
|
||||
status:[{required:true,message:'请选择',trigger:'change'}],
|
||||
vendorId:[{required:true,message:'请选择',trigger:'change'}],
|
||||
brandId: [{ required: true, message: '请选择', trigger: 'change' }],
|
||||
sellPrice:[{required:true,message:'请输入',trigger:'blur'}],
|
||||
discountPrice:[{required:true,message:'请输入',trigger:'blur'}],
|
||||
}
|
||||
export const options = {
|
||||
cate:[],
|
||||
shop: [],
|
||||
vendor: [],
|
||||
brand: [],
|
||||
}
|
@ -0,0 +1,200 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-drawer
|
||||
title="jcook商品上架推送"
|
||||
:width="720"
|
||||
:visible="show"
|
||||
:body-style="{ paddingBottom: '60px' }"
|
||||
@close="addClose"
|
||||
>
|
||||
<div class="drawer-content">
|
||||
基本信息
|
||||
<a-divider></a-divider>
|
||||
<a-form-model
|
||||
ref="ruleForm"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
layout="vertical"
|
||||
>
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="status" label="上架状态">
|
||||
<a-switch v-model="form.status"></a-switch
|
||||
></a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="skuName"
|
||||
label="商品名称"
|
||||
>
|
||||
<a-input v-model="form.skuName" placeholder="请输入商品名称" style='width:60%'></a-input>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="shopId"
|
||||
label="店铺"
|
||||
>
|
||||
<a-select v-model="form.shopId" placeholder="请选择店铺" style='width:60%'>
|
||||
<a-select-option v-for="item in options.shop" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="vendorId"
|
||||
label="供应商"
|
||||
>
|
||||
<a-select v-model="form.vendorId" placeholder="请选择供应商" style='width:60%'>
|
||||
<a-select-option v-for="item in options.vendor" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="brandId"
|
||||
label="品牌"
|
||||
>
|
||||
<a-select v-model="form.brandId" placeholder="请选择品牌" style='width:60%'>
|
||||
<a-select-option v-for="item in options.brand" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="cateValue" label="商品分类">
|
||||
<a-cascader
|
||||
v-model="cateValue"
|
||||
:options="options.cate"
|
||||
placeholder="请选择分类"
|
||||
:field-names="{
|
||||
label: 'name',
|
||||
value: 'id',
|
||||
children: 'shopCategoryVoList',
|
||||
}"
|
||||
@change="change"
|
||||
style="width: 60%"
|
||||
></a-cascader> </a-form-model-item
|
||||
></a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="sellPrice" label="售卖价">
|
||||
<a-input v-model="form.sellPrice" style="width: 60%"></a-input>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="discountPrice" label="划线价">
|
||||
<a-input
|
||||
v-model="form.discountPrice"
|
||||
style="width: 60%"
|
||||
></a-input> </a-form-model-item
|
||||
></a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
</div>
|
||||
<div class="drawer-footer">
|
||||
<a-button :style="{ marginRight: '8px' }" @click="addClose">
|
||||
关闭
|
||||
</a-button>
|
||||
<a-button type="primary" @click="submit"> 提交 </a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { form, rules, options } from "./form.js";
|
||||
import {
|
||||
cateSelect,
|
||||
shopSelect,
|
||||
vendorSelect,
|
||||
brandSelect,
|
||||
goodsEdit,
|
||||
goodsInfo,
|
||||
} from "@/api/shop/goods/index.js";
|
||||
export default {
|
||||
props: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
goodsId: Number,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form,
|
||||
rules,
|
||||
options,
|
||||
fileList: [],
|
||||
cateValue: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getItem() {
|
||||
// 分类 店铺 供应商 品牌
|
||||
Promise.all([
|
||||
cateSelect(),
|
||||
shopSelect(),
|
||||
vendorSelect(),
|
||||
brandSelect(),
|
||||
]).then((res) => {
|
||||
this.options.cate = res[0].data;
|
||||
this.options.shop = res[1].data;
|
||||
this.options.vendor = res[2].data;
|
||||
this.options.brand = res[3].data;
|
||||
});
|
||||
},
|
||||
addClose() {
|
||||
this.$refs.ruleForm.resetFields();
|
||||
this.form.categoryFirstId = undefined;
|
||||
this.form.categorySecondId = undefined;
|
||||
this.form.categoryThirdId = undefined;
|
||||
this.cateValue = [];
|
||||
this.$emit("addClose");
|
||||
},
|
||||
success() {
|
||||
this.$emit("success");
|
||||
this.addClose();
|
||||
},
|
||||
change(data) {
|
||||
// console.log(data);
|
||||
this.form.categoryFirstId = data[0];
|
||||
this.form.categorySecondId = data[1];
|
||||
this.form.categoryThirdId = data[2];
|
||||
},
|
||||
submit() {
|
||||
this.$refs.ruleForm.validate(async (valid) => {
|
||||
if (valid) {
|
||||
let res = await goodsEdit(this.form);
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.success();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
goodsId: {
|
||||
handler(val) {
|
||||
if (val !== null) {
|
||||
this.form.id = val;
|
||||
goodsInfo({ appGoodsPushId: val }).then((res) => {
|
||||
this.form = res.data;
|
||||
this.cateValue[0] = res.data.categoryFirstId
|
||||
this.cateValue[1] = res.data.categorySecondId
|
||||
this.cateValue[2] = res.data.categoryThirdId
|
||||
// console.log(this.cateValue);
|
||||
});
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
@ -1,13 +1,236 @@
|
||||
<template>
|
||||
<div>itemList</div>
|
||||
<div>
|
||||
<div class="cardTitle">
|
||||
<span>商品列表</span>
|
||||
</div>
|
||||
<!-- <searchForm :formItem="formItem" @getSearch="search($event)"></searchForm> -->
|
||||
<div class="search-box">
|
||||
<a-row>
|
||||
<a-col :span="20">
|
||||
<a-space size="large">
|
||||
<a-form-model layout="inline">
|
||||
<a-form-model-item label="商品类目">
|
||||
<a-cascader v-model="casVal" :options="typeData" @change="typeChange" placeholder="请选择"
|
||||
:field-names="{ label: 'name', value: 'id', children: 'shopCategoryVoList' }">
|
||||
</a-cascader>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="付款方式">
|
||||
<a-select style="width: 200px"></a-select>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="商品名称">
|
||||
<a-input style="width: 200px"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="商品编码">
|
||||
<a-input style="width: 200px"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="下单时间">
|
||||
<a-range-picker style="width: 312px"></a-range-picker>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item>
|
||||
<a-button type="primary" @click='getData'>查 询</a-button>
|
||||
<a-button @click='reset' style="margin-left:24px">重 置</a-button>
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
</a-space>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
<a-radio-group style="padding: 24px" v-model="form.status" buttonStyle="solid">
|
||||
<a-radio-button :value="undefined">全部</a-radio-button>
|
||||
<a-radio-button :value="1">上架中</a-radio-button>
|
||||
<a-radio-button :value="2">已售罄</a-radio-button>
|
||||
<a-radio-button :value="3">已下架</a-radio-button>
|
||||
</a-radio-group>
|
||||
<div style="margin-left: 24px">
|
||||
<a-button @click="goAdd" type="primary" ghost><a-icon type="plus" />添加商品</a-button>
|
||||
</div>
|
||||
<a-table
|
||||
style="padding: 24px"
|
||||
:columns="columns"
|
||||
:data-source="tableData"
|
||||
:pagination="pagination"
|
||||
:scroll="{ x: 2400 }"
|
||||
@change="handleTableChange"
|
||||
:loading="loading"
|
||||
:row-selection="{
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
onChange: selectionChoosed,
|
||||
}"
|
||||
:row-key="
|
||||
(record, index) => {
|
||||
return record.id;
|
||||
}
|
||||
"
|
||||
>
|
||||
<template slot="point" slot-scope="text,row">
|
||||
<a-switch
|
||||
checked-children="开"
|
||||
un-checked-children="关"
|
||||
:checked="row.isPointsGoods"
|
||||
@change="changePoingGood(row)"
|
||||
></a-switch>
|
||||
</template>
|
||||
<span slot="action" slot-scope="text, row">
|
||||
<a-space>
|
||||
<a class="ant-dropdown-link" @click="onSell([row.id])">上架</a>
|
||||
<a class="ant-dropdown-link" @click="offSell([row.id])">下架</a>
|
||||
<a class="ant-dropdown-link" @click="edit(row.id)">修改商品信息</a>
|
||||
</a-space>
|
||||
</span>
|
||||
<span slot="mainPhoto" slot-scope="text, row">
|
||||
<img :src="row.mainPhoto" class="table-img" alt="" />
|
||||
</span>
|
||||
</a-table>
|
||||
<div class="action">
|
||||
<a-dropdown :disabled="!hasSelected">
|
||||
<a-menu slot="overlay" @click="handleMenuClick">
|
||||
<a-menu-item key="on"> 批量上架 </a-menu-item>
|
||||
<a-menu-item key="off"> 批量下架 </a-menu-item>
|
||||
</a-menu>
|
||||
<a-button> 批量操作 <a-icon type="down" /> </a-button>
|
||||
</a-dropdown>
|
||||
<span style="margin-left: 8px">
|
||||
<template v-if="hasSelected">
|
||||
{{ `已选择 ${selectedRowKeys.length} 条` }}
|
||||
</template>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { columns, pagination, formItem } from "./depend/config.js";
|
||||
export default {
|
||||
|
||||
}
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
status: undefined
|
||||
},
|
||||
drawer: {
|
||||
show: false,
|
||||
},
|
||||
searchForm: {
|
||||
skuId: undefined,
|
||||
skuName: undefined,
|
||||
categoryFirstId: undefined,
|
||||
categorySecondId: undefined,
|
||||
categoryThirdId: undefined,
|
||||
},
|
||||
loading: false,
|
||||
typeData: [],
|
||||
casVal: [],
|
||||
columns,
|
||||
goodsId:null,
|
||||
pagination,
|
||||
formItem,
|
||||
tableData: [],
|
||||
selectedRowKeys: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getApi() {
|
||||
|
||||
},
|
||||
getData() {
|
||||
|
||||
},
|
||||
reset() {
|
||||
this.getData()
|
||||
},
|
||||
selectionChoosed(data) {
|
||||
this.selectedRowKeys = data;
|
||||
},
|
||||
handleTableChange(pagination) {
|
||||
const pager = { ...this.pagination };
|
||||
pager.current = pagination.current;
|
||||
pager.pageSize = pagination.pageSize;
|
||||
this.pagination = pager;
|
||||
this.selectedRowKeys = [];
|
||||
this.getData();
|
||||
},
|
||||
edit(id) {
|
||||
this.goodsId = id;
|
||||
this.drawer.show = true;
|
||||
},
|
||||
onSell(ids) {
|
||||
this.$confirm({
|
||||
title: "是否上架",
|
||||
icon: "caret-up",
|
||||
onOk: async () => {
|
||||
let res = await onShelf({ ids: ids });
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
offSell(ids) {
|
||||
this.$confirm({
|
||||
title: "是否下架",
|
||||
icon: "caret-down",
|
||||
onOk: async () => {
|
||||
let res = await offShelf({ ids: ids });
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
handleMenuClick(data) {
|
||||
if (data.key === "on") {
|
||||
this.onSell(this.selectedRowKeys);
|
||||
} else if (data.key === "off") {
|
||||
this.offSell(this.selectedRowKeys);
|
||||
}
|
||||
},
|
||||
addClose() {
|
||||
this.drawer.show = false;
|
||||
this.goodsId = null;
|
||||
},
|
||||
success() {
|
||||
this.getData();
|
||||
},
|
||||
//改变积分兑换
|
||||
changePoingGood(val) {
|
||||
isEnableRedeem({appGoodsPushId: val.id}).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
typeChange(value) {
|
||||
this.searchForm.categoryFirstId = value[0];
|
||||
this.searchForm.categorySecondId = value[1];
|
||||
this.searchForm.categoryThirdId = value[2];
|
||||
},
|
||||
//前往添加商品
|
||||
goAdd() {
|
||||
this.$router.push({name:'AddItem'});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
hasSelected() {
|
||||
return this.selectedRowKeys.length > 0;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<style lang="less" scoped>
|
||||
.table-img {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
</style>
|
||||
|
@ -0,0 +1,136 @@
|
||||
export const columns = [
|
||||
{
|
||||
title: "商品状态",
|
||||
width: "6%",
|
||||
dataIndex: "status",
|
||||
customRender: function (status) {
|
||||
switch (status) {
|
||||
case false:
|
||||
return '已下架'
|
||||
case true:
|
||||
return '上架中'
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "商品名称",
|
||||
width: "11%",
|
||||
dataIndex: "skuName",
|
||||
},
|
||||
{
|
||||
title: "主图url",
|
||||
width: "4%",
|
||||
dataIndex: "mainPhoto",
|
||||
scopedSlots: { customRender: "mainPhoto"}
|
||||
},
|
||||
{
|
||||
title: "积分兑换",
|
||||
width: "5%",
|
||||
dataIndex: "isPointsGoods",
|
||||
scopedSlots: { customRender: "point"}
|
||||
},
|
||||
{
|
||||
title: "sku编码",
|
||||
width: "10%",
|
||||
dataIndex: "skuId",
|
||||
},
|
||||
{
|
||||
title: "商品类型",
|
||||
width: "4%",
|
||||
dataIndex: "mallType",
|
||||
customRender: function (mallType) {
|
||||
switch (mallType) {
|
||||
case 1:
|
||||
return 'Jcook'
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "店铺名",
|
||||
width: "7%",
|
||||
dataIndex: "shopName",
|
||||
},
|
||||
{
|
||||
title: "品牌名",
|
||||
width: "7%",
|
||||
dataIndex: "brandName",
|
||||
},
|
||||
{
|
||||
title: "供应商名",
|
||||
width: "7%",
|
||||
dataIndex: "vendorName",
|
||||
},
|
||||
{
|
||||
title: "一级分类名称",
|
||||
width: "6%",
|
||||
dataIndex: "categoryFirstName",
|
||||
},
|
||||
{
|
||||
title: "二级分类名称",
|
||||
width: "6%",
|
||||
dataIndex: "categorySecondName",
|
||||
},
|
||||
{
|
||||
title: "三级分类名称",
|
||||
width: "6%",
|
||||
dataIndex: "categoryThirdName",
|
||||
},
|
||||
{
|
||||
title: "售卖价",
|
||||
width: "4%",
|
||||
dataIndex: "sellPrice",
|
||||
},
|
||||
{
|
||||
title: "折扣价",
|
||||
width: "4%",
|
||||
dataIndex: "discountPrice",
|
||||
},
|
||||
{
|
||||
title: "浏览量",
|
||||
width: "5%",
|
||||
dataIndex: "viewsNum",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "action",
|
||||
key: "action",
|
||||
width: "250",
|
||||
fixed: "right",
|
||||
scopedSlots: { customRender: "action" },
|
||||
},
|
||||
]
|
||||
export const formItem = [
|
||||
{
|
||||
type: 'input',
|
||||
label:'sku编码',
|
||||
prop:'skuId',
|
||||
placeholder:'请输入'
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label:'商品名称',
|
||||
prop:'skuName',
|
||||
placeholder:'请输入'
|
||||
},
|
||||
// {
|
||||
// type: 'select',
|
||||
// label:'上架状态',
|
||||
// prop:'status',
|
||||
// placeholder:'请选择',
|
||||
// option:[{ id: false,name:'下架'},{ id: true,name:'上架'}],
|
||||
// },
|
||||
]
|
||||
export const pagination = {
|
||||
current: 1,
|
||||
total: 0,
|
||||
pageSize: 100,
|
||||
showTotal: (total) => `共 ${total} 条`,
|
||||
pageSizeOptions: ['10','50','100','200'],
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
export const form = {
|
||||
id:undefined,
|
||||
status:undefined,
|
||||
skuName:undefined,
|
||||
shopId:undefined,
|
||||
vendorId:undefined,
|
||||
brandId:undefined,
|
||||
categoryFirstId:undefined,
|
||||
categorySecondId:undefined,
|
||||
categoryThirdId:undefined,
|
||||
sellPrice:undefined,
|
||||
discountPrice:undefined,
|
||||
}
|
||||
export const rules = {
|
||||
skuName:[{required:true,message:'请输入',trigger:'blur'}],
|
||||
shopId:[{required:true,message:'请选择',trigger:'change'}],
|
||||
status:[{required:true,message:'请选择',trigger:'change'}],
|
||||
vendorId:[{required:true,message:'请选择',trigger:'change'}],
|
||||
brandId: [{ required: true, message: '请选择', trigger: 'change' }],
|
||||
sellPrice:[{required:true,message:'请输入',trigger:'blur'}],
|
||||
discountPrice:[{required:true,message:'请输入',trigger:'blur'}],
|
||||
}
|
||||
export const options = {
|
||||
cate:[],
|
||||
shop: [],
|
||||
vendor: [],
|
||||
brand: [],
|
||||
}
|
@ -0,0 +1,200 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-drawer
|
||||
title="jcook商品上架推送"
|
||||
:width="720"
|
||||
:visible="show"
|
||||
:body-style="{ paddingBottom: '60px' }"
|
||||
@close="addClose"
|
||||
>
|
||||
<div class="drawer-content">
|
||||
基本信息
|
||||
<a-divider></a-divider>
|
||||
<a-form-model
|
||||
ref="ruleForm"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
layout="vertical"
|
||||
>
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="status" label="上架状态">
|
||||
<a-switch v-model="form.status"></a-switch
|
||||
></a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="skuName"
|
||||
label="商品名称"
|
||||
>
|
||||
<a-input v-model="form.skuName" placeholder="请输入商品名称" style='width:60%'></a-input>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="shopId"
|
||||
label="店铺"
|
||||
>
|
||||
<a-select v-model="form.shopId" placeholder="请选择店铺" style='width:60%'>
|
||||
<a-select-option v-for="item in options.shop" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="vendorId"
|
||||
label="供应商"
|
||||
>
|
||||
<a-select v-model="form.vendorId" placeholder="请选择供应商" style='width:60%'>
|
||||
<a-select-option v-for="item in options.vendor" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item
|
||||
prop="brandId"
|
||||
label="品牌"
|
||||
>
|
||||
<a-select v-model="form.brandId" placeholder="请选择品牌" style='width:60%'>
|
||||
<a-select-option v-for="item in options.brand" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="cateValue" label="商品分类">
|
||||
<a-cascader
|
||||
v-model="cateValue"
|
||||
:options="options.cate"
|
||||
placeholder="请选择分类"
|
||||
:field-names="{
|
||||
label: 'name',
|
||||
value: 'id',
|
||||
children: 'shopCategoryVoList',
|
||||
}"
|
||||
@change="change"
|
||||
style="width: 60%"
|
||||
></a-cascader> </a-form-model-item
|
||||
></a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="sellPrice" label="售卖价">
|
||||
<a-input v-model="form.sellPrice" style="width: 60%"></a-input>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-model-item prop="discountPrice" label="划线价">
|
||||
<a-input
|
||||
v-model="form.discountPrice"
|
||||
style="width: 60%"
|
||||
></a-input> </a-form-model-item
|
||||
></a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
</div>
|
||||
<div class="drawer-footer">
|
||||
<a-button :style="{ marginRight: '8px' }" @click="addClose">
|
||||
关闭
|
||||
</a-button>
|
||||
<a-button type="primary" @click="submit"> 提交 </a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { form, rules, options } from "./form.js";
|
||||
import {
|
||||
cateSelect,
|
||||
shopSelect,
|
||||
vendorSelect,
|
||||
brandSelect,
|
||||
goodsEdit,
|
||||
goodsInfo,
|
||||
} from "@/api/shop/goods/index.js";
|
||||
export default {
|
||||
props: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
goodsId: Number,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form,
|
||||
rules,
|
||||
options,
|
||||
fileList: [],
|
||||
cateValue: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getItem() {
|
||||
// 分类 店铺 供应商 品牌
|
||||
Promise.all([
|
||||
cateSelect(),
|
||||
shopSelect(),
|
||||
vendorSelect(),
|
||||
brandSelect(),
|
||||
]).then((res) => {
|
||||
this.options.cate = res[0].data;
|
||||
this.options.shop = res[1].data;
|
||||
this.options.vendor = res[2].data;
|
||||
this.options.brand = res[3].data;
|
||||
});
|
||||
},
|
||||
addClose() {
|
||||
this.$refs.ruleForm.resetFields();
|
||||
this.form.categoryFirstId = undefined;
|
||||
this.form.categorySecondId = undefined;
|
||||
this.form.categoryThirdId = undefined;
|
||||
this.cateValue = [];
|
||||
this.$emit("addClose");
|
||||
},
|
||||
success() {
|
||||
this.$emit("success");
|
||||
this.addClose();
|
||||
},
|
||||
change(data) {
|
||||
// console.log(data);
|
||||
this.form.categoryFirstId = data[0];
|
||||
this.form.categorySecondId = data[1];
|
||||
this.form.categoryThirdId = data[2];
|
||||
},
|
||||
submit() {
|
||||
this.$refs.ruleForm.validate(async (valid) => {
|
||||
if (valid) {
|
||||
let res = await goodsEdit(this.form);
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.success();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
goodsId: {
|
||||
handler(val) {
|
||||
if (val !== null) {
|
||||
this.form.id = val;
|
||||
goodsInfo({ appGoodsPushId: val }).then((res) => {
|
||||
this.form = res.data;
|
||||
this.cateValue[0] = res.data.categoryFirstId
|
||||
this.cateValue[1] = res.data.categorySecondId
|
||||
this.cateValue[2] = res.data.categoryThirdId
|
||||
// console.log(this.cateValue);
|
||||
});
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
@ -0,0 +1,195 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="cardTitle">
|
||||
<span>商品列表</span>
|
||||
</div>
|
||||
<!-- <div class="search-box">
|
||||
|
||||
</div> -->
|
||||
<div style="padding: 24px">
|
||||
<a-button @click="goAdd" type="primary" ghost><a-icon type="plus" />新建参数</a-button>
|
||||
</div>
|
||||
<a-table
|
||||
style="padding: 0px 24px 24px 24px"
|
||||
:columns="columns"
|
||||
:data-source="tableData"
|
||||
:pagination="pagination"
|
||||
:scroll="{ x: 2400 }"
|
||||
@change="handleTableChange"
|
||||
:row-selection="{
|
||||
selectedRowKeys: selectedRowKeys,
|
||||
onChange: selectionChoosed,
|
||||
}"
|
||||
:row-key="
|
||||
(record, index) => {
|
||||
return record.id;
|
||||
}
|
||||
"
|
||||
>
|
||||
<template slot="point" slot-scope="text,row">
|
||||
<a-switch
|
||||
checked-children="开"
|
||||
un-checked-children="关"
|
||||
:checked="row.isPointsGoods"
|
||||
@change="changePoingGood(row)"
|
||||
></a-switch>
|
||||
</template>
|
||||
<span slot="action" slot-scope="text, row">
|
||||
<a-space>
|
||||
<a class="ant-dropdown-link" @click="onSell([row.id])">上架</a>
|
||||
<a class="ant-dropdown-link" @click="offSell([row.id])">下架</a>
|
||||
<a class="ant-dropdown-link" @click="edit(row.id)">修改商品信息</a>
|
||||
</a-space>
|
||||
</span>
|
||||
<span slot="mainPhoto" slot-scope="text, row">
|
||||
<img :src="row.mainPhoto" class="table-img" alt="" />
|
||||
</span>
|
||||
</a-table>
|
||||
<div class="action">
|
||||
<a-dropdown :disabled="!hasSelected">
|
||||
<a-menu slot="overlay" @click="handleMenuClick">
|
||||
<a-menu-item key="on"> 批量上架 </a-menu-item>
|
||||
<a-menu-item key="off"> 批量下架 </a-menu-item>
|
||||
</a-menu>
|
||||
<a-button> 批量操作 <a-icon type="down" /> </a-button>
|
||||
</a-dropdown>
|
||||
<span style="margin-left: 8px">
|
||||
<template v-if="hasSelected">
|
||||
{{ `已选择 ${selectedRowKeys.length} 条` }}
|
||||
</template>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { columns, pagination, formItem } from "./depend/config.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
status: undefined
|
||||
},
|
||||
drawer: {
|
||||
show: false,
|
||||
},
|
||||
searchForm: {
|
||||
|
||||
},
|
||||
typeData: [],
|
||||
casVal: [],
|
||||
columns,
|
||||
goodsId:null,
|
||||
pagination,
|
||||
formItem,
|
||||
tableData: [],
|
||||
selectedRowKeys: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getApi() {
|
||||
|
||||
},
|
||||
getData() {
|
||||
|
||||
},
|
||||
reset() {
|
||||
this.getData()
|
||||
},
|
||||
selectionChoosed(data) {
|
||||
this.selectedRowKeys = data;
|
||||
},
|
||||
handleTableChange(pagination) {
|
||||
const pager = { ...this.pagination };
|
||||
pager.current = pagination.current;
|
||||
pager.pageSize = pagination.pageSize;
|
||||
this.pagination = pager;
|
||||
this.selectedRowKeys = [];
|
||||
this.getData();
|
||||
},
|
||||
edit(id) {
|
||||
this.goodsId = id;
|
||||
this.drawer.show = true;
|
||||
},
|
||||
onSell(ids) {
|
||||
this.$confirm({
|
||||
title: "是否上架",
|
||||
icon: "caret-up",
|
||||
onOk: async () => {
|
||||
let res = await onShelf({ ids: ids });
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
offSell(ids) {
|
||||
this.$confirm({
|
||||
title: "是否下架",
|
||||
icon: "caret-down",
|
||||
onOk: async () => {
|
||||
let res = await offShelf({ ids: ids });
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
handleMenuClick(data) {
|
||||
if (data.key === "on") {
|
||||
this.onSell(this.selectedRowKeys);
|
||||
} else if (data.key === "off") {
|
||||
this.offSell(this.selectedRowKeys);
|
||||
}
|
||||
},
|
||||
addClose() {
|
||||
this.drawer.show = false;
|
||||
this.goodsId = null;
|
||||
},
|
||||
success() {
|
||||
this.getData();
|
||||
},
|
||||
//改变积分兑换
|
||||
changePoingGood(val) {
|
||||
isEnableRedeem({appGoodsPushId: val.id}).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
typeChange(value) {
|
||||
this.searchForm.categoryFirstId = value[0];
|
||||
this.searchForm.categorySecondId = value[1];
|
||||
this.searchForm.categoryThirdId = value[2];
|
||||
},
|
||||
//前往添加商品
|
||||
goAdd() {
|
||||
this.$router.push({name:'AddType'});
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
hasSelected() {
|
||||
return this.selectedRowKeys.length > 0;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.table-img {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,134 @@
|
||||
<template>
|
||||
<a-layout>
|
||||
<a-layout-header style="background: #fff; padding: 0; height: 72px">
|
||||
<div class="h-d1">
|
||||
<img src="@/assets/images/logo.png" style="width: 24px;height: 24px;margin-left: 40px" />
|
||||
<span class="h-d1-img">小蜜蜂商城</span>
|
||||
<span class="h-d1-title">选择店铺</span>
|
||||
</div>
|
||||
<div class="h-d2">
|
||||
<a-icon class="h-d2-c" style="color: #e27473" type="logout" @click="logout"/>
|
||||
<a-icon class="h-d2-c" style="color: #b7b7b7" type="question-circle" />
|
||||
<a-icon class="h-d2-c" type="alert" />
|
||||
<a-icon class="h-d2-c" style="color: #979a96;margin-right: 7px;" type="user" />
|
||||
<span class="h-d2-s">{{getUserInfo.director}}</span>
|
||||
</div>
|
||||
</a-layout-header>
|
||||
<a-layout-content>
|
||||
<div class="shop-box">
|
||||
<div class="shop-box-title">
|
||||
<h3>所有店铺</h3>
|
||||
<a-button @click="createShop" type="primary">创建店铺</a-button>
|
||||
</div>
|
||||
<div style="padding: 32px">
|
||||
<a-input style="width: 308px" placeholder="店铺名称"></a-input>
|
||||
</div>
|
||||
</div>
|
||||
</a-layout-content>
|
||||
<a-modal v-model="visible" :closable="false" :footer="null">
|
||||
<h3>欢迎体验小蜜蜂商城系统 ({{stage}}/2)</h3>
|
||||
<p style="color: #AAA;padding-bottom: 12px">请在使用前完成基本信息录入</p>
|
||||
<div v-if="stage == 1">
|
||||
<a-form-model layout="vertical">
|
||||
<a-form-model-item label="您的经营身份是?">
|
||||
<a-select v-model="form.type" style="width: 80%">
|
||||
<a-select-option :value="1">个体户</a-select-option>
|
||||
<a-select-option :value="2">企业</a-select-option>
|
||||
<a-select-option :value="3">个人</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="您公司的名称是?">
|
||||
<a-input style="width: 80%"></a-input>
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
<a-button @click="stage = 2" type="primary" ghost style="margin-top: 90px">下一步</a-button>
|
||||
</div>
|
||||
<div v-if="stage == 2">
|
||||
<a-form-model layout="vertical">
|
||||
<a-form-model-item v-if="form.type == 1 || form.type == 2" label="经营类目">
|
||||
<a-select style="width: 80%"></a-select>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item v-if="form.type == 3" label="您的主营行业是?">
|
||||
<a-select style="width: 80%"></a-select>
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
<a-button @click="submit" type="primary" style="margin-top: 90px">提交</a-button>
|
||||
</div>
|
||||
</a-modal>
|
||||
</a-layout>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
stage: 1,
|
||||
form: {
|
||||
type: 2
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
logout() {
|
||||
|
||||
},
|
||||
createShop() {
|
||||
this.visible = true
|
||||
},
|
||||
submit() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.h-d1 {
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
.h-d1-img {
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
margin-left: 8px;
|
||||
}
|
||||
.h-d1-title {
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
margin-left: 49px;
|
||||
}
|
||||
}
|
||||
.h-d2 {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
.h-d2-c {
|
||||
display: inline-block;
|
||||
margin-left: 24px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
.h-d2-s {
|
||||
display: inline-block;
|
||||
margin-right: 24px;
|
||||
}
|
||||
}
|
||||
.shop-box {
|
||||
width: 1360px;
|
||||
height: 723px;
|
||||
background: #FFFFFF;
|
||||
margin: 36px 0px 0px 220px;
|
||||
.shop-box-title {
|
||||
padding: 24px 32px 0px 32px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue