master
parent
ae4b8fa2b5
commit
d03b032036
@ -1,3 +1,3 @@
|
||||
NODE_ENV = 'production'
|
||||
VUE_APP_URL = 'https://saas.kaidalai.cn/api/admin/'
|
||||
VUE_APP_STATIC = 'https://saas.kaidalai.cn/api/admin/'
|
||||
VUE_APP_URL = 'https://saas.kaidalai.cn/api/admin'
|
||||
VUE_APP_STATIC = 'https://saas.kaidalai.cn/api/admin'
|
@ -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 = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 登录
|
||||
export function loginTel(params) {
|
||||
return httpService({
|
||||
url: `/manage/loginTelCode`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
import httpService from "@/request"
|
||||
|
||||
// 注册
|
||||
export function register(params) {
|
||||
return httpService({
|
||||
url: `/register`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 登录
|
||||
export function loginPWD(params) {
|
||||
return httpService({
|
||||
url: `/loginPWD`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 登录
|
||||
export function loginTelCode(params) {
|
||||
return httpService({
|
||||
url: `/loginTelCode`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
||||
// 验证码
|
||||
export function sendTelCode(params) {
|
||||
return httpService({
|
||||
url: `/sendTelCode`,
|
||||
method: 'post',
|
||||
data: params,
|
||||
})
|
||||
}
|
@ -1,80 +1,80 @@
|
||||
export default [
|
||||
{
|
||||
path: '/Manage/SettleRequestManage',
|
||||
name: "SettleRequestManage",
|
||||
title: "入驻申请管理",
|
||||
hide: false,
|
||||
icon: 'contacts',
|
||||
component: resolve => require(['@/views/Manage/SettleRequestManage'], resolve),
|
||||
meta: {title: '入驻申请管理'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/SettleRequestManage/settle_detail',
|
||||
name: "settle_detail",
|
||||
title: "查看详情",
|
||||
hide: true,
|
||||
icon: 'container',
|
||||
component: resolve => require(['@/views/Manage/SettleRequestManage/_detail'], resolve),
|
||||
meta: {title: '查看详情'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/CustomerList',
|
||||
name: "CustomerList",
|
||||
title: "客户列表",
|
||||
hide: false,
|
||||
icon: 'user',
|
||||
component: resolve => require(['@/views/Manage/CustomerList'], resolve),
|
||||
meta: {title: '客户列表'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/SettleRequestManage/customer_detail',
|
||||
name: "customer_detail",
|
||||
title: "查看详情",
|
||||
hide: true,
|
||||
icon: 'container',
|
||||
component: resolve => require(['@/views/Manage/CustomerList/_detail'], resolve),
|
||||
meta: {title: '查看详情'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/VillageManage',
|
||||
name: "VillageManage",
|
||||
title: "小区管理",
|
||||
hide: false,
|
||||
icon: 'home',
|
||||
component: resolve => require(['@/views/Manage/VillageManage'], resolve),
|
||||
meta: {title: '小区管理'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/OrderManage',
|
||||
name: "OrderManage",
|
||||
title: "订单管理",
|
||||
hide: false,
|
||||
icon: 'exception',
|
||||
component: resolve => require(['@/views/Manage/OrderManage'], resolve),
|
||||
meta: {title: '订单管理'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/ChargingManage',
|
||||
name: "ChargingManage",
|
||||
title: "收费管理",
|
||||
icon: 'pay-circle',
|
||||
redirect: '/ChargingManage/ChargingStandard',
|
||||
meta: {title: '收费管理'},
|
||||
children: [
|
||||
{
|
||||
path: '/ChargingManage/ChargingStandard',
|
||||
name: "ChargingStandard",
|
||||
title: "收费标准",
|
||||
component: resolve => require(['@/views/Manage/ChargingManage/ChargingStandard'], resolve),
|
||||
meta: { title: '收费标准' },
|
||||
},
|
||||
{
|
||||
path: '/ChargingManage/FinancialBill',
|
||||
name: "FinancialBill",
|
||||
title: "财务账单",
|
||||
component: resolve => require(['@/views/Manage/ChargingManage/FinancialBill'], resolve),
|
||||
meta: { title: '财务账单' },
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/Manage/SettleRequestManage',
|
||||
name: "SettleRequestManage",
|
||||
title: "入驻申请管理",
|
||||
hide: false,
|
||||
icon: 'contacts',
|
||||
component: resolve => require(['@/views/Manage/SettleRequestManage'], resolve),
|
||||
meta: {title: '入驻申请管理'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/SettleRequestManage/settle_detail',
|
||||
name: "settle_detail",
|
||||
title: "查看详情",
|
||||
hide: true,
|
||||
icon: 'container',
|
||||
component: resolve => require(['@/views/Manage/SettleRequestManage/_detail'], resolve),
|
||||
meta: {title: '查看详情'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/CustomerList',
|
||||
name: "CustomerList",
|
||||
title: "客户列表",
|
||||
hide: false,
|
||||
icon: 'user',
|
||||
component: resolve => require(['@/views/Manage/CustomerList'], resolve),
|
||||
meta: {title: '客户列表'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/SettleRequestManage/customer_detail',
|
||||
name: "customer_detail",
|
||||
title: "查看详情",
|
||||
hide: true,
|
||||
icon: 'container',
|
||||
component: resolve => require(['@/views/Manage/CustomerList/_detail'], resolve),
|
||||
meta: {title: '查看详情'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/VillageManage',
|
||||
name: "VillageManage",
|
||||
title: "小区管理",
|
||||
hide: false,
|
||||
icon: 'home',
|
||||
component: resolve => require(['@/views/Manage/VillageManage'], resolve),
|
||||
meta: {title: '小区管理'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/OrderManage',
|
||||
name: "OrderManage",
|
||||
title: "订单管理",
|
||||
hide: false,
|
||||
icon: 'exception',
|
||||
component: resolve => require(['@/views/Manage/OrderManage'], resolve),
|
||||
meta: {title: '订单管理'},
|
||||
},
|
||||
{
|
||||
path: '/Manage/ChargingManage',
|
||||
name: "ChargingManage",
|
||||
title: "收费管理",
|
||||
icon: 'pay-circle',
|
||||
redirect: '/ChargingManage/ChargingStandard',
|
||||
meta: {title: '收费管理'},
|
||||
children: [
|
||||
{
|
||||
path: '/ChargingManage/ChargingStandard',
|
||||
name: "ChargingStandard",
|
||||
title: "收费标准",
|
||||
component: resolve => require(['@/views/Manage/ChargingManage/ChargingStandard'], resolve),
|
||||
meta: { title: '收费标准' },
|
||||
},
|
||||
{
|
||||
path: '/ChargingManage/FinancialBill',
|
||||
name: "FinancialBill",
|
||||
title: "财务账单",
|
||||
component: resolve => require(['@/views/Manage/ChargingManage/FinancialBill'], resolve),
|
||||
meta: { title: '财务账单' },
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
@ -0,0 +1,40 @@
|
||||
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 + 'admin/user/upload/uploadImg'
|
||||
// 静态地址
|
||||
Vue.prototype.$ImgUrl = (src) => {
|
||||
return process.env.VUE_APP_STATIC + '/' + 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 ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue