|
@@ -6,7 +6,6 @@
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
:datasource="datasource"
|
|
:datasource="datasource"
|
|
|
:need-page="true"
|
|
:need-page="true"
|
|
|
- :toolkit="[]"
|
|
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
height="calc(100vh - 350px)"
|
|
height="calc(100vh - 350px)"
|
|
|
full-height="calc(100vh - 116px)"
|
|
full-height="calc(100vh - 116px)"
|
|
@@ -14,6 +13,8 @@
|
|
|
cache-key="systemDictDataTable"
|
|
cache-key="systemDictDataTable"
|
|
|
:pageSize="this.$store.state.tablePageSize"
|
|
:pageSize="this.$store.state.tablePageSize"
|
|
|
@filter-change="selectType"
|
|
@filter-change="selectType"
|
|
|
|
|
+ @columns-change="handleColumnChange"
|
|
|
|
|
+ :cache-key="cacheKeyUrl"
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<!-- <template v-slot:toolbar>
|
|
<!-- <template v-slot:toolbar>
|
|
@@ -81,11 +82,15 @@
|
|
|
} from '@/api/system/dictionary-data';
|
|
} from '@/api/system/dictionary-data';
|
|
|
import { listDictionaries, removeDictionary } from '@/api/system/dictionary';
|
|
import { listDictionaries, removeDictionary } from '@/api/system/dictionary';
|
|
|
import DictEdit from './dict-edit.vue';
|
|
import DictEdit from './dict-edit.vue';
|
|
|
|
|
+ import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: { DictDataSearch, DictDataEdit, DictEdit },
|
|
components: { DictDataSearch, DictDataEdit, DictEdit },
|
|
|
|
|
+ mixins: [tabMixins],
|
|
|
|
|
+
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ cacheKeyUrl: 'main-ad4181af-syste-dictionary',
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
@@ -120,15 +125,16 @@
|
|
|
// showOverflowTooltip: true,
|
|
// showOverflowTooltip: true,
|
|
|
// minWidth: 110
|
|
// minWidth: 110
|
|
|
// },
|
|
// },
|
|
|
- {//修改此prop名称时,请同步修改columnKey属性和下方selectType方法
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ //修改此prop名称时,请同步修改columnKey属性和下方selectType方法
|
|
|
prop: 'appType',
|
|
prop: 'appType',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
label: '应用类型',
|
|
label: '应用类型',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
slot: 'appType',
|
|
slot: 'appType',
|
|
|
- filters:[
|
|
|
|
|
- { value: 1, text:'业务字段' },
|
|
|
|
|
- { value: 2, text:'数据字典' },
|
|
|
|
|
|
|
+ filters: [
|
|
|
|
|
+ { value: 1, text: '业务字段' },
|
|
|
|
|
+ { value: 2, text: '数据字典' }
|
|
|
],
|
|
],
|
|
|
filterMultiple: false,
|
|
filterMultiple: false,
|
|
|
columnKey: 'appType'
|
|
columnKey: 'appType'
|
|
@@ -175,11 +181,11 @@
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
selectType(value) {
|
|
selectType(value) {
|
|
|
- let where = {}
|
|
|
|
|
|
|
+ let where = {};
|
|
|
if (value.appType.length > 0) {
|
|
if (value.appType.length > 0) {
|
|
|
- where['appType'] = value.appType[0]
|
|
|
|
|
|
|
+ where['appType'] = value.appType[0];
|
|
|
}
|
|
}
|
|
|
- this.reload(where)
|
|
|
|
|
|
|
+ this.reload(where);
|
|
|
},
|
|
},
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where, order }) {
|
|
datasource({ page, limit, where, order }) {
|