|
@@ -47,11 +47,12 @@
|
|
<el-button :disabled="loading" :loading="loading" type="primary" @click="onSearch">查询</el-button>
|
|
<el-button :disabled="loading" :loading="loading" type="primary" @click="onSearch">查询</el-button>
|
|
</template>
|
|
</template>
|
|
</base-form>
|
|
</base-form>
|
|
- <div>
|
|
|
|
|
|
+ <div class="flex items-center justify-between detail-info-table-header">
|
|
<el-button custom-1 size="small" class="detail-info-label">
|
|
<el-button custom-1 size="small" class="detail-info-label">
|
|
<span class="">仲裁卷: 共</span>
|
|
<span class="">仲裁卷: 共</span>
|
|
- <span class="m-l-extra-small detail-info-label-num">{{ tableData.length }}</span>
|
|
|
|
|
|
+ <span class="m-l-extra-small detail-info-label-num">{{ pagination.total }}</span>
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <btn-pagination v-model="currentPage" :pagination="pagination"></btn-pagination>
|
|
</div>
|
|
</div>
|
|
<div class="flex-1 scroll-y-auto m-t-mini">
|
|
<div class="flex-1 scroll-y-auto m-t-mini">
|
|
<base-table
|
|
<base-table
|
|
@@ -101,13 +102,14 @@ import BaseTable from '@/components/element/BaseTable.vue'
|
|
import MarkHistoryList from '@/components/shared/MarkHistoryList.vue'
|
|
import MarkHistoryList from '@/components/shared/MarkHistoryList.vue'
|
|
import RightButton from '@/components/shared/RightButton.vue'
|
|
import RightButton from '@/components/shared/RightButton.vue'
|
|
import ImagePreview from '@/components/shared/ImagePreview.vue'
|
|
import ImagePreview from '@/components/shared/ImagePreview.vue'
|
|
-
|
|
|
|
|
|
+import BtnPagination from '@/components/common/BtnPagination.vue'
|
|
import type { SetImgBgOption } from '@/hooks/useSetImgBg'
|
|
import type { SetImgBgOption } from '@/hooks/useSetImgBg'
|
|
import type { ExtractApiParams, ExtractMultipleApiResponse } from '@/api/api'
|
|
import type { ExtractApiParams, ExtractMultipleApiResponse } from '@/api/api'
|
|
import type { MarkHeaderInstance, EpFormItem, EpTableColumn } from 'global-type'
|
|
import type { MarkHeaderInstance, EpFormItem, EpTableColumn } from 'global-type'
|
|
import { Splitpanes, Pane } from 'splitpanes'
|
|
import { Splitpanes, Pane } from 'splitpanes'
|
|
import { setPaneSize } from '@/utils/common'
|
|
import { setPaneSize } from '@/utils/common'
|
|
import useMainStore from '@/store/main'
|
|
import useMainStore from '@/store/main'
|
|
|
|
+import useTable from '@/hooks/useTable'
|
|
const mainStore = useMainStore()
|
|
const mainStore = useMainStore()
|
|
const paneSize = computed(() => {
|
|
const paneSize = computed(() => {
|
|
return mainStore.paneSizeConfig[location.pathname] || 60
|
|
return mainStore.paneSizeConfig[location.pathname] || 60
|
|
@@ -169,11 +171,11 @@ const { subjectList, mainQuestionList, dataModel, changeModelValue, onOptionInit
|
|
'question',
|
|
'question',
|
|
])
|
|
])
|
|
|
|
|
|
-const formModel = reactive<ExtractApiParams<'getArbitrationList'>>({
|
|
|
|
|
|
+const formModel = reactive<any>({
|
|
mainNumber: dataModel.question,
|
|
mainNumber: dataModel.question,
|
|
status: 'INITIAL',
|
|
status: 'INITIAL',
|
|
- pageNumber: 1,
|
|
|
|
- pageSize: 9999999,
|
|
|
|
|
|
+ // pageNumber: 1,
|
|
|
|
+ // pageSize: 9999999,
|
|
subjectCode: dataModel.subject,
|
|
subjectCode: dataModel.subject,
|
|
})
|
|
})
|
|
|
|
|
|
@@ -241,7 +243,10 @@ const columns: EpTableColumn[] = [
|
|
{ label: '大组长客主比', prop: 'chiefRatio', minWidth: 125, sortable: true },
|
|
{ label: '大组长客主比', prop: 'chiefRatio', minWidth: 125, sortable: true },
|
|
]
|
|
]
|
|
|
|
|
|
-const { fetch: getArbitrationList, result: arbitrationList, loading } = useFetch('getArbitrationList')
|
|
|
|
|
|
+// const { fetch: getArbitrationList, result: arbitrationList, loading } = useFetch('getArbitrationList')
|
|
|
|
+const { pagination, currentPage, data, fetchTable, loading } = useTable('getArbitrationList', formModel, {
|
|
|
|
+ pageSize: 100,
|
|
|
|
+})
|
|
|
|
|
|
const {
|
|
const {
|
|
tableRef,
|
|
tableRef,
|
|
@@ -252,7 +257,7 @@ const {
|
|
visibleHistory,
|
|
visibleHistory,
|
|
onDbClick,
|
|
onDbClick,
|
|
onCurrentChange,
|
|
onCurrentChange,
|
|
-} = useTableCheck(arbitrationList)
|
|
|
|
|
|
+} = useTableCheck(data)
|
|
|
|
|
|
const { fetch: viewArbitrationPaper } = useFetch('viewArbitrationPaper')
|
|
const { fetch: viewArbitrationPaper } = useFetch('viewArbitrationPaper')
|
|
|
|
|
|
@@ -263,7 +268,8 @@ watch(currentArbitration, () => {
|
|
})
|
|
})
|
|
|
|
|
|
const onSearch = async () => {
|
|
const onSearch = async () => {
|
|
- getArbitrationList(formModel)
|
|
|
|
|
|
+ // getArbitrationList(formModel)
|
|
|
|
+ fetchTable()
|
|
}
|
|
}
|
|
|
|
|
|
/** 仲裁卷打分 */
|
|
/** 仲裁卷打分 */
|