Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
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
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
8d9b7f3d
You need to sign in or sign up before continuing.
Commit
8d9b7f3d
authored
Aug 24, 2023
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3.风险信息的事故类型,改为多选(目前为单选)
parent
7e620c09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
index.vue
danger-manage-web/src/views/riskManager/riskMsg/index.vue
+24
-12
No files found.
danger-manage-web/src/views/riskManager/riskMsg/index.vue
View file @
8d9b7f3d
...
@@ -20,16 +20,16 @@
...
@@ -20,16 +20,16 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<
el-form-item
label=
"事故类型"
prop=
"riskType"
>
<
!--
<el-form-item
label=
"事故类型"
prop=
"riskType"
>
--
>
<
el-select
v-model=
"queryParams.riskType"
placeholder=
"请选择事故类型"
clearable
size=
"small"
>
<
!--
<el-select
v-model=
"queryParams.riskType"
placeholder=
"请选择事故类型"
clearable
size=
"small"
>
--
>
<
el-option
<
!--
<el-option-->
v-for=
"dict in riskTypeOptions"
<!--v-for="dict in riskTypeOptions"-->
:key=
"dict.dictValue"
<!--:key="dict.dictValue"-->
:label=
"dict.dictLabel"
<!--:label="dict.dictLabel"-->
:value=
"dict.dictValue"
<!--:value="dict.dictValue"-->
></el-option
>
<!-->
</el-option>
--
>
<
/el-select
>
<
!--
</el-select>
--
>
<
/el-form-item
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"责任部门"
prop=
"riskDept"
>
<el-form-item
label=
"责任部门"
prop=
"riskDept"
>
<el-select
<el-select
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"事故类型"
prop=
"riskType"
>
<el-form-item
label=
"事故类型"
prop=
"riskType"
>
<el-select
v-model=
"form.riskType"
placeholder=
"请选择事故类型"
>
<el-select
v-model=
"form.riskType"
multiple
placeholder=
"请选择事故类型"
>
<el-option
<el-option
v-for=
"dict in riskTypeOptions"
v-for=
"dict in riskTypeOptions"
:key=
"dict.dictValue"
:key=
"dict.dictValue"
...
@@ -268,7 +268,16 @@ export default {
...
@@ -268,7 +268,16 @@ export default {
});
});
},
},
riskTypeFormat
(
row
,
colum
){
riskTypeFormat
(
row
,
colum
){
return
this
.
selectDictLabel
(
this
.
riskTypeOptions
,
row
.
riskType
);
var
str
=
""
if
(
row
.
riskType
==
null
){
return
str
;
}
for
(
var
item
of
row
.
riskType
.
split
(
","
)){
str
+=
this
.
selectDictLabel
(
this
.
riskTypeOptions
,
item
)
+
","
;
}
return
str
.
substr
(
0
,
str
.
length
-
1
);
//return this.selectDictLabel(this.riskTypeOptions,item);
},
},
riskLevelFormat
(
row
,
colum
){
riskLevelFormat
(
row
,
colum
){
return
this
.
selectDictLabel
(
this
.
riskLevelOptions
,
row
.
riskLevel
);
return
this
.
selectDictLabel
(
this
.
riskLevelOptions
,
row
.
riskLevel
);
...
@@ -352,6 +361,7 @@ export default {
...
@@ -352,6 +361,7 @@ export default {
const
id
=
row
.
id
||
this
.
ids
const
id
=
row
.
id
||
this
.
ids
getManager
(
id
).
then
(
response
=>
{
getManager
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
form
.
riskType
=
this
.
form
.
riskType
.
split
(
","
);
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"修改【风险信息】"
;
this
.
title
=
"修改【风险信息】"
;
});
});
...
@@ -360,6 +370,8 @@ export default {
...
@@ -360,6 +370,8 @@ export default {
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
form
.
riskType
=
(
this
.
form
.
riskType
).
join
(
","
);
console
.
log
(
this
.
form
)
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateManager
(
this
.
form
).
then
(
response
=>
{
updateManager
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
...
...
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