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

refactor(livecate): 梳理_数据配置里的直播间分类

同上
上级 2579f150
...@@ -39,17 +39,6 @@ import { getLiveCate, uploadLiveCate } from '@/api' ...@@ -39,17 +39,6 @@ import { getLiveCate, uploadLiveCate } from '@/api'
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const tableData = ref([])
const queryParams = ref({
zbjQdType: ''
})
const getCate = async () => {
const res = await getLiveCate(queryParams.value)
tableData.value = res.data
}
getCate()
// 覆盖上传直播间分类表格 // 覆盖上传直播间分类表格
const uploadExcel = () => { const uploadExcel = () => {
const fileInput = document.createElement('input'); const fileInput = document.createElement('input');
...@@ -66,13 +55,20 @@ const uploadExcel = () => { ...@@ -66,13 +55,20 @@ const uploadExcel = () => {
proxy.$modal.msgSuccess(res.data) proxy.$modal.msgSuccess(res.data)
} }
}); });
document.body.appendChild(fileInput); document.body.appendChild(fileInput);
fileInput.click() fileInput.click()
} }
</script>
<style scoped /************ 直播间分类列表 *******************/
lang="sass"> const tableData = ref([])
const queryParams = reactive({
zbjQdType: ''
})
const getCate = async () => {
const res = await getLiveCate(queryParams)
tableData.value = res.data
}
getCate()
</style> </script>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论