|
|
@ -199,6 +199,7 @@
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
import { closePage } from '/@/hooks/web/common'
|
|
|
|
import { closePage } from '/@/hooks/web/common'
|
|
|
|
|
|
|
|
import { setObjToUrlParams } from '/@/utils'
|
|
|
|
export default defineComponent({
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'ActionBar',
|
|
|
|
name: 'ActionBar',
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
@ -335,21 +336,22 @@
|
|
|
|
extraIndex = index - 1
|
|
|
|
extraIndex = index - 1
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 下一票
|
|
|
|
// 下一票
|
|
|
|
if (index == 19) {
|
|
|
|
if (index == ids.length - 1) {
|
|
|
|
return createMessage.warning('该票为当前页码最后一票!')
|
|
|
|
return createMessage.warning('该票为当前页码最后一票!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
id = ids[index + 1]
|
|
|
|
id = ids[index + 1]
|
|
|
|
extraIndex = index + 1
|
|
|
|
extraIndex = index + 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const extraQuery = props?.getExtraQuery(extraIndex) || {}
|
|
|
|
const extraQuery = props?.getExtraQuery ? props?.getExtraQuery(extraIndex) : {}
|
|
|
|
|
|
|
|
const goParams = {
|
|
|
|
|
|
|
|
id,
|
|
|
|
|
|
|
|
...extraQuery,
|
|
|
|
|
|
|
|
}
|
|
|
|
go({
|
|
|
|
go({
|
|
|
|
path: route.path,
|
|
|
|
path: route.path,
|
|
|
|
query: {
|
|
|
|
query: goParams,
|
|
|
|
id,
|
|
|
|
|
|
|
|
...extraQuery,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
closePage(route.path + '?id=' + id)
|
|
|
|
closePage(setObjToUrlParams(route.path, goParams))
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
createMessage.warning('列表页面数据丢失,请回退列表页面后重试!')
|
|
|
|
createMessage.warning('列表页面数据丢失,请回退列表页面后重试!')
|
|
|
|
}
|
|
|
|
}
|
|
|
|