refactor:任务管理
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
v-model="query.is_delete"
|
||||
class="filter-item"
|
||||
clearable
|
||||
@change="handTaskStatus"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deleteList"
|
||||
@@ -229,7 +229,15 @@ export default {
|
||||
sort: 'create_time,desc',
|
||||
crudMethod: { ...crudTask },
|
||||
query: {
|
||||
task_code: '', is_delete: '0', vehicle_code: '', start_point_code: '', next_point_code: '', task_type: '', finished_type: '', task_status: ['-1']
|
||||
task_code: '',
|
||||
is_delete: '0',
|
||||
vehicle_code: '',
|
||||
start_point_code: '',
|
||||
next_point_code: '',
|
||||
task_type: '',
|
||||
finished_type: '',
|
||||
more_task_status: '-1',
|
||||
task_status: ['-1']
|
||||
},
|
||||
optShow: {
|
||||
add: false,
|
||||
@@ -279,7 +287,7 @@ export default {
|
||||
parent_class_code: 'task_type'
|
||||
}
|
||||
crudClassstandard.getClassType(param).then(res => {
|
||||
const data = res.content
|
||||
const data = res
|
||||
this.buildTree(data)
|
||||
this.classes1 = data
|
||||
})
|
||||
@@ -297,9 +305,8 @@ export default {
|
||||
// 获取子节点数据
|
||||
loadChildNodes({ action, parentNode, callback }) {
|
||||
if (action === LOAD_CHILDREN_OPTIONS) {
|
||||
debugger
|
||||
crudClassstandard.getClass({ pid: parentNode.id }).then(res => {
|
||||
parentNode.children = res.content.map(function(obj) {
|
||||
parentNode.children = res.map(function(obj) {
|
||||
if (obj.hasChildren) {
|
||||
obj.children = null
|
||||
}
|
||||
@@ -312,13 +319,12 @@ export default {
|
||||
}
|
||||
},
|
||||
hand(value) {
|
||||
debugger
|
||||
this.crud.toQuery()
|
||||
},
|
||||
handTaskStatus(value) {
|
||||
debugger
|
||||
if (value) {
|
||||
this.query.task_status = this.task_status.toString()
|
||||
console.log(value)
|
||||
this.crud.query.more_task_status = value.toString()
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user