fix: 补充默认排序高亮选中

This commit is contained in:
@changcode
2022-03-18 17:11:49 +08:00
parent 4f08857354
commit 01e1c5dcc7
6 changed files with 7 additions and 19 deletions

View File

@@ -5,6 +5,7 @@
:data="tableData"
:height="height"
border
:default-sort="orderBy"
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"

View File

@@ -5,6 +5,7 @@
:data="tableData"
:height="height"
border
:default-sort="orderBy"
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"

View File

@@ -5,6 +5,7 @@
:data="tableData"
:height="height"
border
:default-sort="orderBy"
@header-dragend="dragend"
@sort-change="tableDataSort"
@selection-change="selectionChange"

View File

@@ -18,6 +18,7 @@
<template v-slot:default="slotProps">
<credentials-table
ref="dataTable"
:orderByFa="orderBy"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"

View File

@@ -19,6 +19,7 @@
<template v-slot:default="slotProps">
<globalization-table
ref="dataTable"
:orderByFa="orderBy"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"
@@ -27,7 +28,6 @@
:table-data="tableData"
@del="del"
@edit="edit"
@copy="copy"
@orderBy="tableDataSort"
@reload="getTableData"
@selectionChange="selectionChange"
@@ -62,7 +62,7 @@ export default {
url: 'sys/i18n',
tableId: 'i18nTable', // 需要分页的table的id用于记录每页数量
blankObject: {
ids: '',
id: '',
name: '',
code: '',
lang: 'en',
@@ -129,23 +129,6 @@ export default {
mounted () {
this.getUserData()
}
// watch: {
// $route: {
// immediate: true,
// handler () {
// // 是否弹出侧滑
// const add = this.$route.query.add
// if (add) {
// if (add === 'dc') {
// this.add()
// }
// if (add === 'cabinet') {
// this.addCabinet()
// }
// }
// }
// }
// }
}
</script>
<style scoped>

View File

@@ -18,6 +18,7 @@
<template v-slot:default="slotProps">
<mib-table
ref="dataTable"
:orderByFa="orderBy"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"