|
@@ -28,7 +28,7 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
<template #taskDetail="{ row, index }">
|
|
|
- <el-select v-model="row.taskDetail" :getdata="budgetTypeChange(row?.budgetType, index)" disabled>
|
|
|
+ <el-select v-model="row.taskDetail" :getdata="changeBudgetType(row?.budgetType, index)" disabled>
|
|
|
<el-option v-for="item in taskDetailList[index]" :label="item.dictName" :value="item.dictValue" />
|
|
|
</el-select>
|
|
|
</template>
|
|
@@ -237,25 +237,32 @@ const getBudgetTypeList = async ()=>{
|
|
|
}
|
|
|
//任务明细
|
|
|
const taskDetailList = ref({})
|
|
|
-const budgetTypeChange = async (val, index)=>{
|
|
|
- let id = ''
|
|
|
+// const budgetTypeChange = async (val, index)=>{
|
|
|
+// let id = ''
|
|
|
+// budgetTypeList.value.forEach((ele)=>{
|
|
|
+// if (ele.dictValue === val) {
|
|
|
+// id = ele.id
|
|
|
+// }
|
|
|
+// })
|
|
|
+// if (id.length > 0) {
|
|
|
+// const { error, code, data } = await costApi.getChlidList({ parentId:id, type:5 })
|
|
|
+// if (!error && code === 200) {
|
|
|
+// taskDetailList.value[index] = getArrValue(data)
|
|
|
+
|
|
|
+// } else {
|
|
|
+// taskDetailList.value[index] = {}
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
+// }
|
|
|
+//获取岗位分类postTypeList
|
|
|
+const changeBudgetType = (val, index)=>{
|
|
|
budgetTypeList.value.forEach((ele)=>{
|
|
|
if (ele.dictValue === val) {
|
|
|
- id = ele.id
|
|
|
+ taskDetailList.value[index] = ele.children
|
|
|
}
|
|
|
})
|
|
|
- if (id.length > 0) {
|
|
|
- const { error, code, data } = await costApi.getChlidList({ parentId:id, type:5 })
|
|
|
- if (!error && code === 200) {
|
|
|
- taskDetailList.value[index] = getArrValue(data)
|
|
|
-
|
|
|
- } else {
|
|
|
- taskDetailList.value[index] = {}
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
-//获取岗位分类postTypeList
|
|
|
const postTypeList = ref([])
|
|
|
const getPostDict = async (type)=>{
|
|
|
const { error, code, data } = await costApi.getPostDict()
|