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

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

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