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
895f1a40
authored
Feb 06, 2023
by
zhuoym
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix默认执行人编辑bug
parent
e790b64d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/problemConfiguration/index.vue
src/views/problemConfiguration/index.vue
View file @
895f1a40
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
</i-option>
</i-option>
</i-select>
</i-select>
</Form-item>
</Form-item>
<FormItem
label=
"默认执行人"
prop=
"defaultExecutorId"
>
<FormItem
label=
"默认执行
1
人"
prop=
"defaultExecutorId"
>
<Select
v-model=
"updatedata.defaultExecutorId"
filterable
ref=
"select"
@
on-change=
"changeUser"
<Select
v-model=
"updatedata.defaultExecutorId"
filterable
ref=
"select"
@
on-change=
"changeUser"
placeholder=
"默认执行人"
>
placeholder=
"默认执行人"
>
<Option
v-for=
"(item, index) in userList"
:label=
"item.name"
:value=
"item.id"
:key=
"index"
>
<Option
v-for=
"(item, index) in userList"
:label=
"item.name"
:value=
"item.id"
:key=
"index"
>
...
@@ -386,7 +386,8 @@ export default {
...
@@ -386,7 +386,8 @@ export default {
changeUser
(
val
)
{
changeUser
(
val
)
{
let
self
=
this
let
self
=
this
self
.
userList
.
map
((
item
,
index
)
=>
{
self
.
userList
.
map
((
item
,
index
)
=>
{
if
(
index
===
val
)
{
// debugger
if
(
item
.
id
===
val
)
{
if
(
self
.
updatemodel
)
{
if
(
self
.
updatemodel
)
{
self
.
updatedata
.
defaultExecutorId
=
item
.
id
self
.
updatedata
.
defaultExecutorId
=
item
.
id
self
.
updatedata
.
defaultExecutorName
=
item
.
name
self
.
updatedata
.
defaultExecutorName
=
item
.
name
...
@@ -394,7 +395,6 @@ export default {
...
@@ -394,7 +395,6 @@ export default {
self
.
addformdata
.
defaultExecutorId
=
item
.
id
self
.
addformdata
.
defaultExecutorId
=
item
.
id
self
.
addformdata
.
defaultExecutorName
=
item
.
name
self
.
addformdata
.
defaultExecutorName
=
item
.
name
}
}
}
}
})
})
},
},
...
...
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