fix: 补充默认排序高亮选中
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
:height="height"
|
:height="height"
|
||||||
border
|
border
|
||||||
|
:default-sort="orderBy"
|
||||||
@header-dragend="dragend"
|
@header-dragend="dragend"
|
||||||
@sort-change="tableDataSort"
|
@sort-change="tableDataSort"
|
||||||
@selection-change="selectionChange"
|
@selection-change="selectionChange"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
:height="height"
|
:height="height"
|
||||||
border
|
border
|
||||||
|
:default-sort="orderBy"
|
||||||
@header-dragend="dragend"
|
@header-dragend="dragend"
|
||||||
@sort-change="tableDataSort"
|
@sort-change="tableDataSort"
|
||||||
@selection-change="selectionChange"
|
@selection-change="selectionChange"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
:data="tableData"
|
:data="tableData"
|
||||||
:height="height"
|
:height="height"
|
||||||
border
|
border
|
||||||
|
:default-sort="orderBy"
|
||||||
@header-dragend="dragend"
|
@header-dragend="dragend"
|
||||||
@sort-change="tableDataSort"
|
@sort-change="tableDataSort"
|
||||||
@selection-change="selectionChange"
|
@selection-change="selectionChange"
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
<template v-slot:default="slotProps">
|
<template v-slot:default="slotProps">
|
||||||
<credentials-table
|
<credentials-table
|
||||||
ref="dataTable"
|
ref="dataTable"
|
||||||
|
:orderByFa="orderBy"
|
||||||
v-loading="tools.loading"
|
v-loading="tools.loading"
|
||||||
:loading="tools.loading"
|
:loading="tools.loading"
|
||||||
:api="url"
|
:api="url"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
<template v-slot:default="slotProps">
|
<template v-slot:default="slotProps">
|
||||||
<globalization-table
|
<globalization-table
|
||||||
ref="dataTable"
|
ref="dataTable"
|
||||||
|
:orderByFa="orderBy"
|
||||||
v-loading="tools.loading"
|
v-loading="tools.loading"
|
||||||
:loading="tools.loading"
|
:loading="tools.loading"
|
||||||
:api="url"
|
:api="url"
|
||||||
@@ -27,7 +28,6 @@
|
|||||||
:table-data="tableData"
|
:table-data="tableData"
|
||||||
@del="del"
|
@del="del"
|
||||||
@edit="edit"
|
@edit="edit"
|
||||||
@copy="copy"
|
|
||||||
@orderBy="tableDataSort"
|
@orderBy="tableDataSort"
|
||||||
@reload="getTableData"
|
@reload="getTableData"
|
||||||
@selectionChange="selectionChange"
|
@selectionChange="selectionChange"
|
||||||
@@ -62,7 +62,7 @@ export default {
|
|||||||
url: 'sys/i18n',
|
url: 'sys/i18n',
|
||||||
tableId: 'i18nTable', // 需要分页的table的id,用于记录每页数量
|
tableId: 'i18nTable', // 需要分页的table的id,用于记录每页数量
|
||||||
blankObject: {
|
blankObject: {
|
||||||
ids: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
code: '',
|
code: '',
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
@@ -129,23 +129,6 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
this.getUserData()
|
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>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
<template v-slot:default="slotProps">
|
<template v-slot:default="slotProps">
|
||||||
<mib-table
|
<mib-table
|
||||||
ref="dataTable"
|
ref="dataTable"
|
||||||
|
:orderByFa="orderBy"
|
||||||
v-loading="tools.loading"
|
v-loading="tools.loading"
|
||||||
:loading="tools.loading"
|
:loading="tools.loading"
|
||||||
:api="url"
|
:api="url"
|
||||||
|
|||||||
Reference in New Issue
Block a user