2023年3月30日 更改默认设置

This commit is contained in:
bai 2023-03-30 21:04:27 +08:00
parent 6912abd949
commit 270da5b374
4 changed files with 28 additions and 26 deletions

View File

@ -2,7 +2,7 @@
<div class="table-settings">
<RedoSetting v-if="getSetting.redo" :isMobile="isMobile" :getPopupContainer="getTableContainer" />
<SizeSetting v-if="getSetting.size" :isMobile="isMobile" :getPopupContainer="getTableContainer" />
<!-- <ColumnSetting v-if="getSetting.setting" :isMobile="isMobile" @columns-change="handleColumnChange" :getPopupContainer="getTableContainer" /> -->
<ColumnSetting v-if="getSetting.setting" :isMobile="isMobile" @columns-change="handleColumnChange" :getPopupContainer="getTableContainer" />
<FullScreenSetting v-if="getSetting.fullScreen" :isMobile="isMobile" :getPopupContainer="getTableContainer" />
</div>
</template>
@ -10,7 +10,7 @@
import type { PropType } from 'vue';
import type { TableSetting, ColumnChangeParam } from '../../types/table';
import { defineComponent, computed, unref } from 'vue';
// import ColumnSetting from './ColumnSetting.vue';
import ColumnSetting from './ColumnSetting.vue';
import SizeSetting from './SizeSetting.vue';
import RedoSetting from './RedoSetting.vue';
import FullScreenSetting from './FullScreenSetting.vue';
@ -20,7 +20,7 @@
export default defineComponent({
name: 'TableSetting',
components: {
// ColumnSetting,
ColumnSetting,
SizeSetting,
RedoSetting,
FullScreenSetting,

View File

@ -247,7 +247,7 @@ export function useListTable(tableProps: TableProps): [
// 是否显示序号列
showIndexColumn: false,
// 显示表格设置
showTableSetting: true,
showTableSetting: false,
// 表格全屏设置
tableSetting: {
fullScreen: false,

View File

@ -14,7 +14,6 @@
<a-input placeholder="请输入开课单位" v-model:value="queryParam.kkdw"></a-input>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :lg="8">
<a-form-item label="课程性质">
<j-dict-select-tag placeholder="请选择课程性质" v-model:value="queryParam.kcxz" dictCode="kcxz"/>
@ -30,16 +29,17 @@
<j-dict-select-tag placeholder="请选择周几" v-model:value="queryParam.week" dictCode="week"/>
</a-form-item>
</a-col>
</template>
<!-- <template v-if="toggleSearchStatus">
</template> -->
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
<!-- <a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
</a>
</a> -->
</a-col>
</span>
</a-col>
@ -51,8 +51,8 @@
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> -->
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
<a-menu>
@ -105,6 +105,8 @@
title: '课堂管理',
api: list,
columns,
//
// showTableSetting: false,
canResize:false,
useSearchForm: false,
// customRow: (record, index: number) => {