Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-pc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
融通安全管理系统
rongtong-pc
Commits
816ba099
Commit
816ba099
authored
Jan 12, 2024
by
kaitly205422@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缺少文件
parent
8a9e2d81
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
428 additions
and
465 deletions
+428
-465
src/views/risk/currentProject/index.vue
src/views/risk/currentProject/index.vue
+55
-63
src/views/risk/currentProject/projectPost.vue
src/views/risk/currentProject/projectPost.vue
+373
-402
No files found.
src/views/risk/currentProject/index.vue
View file @
816ba099
...
@@ -2,13 +2,8 @@
...
@@ -2,13 +2,8 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"项目名称"
prop=
"projectName"
>
<el-form-item
label=
"项目名称"
prop=
"projectName"
>
<el-input
<el-input
v-model=
"queryParams.projectName"
placeholder=
"请输入项目名称1"
clearable
style=
"width: 240px"
v-model=
"queryParams.projectName"
@
keyup.enter.native=
"handleQuery"
/>
placeholder=
"请输入项目名称"
clearable
style=
"width: 240px"
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
@@ -17,75 +12,70 @@
...
@@ -17,75 +12,70 @@
</el-form>
</el-form>
<div
v-for=
"(item, index) in projectList"
:key=
"index"
class=
"projectItem"
@
click=
"projectDetail(item)"
>
<div
v-for=
"(item, index) in projectList"
:key=
"index"
class=
"projectItem"
@
click=
"projectDetail(item)"
>
<div
class=
"left"
>
<div
class=
"left"
>
<p>
{{
item
.
projectName
}}
</p>
<p>
{{
item
.
projectName
}}
</p>
<p>
项目类型:
{{
item
.
projectType
}}
| 项目地址:
{{
item
.
projectAddress
}}
</p>
<p>
项目类型:
{{
item
.
projectType
}}
| 项目地址:
{{
item
.
projectAddress
}}
</p>
</div>
</div>
<img
src=
"../../../assets/images/work.svg"
alt=
""
>
<img
src=
"../../../assets/images/work.svg"
alt=
""
>
</div>
</div>
<pagination
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNum"
:limit.sync=
"queryParams.pageSize"
v-show=
"total > 0"
@
pagination=
"getList"
/>
:total=
"total"
:page.sync=
"queryParams.pageNum"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</div>
</div>
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
{
listCurrentProject
}
from
'
@/api/risk/currentProject
'
import
{
listCurrentProject
}
from
'
@/api/risk/currentProject
'
export
default
{
export
default
{
name
:
'
currentProject
'
,
name
:
'
currentProject
'
,
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
projectList
:[],
projectList
:
[],
// 总条数
// 总条数
total
:
0
,
total
:
0
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
projectName
:
null
,
projectName
:
null
,
},
},
}
}
},
created
()
{
this
.
getList
();
},
mounted
()
{
},
methods
:
{
/** 查询基础数据-项目列表 */
getList
()
{
this
.
loading
=
true
;
this
.
queryParams
.
userId
=
this
.
$store
.
getters
.
userId
listCurrentProject
(
this
.
queryParams
).
then
((
response
)
=>
{
this
.
projectList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
},
created
(){
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
mounted
()
{
/** 重置按钮操作 */
},
resetQuery
()
{
methods
:
{
this
.
resetForm
(
"
queryForm
"
);
/** 查询基础数据-项目列表 */
this
.
handleQuery
();
getList
()
{
this
.
loading
=
true
;
this
.
queryParams
.
userId
=
this
.
$store
.
getters
.
userId
listCurrentProject
(
this
.
queryParams
).
then
((
response
)
=>
{
this
.
projectList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"
queryForm
"
);
this
.
handleQuery
();
},
projectDetail
(
val
){
this
.
$router
.
push
(
"
/risk/currentProject/projectPost/index/
"
+
val
.
projectId
)
}
},
},
projectDetail
(
val
)
{
this
.
$router
.
push
(
"
/risk/currentProject/projectPost/index/
"
+
val
.
projectId
)
}
},
}
}
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.projectItem
{
.projectItem
{
width
:
100%
;
width
:
100%
;
padding
:
25px
120px
25px
30px
;
padding
:
25px
120px
25px
30px
;
margin-bottom
:
25px
;
margin-bottom
:
25px
;
...
@@ -96,13 +86,15 @@ import { listCurrentProject } from '@/api/risk/currentProject'
...
@@ -96,13 +86,15 @@ import { listCurrentProject } from '@/api/risk/currentProject'
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.left
{
.left
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
flex-start
;
align-items
:
flex-start
;
justify-content
:
space-between
;
justify-content
:
space-between
;
:first-child
{
color
:
#3277f5
;
:first-child
{
color
:
#3277f5
;
font-size
:
18px
;
font-size
:
18px
;
}
}
}
}
...
...
src/views/risk/currentProject/projectPost.vue
View file @
816ba099
This diff is collapsed.
Click to expand it.
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