master
张雄 2 years ago
commit f3a12741ac

@ -0,0 +1,3 @@
NODE_ENV = 'development'
VUE_APP_URL = 'http://121.41.26.225:8002/admin'
VUE_APP_STATIC = 'https://saas.kaidalai.cn/resource/admin'

@ -0,0 +1,3 @@
NODE_ENV = 'production'
VUE_APP_URL = 'https://saas.kaidalai.cn/api/admin'
VUE_APP_STATIC = 'https://saas.kaidalai.cn/resource'

@ -0,0 +1,23 @@
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:vue/essential",
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"vue"
],
"rules": {
'no-console': 'off',
}
};

24
.gitignore vendored

@ -0,0 +1,24 @@
.DS_Store
node_modules
/dist
yarn.lock
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

@ -0,0 +1,2 @@
未开发功能:缴费计划、账单管理(暂无接口,暂无图),工单管理(暂无接口)
bug详见3.12问题单

@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}

25819
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,52 @@
{
"name": "little-bee-saas",
"version": "0.1.0",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"ant-design-vue": "^1.7.8",
"axios": "^0.24.0",
"core-js": "^3.6.5",
"echarts": "^5.3.2",
"less": "^4.1.2",
"less-loader": "5.0.0",
"momen": "^0.0.1-security",
"nprogress": "^0.2.0",
"qrcodejs2": "^0.0.2",
"vue": "^2.6.11",
"vue-router": "^3.5.3",
"vuescroll": "^4.17.3",
"vuex": "^3.6.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>智慧小区后台管理系统</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

@ -0,0 +1,59 @@
<!--
* @Author: your name
* @Date: 2021-11-18 17:15:53
* @LastEditTime: 2021-11-26 12:10:54
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/App.vue
-->
<template>
<a-config-provider :locale="locale">
<div id="app">
<router-view v-if="isRouterAlive"></router-view>
<alarmModal></alarmModal>
</div>
</a-config-provider>
</template>
<script>
import zhCN from "ant-design-vue/lib/locale-provider/zh_CN";
export default {
name: 'App',
provide () {
return {
reload: this.reload
}
},
data() {
return {
locale: zhCN,
isRouterAlive: true
};
},
methods: {
reload () {
this.isRouterAlive = false
this.$nextTick(() => {
this.isRouterAlive = true
})
}
}
}
</script>
<style>
html,
body {
width: 100%;
height: 100%;
font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;
font-size: 62.5%;
}
#app {
width: 100%;
height: 100%;
min-width: 1500px;
min-height: 760px;
overflow: auto;
}
</style>

@ -0,0 +1,180 @@
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,
})
}

@ -0,0 +1,91 @@
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,
})
}

@ -0,0 +1,182 @@
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,
})
}

@ -0,0 +1,46 @@
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,
})
}

@ -0,0 +1,97 @@
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,
})
}

@ -0,0 +1,88 @@
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,
})
}

@ -0,0 +1,53 @@
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,
})
}

@ -0,0 +1,38 @@
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,
})
}

@ -0,0 +1,38 @@
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,
})
}

@ -0,0 +1,55 @@
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,
})
}

@ -0,0 +1,84 @@
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,
})
}

@ -0,0 +1,57 @@
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,
})
}

@ -0,0 +1,42 @@
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,
})
}

@ -0,0 +1,112 @@
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,
})
}

@ -0,0 +1,59 @@
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,
})
}

@ -0,0 +1,39 @@
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,
})
}

@ -0,0 +1,54 @@
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,
})
}

@ -0,0 +1,45 @@
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,
})
}

@ -0,0 +1,31 @@
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,
})
}

@ -0,0 +1,46 @@
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,
})
}

@ -0,0 +1,73 @@
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,
})
}

@ -0,0 +1,100 @@
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,
})
}

@ -0,0 +1,35 @@
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,
})
}

@ -0,0 +1,58 @@
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,
})
}

@ -0,0 +1,82 @@
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,
})
}

@ -0,0 +1,46 @@
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,
})
}

@ -0,0 +1,24 @@
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,
})
}

@ -0,0 +1,38 @@
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,
})
}

@ -0,0 +1,100 @@
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,
})
}

@ -0,0 +1,24 @@
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,43 @@
import httpService from "@/request"
// 发送验证码
export function sendTelCode(params) {
return httpService({
url: `/sendTelCode`,
method: 'post',
data: params,
})
}
// 登录
export function loginTel(params) {
return httpService({
url: `/loginTelCode`,
method: 'post',
data: params,
})
}
// 密码登录
export function loginPWD(params) {
return httpService({
url: `/loginPWD`,
method: 'post',
data: params,
})
}
// 退出登录
export function quit(params) {
return httpService({
url: `/user/quit`,
method: 'post',
data: params,
})
}
// 获取用户信息
export function userInfo(params) {
return httpService({
url: `/user/manageUser/userInfo`,
method: 'get',
params
})
}

@ -0,0 +1,32 @@
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,
})
}

@ -0,0 +1,46 @@
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,
})
}

@ -0,0 +1,120 @@
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,
})
}

@ -0,0 +1,36 @@
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,
})
}

@ -0,0 +1,18 @@
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,
})
}

@ -0,0 +1,32 @@
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,
})
}

@ -0,0 +1,32 @@
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,
})
}

@ -0,0 +1,32 @@
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,
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

@ -0,0 +1,126 @@
<template>
<a-modal :visible="visible" title="警报">
<div class="warning-area">
<a-descriptions :column="1">
<a-descriptions-item label="报警类型">{{alarmData.type}}</a-descriptions-item>
<a-descriptions-item label="报警号">{{alarmData.alarmNo}}</a-descriptions-item>
<a-descriptions-item label="报警人手机号">{{alarmData.deviceNo}}</a-descriptions-item>
<a-descriptions-item label="报警人名称">{{alarmData.deviceName}}</a-descriptions-item>
<a-descriptions-item label="报警时间">{{alarmData.time}}</a-descriptions-item>
<a-descriptions-item label="报警内容">{{alarmData.alarmContent}}</a-descriptions-item>
</a-descriptions>
</div>
<a-checkbox v-model="alarmCheck" @change="checkChange"></a-checkbox>
<template slot="footer">
<a-button type="danger" @click="confirm" :disabled="confirmDisabled">确定</a-button>
</template>
</a-modal>
</template>
<script>
import store from "@/store";
export default {
data() {
return {
//
visible: false,
alarmCheck: false,
confirmDisabled: true,
//
websock: null,
infoText: '',
showInfo: false,
lockReconnect: false,
alarmBox: [],
alarmBG: ['', 'bgCC6966', 'bg969696', 'bgCC6966 ', 'bg969696', 'bgCC6966', 'bgCC6966', 'bgCC6966'],
alarmTime: 0,
timer: null, //
myAudio: null, //
alarmType: ['', '超限报警', '超限预警', '断电报警 ', '离线报警', '设备异常', '上线通知', '来电通知'],
time1: null, //
//
alarmData: {
model: '',
communityCode: '',
alarmType: undefined,
alarmNo: '',
deviceNo: '',
deviceName: '',
time: '',
alarmContent: ''
}
}
},
mounted() {
this.initWebSocket()
},
methods: {
//
initWebSocket: function() {
let communityCode = store.getters.getCommunityCode;
let nickName = store.getters.getUserInfo.userName;
let userId = store.getters.getUserInfo.id;
let url = 'wss://saas.kaidalai.cn/websocket/manage/'+ communityCode +'/'+ nickName + '/' + userId;
this.websock = new WebSocket(url)
this.websock.onopen = this.websocketOnopen
this.websock.onerror = this.websocketOnerror
this.websock.onmessage = this.websocketOnmessage
this.websock.onclose = this.websocketOnclose
},
websocketOnopen: function () {
console.log('页面WebSocket连接成功')
//
// this.heartCheck.reset().start()
},
//
websocketOnerror: function (e) {
console.log('WebSocket连接发生错误', e)
this.reconnect()
},
//
websocketOnmessage: function (e) {
// console.log('----------');
// console.log(e.data)
let data = JSON.stringify(e.data);
this.alarmData = JSON.parse(data);
if(this.alarmData.alarmType) {
this.visible = true;
}
},
websocketOnclose: function (e) {
// console.log('connection closed (' + e.code + ')')
// this.reconnect()
},
//
reconnect() {
let context = this
if (context.lockReconnect) return
context.lockReconnect = true
//
clearTimeout(this.time1);
this.time1 = setTimeout(function () {
// console.info('...')
context.initWebSocket()
context.lockReconnect = false
}, 5000)
},
/////////
//
checkChange() {
if(this.alarmCheck == true) {
this.confirmDisabled = false;
} else {
this.confirmDisabled = true;
}
},
confirm() {
this.visible = false
}
}
}
</script>
<style lang="less">
</style>

@ -0,0 +1,45 @@
<template>
<a-cascader
:options="cityList"
placeholder="请选择"
:field-names="{
label: 'name',
value: 'id',
children: 'cityList',
}"
@change="change"
style="width: 60%"
></a-cascader>
</template>
<script>
import store from "@/store";
export default {
data(){
return{
cityList:[]
}
},
methods: {
change(data){
this.$emit('onchange',data)
}
},
mounted() {
if(store.getters.getCity.length===0){
this.$axios({
method:'get',
url:process.env.VUE_APP_URL+'manage/city/allCity',//apicommunityCode
}).then((response) =>{
this.cityList = response.data.data
this.setCity(response.data.data);
}).catch((error) =>{
console.log(error) //
})
}
}
};
</script>
<style>
</style>

@ -0,0 +1,36 @@
<template>
<div>
<a-drawer
title="抽屉"
:width="720"
:visible="visible"
:body-style="{ paddingBottom: '80px' }"
@close="onClose"
>
<div class="drawer-content"></div>
<div class="drawer-footer">
<a-button :style="{ marginRight: '8px' }" @click="onClose">
关闭
</a-button>
<a-button type="primary" @click="onClose"> </a-button>
</div>
</a-drawer>
</div>
</template>
<script>
export default {
data() {
return {
visible: false,
};
},
methods: {
showDrawer() {
this.visible = true;
},
onClose() {
this.visible = false;
},
},
};
</script>

@ -0,0 +1,13 @@
<template>
</template>
<script>
export default {
}
</script>
<style>
</style>

@ -0,0 +1,110 @@
<template>
<div class="form-box">
<a-form-model ref="ruleForm" :model="form" layout='inline' v-if="itemList.length > 0">
<a-form-model-item
v-for="item in itemList"
:key="item.prop"
:label="item.label"
:prop="item.prop"
style="margin-left:32px"
>
<a-input v-if="item.type === 'input'" v-model="form[item.prop]" :placeholder="item.placeholder" />
<a-select
v-model="form[item.prop]"
v-else-if="item.type === 'select'"
:placeholder="item.placeholder"
>
<a-select-option
v-for="option in item.option"
:key="option.id"
:value="option.id"
>{{ option.name }}</a-select-option
>
</a-select>
<a-range-picker v-else-if="item.type === 'time'" v-model="form[item.prop]" value-format="YYYY/MM/DD HH:mm:ss" @change="changeTime($event,item.start,item.end)" />
</a-form-model-item>
</a-form-model>
<div class="btn-box"><a-button type="primary" @click="getSearch"> </a-button>
<a-button style="margin-left: 10px" @click="resetForm"> </a-button></div>
</div>
</template>
<script>
export default {
props: {
formItem:{
type:Array,
}
},
watch: {
formItem: {
handler(val){
this.itemList = val
let obj = {}
for(let k of val){
if(k.type==='time'){
obj[k.start] = undefined
obj[k.end] = undefined
}else{
obj[k.prop] = undefined;
}
}
this.form = obj;
},
immediate: true
},
},
data() {
return {
itemList: [],
form: {},
};
},
methods: {
getSearch() {
let obj = {}
for(let k in this.form){
if (!Array.isArray(this.form[k])) {
obj[k] = this.form[k]
}else{
console.log(k);
let start = k + 'StartTime'
let end = k + 'EndTime'
obj[start] = this.form[k][0]
obj[end] = this.form[k][1]
}
}
let obj1 = Object.assign({}, obj)
console.log(obj1);
this.$emit('getSearch', obj1)
},
resetForm() {
this.$refs.ruleForm.resetFields();
this.getSearch()
},
changeTime(data,start,end){
this.$emit('changeTime', data,start,end)
this.form[start] = data[0]
this.form[end] = data[1]
}
},
};
</script>
<style lang="less" scoped>
.form-box {
text-align: left;
background: #f9f9f9;
padding-top: 25px;
padding-bottom: 1px;
}
.btn-box{
margin:10px 0 15px 100px;
}
/deep/.ant-input{
min-width: 150px;
}
/deep/.ant-select{
min-width: 150px;
}
</style>

@ -0,0 +1,125 @@
<template>
<div class="main">
<div style="margin-bottom: 16px">
<!-- 批量操作 -->
<a-select
type="primary"
v-model="activeAction"
:disabled="!hasSelected"
:loading="loading"
style="width: 120px"
@change="Actions"
placeholder="请选择操作"
v-if="ActionsList.length!=0"
>
批量
<a-select-option v-for="item in ActionsList" :key="item.value">
{{ item.label }}
</a-select-option>
</a-select>
<span style="margin-left: 8px">
<template v-if="hasSelected">
{{ `已选择 ${selectedRowKeys.length}` }}
</template>
</span>
</div>
<!-- 表格 -->
<a-table
:columns="columns"
:data-source="tableData"
:pagination="pagination"
:scroll="{ x: 1400 }"
@change="handleTableChange"
:row-selection="{
selectedRowKeys: selectedRowKeys,
onChange: selectionChoosed,
}"
:row-key="
(record, index) => {
return record.id;
}
"
>
<!-- 外头传进来的操作栏信息data为表格循环出来的当前行数据信息 -->
<span slot="action" slot-scope="text, row">
<slot name="actionBox" :data="row"></slot>
</span>
<span slot="tags" slot-scope="tags">
<a-tag
v-for="tag,index in tags"
:key="index"
>
{{ formatter(tag) }}
</a-tag>
</span>
</a-table>
</div>
</template>
<script>
export default {
data() {
return {
//
pagination: {
showTotal: (total) => `${total}`,
showSizeChanger: true,
showQuickJumper: true,
},
activeAction:undefined,
/**
*
*
* customRender: function (gender) {
if (gender === 1) {
return "是";
} else {
return "否";
}
},
*/
loading: false,
// index
selectedRowKeys: [],
};
},
computed: {
// selection
hasSelected() {
return this.selectedRowKeys.length > 0;
},
},
//
props: {
columns: Array,
tableData: Array,
ActionsList: Array,
// activeAction:Number
},
methods: {
// selection
selectionChoosed(selectedRowKeys, data) {
this.selectedRowKeys = selectedRowKeys;
this.$emit("selectionChoosed", data);
},
//
handleTableChange(val) {
this.$emit("handleTableChange", val);
},
//
Actions(val) {
this.$emit("Actions", val);
this.activeAction = undefined
},
formatter(val){
this.$emit("formatter", val);
}
},
};
</script>
<style lang="less" scoped>
#commonTable {
margin: 24px;
}
</style>

@ -0,0 +1,30 @@
<template>
<div>
<a-modal :visible="previewVisible" :footer="null" @cancel="handleCancel">
<img alt="example" style="width: 100%" :src="previewImage" />
</a-modal>
</div>
</template>
<script>
export default {
props:{
previewVisible:{
type:Boolean,
default:false,
},
previewImage:{
type:String,
}
},
methods:{
handleCancel() {
this.$emit('handleCancel')
},
}
}
</script>
<style>
</style>

@ -0,0 +1,86 @@
<template>
<div>
<a-upload
:action="`${$upload}`"
accept=".jpg,.JPG,.png,.PNG,.jpeg,.JPEG"
list-type="picture-card"
:headers="uploadHeaders"
:file-list="fileList"
@preview="handlePreview"
@change="handleChange"
:beforeUpload="beforeUpload"
>
<div v-if="fileList.length < limit">
<a-icon type="plus" />
<div class="ant-upload-text">上传图片</div>
</div>
</a-upload>
<imgModal
:previewVisible="previewVisible"
:previewImage="previewImage"
@handleCancel="handleCancel"
/>
</div>
</template>
<script>
import imgModal from "./imgModal.vue";
function getBase64(file) {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = () => resolve(reader.result);
reader.onerror = (error) => reject(error);
});
}
import store from "@/store";
export default {
components: {
imgModal,
},
props: {
fileList: Array,
limit: {
type: Number,
default: 1,
},
},
data() {
return {
previewVisible: false,
previewImage: "",
uploadHeaders: {
"manage-login-token": store.getters.getToken,
},
};
},
//
methods: {
async handlePreview(file) {
if (!file.url && !file.preview) {
file.preview = await getBase64(file.originFileObj);
}
this.previewImage = file.url || file.preview;
this.previewVisible = true;
},
handleCancel() {
this.previewVisible = false;
},
handleChange({ fileList }) {
this.$emit("handleChange", fileList);
},
// 50mb
beforeUpload(f, l) {
const isLt50M = f.size / 1024 / 1024 < 50;
if (!isLt50M) {
this.$message.error(f.name + "文件大小超出限制,请修改后重新上传");
return false;
} else {
return true;
}
},
},
};
</script>
<style></style>

@ -0,0 +1,40 @@
import Vue from 'vue'
import App from './App.vue'
import './styles/index.less';
import mixins from "@/mixins"
import Antd from 'ant-design-vue';
// import {Cascader} from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// import moment from 'moment';
import util from '@/utils/util.js'
import 'ant-design-vue/dist/antd.css';
Vue.use(util);
Vue.use(Antd);
Vue.use(mixins);
// Vue.use(Cascader);
import store from "@/store";
import router from "@/permission";
// Vue.prototype.$moment = moment
const communityCode = store.getters.getCommunityCode;
Vue.prototype.$baseUrl = process.env.VUE_APP_URL + communityCode + '/manage'
Vue.config.productionTip = false
import commonTable from './components/table'
import commonUpload from './components/upload/index.vue'
import allCity from './components/allCity/index.vue'
import searchForm from './components/searchForm/index.vue'
import alarmModal from './components/alarmModal/index.vue'
// 注册组件
Vue.component('commonTable', commonTable)
Vue.component('commonUpload', commonUpload)
Vue.component('allCity', allCity)
Vue.component('searchForm', searchForm)
Vue.component('alarmModal', alarmModal)
new Vue({
render: h => h(App),
router,
store
}).$mount('#app')

@ -0,0 +1,22 @@
/*
* @Author: your name
* @Date: 2021-11-22 15:34:24
* @LastEditTime: 2021-11-22 15:48:02
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/mixins/index.js
*/
import { mapGetters, mapActions } from "vuex";
export default {
install(Vue) {
Vue.mixin({
computed: {
...mapGetters(['getToken','getCommunityCode','getSelectedKeys', 'getOpenKeys','getCity','getUserInfo'])
},
methods: {
...mapActions(['setToken','setCommunityCode','setSelectedKeys', 'setOpenKeys','setCity','setUserInfo'])
}
})
}
}

@ -0,0 +1,23 @@
import NProgress from "nprogress"
import "nprogress/nprogress.css"
import router from "@/router"
import store from '@/store'
const whitePath = [ '/login','/rule','/yszc','/fromPlatform']
// 判断登录
router.beforeEach((to, from, next) => {
NProgress.start()
const token = store.getters.getToken;
if(!token && !whitePath.includes(to.path)) {
next('/login');
} else {
next();
NProgress.done()
}
})
router.afterEach(() => {
NProgress.done()
})
export default router

@ -0,0 +1,93 @@
/*
* @Author: your name
* @Date: 2021-10-13 09:28:02
* @LastEditTime: 2022-01-05 13:44:32
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/request/index.js
*/
import axios from 'axios';
// import qs from 'qs';
import router from "@/permission"
import { message} from 'ant-design-vue'
import store from '@/store'
// import baseURL from "@/utils/baseURL"
function filterRequestData(obj) {
let o = {};
for(let key in obj) {
let b1 = obj[key] === 0;
let b2 = obj[key] === false;
if(obj[key] || b1 || b2) {
o[key] = obj[key]
}
}
return o;
}
//创建axios的实例
const httpService = axios.create({
baseURL: process.env.VUE_APP_URL ,// TODO:具体的配置可以根据项目情况而来
timeout: 5000
})
//axios的拦截--request
httpService.interceptors.request.use(config => {
const rqParams = filterRequestData(config.params);
const rqData = filterRequestData(config.data);
// post 'Content-Type' === 'application/x-www-form-urlencoded'
config.headers['Content-Type'] = "application/json";
config.headers['manage-login-token'] = store.getters.getToken;
// config.headers['device-type'] = "web";
config.baseURL = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage'
if(config.method === 'post') {
config.data = rqData;
} else {
config.data = rqData;
config.params = rqParams;
}
return config;
},err => {
Promise.reject(err);// 请求错误处理
})
//4、axios的拦截--response
httpService.interceptors.response.use(response => {
// TODO:具体的code对应的处理可继续添加修改
// let data = null;
let msg = '';
let res = response.data;
// console.log(response);
if(res.code === 200){
// code = 200;
// data = res.data;
// msg = res.msg || "";
// console.log(msg);
// console.log(data);
return res;
} else if(res.code == 10010) {
router.replace({
path: '/login'
});
} else {
msg = res.msg || "";
message.error(msg);
return Promise.reject(new Error(msg))
}
},err => {
console.log(err)
// TODO:具体的code对应的处理可继续添加修改
if(err.response.code === 301){
//登录过期跳转登录页面并将要浏览的页面fullPath传过去登录成功后跳转需要访问的页面 ---主页(index) 或者 退出到登录前的浏览的页面
//这样登录页面登录接口成功之后可以进行跳转 主页(index) 或者 退出到登录前的页面: let path = this.$route.query.redirect || '/index.js'; this.$router.push(path);
setTimeout(() => {
router.replace({
path: '/login',
query: {
redirect: router.currentRoute.fullPath
}
});
}, 1000);
}
return Promise.reject(err);
})
export default httpService

@ -0,0 +1,148 @@
export default [
// {
// path: '/Console',
// name: "Console",
// title: "控制台",
// hide: false,
// icon: 'container',
// component: resolve => require(['@/views/Basic/Console'], resolve),
// meta: {title: '控制台'}
// },
{
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: '排班计划'},
// },
// ]
// }
]

@ -0,0 +1,116 @@
/*
* @Author: your name
* @Date: 2021-11-18 17:30:38
* @LastEditTime: 2021-11-26 16:15:14
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/router/index.js
*/
import Vue from 'vue'
import Router from "vue-router"
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.use(Router);
// 枚举文件
// const files = require.context('./', true, /\.js/)
// let configRouters = []
// console.log(files.keys());
// files.keys().forEach((key, index) => {
// console.log(files(key).default,files);
// })
import Layout from "@/views/Layout"
import basic from "./basic" // 基础功能
import payment from "./payment" // 缴费管理
import shop from "./shop" // 智慧商城
import operation from "./operation" // 运营管理
import setting from "./setting" // 设置
const router = [
{
path: "/",
name: "basic",
title: "基础",
component: Layout,
redirect: '/Employee',
meta: {title: '首页'},
children: [
...basic,
]
},
{
path: "/shop",
name: "shop",
title: "智慧商城",
component: Layout,
redirect: '/GoodsManage/GoodsList',
meta: {title: '智慧商城'},
children: [
...shop,
]
},
{
path: "/payment",
name: "payment",
title: "缴费管理",
component: Layout,
redirect: '/ChargeStandardManage',
meta: {title: '缴费管理'},
children: [
...payment,
]
},
{
path: "/operation",
name: "operation",
title: "运营管理",
component: Layout,
redirect: '/clientSet',
meta: {title: '运营管理'},
children: [
...operation,
]
},
{
path: "/setting",
name: "setting",
title: "设置",
component: Layout,
redirect: '/basicSet',
meta: {title: '设置'},
children: [
...setting,
]
},
{
path: "/rule",
name: "Rule",
title: "用户协议",
component: resolve => require(['@/views/Rule'], resolve)
},
{
path: "/yszc",
name: "yszc",
title: "隐私政策",
component: resolve => require(['@/views/Yszc'], resolve)
},
{
path: "/fromPlatform",
name: "fromPlatform",
title: "跳转登录",
component: resolve => require(['@/views/FromPlatform'], resolve)
},
{
path: "/login",
name: "Login",
title: "登录",
component: resolve => require(['@/views/Login'], resolve)
}
]
export default new Router({
routes: router
})

@ -0,0 +1,306 @@
/*
* @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: '投票管理'},
},
]

@ -0,0 +1,106 @@
/*
* @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: '账单通知'},
},
]
},
]

@ -0,0 +1,11 @@
export default [
{
path: '/basicSet',
name: "basicSet",
title: "基础设置",
hide: false,
icon: 'container',
component: resolve => require(['@/views/Set/basicSet'], resolve),
meta: {title: '基础设置'}
},
]

@ -0,0 +1,124 @@
/*
* @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,30 @@
/*
* @Author: your name
* @Date: 2021-11-18 17:22:21
* @LastEditTime: 2021-11-22 15:45:24
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/store/actions.js
*/
const actions = {
setToken: ({commit}, log) => {
commit('setToken', log)
},
setCommunityCode: ({commit}, log) => {
commit('setCommunityCode', log)
},
setSelectedKeys: ({commit}, log) => {
commit('setSelectedKeys', log)
},
setOpenKeys: ({commit}, log) => {
commit('setOpenKeys', log)
},
setCity: ({commit}, log) => {
commit('setCity', log)
},
setUserInfo: ({commit}, log) => {
commit('setUserInfo', log)
},
}
export default actions

@ -0,0 +1,30 @@
/*
* @Author: your name
* @Date: 2021-11-18 17:23:13
* @LastEditTime: 2021-11-22 15:46:49
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/store/getters.js
*/
const getters = {
getSelectedKeys(state) {
return state.selectedKeys
},
getOpenKeys(state) {
return state.openKeys
},
getToken(state) {
return state.token
},
getCommunityCode(state) {
return state.communityCode
},
getCity(state) {
return state.cityList
},
getUserInfo(state) {
return state.userInfo
}
}
export default getters

@ -0,0 +1,23 @@
/*
* @Author: your name
* @Date: 2021-10-12 13:43:03
* @LastEditTime: 2021-10-12 13:48:24
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/store/index.js
*/
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
import actions from "./actions";
import mutations from "./mutations";
import getters from "./getters";
import state from "./state";
const store = new Vuex.Store({
state,
actions,
mutations,
getters
})
export default store

@ -0,0 +1,38 @@
/*
* @Author: your name
* @Date: 2021-11-18 17:21:16
* @LastEditTime: 2021-11-22 15:45:53
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/store/mutations.js
*/
const mutations = {
setSelectedKeys: (state, log) => {
state.selectedKeys = log;
let str = JSON.stringify(log);
sessionStorage.setItem('selectedKeys', str);
},
setOpenKeys: (state, log) => {
state.openKeys = log;
let str = JSON.stringify(log);
sessionStorage.setItem('openKeys', str);
},
setToken: (state, log) => {
state.token = log;
sessionStorage.setItem('token', log);
},
setCommunityCode: (state, log) => {
state.communityCode = log;
sessionStorage.setItem('communityCode', log);
},
setCity (state, data) { // 设置参数
state.cityList = data
},
setUserInfo (state, log) {
state.userInfo = log
let str = JSON.stringify(log);
sessionStorage.setItem('userInfo', str);
}
}
export default mutations

@ -0,0 +1,17 @@
/*
* @Author: your name
* @Date: 2021-11-18 17:21:01
* @LastEditTime: 2021-11-22 15:44:58
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/store/state.js
*/
const state = {
selectedKeys: JSON.parse(sessionStorage.getItem('selectedKeys')) || ['/'],
openKeys: JSON.parse(sessionStorage.getItem('openKeys')) || [],
token: sessionStorage.getItem('token') || "",
communityCode: sessionStorage.getItem('communityCode') || "",
cityList:[],
userInfo: JSON.parse(sessionStorage.getItem('userInfo')) || {},
}
export default state

@ -0,0 +1,74 @@
.ant-layout {
width: 100% !important;
min-height: 100% !important;
}
.ant-layout-sider-children {
background-color: #2a334f;
}
.ant-layout-header {
display: flex !important;
justify-content: space-between !important;
line-height: 1 !important;
}
.ant-menu {
background: #2a334f !important;
}
.ant-menu-inline {
border-right: 1px solid transparent !important;
}
.ant-menu-inline-collapsed {
border-right: 1px solid transparent !important;
}
.ant-menu-inline > .ant-menu-item {
color: #fff;
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
color: #1990fe;
}
.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
color: #fff;
}
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::before {
background-image: linear-gradient(to right, rgba(247, 249, 251, 1), rgba(247, 249, 251, 1)) !important;
}
.ant-menu-submenu-inline > .ant-menu-submenu-title .ant-menu-submenu-arrow::after {
background-image: linear-gradient(to right, rgba(247, 249, 251, 1), rgba(247, 249, 251, 1)) !important;
}
.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
color: #fff !important;
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected .anticon {
color: #1990fe !important;
}
.ant-menu-inline-collapsed > .ant-menu-item {
color: #fff !important;
}
.ant-menu-inline-collapsed > .ant-menu-item .anticon {
color: #fff !important;
}
.ant-menu-inline-collapsed > .ant-menu-submenu-selected {
color: #1990fe !important;
}
.ant-menu-vertical > .ant-menu-item {
color: #fff !important;
}
.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
color: #1990fe !important;
}
.ant-menu-inline-collapsed .ant-menu-submenu-selected .ant-menu-submenu-title{
color: #1990fe !important;
}
.ant-collapse-content > .ant-collapse-content-box {
padding: 0px !important;
}
.ant-card {
padding: 8px 2.5px 8px 32px !important;
}
.ant-card-head {
font-weight: 400 !important;
font-size: 16px !important;
line-height: 22px !important;
}

@ -0,0 +1,77 @@
@import "./antd.less";
// 公共样式
#app {
background: #E5E5E5;
}
.content {
padding: 13px;
}
.main {
padding : 13px;
background: #fff;
}
.cardTitle {
border-left : 8px solid #205FBD;
padding-left : 10px;
margin-left : 10px;
margin-bottom: 10px;
}
.back-btn{
font-size: 16px;
line-height: 22px;
color: #000000D9;
font-weight: 500;
cursor: pointer;
}
// 表格
#commonTable {
margin: 24px;
}
.action {
margin-top: -50px;
}
.search-box {
margin: 20px;
}
.add-btn{
background-color: #1890FF !important;
color: rgba(255, 255, 255, 1) !important;
}
.footer {
height : 84px;
width : 100%;
background : #fff;
position : fixed;
bottom : 0;
z-index : 999;
line-height : 84px;
box-shadow : 0px -2px 4px 0px rgba(0, 0, 0, 0.35);
border-radius: 4px 4px 0px 0px;
border : 1px solid #e8e8e8;
left : 200px;
}
// 抽屉
.drawer-content {
text-align: left;
}
.drawer-footer {
position : absolute;
right : 0;
bottom : 0;
width : 100%;
border-top: 1px solid #e9e9e9;
padding : 10px 16px;
background: #fff;
text-align: right;
z-index : 1;
}
.ant-modal-content{
margin-top:100px;
}

@ -0,0 +1,49 @@
/*
* @Author: your name
* @Date: 2021-10-16 09:48:35
* @LastEditTime: 2021-11-02 17:07:15
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/utils/gol/ops.js
*/
export default function createOps(scrollingX = true, scrollingY = true) {
return {
vuescroll: {
mode: "native", //模式:pc natice 移动端是slice
sizeStrategy: "percent", //父元素是否是固定的是就percent 不是就是number 填一个数值
detectResize: true, //内容是否根据页面调整
},
scrollPanel: {
initialScrollY: false, //初始化距离顶部的位置
initialScrollX: false, //初始化距离左侧的位置
scrollingX: scrollingX, // 是否开启横向滚动
scrollingY: scrollingY, //是否开启竖向滚动
speed: 300, //多长时间内完成一次滚动。 数值越小滚动的速度越快。
easing: 'easeInQuad', //默认动画
verticalNativeBarPos: "right",
maxHeight: undefined, //这是滚动条最大高度,内容高度小于 maxHeight 时高度自适应,超出的话出现滚动条。
maxWidth: undefined, //这是滚动条最大宽度,内容宽度小于 maxWidth 时高度自适应,超出的话出现滚动条。
},
rail: {
background: "#000000", //轨道的背景色。
opacity: 0, //轨道的透明度。 0是透明1是不透明
size: "6px", //轨道的尺寸。
specifyBorderRadius: false, //是否指定轨道的 borderRadius 如果不那么将会自动设置。
gutterOfEnds: null,
gutterOfSide: "0px", //距离容器的距离
keepShow: false, //是否即使 bar 不存在的情况下也保持显示。
},
bar: {
showDelay: 500, //在鼠标离开容器后多长时间隐藏滚动条。
onlyShowBarOnScroll: true, //是否只在滚动时显示 bar。
keepShow: false, //滚动条是否保持显示。
background: "#bebfbe", //滚动条背景色。
opacity: 1, //滚动条透明度。
hoverStyle: false,
specifyBorderRadius: false, //是否指定滚动条的 borderRadius 如果不那么和轨道的保持一致。
minSize: false, //为 bar 设置一个最小尺寸, 从 0 到 1. 如 0.3, 代表 30%.
size: "6px", //bar 的尺寸。
disable: false, //是否禁用滚动条。
},
}
}

@ -0,0 +1,47 @@
import store from '@/store'
import axios from 'axios'
import qs from 'qs'
export default {
install: function (Vue) {
//axios
Vue.prototype.$axios = axios
Vue.prototype.qs = qs
// 上传
Vue.prototype.$upload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/upload/uploadImg'
// 上传员工/房屋/住户/单元/楼栋EXCEL
Vue.prototype.$excelUpload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/importExcel/importManageUserExcel'
Vue.prototype.$houseUpload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/importExcel/importEstateExcel'
Vue.prototype.$residentUpload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/importExcel/importResidentExcel'
Vue.prototype.$unitUpload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/importExcel/importUnitExcel'
Vue.prototype.$buildingUpload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/importExcel/importBuildingExcel'
// 静态地址
Vue.prototype.$ImgUrl = (src) => {
return process.env.VUE_APP_STATIC + store.getters.getCommunityCode + '/' + src
}
// 时间格式化
Vue.prototype.formatDate = (time, fmt) => {
if (time > 0) {
let date = new Date(time * 1000)
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
}
let o = {
'M+': date.getMonth() + 1,
'd+': date.getDate(),
'h+': date.getHours(),
'm+': date.getMinutes(),
's+': date.getSeconds()
}
for (let k in o) {
if (new RegExp(`(${k})`).test(fmt)) {
let str = o[k] + ''
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : ('00' + str).substr(str.length))
}
}
return fmt
} else {
return ''
}
}
}
}

@ -0,0 +1,13 @@
<template>
<div></div>
</template>
<script>
export default {
}
</script>
<style>
</style>

@ -0,0 +1,13 @@
<template>
<div>test</div>
</template>
<script>
export default {
}
</script>
<style>
</style>

@ -0,0 +1,13 @@
<template>
<div>test</div>
</template>
<script>
export default {
}
</script>
<style>
</style>

@ -0,0 +1,14 @@
<template>
<div>application</div>
</template>
<script>
export default {
name:'application'
}
</script>
<style>
</style>

@ -0,0 +1,21 @@
<!--
* @Author: your name
* @Date: 2021-11-22 15:56:04
* @LastEditTime: 2021-11-22 17:14:10
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/views/Waybill/index.vue
-->
<template>
<router-view></router-view>
</template>
<script>
export default {
name: "Attendance"
}
</script>
<style lang="less" scoped>
</style>

@ -0,0 +1,68 @@
<!--
* @Author: your name
* @Date: 2021-11-22 15:56:04
* @LastEditTime: 2021-11-22 17:14:10
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/views/Waybill/index.vue
-->
<template>
<div class="box">
<div class="left">
<a-list :grid="{ gutter: 4, column: 1 }" :data-source="data" >
<a-list-item slot="renderItem" slot-scope="item," style="height:100px" >
<a-card :title="item.title" >
负责管理各部门的业务安排
</a-card>
</a-list-item>
</a-list>
</div>
<div class="right">
</div>
</div>
</template>
<script>
const data = [
{
title: "管理员",
},
{
title: "部门经理",
},
{
title: "保安",
},
{
title: "保洁员",
},
{
title: "会计",
},
{
title: "出纳员",
},
];
export default {
data() {
return {
data,
};
},
};
</script>
<style lang="less" scoped>
.box {
display: flex;
.left {
width: 25%;
height: 650px;
border-right: 3px solid rgb(175, 174, 174);
}
.right {
width: 100%;
margin-left: 10px;
}
}
</style>

@ -0,0 +1,23 @@
<!--
* @Author: your name
* @Date: 2021-11-22 15:56:04
* @LastEditTime: 2021-11-22 17:14:10
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/views/Waybill/index.vue
-->
<template>
<div>
4rf4444
</div>
</template>
<script>
export default {
}
</script>
<style lang="less" scoped>
</style>

@ -0,0 +1,55 @@
/**
* 配置
* 表格列
*/
export const columns = [
{
title: "真实姓名",
dataIndex: "actualName",
width: "20%",
},
{
title: "手机号",
dataIndex: "tel",
width: "20%",
},
{
title: "角色",
dataIndex: "roleNameList",
width: "20%",
customRender: function (roleNameList) {
let arr = []
for (let item of roleNameList) {
arr.push(item.name)
}
return arr.toString()
},
},
{
title: "备注",
dataIndex: "remake",
width: "20%",
},
{
title: "操作",
dataIndex: "action",
key: "action",
width: "180",
fixed: "right",
scopedSlots: { customRender: "action" },
},
]
// 搜索项
export const searchForm = {
roleId: null,
keyword: '',
}
// 分页
export const pagination = {
current: 1,
total: 0,
pageSize: 10,
showTotal: (total) => `${total}`,
showSizeChanger: true,
showQuickJumper: true,
}

@ -0,0 +1,147 @@
<template>
<div>
<a-modal :title="title" :visible="show" @ok="addSubmit" @cancel="addClose">
<div>
<a-form-model
layout="vertical"
ref="ruleForm"
:model="form"
:rules="rules"
>
<a-form-model-item label="角色名称" prop="name">
<a-input v-model="form.name" placeholder="请输入角色名称" />
</a-form-model-item>
<a-form-model-item label="上级角色" prop="parentId">
<a-select v-model="form.parentId" placeholder="请选择" >
<a-select-option :key="0" :value="0">无上级</a-select-option>
<a-select-option v-for="item in rolelist" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item label="权限等级" prop="authorityLevel">
<a-input v-model.number="form.authorityLevel" placeholder="请选择" />
</a-form-model-item>
<a-form-model-item label="备注" prop="remakes">
<a-textarea v-model="form.remakes" placeholder="请输入" />
</a-form-model-item>
</a-form-model>
</div>
</a-modal>
</div>
</template>
<script>
import { roleInsert, roleUpdate } from "@/api/basic/role";
export default {
props: {
show: Boolean,
title: String,
id: Number,
list:Array,
upper: Number
},
data() {
return {
rules:{
name: [{ required: true, message: '请输入', trigger: 'blur' }],
parentId: [{ required: true, message: '请选择', trigger: 'change' }],
authorityLevel: [{ required: true, message: '请输入', trigger: 'blur' }],
remakes: [{ required: true, message: '请输入', trigger: 'blur' }],
},
form:{
id: undefined,
name: '',
parentId: undefined,
authorityLevel: '',
remakes: '',
},
rolelist:[],
editInfo:null
};
},
methods: {
addSubmit() {
if(this.form.id === undefined){
this.$refs.ruleForm.validate(async valid => {
if (valid) {
const res = await roleInsert(this.form)
if(res.code === 200){
this.$message.success(res.msg)
this.addClose()
this.success()
}else{
this.$message.error(res.msg)
}
}
});
}else{
this.$refs.ruleForm.validate(async valid => {
if (valid) {
const res = await roleUpdate(this.form)
if(res.code === 200){
this.$message.success(res.msg)
this.addClose()
this.success()
}else{
this.$message.error(res.msg)
}
}
});
};
},
findId(list,id){
list.forEach(item => {
if(item.id === id){
this.editInfo = item
}else if(item.childrenList !== null && item.childrenList ){
this.findId(item.childrenList,id)
}else{
return
}
})
},
success(){
this.$emit('success')
},
addClose() {
this.$emit("close");
this.$refs.ruleForm.resetFields();
this.form.id = undefined;
},
},
watch: {
list:{
handler(val){
this.rolelist = []
this.rolelist = val
},
deep:true
},
id:{
handler(val){
if(val){
this.form.id = val
this.findId(this.rolelist,val)
// console.log(this.editInfo);
this.form.name = this.editInfo.name
this.form.parentId = this.editInfo.parentId
this.form.authorityLevel = this.editInfo.authorityLevel
this.form.remakes = this.editInfo.remakes
}else if( val === undefined ){
this.form.id = undefined
}
},
},
upper: {
handler(val) {
if(val) {
this.form.parentId = val
}
}
}
}
};
</script>
<style>
</style>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save