parent
4a45b396f2
commit
1f4f15d0a7
@ -0,0 +1,24 @@
|
|||||||
|
module.exports = {
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"es6": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:vue/essential",
|
||||||
|
],
|
||||||
|
"globals": {
|
||||||
|
"Atomics": "readonly",
|
||||||
|
"SharedArrayBuffer": "readonly"
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 2018,
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"vue"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
indent: ['error', 'tab'],
|
||||||
|
'no-console': 'off',
|
||||||
|
}
|
||||||
|
};
|
@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [
|
presets: [
|
||||||
'@vue/cli-plugin-babel/preset'
|
'@vue/cli-plugin-babel/preset'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,138 +1,138 @@
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: '/Console',
|
path: '/Console',
|
||||||
name: "Console",
|
name: "Console",
|
||||||
title: "控制台",
|
title: "控制台",
|
||||||
hide: false,
|
hide: false,
|
||||||
icon: 'container',
|
icon: 'container',
|
||||||
component: resolve => require(['@/views/Basic/Console'], resolve),
|
component: resolve => require(['@/views/Basic/Console'], resolve),
|
||||||
meta: {title: '控制台'}
|
meta: {title: '控制台'}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/Employee',
|
path: '/Employee',
|
||||||
name: "Employee",
|
name: "Employee",
|
||||||
title: "员工管理",
|
title: "员工管理",
|
||||||
icon: 'team',
|
icon: 'team',
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/Employee'], resolve),
|
component: resolve => require(['@/views/Basic/Employee'], resolve),
|
||||||
meta: {title: '员工管理'}
|
meta: {title: '员工管理'}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/authority',
|
path: '/authority',
|
||||||
name: "Authority",
|
name: "Authority",
|
||||||
title: "权限管理",
|
title: "权限管理",
|
||||||
icon: 'appstore',
|
icon: 'appstore',
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/Authority'], resolve),
|
component: resolve => require(['@/views/Basic/Authority'], resolve),
|
||||||
meta: {title: '权限管理'},
|
meta: {title: '权限管理'},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/Authority/_details',
|
path: '/Authority/_details',
|
||||||
name: "Authority_details",
|
name: "Authority_details",
|
||||||
title: "账单管理-详情",
|
title: "账单管理-详情",
|
||||||
icon: 'profile',
|
icon: 'profile',
|
||||||
hide: true,
|
hide: true,
|
||||||
component: resolve => require(['@/views/Basic/Authority/_details'], resolve),
|
component: resolve => require(['@/views/Basic/Authority/_details'], resolve),
|
||||||
meta: {title: '账单管理-详情'},
|
meta: {title: '账单管理-详情'},
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/EstateInfo',
|
path: '/EstateInfo',
|
||||||
name: "EstateInfo",
|
name: "EstateInfo",
|
||||||
title: "小区信息",
|
title: "小区信息",
|
||||||
icon: 'home',
|
icon: 'home',
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/EstateInfo'], resolve),
|
component: resolve => require(['@/views/Basic/EstateInfo'], resolve),
|
||||||
meta: {title: '小区信息'},
|
meta: {title: '小区信息'},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/EstateInfo/BuildingManage',
|
path: '/EstateInfo/BuildingManage',
|
||||||
name: "BuildingManage",
|
name: "BuildingManage",
|
||||||
title: "楼栋管理",
|
title: "楼栋管理",
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/EstateInfo/_buildingManage'], resolve),
|
component: resolve => require(['@/views/Basic/EstateInfo/_buildingManage'], resolve),
|
||||||
meta: {title: '楼栋管理'},
|
meta: {title: '楼栋管理'},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/EstateInfo/HouseManage',
|
path: '/EstateInfo/HouseManage',
|
||||||
name: "HouseManage",
|
name: "HouseManage",
|
||||||
title: "房屋管理",
|
title: "房屋管理",
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/EstateInfo/_houseManage'], resolve),
|
component: resolve => require(['@/views/Basic/EstateInfo/_houseManage'], resolve),
|
||||||
meta: {title: '房屋管理'},
|
meta: {title: '房屋管理'},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/EstateInfo/HouseHoldInfo',
|
path: '/EstateInfo/HouseHoldInfo',
|
||||||
name: "HouseHoldInfo",
|
name: "HouseHoldInfo",
|
||||||
title: "住户信息",
|
title: "住户信息",
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/EstateInfo/_houseHoldInfo'], resolve),
|
component: resolve => require(['@/views/Basic/EstateInfo/_houseHoldInfo'], resolve),
|
||||||
meta: {title: '住户信息'},
|
meta: {title: '住户信息'},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/EstateInfo/HouseHoldAudit',
|
path: '/EstateInfo/HouseHoldAudit',
|
||||||
name: "HouseHoldAudit",
|
name: "HouseHoldAudit",
|
||||||
title: "住户审核",
|
title: "住户审核",
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/EstateInfo/_houseHoldAudit'], resolve),
|
component: resolve => require(['@/views/Basic/EstateInfo/_houseHoldAudit'], resolve),
|
||||||
meta: {title: '住户审核'},
|
meta: {title: '住户审核'},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/Workorder',
|
path: '/Workorder',
|
||||||
name: "Workorder",
|
name: "Workorder",
|
||||||
title: "工单管理",
|
title: "工单管理",
|
||||||
icon: 'solution',
|
icon: 'solution',
|
||||||
hide: false,
|
hide: false,
|
||||||
component: resolve => require(['@/views/Basic/WorkOrder'], resolve),
|
component: resolve => require(['@/views/Basic/WorkOrder'], resolve),
|
||||||
meta: {title: '工单管理'}
|
meta: {title: '工单管理'}
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// path: '/attendance',
|
// path: '/attendance',
|
||||||
// name: "Attendance",
|
// name: "Attendance",
|
||||||
// title: "考勤管理",
|
// title: "考勤管理",
|
||||||
// icon: 'reconciliation',
|
// icon: 'reconciliation',
|
||||||
// hide: false,
|
// hide: false,
|
||||||
// redirect: '/attendance/record',
|
// redirect: '/attendance/record',
|
||||||
// component: resolve => require(['@/views/Basic/Attendance'], resolve),
|
// component: resolve => require(['@/views/Basic/Attendance'], resolve),
|
||||||
// meta: {title: '考勤管理'},
|
// meta: {title: '考勤管理'},
|
||||||
// children: [
|
// children: [
|
||||||
// {
|
// {
|
||||||
// path: '/attendance/record',
|
// path: '/attendance/record',
|
||||||
// name: "Attendance_record",
|
// name: "Attendance_record",
|
||||||
// title: "考勤记录",
|
// title: "考勤记录",
|
||||||
// hide: false,
|
// hide: false,
|
||||||
// component: resolve => require(['@/views/Basic/Attendance/_record'], resolve),
|
// component: resolve => require(['@/views/Basic/Attendance/_record'], resolve),
|
||||||
// meta: {title: '考勤记录'},
|
// meta: {title: '考勤记录'},
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// path: '/attendance/application',
|
// path: '/attendance/application',
|
||||||
// name: "Attendance_application",
|
// name: "Attendance_application",
|
||||||
// title: "申请记录",
|
// title: "申请记录",
|
||||||
// hide: false,
|
// hide: false,
|
||||||
// component: resolve => require(['@/views/Basic/Attendance/application'], resolve),
|
// component: resolve => require(['@/views/Basic/Attendance/application'], resolve),
|
||||||
// meta: {title: '申请记录'},
|
// meta: {title: '申请记录'},
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// path: '/attendance/attendanceteam',
|
// path: '/attendance/attendanceteam',
|
||||||
// name: "Attendance_attendanceteam",
|
// name: "Attendance_attendanceteam",
|
||||||
// title: "考勤小组",
|
// title: "考勤小组",
|
||||||
// hide: false,
|
// hide: false,
|
||||||
// component: resolve => require(['@/views/Basic/Attendance/_attendanceteam'], resolve),
|
// component: resolve => require(['@/views/Basic/Attendance/_attendanceteam'], resolve),
|
||||||
// meta: {title: '考勤小组'},
|
// meta: {title: '考勤小组'},
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// path: '/attendance/scheduling',
|
// path: '/attendance/scheduling',
|
||||||
// name: "Attendance_scheduling",
|
// name: "Attendance_scheduling",
|
||||||
// title: "排班计划",
|
// title: "排班计划",
|
||||||
// hide: false,
|
// hide: false,
|
||||||
// component: resolve => require(['@/views/Basic/Attendance/_scheduling'], resolve),
|
// component: resolve => require(['@/views/Basic/Attendance/_scheduling'], resolve),
|
||||||
// meta: {title: '排班计划'},
|
// meta: {title: '排班计划'},
|
||||||
// },
|
// },
|
||||||
|
|
||||||
// ]
|
// ]
|
||||||
// }
|
// }
|
||||||
]
|
]
|
@ -1,11 +1,11 @@
|
|||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: '/basicSet',
|
path: '/basicSet',
|
||||||
name: "basicSet",
|
name: "basicSet",
|
||||||
title: "基础设置",
|
title: "基础设置",
|
||||||
hide: false,
|
hide: false,
|
||||||
icon: 'container',
|
icon: 'container',
|
||||||
component: resolve => require(['@/views/Set/basicSet'], resolve),
|
component: resolve => require(['@/views/Set/basicSet'], resolve),
|
||||||
meta: {title: '基础设置'}
|
meta: {title: '基础设置'}
|
||||||
},
|
},
|
||||||
]
|
]
|
@ -1,31 +1,32 @@
|
|||||||
export default {
|
export default {
|
||||||
install: function (Vue) {
|
install: function (Vue) {
|
||||||
Vue.prototype.ImgUrl = (src) => {
|
Vue.prototype.$upload = process.env.VUE_APP_URL + 'user/upload/uploadTestMinioImg'
|
||||||
return process.env.VUE_APP_CDN + src
|
Vue.prototype.ImgUrl = (src) => {
|
||||||
}
|
return process.env.VUE_APP_STATIC + src
|
||||||
Vue.prototype.formatDate = (time, fmt) => {
|
}
|
||||||
if (time > 0) {
|
Vue.prototype.formatDate = (time, fmt) => {
|
||||||
let date = new Date(time * 1000)
|
if (time > 0) {
|
||||||
if (/(y+)/.test(fmt)) {
|
let date = new Date(time * 1000)
|
||||||
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
|
if (/(y+)/.test(fmt)) {
|
||||||
}
|
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
|
||||||
let o = {
|
}
|
||||||
'M+': date.getMonth() + 1,
|
let o = {
|
||||||
'd+': date.getDate(),
|
'M+': date.getMonth() + 1,
|
||||||
'h+': date.getHours(),
|
'd+': date.getDate(),
|
||||||
'm+': date.getMinutes(),
|
'h+': date.getHours(),
|
||||||
's+': date.getSeconds()
|
'm+': date.getMinutes(),
|
||||||
}
|
's+': date.getSeconds()
|
||||||
for (let k in o) {
|
}
|
||||||
if (new RegExp(`(${k})`).test(fmt)) {
|
for (let k in o) {
|
||||||
let str = o[k] + ''
|
if (new RegExp(`(${k})`).test(fmt)) {
|
||||||
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : ('00' + str).substr(str.length))
|
let str = o[k] + ''
|
||||||
}
|
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : ('00' + str).substr(str.length))
|
||||||
}
|
}
|
||||||
return fmt
|
}
|
||||||
} else {
|
return fmt
|
||||||
return ''
|
} else {
|
||||||
}
|
return ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue