Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
d48ef950
Commit
d48ef950
authored
Jun 30, 2023
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 工单优化
parent
107e38fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
src/views/taskManage/index.vue
+14
-15
No files found.
src/views/taskManage/index.vue
View file @
d48ef950
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
<el-tree
<el-tree
:data=
"treeData"
:data=
"treeData"
:props=
"defaultProps"
:props=
"defaultProps"
ref=
"tree"
highlight-current
highlight-current
:node-key=
"'statusCode'"
:node-key=
"'statusCode'"
:expand-on-click-node=
"false"
:expand-on-click-node=
"false"
current-node-key=
"PRE_HANDLING"
default-expand-all
default-expand-all
@
node-click=
"handleNodeClick"
@
node-click=
"handleNodeClick"
>
>
...
@@ -751,7 +751,6 @@ export default {
...
@@ -751,7 +751,6 @@ export default {
this
.
centerPageOptions
.
currentPage
=
currentPage
this
.
centerPageOptions
.
currentPage
=
currentPage
this
.
getlist
()
this
.
getlist
()
},
},
operation
()
{},
async
getSystemUserList
()
{
async
getSystemUserList
()
{
try
{
try
{
const
res
=
await
getSystemUserList
()
const
res
=
await
getSystemUserList
()
...
@@ -789,6 +788,9 @@ export default {
...
@@ -789,6 +788,9 @@ export default {
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
treeData
=
[
res
.
data
]
this
.
treeData
=
[
res
.
data
]
}
}
this
.
$nextTick
(()
=>
{
this
.
$refs
.
tree
.
setCurrentKey
(
this
.
statusCode
)
})
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
error
(
e
)
console
.
error
(
e
)
}
}
...
@@ -825,16 +827,21 @@ export default {
...
@@ -825,16 +827,21 @@ export default {
)
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
assignVisible
=
false
this
.
assignVisible
=
false
this
.
getlist
()
this
.
getOrderTree
()
this
.
getOrderTree
()
this
.
getlist
()
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
error
(
e
)
console
.
error
(
e
)
}
}
},
},
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
if
(
data
.
statusCode
===
'IN_PROGRESS'
)
{
this
.
$set
(
this
.
searchForm
,
'leaders'
,
[
this
.
userInfo
.
id
,
])
}
if
(
data
.
statusCode
!==
'IN_PROGRESS'
)
{
if
(
data
.
statusCode
!==
'IN_PROGRESS'
)
{
this
.
searchForm
.
leaders
=
''
this
.
searchForm
.
leaders
=
[]
}
}
this
.
statusCode
=
data
.
statusCode
this
.
statusCode
=
data
.
statusCode
this
.
getlist
()
this
.
getlist
()
...
@@ -856,8 +863,11 @@ export default {
...
@@ -856,8 +863,11 @@ export default {
this
.
searchForm
.
leaders
.
join
(
','
),
this
.
searchForm
.
leaders
.
join
(
','
),
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
!==
200
)
return
this
.
sourceData
=
res
.
data
.
records
this
.
sourceData
=
res
.
data
.
records
this
.
centerPageOptions
.
total
=
res
.
data
.
total
this
.
centerPageOptions
.
total
=
res
.
data
.
total
})
.
finally
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
...
@@ -966,17 +976,6 @@ export default {
...
@@ -966,17 +976,6 @@ export default {
this
.
textarea
=
''
this
.
textarea
=
''
},
},
},
},
watch
:
{
statusCode
(
val
)
{
if
(
val
===
'IN_PROGRESS'
)
{
this
.
$set
(
this
.
searchForm
,
'leaders'
,
[
this
.
userInfo
.
id
,
])
}
else
{
this
.
$set
(
this
.
searchForm
,
'leaders'
,
[])
}
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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