Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
郑艺斌
/
emaint-web-master
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3209a62e
authored
Dec 06, 2022
by
郑艺斌
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复详情问题项BUG
parent
f3ec15cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
src/views/workOrderEdit/index.vue
src/views/workOrderEdit/index.vue
View file @
3209a62e
...
@@ -164,8 +164,8 @@
...
@@ -164,8 +164,8 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<FormItem
label=
"问题项"
style=
"text-align:left"
>
<FormItem
label=
"问题项"
style=
"text-align:left"
>
<CheckboxGroup
v-model=
"formItem.problem"
@
on-change=
"checkProblem"
>
<CheckboxGroup
v-model=
"formItem.problem"
@
on-change=
"checkProblem"
>
<Checkbox
:key=
"index"
:label=
"item
"
v-for=
"(item, index) in formItem.problem
List"
>
<Checkbox
:key=
"index"
:label=
"item
.problem"
v-for=
"(item, index) in question
List"
>
<span>
{{
item
}}
</span>
<span>
{{
item
.
problem
}}
</span>
</Checkbox>
</Checkbox>
<Checkbox
key=
"other"
label=
"其他"
><span>
其他
</span></Checkbox>
<Checkbox
key=
"other"
label=
"其他"
><span>
其他
</span></Checkbox>
</CheckboxGroup>
</CheckboxGroup>
...
@@ -1184,9 +1184,38 @@ export default {
...
@@ -1184,9 +1184,38 @@ export default {
that
.
remarkImgFiles
.
push
(
file
);
that
.
remarkImgFiles
.
push
(
file
);
};
};
},
},
getProblemBaseList
(
parentId
)
{
this
.
$request
.
post
(
"/api/emaint/problem-base/list"
,
qs
.
stringify
({
parentId
,
label
:
'0'
}),
res
=>
{
if
(
res
.
statusCode
===
200
)
{
this
.
questionList
=
res
.
responseResult
;
}
},
res
=>
{
}
);
},
// 加载常见问题
// 加载常见问题
getQuestionList
(
val
)
{
getQuestionList
(
val
)
{
if
(
this
.
formItem
.
problemClass
==
''
||
this
.
formItem
.
problemClass
==
null
)
{
this
.
$Message
.
error
(
"请先选择一级菜单!"
);
return
}
let
arr
=
this
.
sublevelList
.
filter
(
item
=>
item
.
problem
===
val
)
this
.
$request
.
post
(
"/api/emaint/problem-base/list"
,
qs
.
stringify
({
parentId
:
arr
[
0
].
id
,
label
:
'0'
}),
res
=>
{
if
(
res
.
statusCode
===
200
)
{
this
.
questionList
=
res
.
responseResult
;
}
},
res
=>
{
}
);
return
let
self
=
this
;
let
self
=
this
;
this
.
problemTypeList
.
forEach
(
v
=>
{
this
.
problemTypeList
.
forEach
(
v
=>
{
if
(
v
.
problem
==
self
.
formItem
.
problemType
)
{
if
(
v
.
problem
==
self
.
formItem
.
problemType
)
{
...
@@ -1695,7 +1724,7 @@ export default {
...
@@ -1695,7 +1724,7 @@ export default {
repairEstimate
:
data
.
repairEstimate
?
data
.
repairEstimate
:
{},
repairEstimate
:
data
.
repairEstimate
?
data
.
repairEstimate
:
{},
estimateLabel
:
data
.
estimateLabel
,
estimateLabel
:
data
.
estimateLabel
,
repairImgs
:
data
.
repairImgs
,
repairImgs
:
data
.
repairImgs
,
problem
List
:
data
.
problemList
problem
Type
:
data
.
problemList
};
};
this
.
getTreeList
()
this
.
getTreeList
()
// 历史报修
// 历史报修
...
@@ -1709,6 +1738,7 @@ export default {
...
@@ -1709,6 +1738,7 @@ export default {
self
.
getProblemList
()
self
.
getProblemList
()
self
.
getQuestionList
()
self
.
getQuestionList
()
})
})
this
.
getProblemBaseList
(
data
.
problemBaseId
)
// 处理参与者id
// 处理参与者id
if
(
data
.
participatorids
)
{
if
(
data
.
participatorids
)
{
...
...
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