|
@ -17,7 +17,7 @@ |
|
|
<!-- todo drag --> |
|
|
<!-- todo drag --> |
|
|
|
|
|
|
|
|
<div class="ns-part-tree" v-if="!isEmpty(treeConfig)"> |
|
|
<div class="ns-part-tree" v-if="!isEmpty(treeConfig)"> |
|
|
<ns-tree-api v-bind="getTreeBindValue" @select="treeSelect" /> |
|
|
<ns-tree-api v-bind="getTreeBindValue" @reload="reload" @select="treeSelect" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="ns-part-table"> |
|
|
<div class="ns-part-table"> |
|
|
<a-spin :spinning="tableState.loading"> |
|
|
<a-spin :spinning="tableState.loading"> |
|
@ -204,7 +204,7 @@ |
|
|
import { useTableSession } from '/nerv-lib/component/table/use-table-session'; |
|
|
import { useTableSession } from '/nerv-lib/component/table/use-table-session'; |
|
|
import { useTableColumn } from '/nerv-lib/component/table/use-table-column'; |
|
|
import { useTableColumn } from '/nerv-lib/component/table/use-table-column'; |
|
|
import { useNavigate } from '/nerv-lib/use/use-navigate'; |
|
|
import { useNavigate } from '/nerv-lib/use/use-navigate'; |
|
|
import { object } from 'vue-types'; |
|
|
import { object } from 'vue-types'; |
|
|
export default defineComponent({ |
|
|
export default defineComponent({ |
|
|
name: 'NsTable', |
|
|
name: 'NsTable', |
|
|
components: { |
|
|
components: { |
|
@ -357,7 +357,6 @@ import { object } from 'vue-types'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const tableChangeEvent = (pagination: Props, filters: [], sorter: any) => { |
|
|
const tableChangeEvent = (pagination: Props, filters: [], sorter: any) => { |
|
|
|
|
|
|
|
|
if (sorter?.field) { |
|
|
if (sorter?.field) { |
|
|
if (sorter.order) { |
|
|
if (sorter.order) { |
|
|
orderRef.value = { |
|
|
orderRef.value = { |
|
@ -482,12 +481,11 @@ import { object } from 'vue-types'; |
|
|
}; |
|
|
}; |
|
|
} else { |
|
|
} else { |
|
|
//判断是否是系统菜单页面过来,是的话修改分页总数dyfadd |
|
|
//判断是否是系统菜单页面过来,是的话修改分页总数dyfadd |
|
|
if(props.tableTitle=='系统菜单'){ |
|
|
if (props.tableTitle == '系统菜单') { |
|
|
pageParams = {}; |
|
|
pageParams = {}; |
|
|
// [props.paramsPageField]: defaultPageRef.value, // 后端0 开始 |
|
|
// [props.paramsPageField]: defaultPageRef.value, // 后端0 开始 |
|
|
// [props.paramsPageSizeField]:999, |
|
|
// [props.paramsPageSizeField]:999, |
|
|
|
|
|
} else { |
|
|
}else{ |
|
|
|
|
|
pageParams = { |
|
|
pageParams = { |
|
|
[props.paramsPageField]: defaultPageRef.value, // 后端0 开始 |
|
|
[props.paramsPageField]: defaultPageRef.value, // 后端0 开始 |
|
|
[props.paramsPageSizeField]: |
|
|
[props.paramsPageSizeField]: |
|
|