Commit 3af372a2 authored by zhengke's avatar zhengke

no message

parent 76f7919c
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
</div> </div>
</div> </div>
</div> </div>
<div style="height: 750px;overflow: auto;"> <div style="height: 750px;overflow: auto;" :loading="loading">
<div class="q-mt-lg row wrap bg-white rounded" style="padding: 30px 10px 0 10px;"> <div v-if="dataList.length>0" class="q-mt-lg row wrap bg-white rounded" style="padding: 30px 10px 0 10px;">
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<div class="MarketIndexListBox"> <div class="MarketIndexListBox">
<div class="MarketIndexList bg-white rounded" @click="goToTemplate(item)"> <div class="MarketIndexList bg-white rounded" @click="goToTemplate(item)">
...@@ -77,7 +77,8 @@ ...@@ -77,7 +77,8 @@
</div> </div>
</template> </template>
</div> </div>
<div class="q-mt-lg row" style="justify-content: center;"> <div v-else class="q-mt-lg bg-white rounded" style="padding: 30px 10px 30px 10px;text-align: center;color: #909399;">暂无数据</div>
<div v-if="dataList.length>0" class="q-mt-lg row" style="justify-content: center;">
<!-- hide-on-single-page --> <!-- hide-on-single-page -->
<el-pagination <el-pagination
background background
...@@ -127,6 +128,7 @@ ...@@ -127,6 +128,7 @@
pageCount: 0, //总页数 pageCount: 0, //总页数
}) })
const loading = ref(false as any)
const searchData = ref({} as any) const searchData = ref({} as any)
searchData.value = inject(injectKeyTemplate) searchData.value = inject(injectKeyTemplate)
const marketStore = useScreenStore() const marketStore = useScreenStore()
...@@ -174,6 +176,7 @@ ...@@ -174,6 +176,7 @@
* 获取模板市场分页列表 * 获取模板市场分页列表
*/ */
const queryTemplateBySearchHandler = async () => { const queryTemplateBySearchHandler = async () => {
loading.value = true
try { try {
let pageRes = await ConfigService.GetTemplagePageAsync(queryObj); let pageRes = await ConfigService.GetTemplagePageAsync(queryObj);
if (pageRes.data.resultCode == 1) { if (pageRes.data.resultCode == 1) {
...@@ -181,7 +184,9 @@ ...@@ -181,7 +184,9 @@
queryObj.totalCount = pageRes.data.data.count; queryObj.totalCount = pageRes.data.data.count;
queryObj.pageCount = pageRes.data.data.pageCount; queryObj.pageCount = pageRes.data.data.pageCount;
} }
loading.value = false
} catch (error) { } catch (error) {
loading.value = false
} }
} }
const handleSizeChange = (val: number) => { const handleSizeChange = (val: number) => {
......
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