|
@@ -69,8 +69,9 @@
|
|
|
</template>
|
|
|
</custom-form>
|
|
|
</el-col>
|
|
|
+ <!-- 加载界面 -->
|
|
|
<transition name="why">
|
|
|
- <el-col :span="24" v-if="dialog.type == '2'" class="dialog">
|
|
|
+ <el-col :span="24" v-if="dialog.type == '2'" class="dialog" v-loading="isLoading" element-loading-text="数据加载中..." :element-loading-svg="svg" element-loading-svg-view-box="-10,-10,50,50">
|
|
|
<div class="list" v-for="(item, index) in supplyList" :key="index" @click="toView(item)">
|
|
|
<h2 class="name textMore">
|
|
|
<span>{{ item.name || '暂无' }}</span>
|
|
@@ -120,7 +121,17 @@ const sectorStore = SectorStore()
|
|
|
const supplyStore = SupplyStore()
|
|
|
// 加载中
|
|
|
const loading = ref(false)
|
|
|
-
|
|
|
+const isLoading = ref(false)
|
|
|
+const svg = ref(`
|
|
|
+ <path class="path" d="
|
|
|
+ M 30 15
|
|
|
+ L 28 17
|
|
|
+ M 25.61 25.61
|
|
|
+ A 15 15, 0, 0, 1, 15 30
|
|
|
+ A 15 15, 0, 1, 1, 27.99 7.5
|
|
|
+ L 15 15
|
|
|
+ " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
|
|
|
+ `)
|
|
|
const router = useRouter()
|
|
|
|
|
|
const searchForm = ref({})
|
|
@@ -306,9 +317,13 @@ const toExam = async (row) => {
|
|
|
}
|
|
|
// 供给列表查询
|
|
|
const searchSupply = async () => {
|
|
|
+ isLoading.value = true
|
|
|
const info = { skip: 0, limit: 5, is_use: '0', status: '1' }
|
|
|
const res = await supplyStore.query(info)
|
|
|
if (res.errcode == '0') supplyList.value = res.data
|
|
|
+ setTimeout(() => {
|
|
|
+ isLoading.value = false
|
|
|
+ }, 3000) // 假设3秒后加载完成
|
|
|
}
|
|
|
// 查看详情
|
|
|
const toView = (item) => {
|