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
ec73e65b
Commit
ec73e65b
authored
Mar 18, 2024
by
kaitly205422@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改业态为多选
parent
0de58315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
src/views/riskProject/add/index.vue
src/views/riskProject/add/index.vue
+23
-18
No files found.
src/views/riskProject/add/index.vue
View file @
ec73e65b
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<van-button
style=
"color: #cccc; background-color: #f0f1f5"
icon=
"plus"
type=
"info"
native-type=
"button"
<van-button
style=
"color: #cccc; background-color: #f0f1f5"
icon=
"plus"
type=
"info"
native-type=
"button"
@
click=
"createProject"
/>
@
click=
"createProject"
/>
</div>
</div>
<van-field
required
name=
"projectBusiness"
v-model
=
"form.projectBusiness"
label=
"业态"
placeholder=
"请选择业态"
<van-field
required
name=
"projectBusiness"
:value
=
"form.projectBusiness"
label=
"业态"
placeholder=
"请选择业态"
:rules=
"[
{ required: true, message: '业态不能为空' }]" readonly @click="selectBusiness" />
:rules=
"[
{ required: true, message: '业态不能为空' }]" readonly @click="selectBusiness" />
<van-field
required
name=
"businessStatus"
label=
"经营状态"
placeholder=
"请选择"
<van-field
required
name=
"businessStatus"
label=
"经营状态"
placeholder=
"请选择"
:rules=
"[
{ required: true, message: '经营状态不能为空' }]">
:rules=
"[
{ required: true, message: '经营状态不能为空' }]">
...
@@ -37,9 +37,9 @@
...
@@ -37,9 +37,9 @@
</
template
>
</
template
>
</van-field>
</van-field>
<van-field
required
name=
"propertyManagement"
label=
"是否为物业"
placeholder=
"请选择"
:rules=
"[{
<van-field
required
name=
"propertyManagement"
label=
"是否为物业"
placeholder=
"请选择"
:rules=
"[{
validator: (val) => val == '',
validator: (val) => val == '',
message: '是否为物业不能为空'
message: '是否为物业不能为空'
}]"
>
}]"
>
<
template
#input
>
<
template
#input
>
<van-radio-group
v-model=
"form.propertyManagement"
direction=
"horizontal"
>
<van-radio-group
v-model=
"form.propertyManagement"
direction=
"horizontal"
>
<van-radio
:name=
"true"
>
是
</van-radio>
<van-radio
:name=
"true"
>
是
</van-radio>
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
<van-field
:value=
"form.startTime"
readonly
required
name=
"startTime"
label=
"任务开始时间"
placeholder=
"请选择"
<van-field
:value=
"form.startTime"
readonly
required
name=
"startTime"
label=
"任务开始时间"
placeholder=
"请选择"
@
click=
"selectBeginTime('startTime')"
:rules=
"[{ required: true, message: '任务开始时间不能为空' }]"
/>
@
click=
"selectBeginTime('startTime')"
:rules=
"[{ required: true, message: '任务开始时间不能为空' }]"
/>
<van-field
:value=
"form.endTime"
readonly
required
name=
"endTime"
label=
"任务结束时间"
@
click=
"selectBeginTime('endTime')"
<van-field
:value=
"form.endTime"
readonly
required
name=
"endTime"
label=
"任务结束时间"
placeholder=
"请选择"
:rules=
"[{ required: true, message: '任务结束时间不能为空' }]"
/>
@
click=
"selectBeginTime('endTime')"
placeholder=
"请选择"
:rules=
"[{ required: true, message: '任务结束时间不能为空' }]"
/>
<!-- <van-popup v-model="showControl" position="bottom">
<!-- <van-popup v-model="showControl" position="bottom">
<van-picker
<van-picker
...
@@ -121,7 +121,8 @@
...
@@ -121,7 +121,8 @@
<van-popup
v-model=
"riskModel"
position=
"bottom"
:style=
"{ height: '100%' }"
>
<van-popup
v-model=
"riskModel"
position=
"bottom"
:style=
"{ height: '100%' }"
>
<div
class=
"van-picker__toolbar"
style=
"position: absolute; width: 100%; top: 0"
>
<div
class=
"van-picker__toolbar"
style=
"position: absolute; width: 100%; top: 0"
>
<button
type=
"button"
class=
"van-picker__cancel"
v-on:click=
"riskModel = false"
>
<button
type=
"button"
class=
"van-picker__cancel"
v-on:click=
"riskModel = false"
>
取消
</button><button
type=
"button"
class=
"van-picker__confirm"
@
click=
"onRiskList(riskList)"
>
取消
</button>
<button
type=
"button"
class=
"van-picker__confirm"
@
click=
"onRiskList(riskList)"
>
确认
确认
</button>
</button>
</div>
</div>
...
@@ -129,7 +130,8 @@
...
@@ -129,7 +130,8 @@
<van-checkbox-group
v-model=
"riskList"
ref=
"checkboxGroup"
class=
"building-select"
<van-checkbox-group
v-model=
"riskList"
ref=
"checkboxGroup"
class=
"building-select"
style=
"width: 100%; font-size: 18px"
>
style=
"width: 100%; font-size: 18px"
>
<van-checkbox
shape=
"square"
style=
"margin: 10px 0px"
v-for=
"item in riskModelList"
:key=
"item.id"
<van-checkbox
shape=
"square"
style=
"margin: 10px 0px"
v-for=
"item in riskModelList"
:key=
"item.id"
:name=
"item"
>
{{ item[filedName] }}
</van-checkbox>
:name=
"item"
>
{{
item[filedName] }}
</van-checkbox>
</van-checkbox-group>
</van-checkbox-group>
</div>
</div>
<div
style=
"display: flex; justify-content: space-around"
>
<div
style=
"display: flex; justify-content: space-around"
>
...
@@ -143,10 +145,10 @@
...
@@ -143,10 +145,10 @@
<div
class=
"van-picker__toolbar"
style=
"position: absolute; width: 100%; top: 0"
>
<div
class=
"van-picker__toolbar"
style=
"position: absolute; width: 100%; top: 0"
>
<button
type=
"button"
class=
"van-picker__cancel"
v-on:click=
"
<button
type=
"button"
class=
"van-picker__cancel"
v-on:click=
"
{
{
form.deptId = 0;
form.deptId = 0;
projectDept = false;
projectDept = false;
}
}
"
>
"
>
取消
</button><button
type=
"button"
class=
"van-picker__confirm"
@
click=
"closeDept"
>
取消
</button><button
type=
"button"
class=
"van-picker__confirm"
@
click=
"closeDept"
>
确认
确认
</button>
</button>
...
@@ -305,10 +307,7 @@ export default {
...
@@ -305,10 +307,7 @@ export default {
this
.
form
.
projectBusiness
=
value
.
dictLabel
;
this
.
form
.
projectBusiness
=
value
.
dictLabel
;
},
},
selectBusiness
()
{
selectBusiness
()
{
this
.
business
.
show
=
true
;
this
.
filedName
=
'
dictLabel
'
if
(
this
.
business
.
columns
.
length
)
{
return
;
}
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
message
:
"
加载中...
"
,
message
:
"
加载中...
"
,
forbidClick
:
true
,
forbidClick
:
true
,
...
@@ -317,8 +316,12 @@ export default {
...
@@ -317,8 +316,12 @@ export default {
});
});
getFun
(
`/risk/plan/dict/data/list?dictType=risk_project_business`
)
getFun
(
`/risk/plan/dict/data/list?dictType=risk_project_business`
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
// this.$toast.clear();
// this.business.columns = res.data;
this
.
riskModelList
=
res
.
data
;
// 对数据进行赋值
this
.
$toast
.
clear
();
this
.
$toast
.
clear
();
this
.
business
.
columns
=
res
.
data
;
this
.
riskModel
=
true
;
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
clear
();
...
@@ -422,9 +425,11 @@ export default {
...
@@ -422,9 +425,11 @@ export default {
if
(
this
.
filedName
==
"
nickName
"
)
{
if
(
this
.
filedName
==
"
nickName
"
)
{
this
.
form
.
workUserIds
=
this
.
filterField
(
"
userId
"
,
value
).
join
();
this
.
form
.
workUserIds
=
this
.
filterField
(
"
userId
"
,
value
).
join
();
this
.
form
.
workUserNames
=
this
.
filterField
(
"
nickName
"
,
value
).
join
();
this
.
form
.
workUserNames
=
this
.
filterField
(
"
nickName
"
,
value
).
join
();
}
else
{
}
else
if
(
this
.
filedName
==
'
name
'
)
{
this
.
form
.
buildingIds
=
this
.
filterField
(
"
id
"
,
value
).
join
();
this
.
form
.
buildingIds
=
this
.
filterField
(
"
id
"
,
value
).
join
();
this
.
form
.
buildingNames
=
this
.
filterField
(
"
name
"
,
value
).
join
();
this
.
form
.
buildingNames
=
this
.
filterField
(
"
name
"
,
value
).
join
();
}
else
if
(
this
.
filedName
==
'
dictLabel
'
)
{
this
.
form
.
projectBusiness
=
this
.
filterField
(
"
dictLabel
"
,
value
).
join
();
}
}
this
.
riskList
=
[];
this
.
riskList
=
[];
this
.
riskModel
=
false
;
this
.
riskModel
=
false
;
...
...
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