This commit is contained in:
dzc committed 2025-04-03 17:12:07 +08:00
1 parent 7d094a1c30
commit e823349e20
4 files changed
+46 -44

No files matched your search

+40 -40
View File
@@ -8,79 +8,79 @@
</template> </template>
<script setup lang="ts" name="app"> <script setup lang="ts" name="app">
import { useI18n } from 'vue-i18n'; import { useI18n } from "vue-i18n"
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes'; import { useTagsViewRoutes } from "/@/stores/tagsViewRoutes"
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from "/@/stores/themeConfig"
import other from '/@/utils/other'; import other from "/@/utils/other"
import { Local, Session } from '/@/utils/storage'; import { Local, Session } from "/@/utils/storage"
import mittBus from '/@/utils/mitt'; import mittBus from "/@/utils/mitt"
import setIntroduction from '/@/utils/setIconfont'; import setIntroduction from "/@/utils/setIconfont"
// 引入组件 // 引入组件
const LockScreen = defineAsyncComponent(() => import('/@/layout/lockScreen/index.vue')); const LockScreen = defineAsyncComponent(() => import("/@/layout/lockScreen/index.vue"))
const Setings = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/setings.vue')); const Setings = defineAsyncComponent(() => import("/@/layout/navBars/breadcrumb/setings.vue"))
const CloseFull = defineAsyncComponent(() => import('/@/layout/navBars/breadcrumb/closeFull.vue')); const CloseFull = defineAsyncComponent(() => import("/@/layout/navBars/breadcrumb/closeFull.vue"))
// 定义变量内容 // 定义变量内容
const { messages, locale } = useI18n(); const { messages, locale } = useI18n()
const settingsRef = ref(); const settingsRef = ref()
const route = useRoute(); const route = useRoute()
const stores = useTagsViewRoutes(); const stores = useTagsViewRoutes()
const storesThemeConfig = useThemeConfig(); const storesThemeConfig = useThemeConfig()
const { themeConfig } = storeToRefs(storesThemeConfig); const { themeConfig } = storeToRefs(storesThemeConfig)
// 设置锁屏时组件显示隐藏 // 设置锁屏时组件显示隐藏
const setLockScreen = computed(() => { const setLockScreen = computed(() => {
// 防止锁屏后,刷新出现不相关界面 // 防止锁屏后,刷新出现不相关界面
// https://gitee.com/lyt-top/vue-next-admin/issues/I6AF8P // https://gitee.com/lyt-top/vue-next-admin/issues/I6AF8P
return themeConfig.value.isLockScreen ? themeConfig.value.lockScreenTime > 1 : themeConfig.value.lockScreenTime >= 0; return themeConfig.value.isLockScreen ? themeConfig.value.lockScreenTime > 1 : themeConfig.value.lockScreenTime >= 0
}); })
// 获取全局组件大小 // 获取全局组件大小
const getGlobalComponentSize = computed(() => { const getGlobalComponentSize = computed(() => {
return other.globalComponentSize(); return other.globalComponentSize()
}); })
// 获取全局 i18n // 获取全局 i18n
const getGlobalI18n = computed(() => { const getGlobalI18n = computed(() => {
return messages.value[locale.value]; return messages.value[locale.value]
}); })
// 设置初始化,防止刷新时恢复默认 // 设置初始化,防止刷新时恢复默认
onBeforeMount(() => { onBeforeMount(() => {
// 设置批量第三方 icon 图标 // 设置批量第三方 icon 图标
setIntroduction.cssCdn(); setIntroduction.cssCdn()
// 设置批量第三方 js // 设置批量第三方 js
setIntroduction.jsCdn(); setIntroduction.jsCdn()
}); })
// 页面加载时 // 页面加载时
onMounted(() => { onMounted(() => {
nextTick(() => { nextTick(() => {
// 监听布局配'置弹窗点击打开 // 监听布局配'置弹窗点击打开
mittBus.on('openSetingsDrawer', () => { mittBus.on("openSetingsDrawer", () => {
settingsRef.value.openDrawer(); settingsRef.value.openDrawer()
}); })
// 获取缓存中的布局配置 // 获取缓存中的布局配置
if (Local.get('themeConfig')) { if (Local.get("themeConfig")) {
storesThemeConfig.setThemeConfig({ themeConfig: Local.get('themeConfig') }); storesThemeConfig.setThemeConfig({ themeConfig: Local.get("themeConfig") })
document.documentElement.style.cssText = Local.get('themeConfigStyle'); document.documentElement.style.cssText = Local.get("themeConfigStyle")
} }
// 获取缓存中的全屏配置 // 获取缓存中的全屏配置
if (Session.get('isTagsViewCurrenFull')) { if (Session.get("isTagsViewCurrenFull")) {
stores.setCurrenFullscreen(Session.get('isTagsViewCurrenFull')); stores.setCurrenFullscreen(Session.get("isTagsViewCurrenFull"))
} }
}); })
}); })
// 页面销毁时,关闭监听布局配置/i18n监听 // 页面销毁时,关闭监听布局配置/i18n监听
onUnmounted(() => { onUnmounted(() => {
mittBus.off('openSetingsDrawer', () => {}); mittBus.off("openSetingsDrawer", () => {})
}); })
// 监听路由的变化,设置网站标题 // 监听路由的变化,设置网站标题
watch( watch(
() => route.path, () => route.path,
() => { () => {
other.useTitle(); other.useTitle()
}, },
{ {
deep: true, deep: true,
} },
); )
</script> </script>
+3 -1
View File
@@ -17,7 +17,9 @@
<div class="flex items-center"> <div class="flex items-center">
<div class="color-primary">{{ v.name }}</div> <div class="color-primary">{{ v.name }}</div>
<div class="flex items-center justify-center ml5"> <div class="flex items-center justify-center ml5">
<dict-tag :options="state.hardType" :value="v.type" /> <div class="flex items-center justify-center ml5">
<el-tag size="small"> {{ v.merchantName }} </el-tag>
</div>
</div> </div>
</div> </div>
</el-option> </el-option>
+1 -1
View File
@@ -1,5 +1,5 @@
<template> <template>
<el-dialog :title="form.id ? '编辑' : '新增'" v-model="visible" :close-on-click-modal="false" draggable> <el-dialog :title="form.id ? '编辑' : '新增'" width="40%" v-model="visible" :close-on-click-modal="false" draggable>
<el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="120px" v-loading="loading"> <el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="120px" v-loading="loading">
<el-row :gutter="24"> <el-row :gutter="24">
<el-col :span="24" class="mb20"> <el-col :span="24" class="mb20">
@@ -81,7 +81,7 @@
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="目标钱包"> <el-table-column label="目标钱包">
<el-table-column width="110" label="源钱包"> <el-table-column width="110" label="目标钱包">
<template #default="{ row }"> <template #default="{ row }">
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<div class="color-primary">{{ row.targetWalletTypeName }}</div> <div class="color-primary">{{ row.targetWalletTypeName }}</div>
@@ -91,7 +91,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="110" prop="sourceWalletBalance" label="源钱包余额"> <el-table-column width="110" prop="sourceWalletBalance" label="目标钱包余额">
<template #default="{ row }"> <template #default="{ row }">
<span class="color-success">{{ displayPrice(row.targetWalletBalance) }}</span> <span class="color-success">{{ displayPrice(row.targetWalletBalance) }}</span>
</template> </template>