|
@@ -4,7 +4,14 @@
|
|
|
<!-- 搜索表单 -->
|
|
<!-- 搜索表单 -->
|
|
|
<user-search @search="reload" />
|
|
<user-search @search="reload" />
|
|
|
<!-- 数据表格 -->
|
|
<!-- 数据表格 -->
|
|
|
- <ele-pro-table ref="table" :columns="columns" :datasource="datasource" :selection.sync="selection" row-key="id" :pageSize="this.$store.state.tablePageSize">
|
|
|
|
|
|
|
+ <ele-pro-table ref="table"
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ :datasource="datasource"
|
|
|
|
|
+ :selection.sync="selection" row-key="id"
|
|
|
|
|
+ :page-size="this.$store.state.tablePageSize"
|
|
|
|
|
+ @columns-change="handleColumnChange"
|
|
|
|
|
+ :cache-key="cacheKeyUrl"
|
|
|
|
|
+ >
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<el-button size="small" type="primary" icon="el-icon-plus" class="ele-btn-icon"
|
|
<el-button size="small" type="primary" icon="el-icon-plus" class="ele-btn-icon"
|
|
@@ -70,6 +77,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
import UserSearch from './components/user-search.vue';
|
|
import UserSearch from './components/user-search.vue';
|
|
|
import UserEdit from './components/user-edit.vue';
|
|
import UserEdit from './components/user-edit.vue';
|
|
|
import UserDetail from './components/user-detail.vue'
|
|
import UserDetail from './components/user-detail.vue'
|
|
@@ -77,6 +85,7 @@ import historyModal from './components/historyModal.vue'
|
|
|
import route from '@/api/technology/route';
|
|
import route from '@/api/technology/route';
|
|
|
export default {
|
|
export default {
|
|
|
name: 'technologyRoute',
|
|
name: 'technologyRoute',
|
|
|
|
|
+ mixins:[tabMixins],
|
|
|
components: {
|
|
components: {
|
|
|
UserSearch,
|
|
UserSearch,
|
|
|
UserEdit,
|
|
UserEdit,
|
|
@@ -173,7 +182,8 @@ export default {
|
|
|
{ label: '失效', value: 0 },
|
|
{ label: '失效', value: 0 },
|
|
|
{ label: '生效', value: 1 }
|
|
{ label: '生效', value: 1 }
|
|
|
],
|
|
],
|
|
|
- loading: false
|
|
|
|
|
|
|
+ loading: false,
|
|
|
|
|
+ cacheKeyUrl: 'fb92f8df-technology-route'
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|