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
6f6f1ab4
Commit
6f6f1ab4
authored
Mar 05, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
61d77214
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
811 additions
and
769 deletions
+811
-769
index.vue
src/layout/components/TagsView/index.vue
+15
-1
header.vue
src/layout/components/header.vue
+3
-1
index.js
src/router/index.js
+1
-1
add.vue
src/views/list/add.vue
+26
-21
index.vue
src/views/list/index.vue
+23
-2
apis.js
src/views/user/apis.js
+742
-742
login.vue
src/views/user/login.vue
+1
-1
No files found.
src/layout/components/TagsView/index.vue
View file @
6f6f1ab4
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
@click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
@click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
@contextmenu.prevent.native="openMenu(tag,$event)"
@contextmenu.prevent.native="openMenu(tag,$event)"
>
>
{{
tag
.
title
}}
{{
setName
(
tag
)
}}
<span
v-if=
"!isAffix(tag)"
class=
"el-icon-close"
@
click
.
prevent
.
stop=
"closeSelectedTag(tag)"
/>
<span
v-if=
"!isAffix(tag)"
class=
"el-icon-close"
@
click
.
prevent
.
stop=
"closeSelectedTag(tag)"
/>
</router-link>
</router-link>
</scroll-pane>
</scroll-pane>
...
@@ -71,6 +71,20 @@ export default {
...
@@ -71,6 +71,20 @@ export default {
this
.
addTags
()
this
.
addTags
()
},
},
methods
:
{
methods
:
{
setName
(
route
)
{
console
.
log
(
'路由'
,
route
)
if
(
route
.
path
===
'/contract/manage1/add'
)
{
if
(
route
.
query
.
type
===
'add'
)
{
return
'新增'
+
route
.
title
}
else
if
(
route
.
query
.
type
===
'update'
)
{
return
'修改'
+
route
.
title
}
else
if
(
route
.
query
.
type
===
'checkDetails'
)
{
return
'查看'
+
route
.
title
}
}
else
{
return
route
.
title
}
},
isActive
(
route
)
{
isActive
(
route
)
{
return
route
.
path
===
this
.
$route
.
path
return
route
.
path
===
this
.
$route
.
path
},
},
...
...
src/layout/components/header.vue
View file @
6f6f1ab4
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<!--
<i
class=
"el-icon-message-solid"
/>
-->
<!--
<i
class=
"el-icon-message-solid"
/>
-->
<!--
</el-badge>
-->
<!--
</el-badge>
-->
<span
class=
"username-text"
>
<span
class=
"username-text"
>
[您好,
{{
userName
}}
]
[您好,
{{
userName
}}
{{
name
}}
]
</span>
</span>
<el-dropdown
class=
"avatar-container"
trigger=
"click"
>
<el-dropdown
class=
"avatar-container"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<div
class=
"avatar-wrapper"
>
...
@@ -68,6 +68,7 @@ export default {
...
@@ -68,6 +68,7 @@ export default {
return
{
return
{
appList
:
[],
appList
:
[],
userName
:
''
,
userName
:
''
,
name
:
''
,
avatar
:
''
,
avatar
:
''
,
specialTag
:
this
.
$store
.
state
.
user
.
specialTag
specialTag
:
this
.
$store
.
state
.
user
.
specialTag
}
}
...
@@ -82,6 +83,7 @@ export default {
...
@@ -82,6 +83,7 @@ export default {
try
{
try
{
const
user
=
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
))
const
user
=
JSON
.
parse
(
Store
.
get
(
storeKey
.
user
))
this
.
userName
=
user
.
userName
this
.
userName
=
user
.
userName
this
.
name
=
user
.
name
this
.
avatar
=
user
.
avatar
this
.
avatar
=
user
.
avatar
}
catch
(
e
)
{
}
catch
(
e
)
{
...
...
src/router/index.js
View file @
6f6f1ab4
...
@@ -62,7 +62,7 @@ export const constantRoutes = [
...
@@ -62,7 +62,7 @@ export const constantRoutes = [
path
:
'/contract/manage1/add'
,
path
:
'/contract/manage1/add'
,
name
:
'contractManage'
.
toLocaleUpperCase
(),
name
:
'contractManage'
.
toLocaleUpperCase
(),
component
:
()
=>
import
(
'@/views/list/add'
),
component
:
()
=>
import
(
'@/views/list/add'
),
meta
:
{
title
:
'
新增
合同信息'
}
meta
:
{
title
:
'合同信息'
}
}
}
]
]
},
},
...
...
src/views/list/add.vue
View file @
6f6f1ab4
This diff is collapsed.
Click to expand it.
src/views/list/index.vue
View file @
6f6f1ab4
...
@@ -40,7 +40,11 @@
...
@@ -40,7 +40,11 @@
<el-table
:row-style=
"tableRowStyle"
:data=
"data"
border
>
<el-table
:row-style=
"tableRowStyle"
:data=
"data"
border
>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
/>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
/>
<el-table-column
label=
"原合同ID"
prop=
"FROMID"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"原合同ID"
prop=
"FROMID"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"合同中文名称"
prop=
"CONNAMECN"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"合同中文名称"
prop=
"CONNAMECN"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"
{ row }">
<el-link
type=
"primary"
@
click
.
stop=
"checkDetail(row)"
>
{{
row
.
CONNAMECN
}}
</el-link>
</
template
>
</el-table-column>
<el-table-column
label=
"合同编码"
prop=
"CONCODE"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"合同编码"
prop=
"CONCODE"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"项目编码"
prop=
"PROJNUMBER"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"项目编码"
prop=
"PROJNUMBER"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"项目名称"
prop=
"PROJNAME"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"项目名称"
prop=
"PROJNAME"
:show-overflow-tooltip=
"true"
/>
...
@@ -77,6 +81,7 @@
...
@@ -77,6 +81,7 @@
<el-table-column
width=
"135px"
label=
"操作"
>
<el-table-column
width=
"135px"
label=
"操作"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-link
:underline=
"false"
type=
"primary"
@
click
.
stop=
"update(row)"
>
修改
</el-link>
<el-link
:underline=
"false"
type=
"primary"
@
click
.
stop=
"update(row)"
>
修改
</el-link>
<!--
<el-link
:underline=
"false"
type=
"warning"
style=
"margin-left: 10px "
@
click
.
stop=
"checkDetail(row)"
>
查看
</el-link>
-->
<el-link
v-if=
"jurisdiction === '2016012550'"
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click
.
stop=
"pushInfo(row)"
>
推送
</el-link>
<el-link
v-if=
"jurisdiction === '2016012550'"
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click
.
stop=
"pushInfo(row)"
>
推送
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px "
@
click
.
stop=
"del(row)"
>
删除
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px "
@
click
.
stop=
"del(row)"
>
删除
</el-link>
</
template
>
</
template
>
...
@@ -84,7 +89,7 @@
...
@@ -84,7 +89,7 @@
</el-table>
</el-table>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"部门列表"
name=
"second"
>
<el-tab-pane
label=
"部门列表"
name=
"second"
>
<
div
class
=
"title"
>
合同列表
啊啊啊
<
/div
>
<div
class=
"title"
>
合同列表
</div>
<el-table
:row-style=
"tableRowStyle"
:data=
"deptData"
border
>
<el-table
:row-style=
"tableRowStyle"
:data=
"deptData"
border
>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
/>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
/>
<el-table-column
label=
"原合同ID"
prop=
"FROMID"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"原合同ID"
prop=
"FROMID"
:show-overflow-tooltip=
"true"
/>
...
@@ -125,6 +130,7 @@
...
@@ -125,6 +130,7 @@
<el-table-column
width=
"135px"
label=
"操作"
>
<el-table-column
width=
"135px"
label=
"操作"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-link
:underline=
"false"
type=
"primary"
@
click
.
stop=
"update(row)"
>
修改
</el-link>
<el-link
:underline=
"false"
type=
"primary"
@
click
.
stop=
"update(row)"
>
修改
</el-link>
<!--
<el-link
:underline=
"false"
type=
"warning"
style=
"margin-left: 10px "
@
click
.
stop=
"checkDetail(row)"
>
查看
</el-link>
-->
<el-link
v-if=
"jurisdiction === '2016012550'"
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click
.
stop=
"pushInfo(row)"
>
推送
</el-link>
<el-link
v-if=
"jurisdiction === '2016012550'"
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click
.
stop=
"pushInfo(row)"
>
推送
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px "
@
click
.
stop=
"del(row)"
>
删除
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px "
@
click
.
stop=
"del(row)"
>
删除
</el-link>
</
template
>
</
template
>
...
@@ -173,6 +179,7 @@
...
@@ -173,6 +179,7 @@
<el-table-column
width=
"135px"
label=
"操作"
>
<el-table-column
width=
"135px"
label=
"操作"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-link
:underline=
"false"
type=
"primary"
@
click
.
stop=
"update(row)"
>
修改
</el-link>
<el-link
:underline=
"false"
type=
"primary"
@
click
.
stop=
"update(row)"
>
修改
</el-link>
<!--
<el-link
:underline=
"false"
type=
"warning"
style=
"margin-left: 10px "
@
click
.
stop=
"checkDetail(row)"
>
查看
</el-link>
-->
<el-link
v-if=
"jurisdiction === '2016012550'"
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click
.
stop=
"pushInfo(row)"
>
推送
</el-link>
<el-link
v-if=
"jurisdiction === '2016012550'"
:underline=
"false"
type=
"success"
style=
"margin-left: 10px"
@
click
.
stop=
"pushInfo(row)"
>
推送
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px "
@
click
.
stop=
"del(row)"
>
删除
</el-link>
<el-link
:underline=
"false"
type=
"danger"
style=
"margin-left: 10px "
@
click
.
stop=
"del(row)"
>
删除
</el-link>
</
template
>
</
template
>
...
@@ -499,6 +506,20 @@ obj=this.typeform*/
...
@@ -499,6 +506,20 @@ obj=this.typeform*/
}
}
})
})
},
},
checkDetail
(
row
)
{
const
number
=
this
.
updateOptions
.
find
(
item
=>
item
.
label
.
split
(
' '
)[
0
]
===
row
.
BUSINESSTYPE
).
type
const
businessTypeName
=
this
.
updateOptions
.
find
(
item
=>
item
.
label
.
split
(
' '
)[
0
]
===
row
.
BUSINESSTYPE
).
value
console
.
log
(
'aaaaaaa'
,
number
)
this
.
$router
.
push
({
path
:
'/contract/manage1/add'
,
query
:
{
row
:
row
,
type
:
'checkDetails'
,
number
:
number
,
businessTypeName
:
businessTypeName
}
})
},
query
()
{
query
()
{
this
.
queryLoading
=
true
this
.
queryLoading
=
true
api
.
query
().
then
(
res
=>
{
api
.
query
().
then
(
res
=>
{
...
...
src/views/user/apis.js
View file @
6f6f1ab4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/views/user/login.vue
View file @
6f6f1ab4
...
@@ -150,7 +150,7 @@ export default {
...
@@ -150,7 +150,7 @@ export default {
Login
({
username
,
password
}).
then
((
res
)
=>
{
Login
({
username
,
password
}).
then
((
res
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
Store
.
set
(
storeKey
.
token
,
`
${
Math
.
random
()}
_
${
new
Date
().
getTime
()}
`
)
Store
.
set
(
storeKey
.
token
,
`
${
Math
.
random
()}
_
${
new
Date
().
getTime
()}
`
)
Store
.
set
(
storeKey
.
user
,
JSON
.
stringify
({
userName
:
username
,
userId
:
res
.
userId
,
deptId
:
res
.
deptId
,
avatar
:
'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif'
}))
Store
.
set
(
storeKey
.
user
,
JSON
.
stringify
({
userName
:
username
,
userId
:
res
.
userId
,
deptId
:
res
.
deptId
,
name
:
res
.
name
,
avatar
:
'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif'
}))
if
(
rememberMe
)
{
if
(
rememberMe
)
{
Store
.
set
(
'username'
,
username
)
Store
.
set
(
'username'
,
username
)
Store
.
set
(
'password'
,
encrypt
(
password
))
Store
.
set
(
'password'
,
encrypt
(
password
))
...
...
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