解决构建报错问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user