Commit f56b6b94 authored by “yiyousong”'s avatar “yiyousong”

fix: 修复应用主题过滤显示在没有该主题的时候报错的问题

parent a4b7a172
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
}" }"
:loading="loading" :loading="loading"
bordered bordered
:scroll="{ y: 580 }" :scroll="{ y: 560 }"
:columns="columns" :columns="columns"
:pagination="{ :pagination="{
showTotal: (total) => `共 ${total} 条`, showTotal: (total) => `共 ${total} 条`,
...@@ -377,7 +377,8 @@ export default { ...@@ -377,7 +377,8 @@ export default {
// 过滤分类展示 // 过滤分类展示
filterItems(appThemeName) { filterItems(appThemeName) {
return ( return (
this.categoryList.find((v) => v.id == appThemeName).categoryName || "--" this.categoryList.find((v) => v.id == appThemeName)?.categoryName ||
"--"
); );
}, },
// 预览图片 // 预览图片
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
}" }"
:loading="loading" :loading="loading"
bordered bordered
:scroll="{ y: 580 }" :scroll="{ y: 560 }"
:columns="columns" :columns="columns"
:pagination="{ :pagination="{
showTotal: (total) => `共 ${total} 条`, showTotal: (total) => `共 ${total} 条`,
...@@ -361,7 +361,8 @@ export default { ...@@ -361,7 +361,8 @@ export default {
// 过滤分类展示 // 过滤分类展示
filterItems(appThemeName) { filterItems(appThemeName) {
return ( return (
this.categoryList.find((v) => v.id == appThemeName).categoryName || "--" this.categoryList.find((v) => v.id == appThemeName)?.categoryName ||
"--"
); );
}, },
// 预览图片 // 预览图片
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
:loading="loading" :loading="loading"
bordered bordered
:columns="columns" :columns="columns"
:scroll="{ y: 580 }" :scroll="{ y: 560 }"
:pagination="{ :pagination="{
showTotal: (total) => `共 ${total} 条`, showTotal: (total) => `共 ${total} 条`,
current: current, current: current,
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<div class="table-content"> <div class="table-content">
<!-- 表格 --> <!-- 表格 -->
<a-table <a-table
:scroll="{ y: 560 }" :scroll="{ y: 550 }"
:loading="loading" :loading="loading"
bordered bordered
:columns="columns" :columns="columns"
......
...@@ -206,7 +206,7 @@ ...@@ -206,7 +206,7 @@
onShowSizeChange: showSizeChange, onShowSizeChange: showSizeChange,
}" }"
bordered bordered
:scroll="{ y: 510 }" :scroll="{ y: 500 }"
:loading="loading" :loading="loading"
:columns="columns" :columns="columns"
:data-source="WorkmanData" :data-source="WorkmanData"
......
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