解决构建报错问题

This commit is contained in:
2026-01-29 16:38:09 +08:00
parent c1d9f0467a
commit 679b21ef25
36 changed files with 576 additions and 521 deletions

View File

@@ -14,8 +14,7 @@
icon="FolderAdd"
type="primary"
@click="formDialogRef.openDialog()">
</el-button>
</el-button>
<right-toolbar
v-model:showSearch="showSearch"
class="ml10"
@@ -69,7 +68,7 @@
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Document" /></el-icon>
<span style="margin-left: 4px">{{ col.label }}</span>
</template>
<!-- 假期模式列特殊模板 -->
<!-- 假期模式列特殊模板-->
<template v-if="col.prop === 'isHoliday'" #default="scope">
<StatusTag
:value="scope.row.isHoliday"
@@ -127,10 +126,10 @@
</el-card>
</div>
<!-- 编辑新增 -->
<!-- 编辑新增 -->
<FormDialog ref="formDialogRef" @refresh="getDataList(false)" />
<!-- 详情对话框 -->
<!-- 详情对话框-->
<el-dialog
title="门禁规则详情"
v-model="detailDialogVisible"
@@ -145,11 +144,11 @@
{{ detailData.isHoliday === '1' ? '开启' : '关闭' }}
</el-descriptions-item>
</el-descriptions>
<!-- 这里可以根据需要展示更多详情信息 -->
<!-- 这里可以根据需要展示更多详情信息-->
</div>
<template #footer>
<span class="dialog-footer">
<el-button @click="detailDialogVisible = false"> </el-button>
<el-button @click="detailDialogVisible = false">关闭</el-button>
</span>
</template>
</el-dialog>
@@ -168,7 +167,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
import { List, Document, Grid, CircleCheck, Setting, Menu } from '@element-plus/icons-vue'
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
import '/@/styles/modern-page.scss'
import { defineAsyncComponent as defineStatusTag } from 'vue'
const StatusTag = defineStatusTag(() => import('/@/components/StatusTag/index.vue'))
@@ -277,10 +276,9 @@ const handleViewDetail = async (row: any) => {
// 初始化
onMounted(() => {
getDataList()
nextTick(() => {
if (visibleColumns.value.length === 0) {
loadSavedConfig()
}
})
})
</script>
<style scoped lang="scss">
@import '/@/assets/styles/modern-page.scss';
</style>