refactor(ui): 界面升级与代码规范优化

This commit is contained in:
Ray.Hao committed 2026-06-18 18:38:12 +08:00
1 parent 288ea9b43d
commit 14035cfa4d
130 files changed
+7813 -5893

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@
</template>
<style lang="scss" scoped>
@use "@/styles/base/variables" as *;
@use "@/styles/variables" as *;
.page-container {
height: calc(100vh - $navbar-height);
+6 -6
View File
@@ -30,18 +30,18 @@
@filter-change="handleFilterChange"
>
<template #status="scope">
<el-tag :type="scope.row[scope.prop] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop] === 1 ? "启用" : "禁用" }}
<el-tag :type="scope.row[scope.prop as string] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop as string] === 1 ? "启用" : "禁用" }}
</el-tag>
</template>
<template #gender="scope">
<DictTag v-model="scope.row[scope.prop]" code="gender" />
<DictTag v-model="scope.row[scope.prop as string]" code="gender" />
</template>
<template #mobile="scope">
<el-text>{{ scope.row[scope.prop] }}</el-text>
<el-text>{{ scope.row[scope.prop as string] }}</el-text>
<copy-button
v-if="scope.row[scope.prop]"
:text="scope.row[scope.prop]"
v-if="scope.row[scope.prop as string]"
:text="scope.row[scope.prop as string]"
:style="{ marginLeft: '2px' }"
/>
</template>
+8 -8
View File
@@ -33,18 +33,18 @@
@filter-change="handleFilterChange"
>
<template #status="scope">
<el-tag :type="scope.row[scope.prop] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop] === 1 ? "启用" : "禁用" }}
<el-tag :type="scope.row[scope.prop as string] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop as string] === 1 ? "启用" : "禁用" }}
</el-tag>
</template>
<template #gender="scope">
<DictTag v-model="scope.row[scope.prop]" code="gender" />
<DictTag v-model="scope.row[scope.prop as string]" code="gender" />
</template>
<template #mobile="scope">
<el-text>{{ scope.row[scope.prop] }}</el-text>
<el-text>{{ scope.row[scope.prop as string] }}</el-text>
<copy-button
v-if="scope.row[scope.prop]"
:text="scope.row[scope.prop]"
v-if="scope.row[scope.prop as string]"
:text="scope.row[scope.prop as string]"
:style="{ marginLeft: '2px' }"
/>
</template>
@@ -91,8 +91,8 @@
@operate-click="handleOperateClick2"
>
<template #status="scope">
<el-tag :type="scope.row[scope.prop] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop] === 1 ? "启用" : "禁用" }}
<el-tag :type="scope.row[scope.prop as string] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop as string] === 1 ? "启用" : "禁用" }}
</el-tag>
</template>
</page-content>
+1 -1
View File
@@ -4,7 +4,7 @@
</div>
</template>
<style lang="scss" scoped>
@use "@/styles/base/variables" as *;
@use "@/styles/variables" as *;
.page-container {
height: calc(100vh - $navbar-height);
+2 -2
View File
@@ -11,8 +11,8 @@
</el-link>
<table-select :text="text" :select-config="selectConfig" @confirm-click="handleConfirm">
<template #status="scope">
<el-tag :type="scope.row[scope.prop] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop] === 1 ? "启用" : "禁用" }}
<el-tag :type="scope.row[scope.prop as string] === 1 ? 'success' : 'info'">
{{ scope.row[scope.prop as string] === 1 ? "启用" : "禁用" }}
</el-tag>
</template>
<template #gender="scope">