diff --git a/src/views/taskmanage/api.ts b/src/views/taskmanage/api.ts index 5817dd4b..ad4fa8f9 100644 --- a/src/views/taskmanage/api.ts +++ b/src/views/taskmanage/api.ts @@ -761,3 +761,19 @@ export function GetTaskPlatEnumDict() { method: 'post', }) } + +export function TaskAllocationSave(parameter) { + return request({ + url: '/taskApi/TaskAllocation/Save', + data:parameter, + method: 'post', + }) +} + +export function TaskAllocationGetList(parameter) { + return request({ + url: '/taskApi/TaskAllocation/GetList', + params:parameter, + method: 'get', + }) +} diff --git a/src/views/taskmanage/index.vue b/src/views/taskmanage/index.vue index 977781c0..c3e69db0 100644 --- a/src/views/taskmanage/index.vue +++ b/src/views/taskmanage/index.vue @@ -372,6 +372,12 @@ function refshTotalStat() { levelTop.value = res.data.levelTop levelNextAll.value = res.data.levelNext levelTreeAll.value = res.data.levelTree + levelTree.value = selectTreeLevel(levelTreeAll.value, activeNextKey.value, activeTopKey.value) + levelTree.value.map((item, index) => { + if(item.key === taskType.value){ + item.active = true + } + }) reload() }) .catch(err => { diff --git a/src/views/taskmanage/taskList/taskAllocation.vue b/src/views/taskmanage/taskList/taskAllocation.vue index 4fb7cf30..ed62b8e5 100644 --- a/src/views/taskmanage/taskList/taskAllocation.vue +++ b/src/views/taskmanage/taskList/taskAllocation.vue @@ -1,32 +1,183 @@ - @@ -38,5 +189,18 @@ function handleSave(){ cursor: pointer; color: rgba(22, 119, 255, 1); } + + .taskType { + margin-bottom: 5px + } + .list{ + display: flex; + flex-wrap: wrap; + .card{ + width: 300px; + margin-right: 20px; + margin-bottom: 20px; + } + } } \ No newline at end of file