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

优化模板数据项目

parent bc020d73
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="DataaSource"> <div class="DataaSource">
<div class="DataaSourceList"> <div class="DataaSourceList">
<el-table <el-table
:data="datas.DataSource.DataSourceList" :data="dataArray"
style="width: 100%" style="width: 100%"
border border
> >
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
const datas = reactive({ const datas = reactive({
sortList:[], sortList:[],
DataSource:{}, DataSource:{} as any,
loading: false,//是否更新数据源 loading: false,//是否更新数据源
}) })
for(let i=0;i<11;i++){ for(let i=0;i<11;i++){
...@@ -146,7 +146,13 @@ ...@@ -146,7 +146,13 @@
datas.DataSource.DataSourceOverlay = !datas.DataSource.DataSourceOverlay datas.DataSource.DataSourceOverlay = !datas.DataSource.DataSourceOverlay
if(SourceLoading.value) setNewDatasList(datas.DataSource) 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> </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