This commit is contained in:
zlwu committed 2026-05-21 11:25:43 +08:00
1 parent 74f751d0d1
commit ad0e849f6d
50 files changed
+1569 -659

No files matched your search

+29 -4
View File
@@ -295,7 +295,15 @@
class="order-module-dialog order-detail-dialog"
modal-class="order-module-dialog-mask"
>
<div v-loading="detailLoading" class="dialog-scroll order-detail-dialog-scroll">
<div class="dialog-scroll order-detail-dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="4"
:field-count="8"
:grid-columns="3"
/>
<template v-else>
<div class="view-hero order-view-hero">
<div class="order-view-hero-icon">
<el-icon><ShoppingBag /></el-icon>
@@ -810,6 +818,7 @@
</div>
</div>
</template>
</div>
<template #footer>
<el-button class="btn-ghost" @click="viewVisible = false"><el-icon><Close /></el-icon>关闭</el-button>
@@ -830,7 +839,15 @@
</el-dialog>
<div v-else v-show="viewVisible" class="order-embedded-detail">
<div v-loading="detailLoading" class="dialog-scroll order-detail-dialog-scroll">
<div class="dialog-scroll order-detail-dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="4"
:field-count="8"
:grid-columns="3"
/>
<template v-else>
<div class="view-hero order-view-hero">
<div class="order-view-hero-icon">
<el-icon><ShoppingBag /></el-icon>
@@ -1135,6 +1152,7 @@
</div>
</div>
</template>
</div>
</div>
@@ -1382,8 +1400,14 @@
modal-class="order-module-dialog-mask"
@opened="loadOrderPriceVersionDetail"
>
<div v-loading="orderPriceVersionLoading" class="order-pv-body">
<template v-if="orderPriceVersionDetail">
<div class="order-pv-body" :class="{ 'is-view-loading': orderPriceVersionLoading }">
<DialogDetailSkeleton
v-if="orderPriceVersionLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="orderPriceVersionDetail">
<div class="view-hero order-pv-hero">
<div class="order-view-hero-icon">
<el-icon><Setting /></el-icon>
@@ -1516,6 +1540,7 @@
} from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
import {
ArrowDown,
+9 -2
View File
@@ -165,7 +165,13 @@
destroy-on-close
:close-on-click-modal="false"
>
<div v-loading="postBindLoading" class="post-bind-dialog-body">
<DialogFormBody
:loading="postBindLoading"
body-class="post-bind-dialog-body"
skeleton-variant="form"
:skeleton-section-count="1"
:skeleton-field-count="4"
>
<p v-if="postBindPostName" class="post-bind-subtitle">
职位:<strong>{{ postBindPostName }}</strong>
</p>
@@ -240,7 +246,7 @@
</div>
</el-form-item>
</el-form>
</div>
</DialogFormBody>
<template #footer>
<el-button class="btn-ghost" @click="postBindDialogVisible = false">
<el-icon><Close /></el-icon>
@@ -273,6 +279,7 @@
import { ref, reactive, computed, onMounted, nextTick } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus, Close, Check, User, View, Briefcase, RefreshLeft, Search } from '@element-plus/icons-vue'
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import { MAX_ADMIN_LIST_PAGE_SIZE } from '@/utils/fetch-paged-list'
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
+9 -6
View File
@@ -197,7 +197,7 @@
destroy-on-close
:close-on-click-modal="false"
>
<div v-loading="menuDialogLoading" style="min-height: 200px">
<DialogFormBody :loading="menuDialogLoading" skeleton-variant="simple" :skeleton-section-count="1">
<!-- 父子关联勾选:选父级全选子级,选子级自动带上父级(与 check-strictly 互斥,故不加) -->
<el-tree
ref="menuTreeRef"
@@ -208,7 +208,7 @@
:default-checked-keys="menuCheckedKeys"
style="max-height: 500px; overflow-y: auto"
/>
</div>
</DialogFormBody>
<template #footer>
<el-button class="btn-ghost" @click="menuDialogVisible = false">
<el-icon><Close /></el-icon>
@@ -363,8 +363,9 @@
:sections="viewSections"
>
<template #menuTree>
<div v-loading="viewDetailLoading" class="role-view-tree-block">
<div v-if="viewMenuTreeData.length" class="role-view-tree-scroll">
<div class="role-view-tree-block">
<el-skeleton v-if="viewDetailLoading" animated :rows="5" class="role-view-tree-skeleton" />
<div v-else-if="viewMenuTreeData.length" class="role-view-tree-scroll">
<el-tree
:key="'menu-' + viewTreeRenderKey"
ref="viewMenuTreeRef"
@@ -381,8 +382,9 @@
</div>
</template>
<template #customDeptTree>
<div v-loading="viewDetailLoading" class="role-view-tree-block">
<div v-if="viewDeptTreeData.length" class="role-view-tree-scroll">
<div class="role-view-tree-block">
<el-skeleton v-if="viewDetailLoading" animated :rows="5" class="role-view-tree-skeleton" />
<div v-else-if="viewDeptTreeData.length" class="role-view-tree-scroll">
<el-tree
:key="'dept-' + viewTreeRenderKey"
ref="viewDeptTreeRef"
@@ -408,6 +410,7 @@
import { ref, reactive, computed, onMounted, nextTick, watch } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus, Close, Check, DataAnalysis, View, Stamp, RefreshLeft, Search } from '@element-plus/icons-vue'
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import SystemViewDialog, {
type ViewSection
} from '@/components/business/system-view-dialog/index.vue'
@@ -10,7 +10,9 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-if="bizLoading" v-loading="true" class="dialog-scroll" style="min-height: 120px" />
<div v-if="bizLoading" class="dialog-scroll is-view-loading" style="min-height: 120px">
<DialogDetailSkeleton variant="simple" :section-count="2" :field-count="4" />
</div>
<div v-else class="dialog-scroll">
<!-- Hero header -->
<div class="view-hero">
@@ -75,6 +77,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchApproveTask, fetchRejectTask, fetchInstanceDetail } from '@/api/workflow'
import { Checked, Close, Check } from '@element-plus/icons-vue'
@@ -126,8 +126,14 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-loading="detailLoading" class="dialog-scroll">
<template v-if="detailData">
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -194,6 +200,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchMyInstances, fetchBusinessAllTasks } from '@/api/workflow'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'
import { Document, View, Search, RefreshLeft, Close } from '@element-plus/icons-vue'
@@ -127,8 +127,14 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-loading="detailLoading" class="dialog-scroll">
<template v-if="detailData">
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -197,6 +203,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchCompletedTasks, fetchInstanceDetail } from '@/api/workflow'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'
import { Document, View, Search, RefreshLeft, Close } from '@element-plus/icons-vue'
@@ -124,8 +124,14 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-loading="detailLoading" class="dialog-scroll">
<template v-if="detailData">
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -194,6 +200,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchPendingTasks, fetchInstanceDetail } from '@/api/workflow'
import ApprovalDialog from '../components/ApprovalDialog.vue'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'