提交 6612037f authored 作者: lidongxu's avatar lidongxu

test(display): 测试:并入到测试环境

上级 98ff1060
......@@ -23,7 +23,8 @@
border
:scroll-x="'max-content'"
class="auto-fit-header-table"
fit>
fit
:loading="isLoading">
<el-table-column v-for="col in tableColumns"
:label="col.label"
align="center"
......@@ -434,6 +435,8 @@ const fillColumns = ref([
const tableColumns = ref([])
// 右上角工具选择列
const chooseColumns = ref([])
// 加载进度
const isLoading = ref(false)
// 计算列具体数据
const checkTableColumns = () => {
if (operation.value === '全部列') {
......@@ -485,11 +488,16 @@ const total = ref(0)
// 筛选工具
const showSearch = ref(true);
const getTableList = async () => {
isLoading.value = true
const res = await getDisplayList({
...params
})
tableData.value = res.data.rows
total.value = res.data.total
setTimeout(() => {
isLoading.value = false
}, 3000)
}
getTableList()
......@@ -534,10 +542,6 @@ const getColumnMinWidth = (column) => {
return widthMap[column.prop] || 150; // 默认宽度
};
</script>
<style scoped
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论