Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
05639637
Commit
05639637
authored
Feb 06, 2018
by
胡小根
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add proxy to
http://api.haomo-studio.com
parent
9a372f4d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
4 deletions
+13
-4
dev.env.js
config/dev.env.js
+1
-1
index.js
config/index.js
+9
-1
HmComplexTable.vue
src/views/haomo/components/tables/HmComplexTable.vue
+2
-1
index.vue
src/views/haomo/components/tables/index.vue
+1
-1
hm_org_schema.js
src/views/haomo/schemas/hm_org_schema.js
+0
-0
No files found.
config/dev.env.js
View file @
05639637
module
.
exports
=
{
NODE_ENV
:
'"development"'
,
ENV_CONFIG
:
'"dev"'
,
BASE_API
:
'"
http://zjk.haomo-studio.com/zhangjiakouOA
"'
BASE_API
:
'"
/api
"'
}
config/index.js
View file @
05639637
...
...
@@ -10,7 +10,15 @@ module.exports = {
// Paths
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/'
,
proxyTable
:
{},
proxyTable
:
{
'/api'
:
{
target
:
'http://haomo-studio.com:28086/org'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/api'
:
'/'
}
}
},
// Various Dev Server settings
host
:
'localhost'
,
// can be overwritten by process.env.HOST
...
...
src/views/haomo/components/tables/HmComplexTable.vue
View file @
05639637
...
...
@@ -230,7 +230,8 @@
getList
()
{
const
self
=
this
self
.
listLoading
=
true
request
(
self
.
schema
).
then
(
resp
=>
{
request
(
self
.
schema
.
modelUnderscorePlural
).
then
(
resp
=>
{
console
.
log
(
resp
)
self
.
list
=
resp
.
data
.
data
self
.
total
=
resp
.
data
.
total
self
.
listLoading
=
false
...
...
src/views/haomo/components/tables/index.vue
View file @
05639637
...
...
@@ -7,7 +7,7 @@
<
script
>
import
HmComplexTable
from
'./HmComplexTable.vue'
import
schema
from
'../../schema'
import
schema
from
'../../schema
s/hm_org_schema
'
export
default
{
name
:
'HmComplexTable'
,
...
...
src/views/haomo/schema.js
→
src/views/haomo/schema
s/hm_org_schema
.js
View file @
05639637
File moved
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