Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
dcxy-system
Commits
bb361cd9
Commit
bb361cd9
authored
Jul 18, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理api
parent
1d6bda84
Hide whitespace changes
Inline
Side-by-side
Showing
85 changed files
with
639 additions
and
625 deletions
+639
-625
.env
.env
+5
-0
index.js
src/api/3.0/index.js
+1
-4
SmaproPrepayConfig.js
src/api/SmaproPrepayConfig.js
+1
-1
SmaproRefundOrder.js
src/api/SmaproRefundOrder.js
+1
-1
beanHandsel.js
src/api/account/beanHandsel.js
+1
-1
customerRecharge.js
src/api/account/customerRecharge.js
+1
-1
customerRefund.js
src/api/account/customerRefund.js
+1
-1
adminArea.js
src/api/adminArea/adminArea.js
+1
-1
adminFunction.js
src/api/adminFunction/adminFunction.js
+1
-1
appReportLog.js
src/api/appReportLog/appReportLog.js
+1
-1
index.js
src/api/appVersion/index.js
+3
-1
areaRechargeConf.js
src/api/areaRechargeConf/areaRechargeConf.js
+13
-12
areaSms.js
src/api/areaSms/areaSms.js
+11
-14
customer.js
src/api/base/customer.js
+4
-5
imageToken.js
src/api/base/imageToken.js
+3
-5
area.js
src/api/baseArea/area.js
+10
-23
areaBusiness.js
src/api/baseArea/areaBusiness.js
+5
-10
deploypay.js
src/api/baseArea/deploypay.js
+5
-6
operator.js
src/api/baseArea/operator.js
+16
-18
payability.js
src/api/baseArea/payability.js
+26
-15
rechargecontrol.js
src/api/baseArea/rechargecontrol.js
+11
-15
CreditMargin.js
src/api/cbm/CreditMargin.js
+2
-3
EuipmentConf.js
src/api/cbm/EuipmentConf.js
+1
-1
OperationalMode.js
src/api/cbm/OperationalMode.js
+1
-1
activity.js
src/api/cbm/activity.js
+1
-1
payway.js
src/api/cbm/payway.js
+1
-1
EuipmentConf.js
src/api/cmb/EuipmentConf.js
+1
-1
activity.js
src/api/cmb/activity.js
+1
-1
payway.js
src/api/cmb/payway.js
+1
-1
customer.js
src/api/customer.js
+1
-1
areaSwitch.js
src/api/customer/areaSwitch.js
+2
-3
customerInfo.js
src/api/customer/customerInfo.js
+9
-20
customerSwitch.js
src/api/customer/customerSwitch.js
+2
-3
password.js
src/api/customer/password.js
+4
-5
index.js
src/api/device/index.js
+1
-4
index.js
src/api/dispenser/index.js
+5
-2
index.js
src/api/equipmentParamsManagement/index.js
+1
-4
feedBack.js
src/api/feedBack/feedBack.js
+7
-8
fetch.js
src/api/fetch.js
+22
-2
flatformToll.js
src/api/flatformToll.js
+2
-3
functionSection.js
src/api/functionSection/functionSection.js
+6
-9
index.js
src/api/hairDryer/index.js
+3
-1
interfaceApp.js
src/api/interfaceApp/interfaceApp.js
+1
-1
interfaceManager.js
src/api/interfaceManager/interfaceManager.js
+1
-1
menu.js
src/api/menu/menu.js
+13
-15
openAdvert.js
src/api/openAdvert/openAdvert.js
+50
-56
operDetail.js
src/api/operDetail.js
+3
-8
operLog.js
src/api/operLog/operLog.js
+1
-1
operateOrder.js
src/api/operateOrder.js
+1
-1
operationManagement.js
src/api/operationManagement/operationManagement.js
+1
-1
consume.js
src/api/order/consume.js
+7
-9
consumeOrder.js
src/api/order/consumeOrder.js
+3
-8
failedOrder.js
src/api/order/failedOrder.js
+1
-6
giveBean.js
src/api/order/giveBean.js
+1
-1
paymentConsume.js
src/api/order/paymentConsume.js
+1
-1
rechargeOrder.js
src/api/order/rechargeOrder.js
+1
-6
refundOrder.js
src/api/order/refundOrder.js
+1
-1
orderMerge.js
src/api/orderMerge/orderMerge.js
+1
-1
pav.js
src/api/payment/pav.js
+10
-13
prepaidModel.js
src/api/prepaidModel/prepaidModel.js
+12
-14
prepayOrder.js
src/api/prepayOrder.js
+2
-2
equipment.js
src/api/purchasing/equipment.js
+4
-5
order.js
src/api/purchasing/order.js
+1
-1
index.js
src/api/report/index.js
+3
-4
role.js
src/api/role/role.js
+1
-1
selfService.js
src/api/selfService/selfService.js
+1
-1
appoint.js
src/api/shower/appoint.js
+7
-7
base.js
src/api/shower/base.js
+3
-7
config.js
src/api/shower/config.js
+7
-7
index.js
src/api/shower/index.js
+3
-1
showerBase.js
src/api/shower/showerBase.js
+8
-9
smsPlatform.js
src/api/smsPlatform/smsPlatform.js
+21
-24
statistics.js
src/api/statistics.js
+3
-8
systemUser.js
src/api/systemUser/systemUser.js
+1
-1
login.js
src/api/user/login.js
+1
-1
update.js
src/api/user/update.js
+1
-1
SmaproPrepayConfig.js
src/containers/SmaproPrepayConfig/SmaproPrepayConfig.js
+11
-12
SmaproPrepayConfig.vue
src/containers/SmaproPrepayConfig/SmaproPrepayConfig.vue
+10
-9
AddDialog.vue
src/containers/SmaproPrepayConfig/components/AddDialog.vue
+54
-14
DetailDialog.vue
...containers/SmaproPrepayConfig/components/DetailDialog.vue
+3
-2
EditDialog.vue
src/containers/SmaproPrepayConfig/components/EditDialog.vue
+41
-8
develop.js
src/dev-local/develop.js
+15
-16
main.js
src/lib/main.js
+52
-47
asyncRoutes.js
src/router/asyncRoutes.js
+2
-2
index.js
src/router/asyncRoutes/index.js
+80
-80
No files found.
.env
View file @
bb361cd9
...
...
@@ -19,3 +19,8 @@ VUE_APP_BASE_SERVER_URL=http://ex-dev-dcxy-base-manage.168cad.top
VUE_APP_BASE_SERVER_URL_APP=http://ex-dev-dcxy-base-app.168cad.top
VUE_APP_STATISTICS_SERVER_URL=http://ex-dev-dcxy-statistics-manage.168cad.top
VUE_APP_DEVICE_SERVER_URL=http://in-dev-device-management-api.168cad.top
VUE_APP_SHOWER_SERVER_URL=http://ex-shower-manager-server.168cad.top
VUE_APP_DISPENSER_SERVER_URL=http://ex-dev-gx-manager.168cad.top
VUE_APP_BLOWER_SERVER_URL=http://ex-dev-blower-manager.168cad.top
VUE_APP_METER_DEVICE_SERVER_URL=http://ex-dev-device3-manager.168cad.top
VUE_APP_SMAPRO_SERVER_URL=http://ex-dev-dcxy-smapro-manage.168cad.top
src/api/3.0/index.js
View file @
bb361cd9
const
fetch
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_METER_DEVICE_SERVER_URL
,
timeout
:
10000
,
});
import
{
deviceFetch
as
fetch
}
from
'../fetch'
;
export
default
fetch
;
src/api/SmaproPrepayConfig.js
View file @
bb361cd9
import
fetch
from
'./fetch'
;
import
{
smaproFetch
as
fetch
}
from
'./fetch'
;
//基础地址
const
path
=
process
.
env
.
VUE_APP_SMAPRO_SERVER_URL
;
...
...
src/api/SmaproRefundOrder.js
View file @
bb361cd9
import
fetch
from
'./fetch'
;
import
{
smaproFetch
as
fetch
}
from
'./fetch'
;
//基础地址
const
path
=
process
.
env
.
VUE_APP_SMAPRO_SERVER_URL
;
...
...
src/api/account/beanHandsel.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchBeanInfoByUser
=
req
=>
fetch
({
...
...
src/api/account/customerRecharge.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
getRechargeInfo
=
req
=>
fetch
({
...
...
src/api/account/customerRefund.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
getRefundInfo
=
req
=>
fetch
({
...
...
src/api/adminArea/adminArea.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchAdminArea
=
req
=>
fetch
({
...
...
src/api/adminFunction/adminFunction.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchAdminFunctionList
=
req
=>
fetch
({
...
...
src/api/appReportLog/appReportLog.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchAppReportList
=
req
=>
fetch
({
...
...
src/api/appVersion/index.js
View file @
bb361cd9
const
fetch
=
manageShell
.
default
.
createBaseFetch
({
import
createBaseFetch
from
'@/lib/Api'
;
const
fetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SMAPRO_SERVER_URL
,
timeout
:
10000
,
});
...
...
src/api/areaRechargeConf/areaRechargeConf.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
//基础地址
const
path
=
process
.
env
.
VUE_APP_BASE_SERVER_URL
;
...
...
@@ -21,20 +21,21 @@ export const update4Lock = req =>
...
req
,
});
/**保存配置 */
/**保存配置 */
export
const
addEntity
=
req
=>
fetch
({
url
:
path
+
areaRechargePath
+
'/areaRecharge'
,
method
:
'POST'
,
...
req
,
});
fetch
({
url
:
path
+
areaRechargePath
+
'/areaRecharge'
,
method
:
'POST'
,
...
req
,
});
/**查询选中的配置 */
export
const
queryById
=
req
=>
/**查询选中的配置 */
export
const
queryById
=
req
=>
fetch
({
url
:
path
+
areaRechargePath
+
`/areaRecharge/
${
req
.
params
.
areaId
}
/
${
req
.
params
.
operateId
}
`
,
url
:
path
+
areaRechargePath
+
`/areaRecharge/
${
req
.
params
.
areaId
}
/
${
req
.
params
.
operateId
}
`
,
method
:
'GET'
,
...
req
,
});
src/api/areaSms/areaSms.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
AREA_SMS
=
'/dcxy/area/sms'
;
export
const
addRelations
=
req
=>
fetch
({
url
:
AREA_SMS
+
'/relation'
,
method
:
'POST'
,
...
req
,
});
fetch
({
url
:
AREA_SMS
+
'/relation'
,
method
:
'POST'
,
...
req
,
});
export
const
getRelations
=
req
=>
fetch
({
url
:
AREA_SMS
+
'/relation'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
AREA_SMS
+
'/relation'
,
method
:
'GET'
,
...
req
,
});
src/api/base/customer.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
const
path
=
process
.
env
.
VUE_APP_CUSTOMER_SERVER_URL
;
export
const
fetchUserBaseInfo
=
entity
=>
fetch
({
url
:
path
+
'/dcxy/customerInfo/baseInfo'
,
url
:
'/dcxy/customerInfo/baseInfo'
,
params
:
entity
,
});
export
const
fetchUserBaseInfoByPhone
=
entity
=>
fetch
({
url
:
path
+
'/dcxy/customerInfo/baseCustomer'
,
url
:
'/dcxy/customerInfo/baseCustomer'
,
params
:
entity
,
});
export
const
fetchUserAccount
=
entity
=>
fetch
({
url
:
path
+
'/dcxy/customerInfo/queryAccount'
,
url
:
'/dcxy/customerInfo/queryAccount'
,
params
:
entity
,
});
src/api/base/imageToken.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
const
path
=
process
.
env
.
VUE_APP_BASE_SERVER_URL_APP
;
import
{
baseAppFetch
as
fetch
}
from
'../fetch'
;
export
const
getUploadImgToken
=
req
=>
fetch
({
url
:
path
+
'/common/getQNToken'
,
url
:
'/common/getQNToken'
,
...
req
,
});
export
const
getDelImgToken
=
req
=>
fetch
({
url
:
path
+
'/common/deleteFiles'
,
url
:
'/common/deleteFiles'
,
...
req
,
});
src/api/baseArea/area.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
getBaseArea
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/queryList'
,
method
:
'POST'
,
...
req
,
});
export
const
getEditArea
=
req
=>
export
const
getEditArea
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/updateArea'
,
method
:
'PUT'
,
...
req
,
});
export
const
getAddBaseArea
=
req
=>
export
const
getAddBaseArea
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/addArea'
,
method
:
'POST'
,
...
req
,
});
export
const
getConfigArea
=
req
=>
export
const
getConfigArea
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/queryService'
,
method
:
'GET'
,
...
req
,
});
export
const
getAddOrUpdate
=
req
=>
export
const
getAddOrUpdate
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/addService'
,
method
:
'POST'
,
...
req
,
});
export
const
getRemoveService
=
req
=>
export
const
getRemoveService
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/deleteService'
,
method
:
'GET'
,
...
req
,
});
export
const
getDetail
=
req
=>
export
const
getDetail
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/areaInfo'
,
method
:
'GET'
,
...
req
,
});
export
const
updateState
=
req
=>
export
const
updateState
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/updateConsult'
,
method
:
'GET'
,
...
req
,
});
export
const
updateStore
=
req
=>
export
const
updateStore
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/updateStore'
,
method
:
'GET'
,
...
req
,
});
export
const
updateType
=
req
=>
export
const
updateType
=
req
=>
fetch
({
url
:
'/dcxy/baseArea/updateType'
,
method
:
'GET'
,
...
req
,
});
src/api/baseArea/areaBusiness.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
getAreaBusiness
=
req
=>
fetch
({
url
:
'/dcxy/areaBusiness/queryList'
,
method
:
'POST'
,
...
req
,
});
export
const
getRemoveAreaBusiness
=
req
=>
export
const
getRemoveAreaBusiness
=
req
=>
fetch
({
url
:
'/dcxy/areaBusiness/deleteAreaBusiness'
,
method
:
'GET'
,
...
req
,
});
export
const
getAddAreaBusiness
=
req
=>
export
const
getAddAreaBusiness
=
req
=>
fetch
({
url
:
'/dcxy/areaBusiness/addAreaBusiness'
,
method
:
'POST'
,
...
req
,
});
export
const
updateState
=
req
=>
export
const
updateState
=
req
=>
fetch
({
url
:
'/dcxy/areaBusiness/updateState'
,
method
:
'GET'
,
...
req
,
});
\ No newline at end of file
});
src/api/baseArea/deploypay.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
OPER_PAY_PATH
=
'/dcxy/api/base/operateAreaPay'
;
const
customer_path
=
process
.
env
.
VUE_APP_CUSTOMER_SERVER_URL
;
export
const
getCustomerInfo
=
req
=>
fetch
({
url
:
customer_path
+
'/dcxy/customerInfo/customer/forpic'
,
url
:
customer_path
+
'/dcxy/customerInfo/customer/forpic'
,
method
:
'get'
,
...
req
,
});
...
...
@@ -16,16 +16,16 @@ export const getOperPayConfig = req =>
...
req
,
});
export
const
updateOpConf
=
req
=>
export
const
updateOpConf
=
req
=>
fetch
({
url
:
OPER_PAY_PATH
+
'/change/payconf'
,
method
:
'post'
,
...
req
,
});
export
const
abilityBeUsed
=
req
=>
export
const
abilityBeUsed
=
req
=>
fetch
({
url
:
OPER_PAY_PATH
+
'/ability/beused'
,
method
:
'post'
,
...
req
,
});
\ No newline at end of file
});
src/api/baseArea/operator.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
import
operDetail
from
'../operDetail'
;
export
const
getBaseOperator
=
req
=>
...
...
@@ -17,7 +17,6 @@ export const updateState = req => {
});
};
export
const
getAddOper
=
req
=>
fetch
({
url
:
'/dcxy/baseOperator/addOperator'
,
...
...
@@ -25,24 +24,23 @@ export const getAddOper = req =>
...
req
,
});
export
const
getEditOper
=
req
=>
fetch
({
url
:
'/dcxy/baseOperator/updateOperator'
,
method
:
'POST'
,
...
req
,
});
fetch
({
url
:
'/dcxy/baseOperator/updateOperator'
,
method
:
'POST'
,
...
req
,
});
export
const
getDetail
=
req
=>
fetch
({
url
:
'/dcxy/baseOperator/queryOpertor'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
'/dcxy/baseOperator/queryOpertor'
,
method
:
'GET'
,
...
req
,
});
export
const
getOperCount
=
req
=>
operDetail
({
url
:
'/admin/admin'
,
method
:
'GET'
,
...
req
,
});
operDetail
({
url
:
'/admin/admin'
,
method
:
'GET'
,
...
req
,
});
src/api/baseArea/payability.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
OPER_PAY_PATH
=
'/dcxy/api/base/operateAreaPay'
;
export
const
getOperPayInfo
=
req
=>
fetch
({
...
...
@@ -21,7 +21,6 @@ export const checkBinding = req =>
...
req
,
});
//支付能力新增接口
export
const
addOperPayInfo
=
req
=>
fetch
({
...
...
@@ -38,20 +37,36 @@ export const updateOperPayInfo = req =>
...
req
,
});
export
const
deleteOperPayInfo
=
req
=>
export
const
deleteOperPayInfo
=
req
=>
fetch
({
url
:
OPER_PAY_PATH
+
'/service/pay/'
+
req
.
id
+
'/'
+
req
.
operateId
+
'/'
+
req
.
payType
,
url
:
OPER_PAY_PATH
+
'/service/pay/'
+
req
.
id
+
'/'
+
req
.
operateId
+
'/'
+
req
.
payType
,
method
:
'delete'
,
...
req
,
});
//支付能力关闭/开启接口
//支付能力关闭/开启接口
export
const
isCloseOperPay
=
req
=>
fetch
({
url
:
OPER_PAY_PATH
+
'/isclose/'
+
req
.
isClose
+
'/'
+
req
.
id
+
'/'
+
req
.
operateId
+
'/'
+
req
.
payType
,
method
:
'put'
,
...
req
,
});
fetch
({
url
:
OPER_PAY_PATH
+
'/isclose/'
+
req
.
isClose
+
'/'
+
req
.
id
+
'/'
+
req
.
operateId
+
'/'
+
req
.
payType
,
method
:
'put'
,
...
req
,
});
//查询是否存在开启的
export
const
checkBeOn
=
req
=>
...
...
@@ -60,12 +75,9 @@ export const checkBeOn = req =>
method
:
'get'
,
...
req
,
});
export
const
getOpenedPaytype
=
req
=>
export
const
getOpenedPaytype
=
req
=>
fetch
({
url
:
OPER_PAY_PATH
+
'/opened/paytype'
,
method
:
'get'
,
...
req
,
});
\ No newline at end of file
src/api/baseArea/rechargecontrol.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
getPageData
=
req
=>
fetch
({
...
...
@@ -16,7 +16,6 @@ export const addData = req => {
});
};
export
const
updateData
=
req
=>
fetch
({
url
:
'/recharge/contorl/for/change'
,
...
...
@@ -24,18 +23,16 @@ export const updateData = req =>
...
req
,
});
export
const
deleteData
=
req
=>
fetch
(
{
url
:
'/recharge/contorl/for/remove/'
+
req
.
id
+
'/'
+
req
.
updater
,
method
:
'DELETE'
,
...
req
,
});
fetch
({
url
:
'/recharge/contorl/for/remove/'
+
req
.
id
+
'/'
+
req
.
updater
,
method
:
'DELETE'
,
...
req
,
});
export
const
getDetailData
=
req
=>
fetch
({
url
:
'/recharge/contorl/for/detail/'
+
req
.
controlId
,
method
:
'GET'
,
...
req
,
});
\ No newline at end of file
fetch
({
url
:
'/recharge/contorl/for/detail/'
+
req
.
controlId
,
method
:
'GET'
,
...
req
,
});
src/api/cbm/CreditMargin.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchCreditMarginList
=
req
=>
fetch
({
...
...
@@ -47,4 +47,4 @@ export const fetchCreditMarginConfDetail = req =>
method
:
'get'
,
...
req
,
});
\ No newline at end of file
});
src/api/cbm/EuipmentConf.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchEquipmentList
=
req
=>
fetch
({
...
...
src/api/cbm/OperationalMode.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchOperationalModeList
=
req
=>
fetch
({
...
...
src/api/cbm/activity.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchActivityList
=
req
=>
fetch
({
...
...
src/api/cbm/payway.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchPaywayList
=
req
=>
fetch
({
...
...
src/api/cmb/EuipmentConf.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchEquipmentList
=
req
=>
fetch
({
...
...
src/api/cmb/activity.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchActivityList
=
req
=>
fetch
({
...
...
src/api/cmb/payway.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchPaywayList
=
req
=>
fetch
({
...
...
src/api/customer.js
View file @
bb361cd9
import
fetch
from
'./fetch'
;
import
{
smaproFetch
as
fetch
}
from
'./fetch'
;
export
const
getPageCustomer
=
req
=>
fetch
({
...
...
src/api/customer/areaSwitch.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
pageRecords
=
req
=>
fetch
({
url
:
'/dcxy/area/switch/page/records'
,
method
:
'POST'
,
...
req
,
});
\ No newline at end of file
});
src/api/customer/customerInfo.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
getCustomerInfo
=
req
=>
fetch
({
...
...
@@ -7,63 +7,52 @@ export const getCustomerInfo = req =>
...
req
,
});
export
const
fetchDetail
=
req
=>
export
const
fetchDetail
=
req
=>
fetch
({
url
:
'/dcxy/customerInfo/queryCustomer'
,
method
:
'GET'
,
...
req
,
});
export
const
getaddCustomer
=
req
=>
export
const
getaddCustomer
=
req
=>
fetch
({
url
:
'/dcxy/customerInfo/addCustomer'
,
method
:
'POST'
,
...
req
,
});
export
const
updateState
=
req
=>
export
const
updateState
=
req
=>
fetch
({
url
:
'/dcxy/customerInfo/updateState'
,
method
:
'PUT'
,
...
req
,
});
export
const
updateBase
=
req
=>
export
const
updateBase
=
req
=>
fetch
({
url
:
'/dcxy/customerInfo/updateBase'
,
method
:
'PUT'
,
...
req
,
});
export
const
fetchAccount
=
req
=>
export
const
fetchAccount
=
req
=>
fetch
({
url
:
'/dcxy/customerInfo/queryAccount'
,
method
:
'GET'
,
...
req
,
});
export
const
fetchAccountLessThanZero
=
req
=>
export
const
fetchAccountLessThanZero
=
req
=>
fetch
({
url
:
'/dcxy/customerInfo/lessthan/zero'
,
method
:
'GET'
,
...
req
,
});
//电话或者会员ID查询
export
const
fetchUserInfo
=
req
=>
//电话或者会员ID查询
export
const
fetchUserInfo
=
req
=>
fetch
({
url
:
'/dcxy/customerInfo/baseCustomer'
,
method
:
'GET'
,
...
req
,
});
src/api/customer/customerSwitch.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
getSwitch
=
req
=>
fetch
({
...
...
@@ -7,10 +7,9 @@ export const getSwitch = req =>
...
req
,
});
export
const
updateSwitch
=
req
=>
export
const
updateSwitch
=
req
=>
fetch
({
url
:
'/dcxy/customerSwitch/updateSwitch'
,
method
:
'POST'
,
...
req
,
});
src/api/customer/password.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
getPassword
=
req
=>
fetch
({
...
...
@@ -7,22 +7,21 @@ export const getPassword = req =>
...
req
,
});
export
const
resetApp
=
req
=>
export
const
resetApp
=
req
=>
fetch
({
url
:
'/dcxy/password/restApp'
,
method
:
'PUT'
,
...
req
,
});
export
const
restHardware
=
req
=>
export
const
restHardware
=
req
=>
fetch
({
url
:
'/dcxy/password/restHardware'
,
method
:
'PUT'
,
...
req
,
});
export
const
queryRest
=
req
=>
export
const
queryRest
=
req
=>
fetch
({
url
:
'/dcxy/password/queryRest'
,
method
:
'GET'
,
...
...
src/api/device/index.js
View file @
bb361cd9
const
fetch
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_DEVICE_SERVER_URL
,
timeout
:
10000
,
});
import
{
deviceFetch
as
fetch
}
from
'../fetch'
;
export
default
fetch
;
src/api/dispenser/index.js
View file @
bb361cd9
import
createBaseFetch
from
'../../lib/Api'
;
const
fetch
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_DISPENSER_SERVER_URL
+
'/dcxy/construction/gx/manager/manager'
,
const
fetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_DISPENSER_SERVER_URL
+
'/dcxy/construction/gx/manager/manager'
,
timeout
:
10000
,
});
...
...
src/api/equipmentParamsManagement/index.js
View file @
bb361cd9
const
fetch
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_DEVICE_SERVER_URL
,
timeout
:
10000
,
});
import
{
deviceFetch
as
fetch
}
from
'../fetch'
;
export
default
fetch
;
src/api/feedBack/feedBack.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
//列表
export
const
getFeedbackById
=
req
=>
...
...
@@ -24,11 +24,10 @@ export const saveFeedback = req =>
...
req
,
});
//记录
//记录
export
const
getFeedbackRecord
=
req
=>
fetch
({
url
:
`/feedback/get/feedbackRecord/
${
req
.
params
.
id
}
`
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
`/feedback/get/feedbackRecord/
${
req
.
params
.
id
}
`
,
method
:
'GET'
,
...
req
,
});
src/api/fetch.js
View file @
bb361cd9
import
createBaseFetch
from
'../lib/Api'
;
const
f
etch
=
createBaseFetch
({
export
const
systemF
etch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SYSTEM_SERVER_URL
,
timeout
:
10000
,
});
...
...
@@ -8,5 +8,25 @@ export const customFetch = createBaseFetch({
baseURL
:
process
.
env
.
VUE_APP_CUSTOMER_SERVER_URL
,
timeout
:
10000
,
});
export
const
baseFetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_BASE_SERVER_URL
,
timeout
:
10000
,
});
export
const
baseAppFetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_BASE_SERVER_URL_APP
,
timeout
:
10000
,
});
export
const
statisticsFetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_STATISTICS_SERVER_URL
,
timeout
:
10000
,
});
export
const
deviceFetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_DEVICE_SERVER_URL
,
timeout
:
10000
,
});
export
const
smaproFetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SMAPRO_SERVER_URL
,
timeout
:
10000
,
});
export
default
f
etch
;
export
default
systemF
etch
;
src/api/flatformToll.js
View file @
bb361cd9
import
fetch
from
'./fetch'
;
import
{
smaproFetch
as
fetch
}
from
'./fetch'
;
export
const
getPageOrderMoney
=
req
=>
fetch
({
url
:
'/platform/toll/income/page/money'
,
method
:
'POST'
,
...
req
,
});
\ No newline at end of file
});
src/api/functionSection/functionSection.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
APP_SECTION
=
'/app/section'
;
export
const
getRelations
=
req
=>
fetch
({
url
:
APP_SECTION
+
'/relation'
,
...
...
@@ -11,10 +9,9 @@ export const getRelations = req =>
...
req
,
});
export
const
addRelations
=
req
=>
fetch
({
url
:
APP_SECTION
+
'/build/relation'
,
method
:
'POST'
,
...
req
,
});
fetch
({
url
:
APP_SECTION
+
'/build/relation'
,
method
:
'POST'
,
...
req
,
});
src/api/hairDryer/index.js
View file @
bb361cd9
const
fetch
=
manageShell
.
default
.
createBaseFetch
({
import
createBaseFetch
from
'../../lib/Api'
;
const
fetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_BLOWER_SERVER_URL
+
'/dcxy/construction/blower/manager/manager'
,
...
...
src/api/interfaceApp/interfaceApp.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchInterfaceList
=
req
=>
fetch
({
...
...
src/api/interfaceManager/interfaceManager.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchInterfaceList
=
req
=>
fetch
({
...
...
src/api/menu/menu.js
View file @
bb361cd9
import
fetch
from
'@/api/fetch'
;
const
path
=
process
.
env
.
VUE_APP_SYSTEM_SERVER_URL
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchCollectList
=
req
=>
fetch
({
url
:
path
+
'/adminChange/queryCollect'
,
url
:
'/adminChange/queryCollect'
,
timeout
:
30000
,
...
req
,
});
export
const
addCollect
=
req
=>
fetch
({
url
:
path
+
'/adminChange/saveCollect'
,
url
:
'/adminChange/saveCollect'
,
method
:
'post'
,
...
req
,
});
export
const
delCollect
=
req
=>
fetch
({
url
:
path
+
'/adminChange/delteCollect'
,
url
:
'/adminChange/delteCollect'
,
...
req
,
});
export
const
fetchMenuTree
=
req
=>
fetch
({
url
:
path
+
'/menu/menu/list'
,
url
:
'/menu/menu/list'
,
method
:
'post'
,
...
req
,
});
export
const
addMenuNode
=
req
=>
fetch
({
url
:
path
+
'/menu/menu'
,
url
:
'/menu/menu'
,
method
:
'post'
,
...
req
,
});
export
const
fetchEditMenuDetail
=
req
=>
fetch
({
url
:
path
+
`/menu/menuButton/
${
req
.
data
.
id
}
`
,
url
:
`/menu/menuButton/
${
req
.
data
.
id
}
`
,
method
:
'get'
,
...
req
,
});
export
const
updateMenuNode
=
req
=>
fetch
({
url
:
path
+
'/menu/menu'
,
url
:
'/menu/menu'
,
method
:
'put'
,
...
req
,
});
export
const
moveMenuNode
=
req
=>
fetch
({
url
:
path
+
`/menu/menu/
${
req
.
data
.
id
}
`
,
url
:
`/menu/menu/
${
req
.
data
.
id
}
`
,
method
:
'put'
,
...
req
,
});
export
const
deleteMenuNode
=
req
=>
fetch
({
url
:
path
+
`/menu/menu/
${
req
.
data
.
id
}
`
,
url
:
`/menu/menu/
${
req
.
data
.
id
}
`
,
method
:
'delete'
,
...
req
,
});
export
const
toggleMenuNodeState
=
req
=>
fetch
({
url
:
path
+
'/menu/menu/lock'
,
url
:
'/menu/menu/lock'
,
method
:
'post'
,
...
req
,
});
export
const
fetchMenuNodeButton
=
req
=>
fetch
({
url
:
path
+
`/menu/menuButton/
${
req
.
data
.
id
}
`
,
url
:
`/menu/menuButton/
${
req
.
data
.
id
}
`
,
method
:
'post'
,
...
req
,
});
export
const
fetchMenuUseState
=
req
=>
fetch
({
url
:
path
+
`/menu/menu/isUse/
${
req
.
data
.
id
}
`
,
url
:
`/menu/menu/isUse/
${
req
.
data
.
id
}
`
,
method
:
'get'
,
...
req
,
});
src/api/openAdvert/openAdvert.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
APP_OPEN_ADVERT
=
'/app/open/advert'
;
...
...
@@ -7,8 +6,7 @@ const COMMON = '/dcxy/common';
const
ADVERT_CAMPUS
=
'/app/advertise/campus'
;
const
ADVERT_OPERATE
=
'/advertise/operate'
;
const
ADVERT_OPERATE
=
'/advertise/operate'
;
export
const
pageAppOpenAdvertInfos
=
req
=>
fetch
({
...
...
@@ -17,74 +15,71 @@ export const pageAppOpenAdvertInfos = req =>
...
req
,
});
export
const
addAppOpenAdvertInfo
=
req
=>
fetch
({
url
:
APP_OPEN_ADVERT
+
'/gain'
,
method
:
'POST'
,
...
req
,
});
fetch
({
url
:
APP_OPEN_ADVERT
+
'/gain'
,
method
:
'POST'
,
...
req
,
});
export
const
updateAppOpenAdvertInfo
=
req
=>
fetch
({
url
:
APP_OPEN_ADVERT
+
'/modify'
,
method
:
'POST'
,
...
req
,
});
fetch
({
url
:
APP_OPEN_ADVERT
+
'/modify'
,
method
:
'POST'
,
...
req
,
});
export
const
getEditInfo
=
req
=>
fetch
({
url
:
APP_OPEN_ADVERT
+
'/edit/info'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
APP_OPEN_ADVERT
+
'/edit/info'
,
method
:
'GET'
,
...
req
,
});
export
const
updateState
=
req
=>
fetch
({
url
:
APP_OPEN_ADVERT
+
'/state'
,
method
:
'PUT'
,
...
req
,
});
fetch
({
url
:
APP_OPEN_ADVERT
+
'/state'
,
method
:
'PUT'
,
...
req
,
});
//-----------------------------------------
export
const
getUploadImgToken
=
req
=>
fetch
({
url
:
COMMON
+
'/qiniu/token'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
COMMON
+
'/qiniu/token'
,
method
:
'GET'
,
...
req
,
});
export
const
getDelImgToken
=
req
=>
fetch
({
url
:
COMMON
+
'/del/pic'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
COMMON
+
'/del/pic'
,
method
:
'GET'
,
...
req
,
});
//-----------------------------
export
const
addAdvertiseRelations
=
req
=>
fetch
({
url
:
ADVERT_CAMPUS
+
'/relation'
,
method
:
'POST'
,
...
req
,
});
fetch
({
url
:
ADVERT_CAMPUS
+
'/relation'
,
method
:
'POST'
,
...
req
,
});
export
const
listSectionRelations
=
req
=>
fetch
({
url
:
ADVERT_CAMPUS
+
'/relations'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
ADVERT_CAMPUS
+
'/relations'
,
method
:
'GET'
,
...
req
,
});
//-----------------------------------
export
const
getOperateRecords
=
req
=>
fetch
({
url
:
ADVERT_OPERATE
+
'/record'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
ADVERT_OPERATE
+
'/record'
,
method
:
'GET'
,
...
req
,
});
//------------------------------------
\ No newline at end of file
//------------------------------------
src/api/operDetail.js
View file @
bb361cd9
const
operDetail
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SYSTEM_SERVER_URL
,
timeout
:
10000
,
});
export
default
operDetail
;
\ No newline at end of file
import
{
systemFetch
as
operDetail
}
from
'./fetch'
;
export
default
operDetail
;
src/api/operLog/operLog.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchOperLogList
=
req
=>
fetch
({
...
...
src/api/operateOrder.js
View file @
bb361cd9
import
fetch
from
'./fetch'
;
import
{
smaproFetch
as
fetch
}
from
'./fetch'
;
export
const
getPageOrderMoney
=
req
=>
fetch
({
...
...
src/api/operationManagement/operationManagement.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
//基础地址
const
path
=
process
.
env
.
VUE_APP_BASE_SERVER_URL
;
...
...
src/api/order/consume.js
View file @
bb361cd9
import
fetch
from
'../statistics
'
;
import
{
customFetch
as
fetch
}
from
'../fetch
'
;
//列表
export
const
getConsume
=
req
=>
...
...
@@ -10,12 +10,10 @@ export const getConsume = req =>
timeout
:
20000
,
});
//详情
//详情
export
const
getConsumeDetail
=
req
=>
fetch
({
url
:
`/consume/get/consume/
${
req
.
params
.
id
}
`
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
`/consume/get/consume/
${
req
.
params
.
id
}
`
,
method
:
'GET'
,
...
req
,
});
src/api/order/consumeOrder.js
View file @
bb361cd9
import
fetch
from
'../statistics
'
;
import
{
customFetch
as
fetch
}
from
'../fetch
'
;
export
const
fetchConsumeOrder
=
req
=>
fetch
({
...
...
@@ -7,21 +7,16 @@ export const fetchConsumeOrder = req =>
...
req
,
});
export
const
getKindBean
=
req
=>
export
const
getKindBean
=
req
=>
fetch
({
url
:
'/dcxy/order/kind/bean'
,
method
:
'GET'
,
...
req
,
});
export
const
query4ThirdTradeInfo
=
req
=>
export
const
query4ThirdTradeInfo
=
req
=>
fetch
({
url
:
'/dcxy/order/consume/order'
,
method
:
'GET'
,
...
req
,
});
src/api/order/failedOrder.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
getFailedOrder
=
req
=>
fetch
({
...
...
@@ -6,8 +6,3 @@ export const getFailedOrder = req =>
method
:
'POST'
,
...
req
,
});
src/api/order/giveBean.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
//列表
export
const
getGiveBean
=
req
=>
...
...
src/api/order/paymentConsume.js
View file @
bb361cd9
import
fetch
from
'../statistics
'
;
import
{
customFetch
as
fetch
}
from
'../fetch
'
;
//列表
export
const
getPaymentConsume
=
req
=>
...
...
src/api/order/rechargeOrder.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
// const path = 'http://localhost:8888/dcxy/api/customer/rechargeOrder';
...
...
@@ -63,8 +63,3 @@ export const getPageAndTotalMoney = req =>
method
:
'POST'
,
...
req
,
});
src/api/order/refundOrder.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
customFetch
as
fetch
}
from
'../fetch'
;
export
const
getPageRefund
=
req
=>
fetch
({
url
:
'/dcxy/api/customer/refundOrder/page/refund'
,
...
...
src/api/orderMerge/orderMerge.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchOrderMergeRuleList
=
req
=>
fetch
({
...
...
src/api/payment/pav.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
// 版本配置API
const
PVersion_PATH
=
'/dcxy/api/payment/version'
;
//支付管理API
...
...
@@ -34,7 +34,7 @@ export const closeOrOpen = req =>
url
:
PAYMENT_PATH
+
'/open/close/'
+
req
.
id
+
'/'
+
req
.
isEnable
,
method
:
'put'
,
// ...req,
})
})
;
// 版本配置API
export
const
getPaymentVersion
=
req
=>
fetch
({
...
...
@@ -61,7 +61,7 @@ export const upAndDown = req =>
method
:
'put'
,
// ...req,
});
export
const
deleteVersion
=
req
=>
export
const
deleteVersion
=
req
=>
fetch
({
url
:
PVersion_PATH
+
'/paymeny/version/'
+
req
.
id
,
method
:
'delete'
,
...
...
@@ -79,40 +79,37 @@ export const getPVRecord = req =>
method
:
'get'
,
...
req
,
});
export
const
checkVBeUsed
=
req
=>
export
const
checkVBeUsed
=
req
=>
fetch
({
url
:
PAYMENT_PATH
+
'/check/beBind'
,
method
:
'get'
,
...
req
,
});
//true存在
export
const
checkExist
=
req
=>
//true存在
export
const
checkExist
=
req
=>
fetch
({
url
:
PVersion_PATH
+
'/check/exist/'
+
req
.
payType
+
'/'
+
req
.
versionName
,
url
:
PVersion_PATH
+
'/check/exist/'
+
req
.
payType
+
'/'
+
req
.
versionName
,
method
:
'get'
,
// ...req,
});
export
const
checkPaymentExist
=
req
=>
export
const
checkPaymentExist
=
req
=>
fetch
({
url
:
PAYMENT_PATH
+
'/check/payment/exist'
,
method
:
'get'
,
...
req
,
});
export
const
getAllPayment
=
req
=>
export
const
getAllPayment
=
req
=>
fetch
({
url
:
PAYMENT_PATH
+
'/all/opened/payment'
,
method
:
'get'
,
...
req
,
});
export
const
getOpenedAbility
=
req
=>
export
const
getOpenedAbility
=
req
=>
fetch
({
url
:
PAYMENT_PATH
+
'/opened/ability'
,
method
:
'get'
,
...
req
,
});
src/api/prepaidModel/prepaidModel.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
const
path
=
process
.
env
.
VUE_APP_BASE_SERVER_URL
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
prepaidModelPath
=
'/dcxy/api/prepaidModel'
;
export
const
query4Page
=
req
=>
fetch
({
url
:
p
ath
+
p
repaidModelPath
+
'/prepaidModel/list'
,
url
:
prepaidModelPath
+
'/prepaidModel/list'
,
method
:
'POST'
,
...
req
,
});
...
...
@@ -11,7 +10,7 @@ export const query4Page = req =>
/**新增 */
export
const
addEntity
=
req
=>
fetch
({
url
:
p
ath
+
p
repaidModelPath
+
'/prepaidModel'
,
url
:
prepaidModelPath
+
'/prepaidModel'
,
method
:
'POST'
,
...
req
,
});
...
...
@@ -19,7 +18,7 @@ export const addEntity = req =>
/**修改 */
export
const
updateEntity
=
req
=>
fetch
({
url
:
p
ath
+
p
repaidModelPath
+
'/prepaidModel'
,
url
:
prepaidModelPath
+
'/prepaidModel'
,
method
:
'PUT'
,
...
req
,
});
...
...
@@ -27,7 +26,7 @@ export const updateEntity = req =>
/**删除 */
export
const
deleteEntity
=
req
=>
fetch
({
url
:
p
ath
+
p
repaidModelPath
+
'/prepaidModel'
,
url
:
prepaidModelPath
+
'/prepaidModel'
,
method
:
'DELETE'
,
...
req
,
});
...
...
@@ -35,16 +34,15 @@ export const deleteEntity = req =>
/**详情 */
export
const
getEntityById
=
req
=>
fetch
({
url
:
p
ath
+
p
repaidModelPath
+
'/prepaidModel'
,
url
:
prepaidModelPath
+
'/prepaidModel'
,
method
:
'GET'
,
...
req
,
});
/**详情 */
/**详情 */
export
const
queryServiceByAreaId
=
req
=>
fetch
({
url
:
path
+
'/dcxy/api/base/service/queryServiceByAreaId'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
'/dcxy/api/base/service/queryServiceByAreaId'
,
method
:
'GET'
,
...
req
,
});
src/api/prepayOrder.js
View file @
bb361cd9
import
fetch
from
'./fetch'
;
import
{
smaproFetch
as
fetch
}
from
'./fetch'
;
export
const
getPageOrderMoney
=
req
=>
fetch
({
...
...
@@ -19,4 +19,4 @@ export const getRefundInfo = req =>
url
:
'/smpro/prepay/order/for/refund'
,
method
:
'POST'
,
...
req
,
});
});
src/api/purchasing/equipment.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
downloadUrl
=
manageShell
.
default
.
utils
.
downloadFiles
;
export
const
fetchEquList
=
req
=>
...
...
@@ -7,7 +7,7 @@ export const fetchEquList = req =>
method
:
'post'
,
...
req
,
});
export
const
getbatchNumber
=
req
=>
fetch
({
url
:
'/dcxy/purchasingOrder/findBatchNumber'
,
...
...
@@ -61,5 +61,5 @@ fetch({
headers
:
{
'Content-type'
:
'multipart/form-data'
,
},
});
\ No newline at end of file
});
src/api/purchasing/order.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchOrderList
=
req
=>
fetch
({
...
...
src/api/report/index.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
statisticsFetch
as
fetch
}
from
'../fetch'
;
const
path
=
process
.
env
.
VUE_APP_BASE_SERVER_URL
;
//获取所有支付方式
export
const
fetchPaymentList
=
req
=>
export
const
fetchPaymentList
=
req
=>
fetch
({
url
:
path
+
'/dcxy/api/payment/all/payments'
,
method
:
'get'
,
...
req
,
});
\ No newline at end of file
});
src/api/role/role.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchRoleList
=
req
=>
fetch
({
...
...
src/api/selfService/selfService.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
SERVICE_PATH
=
'/dcxy/api/base/service'
;
const
RECORD_PATH
=
'/dcxy/api/base/record'
;
...
...
src/api/shower/appoint.js
View file @
bb361cd9
const
appoint
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SHOWER_SERVER_URL
+
'/dcxy/showeAppointment'
,
timeout
:
10000
,
});
export
default
appoint
;
import
createBaseFetch
from
'../../lib/Api'
;
const
appoint
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SHOWER_SERVER_URL
+
'/dcxy/showeAppointment'
,
timeout
:
10000
,
});
export
default
appoint
;
src/api/shower/base.js
View file @
bb361cd9
const
base
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_BASE_SERVER_URL
,
timeout
:
10000
,
});
export
default
base
;
\ No newline at end of file
import
{
baseFetch
as
base
}
from
'../fetch'
;
export
default
base
;
src/api/shower/config.js
View file @
bb361cd9
const
config
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SHOWER_SERVER_URL
+
'/dcxy/shower'
,
timeout
:
10000
,
});
export
default
config
;
import
createBaseFetch
from
'../../lib/Api'
;
const
config
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SHOWER_SERVER_URL
+
'/dcxy/shower'
,
timeout
:
10000
,
});
export
default
config
;
src/api/shower/index.js
View file @
bb361cd9
const
fetch
=
manageShell
.
default
.
createBaseFetch
({
import
createBaseFetch
from
'../../lib/Api'
;
const
fetch
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SHOWER_SERVER_URL
+
'/dcxy/construction/shower/manager/manager'
,
...
...
src/api/shower/showerBase.js
View file @
bb361cd9
const
showerBase
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SHOWER_SERVER_URL
,
timeout
:
10000
,
});
export
default
showerBase
;
\ No newline at end of file
import
createBaseFetch
from
'../../lib/Api'
;
const
showerBase
=
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_SHOWER_SERVER_URL
,
timeout
:
10000
,
});
export
default
showerBase
;
src/api/smsPlatform/smsPlatform.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
baseFetch
as
fetch
}
from
'../fetch'
;
const
SMS
=
'/dcxy/sms/platform'
;
export
const
listPlatform
=
req
=>
fetch
({
url
:
SMS
+
'/list'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
SMS
+
'/list'
,
method
:
'GET'
,
...
req
,
});
export
const
addPlatform
=
req
=>
fetch
({
url
:
SMS
+
'/increase'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
SMS
+
'/increase'
,
method
:
'GET'
,
...
req
,
});
export
const
updatePlatform
=
req
=>
fetch
({
url
:
SMS
+
'/edit'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
SMS
+
'/edit'
,
method
:
'GET'
,
...
req
,
});
export
const
threeRecord
=
req
=>
fetch
({
url
:
SMS
+
'/record'
,
method
:
'GET'
,
...
req
,
});
fetch
({
url
:
SMS
+
'/record'
,
method
:
'GET'
,
...
req
,
});
src/api/statistics.js
View file @
bb361cd9
const
statistics
=
manageShell
.
default
.
createBaseFetch
({
baseURL
:
process
.
env
.
VUE_APP_STATISTICS_SERVER_URL
,
timeout
:
10000
,
});
export
default
statistics
;
\ No newline at end of file
import
{
statisticsFetch
as
statistics
}
from
'./fetch'
;
export
default
statistics
;
src/api/systemUser/systemUser.js
View file @
bb361cd9
import
fetch
from
'../fetch'
;
import
{
systemFetch
as
fetch
}
from
'../fetch'
;
export
const
fetchUserList
=
req
=>
fetch
({
...
...
src/api/user/login.js
View file @
bb361cd9
import
fetch
from
'@/api
/fetch'
;
import
{
systemFetch
as
fetch
}
from
'..
/fetch'
;
// 登录
export
const
login
=
req
=>
...
...
src/api/user/update.js
View file @
bb361cd9
import
fetch
from
'@/api
/fetch'
;
import
{
systemFetch
as
fetch
}
from
'..
/fetch'
;
export
const
updateUserinfo
=
req
=>
fetch
({
...
...
src/containers/SmaproPrepayConfig/SmaproPrepayConfig.js
View file @
bb361cd9
const
pagination
=
manageShell
.
default
.
storeModule
.
pagination
;
import
{
queryPage
,
addEntity
,
...
...
@@ -7,9 +6,13 @@ import {
getDetail
,
lockEntity
,
}
from
'../../api/SmaproPrepayConfig.js'
;
const
initFiltersStore
=
manageShell
.
default
.
storeModule
.
filter
;
const
getFilters
=
manageShell
.
default
.
utils
.
getFilters
;
const
formatDate
=
manageShell
.
default
.
utils
.
formatDate
;
import
storeModule
from
'../../lib/storeModule'
;
import
utils
from
'../../lib/utils'
;
const
pagination
=
storeModule
.
pagination
;
const
initFiltersStore
=
storeModule
.
filter
;
const
getFilters
=
utils
.
getFilters
;
const
formatDate
=
utils
.
formatDate
;
const
GET_ROLE_LIST
=
'GET_ROLE_LIST'
;
const
DETAIL_OPER_RECORD
=
'DETAIL_OPER_RECORD'
;
//操作记录
...
...
@@ -19,15 +22,11 @@ const initFilters = () => ({
operateId
:
null
,
serviceId
:
null
,
timeRange
:
[],
isOpen
:
null
,
operator
:
''
,
isOpen
:
null
,
operator
:
''
,
});
const
filtersStore
=
initFiltersStore
(
initFilters
);
const
state
=
()
=>
({
list
:
[],
detailOperRecord
:
[],
...
...
@@ -41,8 +40,8 @@ const getters = {
};
const
actions
=
{
fetchLists
({
state
,
commit
,
dispatch
,
getters
},
entity
)
{
// let filters = getFilters(getters.filters);
fetchLists
({
state
,
commit
,
dispatch
,
getters
},
entity
)
{
// let filters = getFilters(getters.filters);
const
{
timeRange
,
...
filters
}
=
getFilters
(
getters
.
filters
);
if
(
timeRange
)
{
const
[
fromDate
,
toDate
]
=
timeRange
;
...
...
src/containers/SmaproPrepayConfig/SmaproPrepayConfig.vue
View file @
bb361cd9
...
...
@@ -24,7 +24,7 @@
size=
"big"
>
<date-range-picker
:value=
"storeFilters.timeRange"
:value=
"storeFilters.timeRange"
@
input=
"val => updateFilters(
{ timeRange: val })"
clearable
/>
...
...
@@ -32,7 +32,7 @@
<search-item
label=
"是否开启"
>
<el-select
:value=
"storeFilters.isOpen"
:value=
"storeFilters.isOpen"
@
input=
"val => updateFilters(
{ isOpen: val })"
clearable
>
...
...
@@ -47,7 +47,7 @@
<search-item
label=
"更新人"
>
<el-input
:value=
"storeFilters.operator"
:value=
"storeFilters.operator"
@
input=
"val => updateFilters(
{ operator: val })"
clearable
/>
...
...
@@ -117,10 +117,11 @@
</template>
<
script
>
const
ListMixin
=
manageShell
.
default
.
mixinModule
.
ListPage
;
const
opMixin
=
manageShell
.
default
.
mixinModule
.
Input
.
OperatorOptions
;
const
serMixin
=
manageShell
.
default
.
mixinModule
.
Input
.
ServiceType
;
const
baseDataMixin
=
manageShell
.
default
.
mixinModule
.
Input
.
BaseData
;
import
mixinModule
from
'../../lib/mixins'
;
const
ListMixin
=
mixinModule
.
ListPage
;
const
opMixin
=
mixinModule
.
Input
.
OperatorOptions
;
const
serMixin
=
mixinModule
.
Input
.
ServiceType
;
const
baseDataMixin
=
mixinModule
.
Input
.
BaseData
;
import
{
mapGetters
,
mapActions
}
from
'vuex'
;
import
Table
from
'./components/Table'
;
import
EditDialog
from
'./components/EditDialog'
;
...
...
@@ -242,8 +243,8 @@ export default {
entity
.
operateId
=
this
.
userInfo
.
operateId
!=
3
?
this
.
userInfo
.
operateId
:
null
;
}
if
(
this
.
storeFilters
.
operateId
)
{
entity
.
operateId
=
this
.
storeFilters
.
operateId
;
if
(
this
.
storeFilters
.
operateId
)
{
entity
.
operateId
=
this
.
storeFilters
.
operateId
;
}
this
.
fetchLists
(
entity
);
},
...
...
src/containers/SmaproPrepayConfig/components/AddDialog.vue
View file @
bb361cd9
<
template
>
<normal-dialog
:visible=
"visible"
:before-close=
"resetAddDialog"
@
update:visible=
"updateVisibleHandle"
class=
"addClass-smproPrepayConfig"
>
<normal-dialog
:visible=
"visible"
:before-close=
"resetAddDialog"
@
update:visible=
"updateVisibleHandle"
class=
"addClass-smproPrepayConfig"
>
<template
slot=
"title"
>
新增
</
template
>
...
...
@@ -7,10 +12,17 @@
<div
class=
"giveserviceClass"
>
<el-form
label-width=
"180px"
>
<el-form-item
label=
"运营商"
>
<operator-select
v-model=
"selected.operateId"
:disabled=
"opdisabled"
/>
<operator-select
v-model=
"selected.operateId"
:disabled=
"opdisabled"
/>
</el-form-item>
<el-form-item
label=
"服务"
>
<service-select
v-model=
"selected.serviceId"
:ServiceType=
"1"
:isAll=
"1"
/>
<service-select
v-model=
"selected.serviceId"
:ServiceType=
"1"
:isAll=
"1"
/>
</el-form-item>
</el-form>
</div>
...
...
@@ -19,21 +31,48 @@
<div
class=
"udpate-titile-class backage"
>
预付金额
</div>
<div
class=
"udpate-titile-class backage"
>
操作
</div>
<div
v-for=
"item in selected.listSpcdv"
:key=
"item.id"
>
<div
v-for=
"item in selected.listSpcdv"
:key=
"item.id"
>
<div
class=
"udpate-titile-class"
>
<el-input
v-model=
"item.sortId"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
<el-input
v-model=
"item.sortId"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
</div>
<div
class=
"udpate-titile-class"
>
<el-input
v-model=
"item.prepayMoney"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
<el-input
v-model=
"item.prepayMoney"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
</div>
<el-button
class=
"udpate-titile-class"
v-if=
"item.type === 2"
type=
"primary"
@
click=
"deleteEntity(item.id)"
>
删除
</el-button>
<el-button
class=
"udpate-titile-class"
v-else
type=
"primary"
@
click=
"addEntity"
>
+
</el-button>
<el-button
class=
"udpate-titile-class"
v-if=
"item.type === 2"
type=
"primary"
@
click=
"deleteEntity(item.id)"
>
删除
</el-button>
<el-button
class=
"udpate-titile-class"
v-else
type=
"primary"
@
click=
"addEntity"
>
+
</el-button>
</div>
</div>
<div
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"submitUpdateHandle"
:disabled=
"loading"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"submitUpdateHandle"
:disabled=
"loading"
>
确定
</el-button>
<el-button
@
click=
"closeDialog"
>
取消
</el-button>
</div>
...
...
@@ -41,8 +80,9 @@
</template>
<
script
>
const
dialogMixin
=
manageShell
.
default
.
mixinModule
.
Dialog
;
const
serviceMixin
=
manageShell
.
default
.
mixinModule
.
Input
.
ServiceType
;
import
mixinModule
from
'../../../lib/mixins'
;
const
dialogMixin
=
mixinModule
.
Dialog
;
const
serviceMixin
=
mixinModule
.
Input
.
ServiceType
;
//default.mixinModule.Input.ServiceType
export
default
{
...
...
@@ -62,15 +102,15 @@ export default {
closeDialog
:
{
type
:
Function
,
},
selected
:
Object
,
opdisabled
:
Boolean
,
selected
:
Object
,
opdisabled
:
Boolean
,
},
mixins
:
[
dialogMixin
,
serviceMixin
],
data
()
{
return
{
services
:
[],
bugeidian
:
false
,
bugeidian
:
false
,
// this.fetchServiceTypeList,
};
},
...
...
src/containers/SmaproPrepayConfig/components/DetailDialog.vue
View file @
bb361cd9
...
...
@@ -27,7 +27,7 @@
</form-area>
</div>
<div
class=
"udpate-class"
>
<form-area
label-width=
"180px"
title=
"操作记录"
>
<div
v-for=
"item in selected.opRecord"
:key=
"item.id"
>
<div
class=
"udpate-titile-class"
>
...
...
@@ -49,7 +49,8 @@
</
template
>
<
script
>
const
dialogMixin
=
manageShell
.
default
.
mixinModule
.
Dialog
;
import
mixinModule
from
'../../../lib/mixins'
const
dialogMixin
=
mixinModule
.
Dialog
;
export
default
{
props
:
{
...
...
src/containers/SmaproPrepayConfig/components/EditDialog.vue
View file @
bb361cd9
<
template
>
<normal-dialog
:visible=
"visible"
:before-close=
"resetAddDialog"
@
update:visible=
"updateVisibleHandle"
class=
"edit_smp"
>
<normal-dialog
:visible=
"visible"
:before-close=
"resetAddDialog"
@
update:visible=
"updateVisibleHandle"
class=
"edit_smp"
>
<template
slot=
"title"
>
编辑
</
template
>
...
...
@@ -20,21 +25,48 @@
<div
class=
"udpate-titile-class backage"
>
预付金额
</div>
<div
class=
"udpate-titile-class backage"
>
操作
</div>
<div
v-for=
"item in selected.listSpcdv"
:key=
"item.id"
>
<div
v-for=
"item in selected.listSpcdv"
:key=
"item.id"
>
<div
class=
"udpate-titile-class"
>
<el-input
v-model=
"item.sortId"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
<el-input
v-model=
"item.sortId"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
</div>
<div
class=
"udpate-titile-class"
>
<el-input
v-model=
"item.prepayMoney"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
<el-input
v-model=
"item.prepayMoney"
type=
"number"
placeholder=
"请输入数字"
max=
"1000"
/>
</div>
<el-button
class=
"udpate-titile-class"
v-if=
"item.type === 2"
type=
"primary"
@
click=
"deleteEntity(item.id)"
>
删除
</el-button>
<el-button
class=
"udpate-titile-class"
v-else
type=
"primary"
@
click=
"addEntity"
>
+
</el-button>
<el-button
class=
"udpate-titile-class"
v-if=
"item.type === 2"
type=
"primary"
@
click=
"deleteEntity(item.id)"
>
删除
</el-button>
<el-button
class=
"udpate-titile-class"
v-else
type=
"primary"
@
click=
"addEntity"
>
+
</el-button>
</div>
</div>
<div
slot=
"footer"
>
<el-button
type=
"primary"
@
click=
"submitUpdateHandle"
:disabled=
"loading"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"submitUpdateHandle"
:disabled=
"loading"
>
确定
</el-button>
<el-button
@
click=
"closeDialog"
>
取消
</el-button>
</div>
...
...
@@ -42,7 +74,8 @@
</template>
<
script
>
const
dialogMixin
=
manageShell
.
default
.
mixinModule
.
Dialog
;
import
mixinModule
from
'../../../lib/mixins'
;
const
dialogMixin
=
mixinModule
.
Dialog
;
export
default
{
props
:
{
...
...
src/dev-local/develop.js
View file @
bb361cd9
import
CreatSystem
from
'../lib/main'
;
import
{
createSystem
}
from
'../lib/main'
;
import
asyncRouterMap
from
'../router/asyncRoutes'
;
window
.
manageShell
=
{
default
:
CreatSystem
};
window
.
allAasyncRouterMap
=
[...
asyncRouterMap
];
import
utils
from
'../lib/utils'
;
let
constantRouter
=
[
{
...
...
@@ -15,7 +13,7 @@ let constantRouter = [
];
const
routeFilter
=
(
routes
,
allRoute
)
=>
{
if
(
allRoute
&&
allRoute
.
length
)
{
let
addRoute
=
manageShell
.
default
.
utils
.
route
.
formatRouteLink
(
allRoute
);
let
addRoute
=
utils
.
route
.
formatRouteLink
(
allRoute
);
for
(
let
index
=
0
;
index
<
addRoute
.
length
;
index
++
)
{
const
element
=
addRoute
[
index
];
if
(
element
.
children
)
{
...
...
@@ -32,14 +30,15 @@ const routeFilter = (routes, allRoute) => {
routes
,
};
};
const
script
=
document
.
createElement
(
'script'
);
script
.
text
=
`
manageShell.default.createSystem({
basePath: '
${
process
.
env
.
VUE_APP_BASE_URL
}
',
routers: allAasyncRouterMap,
constantRouter:
${
JSON
.
stringify
(
constantRouter
)}
,
whiteList: '/asd',
routeFilter:
${
routeFilter
.
toString
()}
,
})
`
;
document
.
body
.
appendChild
(
script
);
createSystem
({
basePath
:
process
.
env
.
VUE_APP_BASE_URL
,
routers
:
asyncRouterMap
,
constantRouter
:
constantRouter
,
whiteList
:
'/asd'
,
routeFilter
:
routeFilter
,
});
// const script = document.createElement('script');
// script.text = `
// `;
// document.body.appendChild(script);
src/lib/main.js
View file @
bb361cd9
...
...
@@ -25,52 +25,57 @@ class SystemShell {
this
.
utils
=
utilsModule
;
this
.
createBaseFetch
=
createBaseFetch
;
}
createSystem
=
({
basePath
=
'/'
,
routers
,
routeFilter
,
constantRouter
,
whiteList
,
})
=>
{
const
router
=
new
VueRouter
({
mode
:
'history'
,
base
:
basePath
,
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRouter
&&
constantRouter
instanceof
Array
?
[...
constantRouterMap
,
...
constantRouter
]
:
constantRouterMap
,
});
routeStore
.
install
(
store
);
extendCom
(
Vue
);
const
allWhiteList
=
whiteList
&&
typeof
whiteList
===
'string'
?
[
...
process
.
env
.
VUE_APP_WHITE_LIST
.
split
(
','
),
...
whiteList
.
split
(
','
),
]
:
process
.
env
.
VUE_APP_WHITE_LIST
.
split
(
','
);
// 不重定向白名单
}
store
.
dispatch
(
'getWhiteList'
,
allWhiteList
);
configRoutePermission
(
router
,
store
,
routers
,
allWhiteList
);
Vue
.
config
.
productionTip
=
false
;
export
const
createSystem
=
({
basePath
=
'/'
,
routers
,
routeFilter
,
constantRouter
,
whiteList
,
})
=>
{
const
router
=
new
VueRouter
({
mode
:
'history'
,
base
:
basePath
,
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRouter
&&
constantRouter
instanceof
Array
?
[...
constantRouterMap
,
...
constantRouter
]
:
constantRouterMap
,
});
routeStore
.
install
(
store
);
extendCom
(
Vue
);
const
allWhiteList
=
whiteList
&&
typeof
whiteList
===
'string'
?
[...
process
.
env
.
VUE_APP_WHITE_LIST
.
split
(
','
),
...
whiteList
.
split
(
','
)]
:
process
.
env
.
VUE_APP_WHITE_LIST
.
split
(
','
);
// 不重定向白名单
let
app
=
new
Vue
({
el
:
'#app'
,
router
,
store
,
render
:
h
=>
{
let
routes
=
[...
constantRouterMap
];
let
allRoute
=
store
.
getters
.
asyncRoutes
;
if
(
typeof
routeFilter
===
'function'
)
{
const
data
=
routeFilter
(
routes
,
allRoute
);
routes
=
data
.
routes
;
allRoute
=
data
.
allRoute
;
}
return
<
App
route
=
{
routes
}
allRoutes
=
{
allRoute
}
/>
;
},
});
return
app
;
};
}
export
default
new
SystemShell
();
store
.
dispatch
(
'getWhiteList'
,
allWhiteList
);
configRoutePermission
(
router
,
store
,
routers
,
allWhiteList
);
Vue
.
config
.
productionTip
=
false
;
let
app
=
new
Vue
({
el
:
'#app'
,
router
,
store
,
render
:
h
=>
{
let
routes
=
[...
constantRouterMap
];
let
allRoute
=
store
.
getters
.
asyncRoutes
;
if
(
typeof
routeFilter
===
'function'
)
{
const
data
=
routeFilter
(
routes
,
allRoute
);
routes
=
data
.
routes
;
allRoute
=
data
.
allRoute
;
}
return
<
App
route
=
{
routes
}
allRoutes
=
{
allRoute
}
/>
;
},
});
return
app
;
};
export
default
{
Api
:
fetch
,
storeModule
:
storeModule
,
mixinModule
:
mixinModule
,
utils
:
utilsModule
,
createBaseFetch
:
createBaseFetch
,
};
src/router/asyncRoutes.js
View file @
bb361cd9
import
_import
from
'./_import'
;
import
HomeIcon
from
'@/assets/images/menu/home.png'
;
//
import subSystemRoutes from './asyncRoutes/index';
import
subSystemRoutes
from
'./asyncRoutes/index'
;
export
default
[
{
...
...
@@ -25,5 +25,5 @@ export default [
component
:
_import
(
'Dashboard/Dashboard'
),
hidden
:
true
,
},
//
...subSystemRoutes,
...
subSystemRoutes
,
];
src/router/asyncRoutes/index.js
View file @
bb361cd9
import
operatorRoutes
from
'./operator'
;
import
rechargeRoutes
from
'./recharge'
;
//
import operatorRoutes from './operator';
//
import rechargeRoutes from './recharge';
import
SmaproPrepayConfigRoute
from
'./SmaproPrepayConfig'
;
import
SmaproRefundOrderStore
from
'./SmaproRefundOrder'
;
import
CustomerRoute
from
'./customer'
;
import
PrepayOrderRoute
from
'./prepayOrder'
;
import
OperateOrderRoute
from
'./operateOrder'
;
import
FlatformTollRoute
from
'./flatformToll'
;
import
appRoutes
from
'./appRoutes'
;
import
consumeReportRouter
from
'./consumeReport'
;
import
consumeOrderallRouter
from
'./consumeOrderAll'
;
import
showerRoute
from
'./shower'
;
import
deviceManageRoute
from
'./deviceManage'
;
import
hairDryerRoute
from
'./hairDryer'
;
import
dispenserRoute
from
'./waterDispenser'
;
import
equipmentParamsRoute
from
'./equipmentParamsManagement'
;
import
deviceParamsRoute
from
'./deviceParamsConfig'
;
import
equipmentManagementRoute
from
'./device3'
;
import
systemUserRoute
from
'./systemUser'
;
import
operLogRoute
from
'./operLog'
;
import
menuRoute
from
'./menu'
;
import
roleRoute
from
'./role'
;
import
adminFunction
from
'./adminFunction'
;
import
adminArea
from
'./adminArea'
;
import
interfaceRoute
from
'./interface'
;
import
reportRoute
from
'./appReportLog'
;
import
StateRoute
from
'./state'
;
import
CMBRoute
from
'./cmb'
;
import
AREARoute
from
'./area'
;
import
serviceRoute
from
'./selfservice'
;
import
OPERRoute
from
'./operator'
;
import
paymentRoute
from
'./payment'
;
import
operationManagementRoute
from
'./operationManagement'
;
import
areaRechargeRoute
from
'./areaRecharge'
;
import
controlRoute
from
'./rechargeControl'
;
import
purchasingRoute
from
'./purchasingOrder'
;
import
prepaidModelRoute
from
'./prepaidModel'
;
import
areaSmsRoute
from
'./areaSms'
;
import
accountRouter
from
'./account'
;
import
customerInfoList
from
'./customerInfo'
;
import
customerOrder
from
'./order'
;
//
import SmaproRefundOrderStore from './SmaproRefundOrder';
//
import CustomerRoute from './customer';
//
import PrepayOrderRoute from './prepayOrder';
//
import OperateOrderRoute from './operateOrder';
//
import FlatformTollRoute from './flatformToll';
//
import appRoutes from './appRoutes';
//
import consumeReportRouter from './consumeReport';
//
import consumeOrderallRouter from './consumeOrderAll';
//
import showerRoute from './shower';
//
import deviceManageRoute from './deviceManage';
//
import hairDryerRoute from './hairDryer';
//
import dispenserRoute from './waterDispenser';
//
import equipmentParamsRoute from './equipmentParamsManagement';
//
import deviceParamsRoute from './deviceParamsConfig';
//
import equipmentManagementRoute from './device3';
//
import systemUserRoute from './systemUser';
//
import operLogRoute from './operLog';
//
import menuRoute from './menu';
//
import roleRoute from './role';
//
import adminFunction from './adminFunction';
//
import adminArea from './adminArea';
//
import interfaceRoute from './interface';
//
import reportRoute from './appReportLog';
//
import StateRoute from './state';
//
import CMBRoute from './cmb';
//
import AREARoute from './area';
//
import serviceRoute from './selfservice';
//
import OPERRoute from './operator';
//
import paymentRoute from './payment';
//
import operationManagementRoute from './operationManagement';
//
import areaRechargeRoute from './areaRecharge';
//
import controlRoute from './rechargeControl';
//
import purchasingRoute from './purchasingOrder';
//
import prepaidModelRoute from './prepaidModel';
//
import areaSmsRoute from './areaSms';
//
import accountRouter from './account';
//
import customerInfoList from './customerInfo';
//
import customerOrder from './order';
export
default
[
...
operatorRoutes
,
...
rechargeRoutes
,
//
...operatorRoutes,
//
...rechargeRoutes,
...
SmaproPrepayConfigRoute
,
...
CustomerRoute
,
...
PrepayOrderRoute
,
...
OperateOrderRoute
,
...
FlatformTollRoute
,
...
SmaproRefundOrderStore
,
...
appRoutes
,
...
consumeReportRouter
,
...
consumeOrderallRouter
,
...
showerRoute
,
...
deviceManageRoute
,
...
hairDryerRoute
,
...
dispenserRoute
,
...
equipmentParamsRoute
,
...
deviceParamsRoute
,
...
equipmentManagementRoute
,
...
systemUserRoute
,
...
operLogRoute
,
...
menuRoute
,
...
roleRoute
,
...
adminFunction
,
...
adminArea
,
...
interfaceRoute
,
...
reportRoute
,
...
StateRoute
,
...
CMBRoute
,
...
AREARoute
,
...
serviceRoute
,
...
OPERRoute
,
...
paymentRoute
,
...
operationManagementRoute
,
...
areaRechargeRoute
,
...
controlRoute
,
...
purchasingRoute
,
...
prepaidModelRoute
,
...
areaSmsRoute
,
...
accountRouter
,
...
customerInfoList
,
...
customerOrder
,
//
...CustomerRoute,
//
...PrepayOrderRoute,
//
...OperateOrderRoute,
//
...FlatformTollRoute,
//
...SmaproRefundOrderStore,
//
...appRoutes,
//
...consumeReportRouter,
//
...consumeOrderallRouter,
//
...showerRoute,
//
...deviceManageRoute,
//
...hairDryerRoute,
//
...dispenserRoute,
//
...equipmentParamsRoute,
//
...deviceParamsRoute,
//
...equipmentManagementRoute,
//
...systemUserRoute,
//
...operLogRoute,
//
...menuRoute,
//
...roleRoute,
//
...adminFunction,
//
...adminArea,
//
...interfaceRoute,
//
...reportRoute,
//
...StateRoute,
//
...CMBRoute,
//
...AREARoute,
//
...serviceRoute,
//
...OPERRoute,
//
...paymentRoute,
//
...operationManagementRoute,
//
...areaRechargeRoute,
//
...controlRoute,
//
...purchasingRoute,
//
...prepaidModelRoute,
//
...areaSmsRoute,
//
...accountRouter,
//
...customerInfoList,
//
...customerOrder,
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment