Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-app
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-app
Commits
ea53da41
Commit
ea53da41
authored
Aug 01, 2023
by
p-wanping.song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加项目、添加楼层
parent
499e5d1c
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13235 additions
and
15 deletions
+13235
-15
src/components/header.vue
src/components/header.vue
+8
-1
src/views/riskProject/add/addProject.vue
src/views/riskProject/add/addProject.vue
+408
-0
src/views/riskProject/add/index.vue
src/views/riskProject/add/index.vue
+72
-14
yarn.lock
yarn.lock
+12747
-0
No files found.
src/components/header.vue
View file @
ea53da41
...
@@ -26,6 +26,9 @@ export default {
...
@@ -26,6 +26,9 @@ export default {
text
:{
text
:{
default
:
"
未知
"
,
default
:
"
未知
"
,
type
:
String
type
:
String
},
customBack
:{
type
:
Function
,
}
}
},
},
data
()
{
data
()
{
...
@@ -39,9 +42,13 @@ export default {
...
@@ -39,9 +42,13 @@ export default {
methods
:
{
methods
:
{
/* 左侧图标跳转方法 */
/* 左侧图标跳转方法 */
to
(){
to
(){
if
(
this
.
customBack
){
this
.
customBack
()
}
else
{
history
.
go
(
-
1
)
history
.
go
(
-
1
)
}
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
src/views/riskProject/add/addProject.vue
0 → 100644
View file @
ea53da41
This diff is collapsed.
Click to expand it.
src/views/riskProject/add/index.vue
View file @
ea53da41
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
:rules=
"[
{ required: true, message: '任务名称不能为空' }]"
:rules=
"[
{ required: true, message: '任务名称不能为空' }]"
/>
/>
<div
style=
"display: flex;"
>
<van-field
<van-field
required
required
readonly
readonly
...
@@ -54,6 +55,14 @@
...
@@ -54,6 +55,14 @@
@
click=
"show = true"
@
click=
"show = true"
:rules=
"[
{ required: true, message: '关联项目不能为空' }]"
:rules=
"[
{ required: true, message: '关联项目不能为空' }]"
/>
/>
<van-button
style=
"color: #cccc;background-color: #f0f1f5;"
icon=
"plus"
type=
"info"
native-type=
"button"
@
click=
"createProject"
/>
</div>
<!--
<van-popup
v-model=
"showSource"
position=
"bottom"
>
<!--
<van-popup
v-model=
"showSource"
position=
"bottom"
>
<van-picker
<van-picker
show-toolbar
show-toolbar
...
@@ -63,7 +72,7 @@
...
@@ -63,7 +72,7 @@
@
cancel=
"showSource = false"
@
cancel=
"showSource = false"
/>
/>
</van-popup>
-->
</van-popup>
-->
<div
style=
"display: flex;"
>
<van-field
<van-field
required
required
readonly
readonly
...
@@ -74,6 +83,14 @@
...
@@ -74,6 +83,14 @@
@
click=
"getRiskList()"
@
click=
"getRiskList()"
:rules=
"[
{ required: true, message: '评估楼栋不能为空' }]"
:rules=
"[
{ required: true, message: '评估楼栋不能为空' }]"
/>
/>
<van-button
style=
"color: #cccc;background-color: #f0f1f5;"
icon=
"plus"
type=
"info"
native-type=
"button"
@
click=
"createBuilding"
/>
</div>
<div
<div
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
style=
"height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;"
>
>
...
@@ -279,11 +296,19 @@
...
@@ -279,11 +296,19 @@
>
取消
</van-button
>
取消
</van-button
>
>
</div>
</div>
<CreateComponent
v-if=
"createComponentData.visible"
@
close=
"createComponentData.close"
@
confirm=
"createComponentData.confirm"
:type=
"createComponentData.type"
:projectId=
"createComponentData.projectId"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
LHeader
from
"
@/components/header.vue
"
;
import
CreateComponent
from
'
./addProject.vue
'
import
selectDept
from
"
@/components/selectDept/index.vue
"
;
import
selectDept
from
"
@/components/selectDept/index.vue
"
;
import
selectPeople
from
"
@/views/riskProject/add/projectList.vue
"
;
import
selectPeople
from
"
@/views/riskProject/add/projectList.vue
"
;
import
{
timestampToTime
,
generateId
}
from
"
@/utils/format
"
;
import
{
timestampToTime
,
generateId
}
from
"
@/utils/format
"
;
...
@@ -299,7 +324,8 @@ export default {
...
@@ -299,7 +324,8 @@ export default {
components
:
{
components
:
{
LHeader
,
LHeader
,
selectPeople
,
selectPeople
,
selectDept
selectDept
,
CreateComponent
},
},
beforeRouteLeave
(
to
,
from
,
next
)
{
beforeRouteLeave
(
to
,
from
,
next
)
{
if
(
to
.
name
!=
"
matrix-grad
"
)
{
if
(
to
.
name
!=
"
matrix-grad
"
)
{
...
@@ -308,6 +334,12 @@ export default {
...
@@ -308,6 +334,12 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
createComponentData
:{
visible
:
false
,
type
:
''
,
close
:
this
.
projectComponentClose
,
confirm
:
this
.
projectComponentConfirm
},
loadingStatus
:
false
,
loadingStatus
:
false
,
loadingText
:
"
提交...
"
,
loadingText
:
"
提交...
"
,
taskId
:
""
,
taskId
:
""
,
...
@@ -385,6 +417,32 @@ export default {
...
@@ -385,6 +417,32 @@ export default {
});
});
},
},
methods
:
{
methods
:
{
/* 创建项目 */
createProject
(){
this
.
createComponentData
.
visible
=
true
;
this
.
createComponentData
.
type
=
'
project
'
},
/* 创建 */
createBuilding
(){
if
(
!
this
.
form
.
projectId
)
{
this
.
$toast
({
title
:
"
提示
"
,
message
:
"
请选择关联项目!
"
});
return
false
;
}
this
.
createComponentData
.
visible
=
true
;
this
.
createComponentData
.
type
=
'
building
'
this
.
createComponentData
.
projectId
=
this
.
form
.
projectId
},
projectComponentClose
(){
this
.
createComponentData
.
visible
=
false
;
this
.
createComponentData
.
type
=
''
},
projectComponentConfirm
(
data
){
// this.createComponentData.visible = false;
// this.createComponentData.type = '';
},
getDetail
(
id
){
getDetail
(
id
){
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
message
:
"
加载中...
"
,
message
:
"
加载中...
"
,
...
...
yarn.lock
0 → 100644
View file @
ea53da41
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