1、后端优化多环境动态管理:python3 main.py run --env=dev(dev、test、prod,可以不加--env,默认dev)

2、前端加入切换主题功能(布局页面头部背景未生效,待优化)
This commit is contained in:
zhangtao
2024-12-20 22:33:56 +08:00
parent d6e9bc9a74
commit d270cc06a3
32 changed files with 832 additions and 715 deletions
+2 -7
View File
@@ -68,18 +68,13 @@
:style="{ minHeight: '500px' }"
>
<template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'name'">
<span :style="{ color: !record.available ? 'rgb(255, 77, 79)' : 'rgba(0, 0, 0, .88)' }">
{{ record.name }}
</span>
</template>
<template v-else-if="column.dataIndex === 'available'">
<template v-if="column.dataIndex === 'available'">
<a-badge :status="record.available ? 'success' : 'error'" />
{{ record.available ? '启用' : '停用' }}
</template>
<template v-else-if="column.dataIndex === 'action'">
<template v-if="column.dataIndex === 'action'">
<a-space size="middle">
<a @click="modalHandle('view', record)">查看</a>
<a @click="modalHandle('update', record)">修改</a>
-5
View File
@@ -67,11 +67,6 @@
:style="{ minHeight: '500px' }"
>
<template #bodyCell="{ column, record }">
<template v-if="column.dataIndex === 'name'">
<span :style="{ color: !record.available ? 'rgb(255, 77, 79)' : 'rgba(0, 0, 0, .88)' }">
{{ record.name }}
</span>
</template>
<template v-if="column.dataIndex === 'type'">
<a-tag :color="record.type === 1 ? 'blue' : (record.type === 2 ? 'green' : 'orange')">
{{ record.type === 1 ? '目录' : (record.type === 2 ? '功能' : '权限') }}
@@ -68,11 +68,6 @@
<template v-if="column.dataIndex === 'index'">
<span>{{ (pagination.current - 1) * pagination.pageSize + index + 1 }}</span>
</template>
<template v-if="column.dataIndex === 'notice_title'">
<span :style="{ color: !record.available ? 'rgb(255, 77, 79)' : 'rgba(0, 0, 0, .88)' }">
{{ record.notice_title }}
</span>
</template>
<template v-if="column.dataIndex === 'notice_type'">
<span :style="{ color: record.notice_type === 1 ? '#108ee9' : '#f8e231' }">
{{ record.notice_type === 1 ? '通知' : '公告' }}
@@ -78,11 +78,6 @@
<template v-if="column.dataIndex === 'index'">
<span>{{ (pagination.current - 1) * pagination.pageSize + index + 1 }}</span>
</template>
<template v-if="column.dataIndex === 'name'">
<span :style="{ color: !record.available ? 'rgb(255, 77, 79)' : 'rgba(0, 0, 0, .88)' }">
{{ record.name }}
</span>
</template>
<template v-if="column.dataIndex === 'available'">
<span><a-badge :color="record.available ? 'green' : 'red'" /> {{ record.available ? '启用' : '禁用' }}
</span>
-5
View File
@@ -76,11 +76,6 @@
<template v-if="column.dataIndex === 'index'">
<span>{{ (pagination.current - 1) * pagination.pageSize + index + 1 }}</span>
</template>
<template v-if="column.dataIndex === 'name'">
<span :style="{ color: !record.available ? 'rgb(255, 77, 79)' : 'rgba(0, 0, 0, .88)' }">
{{ record.name }}
</span>
</template>
<template v-if="column.dataIndex === 'available'">
<span><a-badge :color="record.available ? 'green' : 'red'" /> {{ record.available ? '启用' : '禁用' }}
</span>
-5
View File
@@ -74,11 +74,6 @@
<template v-if="column.dataIndex === 'index'">
<span>{{ (pagination.current - 1) * pagination.pageSize + index + 1 }}</span>
</template>
<template v-if="column.dataIndex === 'name'">
<span :style="{ color: !record.available ? 'rgb(255, 77, 79)' : 'rgba(0, 0, 0, .88)' }">
{{ record.name }}
</span>
</template>
<template v-if="column.dataIndex === 'dept'">
<span>{{ record.dept_name }}</span>
</template>