提交 46ea87f5 authored 作者: lidongxu's avatar lidongxu

fix(plan): 修复 PC 端城市经理看到了全国计划的 bug 问题

因为参数没带上,发现主组件拿到用户归属人后没有重新发起请求_子组件单独请求注释掉了
上级 79748de8
......@@ -834,7 +834,6 @@ const getPlanList = async (arg) => {
tableList.value = res.data.records
total.value = res.data.totalRecord
}
getPlanList()
// 归属人列表
const belongPerList = ref([])
......
......@@ -269,13 +269,15 @@ const getBelongPerList = async () => {
})
// 城市经理,设置默认归属人
isCityManager && (queryParams.employeeId = belongPerList.value.find(item => item.employeeNo === empInfo.empNo)?.value)
}
onMounted(async () => {
// 给城市经理设置默认选中战区,需要确保归属人列表数据有值
await getBelongPerList()
getWarZoneList()
await getWarZoneList()
getPlanList()
})
/************ 数据列表管理 ************/
......
......@@ -225,7 +225,6 @@ const getPlanList = async (arg) => {
tableList.value = res.data.records
total.value = res.data.totalRecord
}
getPlanList()
defineExpose({
getPlanList
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论