Commit 06843b34 authored by 高滢's avatar 高滢

feat(投资项目): loading

parent 559fa5d1
<template> <template>
<div :class="getClass" :style="getStyle" ref="wrapperRef"> <div
:class="getClass"
:style="getStyle"
ref="wrapperRef"
v-loading="loadingRef"
loading-tip="加载中..."
>
<PageHeader <PageHeader
:ghost="ghost" :ghost="ghost"
:title="title" :title="title"
...@@ -60,6 +66,7 @@ ...@@ -60,6 +66,7 @@
}); });
const props = defineProps({ const props = defineProps({
loadingRef: propTypes.bool,
title: propTypes.string, title: propTypes.string,
dense: propTypes.bool, dense: propTypes.bool,
ghost: propTypes.bool, ghost: propTypes.bool,
......
<template> <template>
<PageWrapper <PageWrapper :title="getTitle" :contentBackground="false" headerSticky :loadingRef="loading">
:title="getTitle"
:contentBackground="false"
headerSticky
:loading="loading"
loading-tip="加载中..."
>
<template #extra> <template #extra>
<!-- <a-button type="primary" v-if="!disabled" danger> 删除 </a-button>--> <!-- <a-button type="primary" v-if="!disabled" danger> 删除 </a-button>-->
<a-button type="primary" v-if="!disabled" @click="handleSubmit('0')"> 暂存 </a-button> <a-button type="primary" v-if="!disabled" @click="handleSubmit('0')"> 暂存 </a-button>
...@@ -114,7 +108,7 @@ ...@@ -114,7 +108,7 @@
const [register, { openModal: openModal }] = useModal(); const [register, { openModal: openModal }] = useModal();
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const isUpdate = ref(false); const isUpdate = ref(false);
const loading = ref(false); const loading = ref(true);
const formData = ref<editModel>({}); const formData = ref<editModel>({});
const disabled = ref(false); const disabled = ref(false);
onMounted(async () => { onMounted(async () => {
......
...@@ -81,7 +81,7 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] { ...@@ -81,7 +81,7 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
}, },
{ {
title: '投资总额(万元)', title: '投资总额(万元)',
dataIndex: 'companyName', dataIndex: 'totalInvestment',
className: planType != '承建' ? 'tableShow' : 'tableHiddle', className: planType != '承建' ? 'tableShow' : 'tableHiddle',
}, },
......
<template> <template>
<PageWrapper <PageWrapper
:title="getTitle" :title="getTitle"
v-loading="loadingRef" :loadingRef="loadingRef"
loading-tip="加载中..." loading-tip="加载中..."
:contentBackground="false" :contentBackground="false"
headerSticky headerSticky
......
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