更新数据库文件

This commit is contained in:
xiangheng
2024-04-30 10:43:11 +08:00
parent 5917594830
commit 3c8f6bb0b0
5 changed files with 645 additions and 467 deletions

View File

@@ -89,7 +89,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { ElTable, FormInstance } from 'element-plus' import type { ElTable } from 'element-plus'
import EditPopup from './edit.vue' import EditPopup from './edit.vue'
import { deptDelete, deptAll } from '@/api/org/department' import { deptDelete, deptAll } from '@/api/org/department'
import feedback from '@/utils/feedback' import feedback from '@/utils/feedback'
@@ -99,7 +99,7 @@ defineOptions({
}) })
const tableRef = shallowRef<InstanceType<typeof ElTable>>() const tableRef = shallowRef<InstanceType<typeof ElTable>>()
const editRef = shallowRef<InstanceType<typeof EditPopup>>() const editRef = shallowRef<InstanceType<typeof EditPopup>>()
const formRef = shallowRef<FormInstance>() // const formRef = shallowRef<FormInstance>()
let isExpand = false let isExpand = false
const loading = ref(false) const loading = ref(false)
const lists = ref<any[]>([]) const lists = ref<any[]>([])
@@ -119,10 +119,10 @@ const getLists = async () => {
loading.value = false loading.value = false
} }
const resetParams = () => { // const resetParams = () => {
formRef.value?.resetFields() // formRef.value?.resetFields()
getLists() // getLists()
} // }
const handleAdd = async (id?: number) => { const handleAdd = async (id?: number) => {
showEdit.value = true showEdit.value = true

View File

@@ -22,6 +22,10 @@ export default ({ mode }) => {
// 依赖预构建,避免开发刷新 // 依赖预构建,避免开发刷新
include: ['@wangeditor/editor-for-vue', 'vuedraggable', 'vue-echarts', 'crypto-js'] include: ['@wangeditor/editor-for-vue', 'vuedraggable', 'vue-echarts', 'crypto-js']
}, },
build: {
// 打包后文件名
sourcemap: true
},
server: { server: {
open: true, open: true,
host: '0.0.0.0', host: '0.0.0.0',
@@ -58,10 +62,10 @@ export default ({ mode }) => {
}), }),
viteCompression({ viteCompression({
algorithm: 'gzip' algorithm: 'gzip'
}),
viteCompression({
algorithm: 'brotliCompress'
}) })
// viteCompression({
// algorithm: 'brotliCompress'
// })
// visualizer({ // visualizer({
// gzipSize: true, // gzipSize: true,
// brotliSize: true, // brotliSize: true,

File diff suppressed because one or more lines are too long