提交 b27ea9dc authored 作者: lidongxu's avatar lidongxu

fix(supply): 紧急修复_供应链分析_自定义分组

新增后不刷新再编辑会出来两个_改成新增后重新获取下列表
上级 6812966f
...@@ -142,6 +142,7 @@ const getReportList = async () => { ...@@ -142,6 +142,7 @@ const getReportList = async () => {
const { data: otherData } = await getReportListBySelfAPI() const { data: otherData } = await getReportListBySelfAPI()
reportList.value = data.concat(otherData) reportList.value = data.concat(otherData)
// 右侧分组列表 // 右侧分组列表
const res = await getReportListByGroupAPI({ const res = await getReportListByGroupAPI({
categoryName: '供应链报表' categoryName: '供应链报表'
...@@ -203,9 +204,9 @@ const addGroups = async () => { ...@@ -203,9 +204,9 @@ const addGroups = async () => {
items: [] items: []
}) })
groups.value.push({ // 获取分组
groupName: '新分组', await getReportList({
items: [] categoryName: '供应链报表'
}) })
} }
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论