Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contractmanage
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
张伯涛
contractmanage
Commits
ffe42702
Commit
ffe42702
authored
Mar 10, 2022
by
shenyanpei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除一些前端打印代码,项目信息加提示
parent
0914eb4c
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
55 deletions
+68
-55
index.vue
src/components/Breadcrumb/index.vue
+0
-2
index.vue
src/layout/components/TagsView/index.vue
+0
-1
request.js
src/utils/request.js
+1
-2
add.vue
src/views/contactsUnit/add.vue
+3
-3
index.vue
src/views/contactsUnit/index.vue
+1
-1
addProject.vue
src/views/projectInfo/addProject.vue
+60
-43
index.vue
src/views/projectInfo/index.vue
+3
-3
No files found.
src/components/Breadcrumb/index.vue
View file @
ffe42702
...
@@ -58,8 +58,6 @@ export default {
...
@@ -58,8 +58,6 @@ export default {
return
cur
return
cur
},
[])
},
[])
for
(
const
key
in
this
.
fakeList
)
{
for
(
const
key
in
this
.
fakeList
)
{
console
.
log
(
key
,
'1'
)
console
.
log
(
this
.
levelList
[
this
.
levelList
.
length
-
1
].
path
,
'2'
)
if
(
key
===
this
.
levelList
[
this
.
levelList
.
length
-
1
].
path
)
{
if
(
key
===
this
.
levelList
[
this
.
levelList
.
length
-
1
].
path
)
{
this
.
levelList
.
splice
(
1
,
0
,
this
.
fakeList
[
key
])
this
.
levelList
.
splice
(
1
,
0
,
this
.
fakeList
[
key
])
}
}
...
...
src/layout/components/TagsView/index.vue
View file @
ffe42702
...
@@ -72,7 +72,6 @@ export default {
...
@@ -72,7 +72,6 @@ export default {
},
},
methods
:
{
methods
:
{
setName
(
route
)
{
setName
(
route
)
{
console
.
log
(
'路由'
,
route
)
if
(
route
.
path
===
'/contract/manage1/add'
||
route
.
path
===
'/contactsUnit/add'
||
route
.
path
===
'/projectInfo/addProject'
||
route
.
path
===
'/assetsInfo/add'
||
route
.
path
===
'/materialsInfo/add'
)
{
if
(
route
.
path
===
'/contract/manage1/add'
||
route
.
path
===
'/contactsUnit/add'
||
route
.
path
===
'/projectInfo/addProject'
||
route
.
path
===
'/assetsInfo/add'
||
route
.
path
===
'/materialsInfo/add'
)
{
if
(
route
.
query
.
type
===
'add'
)
{
if
(
route
.
query
.
type
===
'add'
)
{
return
'新增'
+
route
.
title
return
'新增'
+
route
.
title
...
...
src/utils/request.js
View file @
ffe42702
...
@@ -33,14 +33,13 @@ service.interceptors.request.use(config => {
...
@@ -33,14 +33,13 @@ service.interceptors.request.use(config => {
config
.
headers
[
'Authorization'
]
=
'Bearer '
+
getToken
()
// 让每个请求携带自定义token 请根据实际情况自行修改
config
.
headers
[
'Authorization'
]
=
'Bearer '
+
getToken
()
// 让每个请求携带自定义token 请根据实际情况自行修改
}
}
// 参数发出前统一进行加密 白名单内的不进行加密
// 参数发出前统一进行加密 白名单内的不进行加密
console
.
log
(
config
)
//
console.log(config)
// if(config.data) {
// if(config.data) {
// config.data = Qs.stringify(config.data, { arrayFormat: 'repeat' })
// config.data = Qs.stringify(config.data, { arrayFormat: 'repeat' })
// }
// }
return
config
return
config
},
error
=>
{
},
error
=>
{
console
.
log
(
error
)
Promise
.
reject
(
error
)
Promise
.
reject
(
error
)
})
})
// 响应拦截器
// 响应拦截器
...
...
src/views/contactsUnit/add.vue
View file @
ffe42702
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"contactsUnitAdd"
>
<div
class=
"contactsUnitAdd"
>
<div
class=
"addTitle"
>
{{
$route
.
query
.
type
===
'add'
?
'新增往来单位'
<div
class=
"addTitle"
>
{{
$route
.
query
.
type
===
'add'
?
'新增往来单位'
:
$route
.
query
.
type
===
'update'
?
'修改往来单位'
:
$route
.
query
.
type
===
'update'
?
'修改往来单位'
:
$route
.
query
.
type
===
'
d
etails'
?
'查看往来单位'
:
''
}}
</div>
:
$route
.
query
.
type
===
'
checkD
etails'
?
'查看往来单位'
:
''
}}
</div>
<el-form
ref=
"form"
inline
:model=
"form"
:disabled=
"$route.query.type === 'details'"
label-width=
"auto"
label-position=
"right"
>
<el-form
ref=
"form"
inline
:model=
"form"
:disabled=
"$route.query.type === 'details'"
label-width=
"auto"
label-position=
"right"
>
<div
class=
"step-header"
>
<div
class=
"step-header"
>
<div
class=
"step-label"
>
基本信息
</div>
<div
class=
"step-label"
>
基本信息
</div>
...
@@ -156,12 +156,12 @@ export default {
...
@@ -156,12 +156,12 @@ export default {
}
}
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
query
.
type
===
'update'
||
this
.
$route
.
query
.
type
===
'
d
etails'
)
{
if
(
this
.
$route
.
query
.
type
===
'update'
||
this
.
$route
.
query
.
type
===
'
checkD
etails'
)
{
this
.
getDetail
()
this
.
getDetail
()
}
}
},
},
beforeRouteLeave
(
to
,
from
,
next
)
{
beforeRouteLeave
(
to
,
from
,
next
)
{
if
(
this
.
agreeBack
)
{
next
()
}
else
{
if
(
this
.
agreeBack
||
this
.
$route
.
query
.
type
===
'checkDetails'
)
{
next
()
}
else
{
if
(
JSON
.
stringify
(
this
.
form
)
!==
JSON
.
stringify
(
this
.
saveForm
))
{
if
(
JSON
.
stringify
(
this
.
form
)
!==
JSON
.
stringify
(
this
.
saveForm
))
{
this
.
$confirm
(
'您已经对信息进行了修改,离开后不会保存您所做的更改,是否确定离开?'
,
'提示'
,
{
this
.
$confirm
(
'您已经对信息进行了修改,离开后不会保存您所做的更改,是否确定离开?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
...
...
src/views/contactsUnit/index.vue
View file @
ffe42702
...
@@ -107,7 +107,7 @@ export default {
...
@@ -107,7 +107,7 @@ export default {
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/contactsUnit/add'
,
path
:
'/contactsUnit/add'
,
query
:
{
query
:
{
type
:
'
d
etails'
,
type
:
'
checkD
etails'
,
data
:
row
data
:
row
}
}
})
})
...
...
src/views/projectInfo/addProject.vue
View file @
ffe42702
This diff is collapsed.
Click to expand it.
src/views/projectInfo/index.vue
View file @
ffe42702
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
<div
style=
"flex: 1"
>
<div
style=
"flex: 1"
>
<el-form
ref=
"projectForm"
inline
:model=
"projectForm"
label-position=
"left"
>
<el-form
ref=
"projectForm"
inline
:model=
"projectForm"
label-position=
"left"
>
<el-form-item
label=
"项目类型"
>
<el-form-item
label=
"项目类型"
>
<el-input
v-model=
"projectForm.ZPROJTYPE"
clearable
placeholder=
"请输入项目类型"
/>
<el-input
v-model
.
trim
=
"projectForm.ZPROJTYPE"
clearable
placeholder=
"请输入项目类型"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"国家/地区"
>
<el-form-item
label=
"国家/地区"
>
<el-input
v-model
=
"projectForm.ZPRO_ORG
"
clearable
placeholder=
"请输入国家/地区"
/>
<el-input
v-model
.
trim=
"projectForm.ZZCOUNTRY
"
clearable
placeholder=
"请输入国家/地区"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"中交项目业务分类值域"
>
<el-form-item
label=
"中交项目业务分类值域"
>
<el-input
v-model=
"projectForm.ZCPBC"
clearable
placeholder=
"请输入中交项目业务分类值域"
/>
<el-input
v-model
.
trim
=
"projectForm.ZCPBC"
clearable
placeholder=
"请输入中交项目业务分类值域"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"queryProject"
>
查询
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"queryProject"
>
查询
</el-button>
...
...
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