Commit 489298c1 authored by 罗超's avatar 罗超

优化模板数据项目

parent bc020d73
......@@ -4,7 +4,7 @@
<div class="DataaSource">
<div class="DataaSourceList">
<el-table
:data="datas.DataSource.DataSourceList"
:data="dataArray"
style="width: 100%"
border
>
......@@ -78,7 +78,7 @@
const datas = reactive({
sortList:[],
DataSource:{},
DataSource:{} as any,
loading: false,//是否更新数据源
})
for(let i=0;i<11;i++){
......@@ -147,6 +147,12 @@
if(SourceLoading.value) setNewDatasList(datas.DataSource)
}
const dataArray = computed(() => {
if(datas.DataSource && datas.DataSource.DataSourceList){
return datas.DataSource.DataSourceList.filter((x:any)=>!x.lock)
}
return []
})
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment