Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
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
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
中通客车项目
zhongtong-avi-web
Commits
185a78cc
Commit
185a78cc
authored
Oct 22, 2019
by
李志鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fea(api文件): 更新api文件
parent
2743b7d6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
491 additions
and
145 deletions
+491
-145
index.js
config/index.js
+2
-2
apis.js
src/interface/apis.js
+10
-4
AddCheckItem.vue
src/views/Laboratory/Pickling/components/AddCheckItem.vue
+255
-0
AddReport.vue
src/views/Laboratory/Pickling/components/AddReport.vue
+224
-137
SidebarItem.vue
src/views/Layout/components/SidebarItem.vue
+0
-2
No files found.
config/index.js
View file @
185a78cc
...
@@ -13,8 +13,8 @@ module.exports = {
...
@@ -13,8 +13,8 @@ module.exports = {
// 代理后端服务器
// 代理后端服务器
proxyTable
:
{
proxyTable
:
{
'/host'
:
{
'/host'
:
{
target
:
'http://10.100.172.150:9108'
,
//设置你调用的接口域名和端口号 别忘了加http
//
target: 'http://10.100.172.150:9108', //设置你调用的接口域名和端口号 别忘了加http
//
target: 'http://192.168.43.244:8888',// 东伟服务器地址
target
:
'http://192.168.43.244:8888'
,
// 东伟服务器地址
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'^/host'
:
''
//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
'^/host'
:
''
//这里理解成用‘/host’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
...
...
src/interface/apis.js
View file @
185a78cc
...
@@ -71,12 +71,12 @@
...
@@ -71,12 +71,12 @@
"url"
:
"/api/check/addCheckRecord"
,
"url"
:
"/api/check/addCheckRecord"
,
"method"
:
"post"
"method"
:
"post"
},
},
"
deleteCheckItemModelByI
d-delete"
:
{
"
i
d-delete"
:
{
"url"
:
"/api/check/deleteCheckItemModelById"
,
"url"
:
"/api/check/deleteCheckItemModelById
/{id}
"
,
"method"
:
"delete"
"method"
:
"delete"
},
},
"
expert
-post"
:
{
"
recordId
-post"
:
{
"url"
:
"/api/check/expert"
,
"url"
:
"/api/check/expert
/{recordId}
"
,
"method"
:
"post"
"method"
:
"post"
},
},
"getCheckByType-get"
:
{
"getCheckByType-get"
:
{
...
@@ -168,6 +168,12 @@
...
@@ -168,6 +168,12 @@
"method"
:
"get"
"method"
:
"get"
}
}
},
},
"led-controller"
:
{
"ledInfo-get"
:
{
"url"
:
"/api/led/ledInfo"
,
"method"
:
"get"
}
},
"report-data-source-controller"
:
{
"report-data-source-controller"
:
{
"reportDataSource-post"
:
{
"reportDataSource-post"
:
{
"url"
:
"/api/reportDataSource"
,
"url"
:
"/api/reportDataSource"
,
...
...
src/views/Laboratory/Pickling/components/AddCheckItem.vue
0 → 100644
View file @
185a78cc
This diff is collapsed.
Click to expand it.
src/views/Laboratory/Pickling/components/AddReport.vue
View file @
185a78cc
This diff is collapsed.
Click to expand it.
src/views/Layout/components/SidebarItem.vue
View file @
185a78cc
...
@@ -65,8 +65,6 @@
...
@@ -65,8 +65,6 @@
methods
:
{
methods
:
{
// 检测子路由是否有权限访问
// 检测子路由是否有权限访问
checkCurrentRouteAuthority
(
children
,
item
)
{
checkCurrentRouteAuthority
(
children
,
item
)
{
console
.
log
(
'qxCHILD'
,
children
)
console
.
log
(
'qxITEM'
,
item
)
if
(
!
item
.
meta
)
{
if
(
!
item
.
meta
)
{
return
false
;
// 匹配到框架级路由
return
false
;
// 匹配到框架级路由
}
else
{
}
else
{
...
...
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