2023年3月30日 更改默认设置
This commit is contained in:
parent
6912abd949
commit
270da5b374
|
@ -2,7 +2,7 @@
|
||||||
<div class="table-settings">
|
<div class="table-settings">
|
||||||
<RedoSetting v-if="getSetting.redo" :isMobile="isMobile" :getPopupContainer="getTableContainer" />
|
<RedoSetting v-if="getSetting.redo" :isMobile="isMobile" :getPopupContainer="getTableContainer" />
|
||||||
<SizeSetting v-if="getSetting.size" :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" />
|
<FullScreenSetting v-if="getSetting.fullScreen" :isMobile="isMobile" :getPopupContainer="getTableContainer" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
import type { PropType } from 'vue';
|
import type { PropType } from 'vue';
|
||||||
import type { TableSetting, ColumnChangeParam } from '../../types/table';
|
import type { TableSetting, ColumnChangeParam } from '../../types/table';
|
||||||
import { defineComponent, computed, unref } from 'vue';
|
import { defineComponent, computed, unref } from 'vue';
|
||||||
// import ColumnSetting from './ColumnSetting.vue';
|
import ColumnSetting from './ColumnSetting.vue';
|
||||||
import SizeSetting from './SizeSetting.vue';
|
import SizeSetting from './SizeSetting.vue';
|
||||||
import RedoSetting from './RedoSetting.vue';
|
import RedoSetting from './RedoSetting.vue';
|
||||||
import FullScreenSetting from './FullScreenSetting.vue';
|
import FullScreenSetting from './FullScreenSetting.vue';
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'TableSetting',
|
name: 'TableSetting',
|
||||||
components: {
|
components: {
|
||||||
// ColumnSetting,
|
ColumnSetting,
|
||||||
SizeSetting,
|
SizeSetting,
|
||||||
RedoSetting,
|
RedoSetting,
|
||||||
FullScreenSetting,
|
FullScreenSetting,
|
||||||
|
|
|
@ -247,7 +247,7 @@ export function useListTable(tableProps: TableProps): [
|
||||||
// 是否显示序号列
|
// 是否显示序号列
|
||||||
showIndexColumn: false,
|
showIndexColumn: false,
|
||||||
// 显示表格设置
|
// 显示表格设置
|
||||||
showTableSetting: true,
|
showTableSetting: false,
|
||||||
// 表格全屏设置
|
// 表格全屏设置
|
||||||
tableSetting: {
|
tableSetting: {
|
||||||
fullScreen: false,
|
fullScreen: false,
|
||||||
|
|
|
@ -14,32 +14,32 @@
|
||||||
<a-input placeholder="请输入开课单位" v-model:value="queryParam.kkdw"></a-input>
|
<a-input placeholder="请输入开课单位" v-model:value="queryParam.kkdw"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<template v-if="toggleSearchStatus">
|
<a-col :lg="8">
|
||||||
<a-col :lg="8">
|
<a-form-item label="课程性质">
|
||||||
<a-form-item label="课程性质">
|
<j-dict-select-tag placeholder="请选择课程性质" v-model:value="queryParam.kcxz" dictCode="kcxz"/>
|
||||||
<j-dict-select-tag placeholder="请选择课程性质" v-model:value="queryParam.kcxz" dictCode="kcxz"/>
|
</a-form-item>
|
||||||
</a-form-item>
|
</a-col>
|
||||||
</a-col>
|
<a-col :lg="8">
|
||||||
<a-col :lg="8">
|
<a-form-item label="节次">
|
||||||
<a-form-item label="节次">
|
<j-dict-select-tag placeholder="请选择节次" v-model:value="queryParam.hh" dictCode="skjc"/>
|
||||||
<j-dict-select-tag placeholder="请选择节次" v-model:value="queryParam.hh" dictCode="skjc"/>
|
</a-form-item>
|
||||||
</a-form-item>
|
</a-col>
|
||||||
</a-col>
|
<a-col :lg="8">
|
||||||
<a-col :lg="8">
|
<a-form-item label="周几">
|
||||||
<a-form-item label="周几">
|
<j-dict-select-tag placeholder="请选择周几" v-model:value="queryParam.week" dictCode="week"/>
|
||||||
<j-dict-select-tag placeholder="请选择周几" v-model:value="queryParam.week" dictCode="week"/>
|
</a-form-item>
|
||||||
</a-form-item>
|
</a-col>
|
||||||
</a-col>
|
<!-- <template v-if="toggleSearchStatus">
|
||||||
</template>
|
</template> -->
|
||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||||
<a-col :lg="6">
|
<a-col :lg="6">
|
||||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
<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-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 ? '收起' : '展开' }}
|
{{ toggleSearchStatus ? '收起' : '展开' }}
|
||||||
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
||||||
</a>
|
</a> -->
|
||||||
</a-col>
|
</a-col>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
@ -51,8 +51,8 @@
|
||||||
<!--插槽:table标题-->
|
<!--插槽:table标题-->
|
||||||
<template #tableTitle>
|
<template #tableTitle>
|
||||||
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
<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>
|
<!-- <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>
|
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button> -->
|
||||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu>
|
<a-menu>
|
||||||
|
@ -105,6 +105,8 @@
|
||||||
title: '课堂管理',
|
title: '课堂管理',
|
||||||
api: list,
|
api: list,
|
||||||
columns,
|
columns,
|
||||||
|
//
|
||||||
|
// showTableSetting: false,
|
||||||
canResize:false,
|
canResize:false,
|
||||||
useSearchForm: false,
|
useSearchForm: false,
|
||||||
// customRow: (record, index: number) => {
|
// customRow: (record, index: number) => {
|
||||||
|
|
Loading…
Reference in New Issue