| | |
| | | }
|
| | | }
|
| | |
|
| | | const onPageChange = (page, size) => {
|
| | | currentPage = page;
|
| | | pageSize = size;
|
| | | getPage();
|
| | | }
|
| | |
|
| | | function getPage() {
|
| | | state.loading = true;
|
| | |
|
| | |
| | | let result = resp.data;
|
| | | if (result.code == 200) {
|
| | | let data = result.data;
|
| | | tableData.value = data.records;
|
| | | tableData.value = data;
|
| | |
|
| | | state.loading = false;
|
| | | } else if (result.code === 401) {
|
| | |
| | | }
|
| | |
|
| | | const onSearch = () => {
|
| | | currentPage = 1;
|
| | | getPage()
|
| | | }
|
| | |
|
| | |
| | | style="width: 200px;" @search="onSearch" />
|
| | | </div>
|
| | | <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
|
| | | :data-source="tableData" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id" :scroll="{ y: 768 }"
|
| | | :pagination="{ total: tableData.total, onChange: onPageChange }"
|
| | | :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id" :scroll="{ y: 768 }"
|
| | | :columns="state.columns" :loading="state.loading">
|
| | | </a-table>
|
| | | </a-modal>
|
| | |
| | | }
|
| | |
|
| | | const onSearch = () => {
|
| | | currentPage = 1;
|
| | | getPage()
|
| | | }
|
| | |
|
| | |
| | | };
|
| | |
|
| | | const onSearch = () => {
|
| | | // console.log('search');
|
| | | currentPage = 1;
|
| | | getPage()
|
| | | }
|
| | |
| | | };
|
| | |
|
| | | const onSearch = () => {
|
| | | currentPage = 1;
|
| | |
|
| | | // console.log('search');
|
| | | getPage()
|
| | | }
|
| | |
| | | };
|
| | |
|
| | | const onSearch = () => {
|
| | | currentPage = 1;
|
| | |
|
| | | // console.log('search');
|
| | | getPage()
|
| | | }
|
| | |
| | | PageParam<ViewLocDetl, BaseParam> pageParam = new PageParam<>(baseParam, ViewLocDetl.class);
|
| | |
|
| | | QueryWrapper<ViewLocDetl> queryWrapper = pageParam.buildWrapper(true);
|
| | | List<Long> locIds = locService.listBySts(LocStsType.F.val());
|
| | | if (locIds.isEmpty()) {
|
| | | locIds.add(-1L);
|
| | | }
|
| | | queryWrapper.in("loc_id", locIds);
|
| | | // List<Long> locIds = locService.listBySts(LocStsType.F.val());
|
| | | // if (locIds.isEmpty()) {
|
| | | // locIds.add(-1L);
|
| | | // }
|
| | | // queryWrapper.in("loc_id", locIds);
|
| | | PageParam<ViewLocDetl, BaseParam> data = locDetlService.getPage(pageParam, queryWrapper);
|
| | | return R.ok().add(data);
|
| | | }
|