Commit 6b228177 authored by hanfeng's avatar hanfeng

Merge branch 'base-modify' of http://113.105.137.151:22280/youjj/cloud-platform-ui into base-modify

# Conflicts:
#	src/router/index.js
#	src/views/admin/user/index.vue
parents 2cae7524 876f3491
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
// BASE_API: '"http://113.105.137.152:9800"', // BASE_API: '"http://113.105.137.152:9800"',
BASE_API: '"https://xxfcmgmt.upyuns.com"', BASE_API: '"https://mgmt.dfangche.com"',
APP_ORIGIN: '"https://wallstreetcn.com"' APP_ORIGIN: '"https://wallstreetcn.com"'
}; };
...@@ -53,3 +53,30 @@ export function ret(data) { ...@@ -53,3 +53,30 @@ export function ret(data) {
data: data data: data
}); });
} }
/**
* 根据id获取一条违章查询记录
* @param query
*/
export function getOneIllegalRow(id) {
return fetch({
url: '/api/order/orderViolation/getOne/' + id,
method: 'get'
});
}
/**
* 保存违章记录
* @param query
* {price:图片地址(多个逗号分割)
price:退款总金额
detailId:租车订单id
}
*/
export function saveOrderViolation(params) {
return fetch({
url: '/vehicle/departure/app/save',
method: 'post',
data: params
});
}
\ No newline at end of file
...@@ -77,17 +77,29 @@ export const constantRouterMap = [{ ...@@ -77,17 +77,29 @@ export const constantRouterMap = [{
component: _import('error/401'), component: _import('error/401'),
hidden: true hidden: true
}, },
{ {
path: '/', path: '/',
component: Layout, component: Layout,
redirect: '/dashboard', redirect: '/dashboard',
name: '首页', name: '首页',
hidden: true, hidden: true,
children: [{ children: [{
path: 'dashboard', path: 'dashboard',
component: _import('dashboard/index') component: _import('dashboard/index')
}] }]
}, },
// {
// path: '/',
// component: Layout,
// redirect: '/baseManager/userManager',
// name: '首页',
// hidden: true,
// children: [{
// path: 'userManager',
// component: _import('admin/user/index')
// }]
// },
{ {
path: '/introduction', path: '/introduction',
component: Layout, component: Layout,
......
This diff is collapsed.
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
res.data.list.forEach(function (item) { res.data.list.forEach(function (item) {
item.price = item.price / 1000 + ",000"; item.price = item.price / 1000 + ",000";
item.width = (item.total - item.balance) / item.total * 100 + "px"; item.width = (item.total - item.balance) / item.total * 100 + "px";
item.companyPic = "https://xxfcmgmt.upyuns.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath=" + item.companyPic; item.companyPic = "https://mgmt.dfangche.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath=" + item.companyPic;
allList.push(item); allList.push(item);
}); });
this.lastPage = res.data.lastPage; this.lastPage = res.data.lastPage;
...@@ -394,7 +394,7 @@ ...@@ -394,7 +394,7 @@
res.data.list.forEach(function (item) { res.data.list.forEach(function (item) {
item.price = item.price / 1000 + ",000"; item.price = item.price / 1000 + ",000";
item.width = (item.total - item.balance) / item.total * 100 + "px"; item.width = (item.total - item.balance) / item.total * 100 + "px";
item.companyPic = "https://xxfcmgmt.upyuns.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath=" + item.companyPic; item.companyPic = "https://mgmt.dfangche.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath=" + item.companyPic;
allList.push(item); allList.push(item);
}); });
this.list = allList; this.list = allList;
......
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
res.data.list.forEach(function (item) { res.data.list.forEach(function (item) {
item.price = item.price / 10000; item.price = item.price / 10000;
item.width = (item.total - item.balance) / item.total * 100 + "px"; item.width = (item.total - item.balance) / item.total * 100 + "px";
item.companyPic = "https://xxfcmgmt.upyuns.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath=" + item.companyPic; item.companyPic = "https://mgmt.dfangche.com/vehicle/branchCompany/stock/download/companyPic?realFileRelPath=" + item.companyPic;
allList.push(item); allList.push(item);
}); });
if(res.data.list.length< this.listQuery.limit && allList.length>0){ if(res.data.list.length< this.listQuery.limit && allList.length>0){
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment