Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
decdc5a9
Commit
decdc5a9
authored
Sep 26, 2019
by
dqjdda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试环境配置代理访问接口,修改用户导出格式为.xlsx
parent
9232dbf5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
11 deletions
+31
-11
config/index.js
+25
-5
src/utils/request.js
+1
-1
src/views/dashboard/PanelGroup.vue
+4
-4
src/views/system/user/index.vue
+1
-1
No files found.
config/index.js
View file @
decdc5a9
'use strict'
// Template version: 1.2.6
// see http://vuejs-templates.github.io/webpack for documentation.
const
devEnv
=
require
(
'./dev.env'
)
// 获取接口地址
const
base_url
=
devEnv
.
BASE_API
.
replace
(
/"/g
,
''
)
const
path
=
require
(
'path'
)
module
.
exports
=
{
dev
:
{
// Paths
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/'
,
proxyTable
:
{},
// 配置代理
proxyTable
:
{
'/auth'
:
{
// 测试环境
target
:
base_url
,
secure
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/auth'
:
'auth'
}
},
'/api'
:
{
// 测试环境
target
:
base_url
,
secure
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/api'
:
'api'
}
}
},
// Various Dev Server settings
host
:
'localhost'
,
// can be overwritten by process.env.HOST
...
...
@@ -57,7 +77,7 @@ module.exports = {
* then assetsPublicPath should be set to "/bar/".
* In most cases please use '/' !!!
*/
assetsPublicPath
:
'/'
,
assetsPublicPath
:
'
.
/'
,
/**
* Source Maps
...
...
src/utils/request.js
View file @
decdc5a9
...
...
@@ -7,7 +7,7 @@ import Config from '@/config'
// 创建axios实例
const
service
=
axios
.
create
({
baseURL
:
process
.
env
.
BASE_API
,
// api 的 base_url
baseURL
:
process
.
env
.
NODE_ENV
===
'production'
?
process
.
env
.
BASE_API
:
'/'
,
// api 的 base_url
timeout
:
Config
.
timeout
// 请求超时时间
})
...
...
src/views/dashboard/PanelGroup.vue
View file @
decdc5a9
...
...
@@ -6,7 +6,7 @@
<svg-icon
icon-class=
"visits"
class-name=
"card-panel-icon"
/>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
Daily Pv
</div>
<div
class=
"card-panel-text"
>
日流量
</div>
<count-to
:start-val=
"0"
:end-val=
"count.newVisits"
:duration=
"2600"
class=
"card-panel-num"
/>
</div>
</div>
...
...
@@ -17,7 +17,7 @@
<svg-icon
icon-class=
"ipvisits"
class-name=
"card-panel-icon"
/>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
Daily Ip
</div>
<div
class=
"card-panel-text"
>
日IP量
</div>
<count-to
:start-val=
"0"
:end-val=
"count.newIp"
:duration=
"3000"
class=
"card-panel-num"
/>
</div>
</div>
...
...
@@ -28,7 +28,7 @@
<svg-icon
icon-class=
"visits"
class-name=
"card-panel-icon"
/>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
Weekly Pv
</div>
<div
class=
"card-panel-text"
>
周流量
</div>
<count-to
:start-val=
"0"
:end-val=
"count.recentVisits"
:duration=
"3200"
class=
"card-panel-num"
/>
</div>
</div>
...
...
@@ -39,7 +39,7 @@
<svg-icon
icon-class=
"ipvisits"
class-name=
"card-panel-icon"
/>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
Weekly Ip
</div>
<div
class=
"card-panel-text"
>
周IP量
</div>
<count-to
:start-val=
"0"
:end-val=
"count.recentIp"
:duration=
"3600"
class=
"card-panel-num"
/>
</div>
</div>
...
...
src/views/system/user/index.vue
View file @
decdc5a9
...
...
@@ -194,7 +194,7 @@ export default {
download
()
{
this
.
downloadLoading
=
true
downloadUser
().
then
(
result
=>
{
downloadFile
(
result
,
'用户列表'
,
'xls'
)
downloadFile
(
result
,
'用户列表'
,
'xls
x
'
)
this
.
downloadLoading
=
false
}).
catch
(()
=>
{
this
.
downloadLoading
=
false
...
...
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