main
15036302109 9 months ago
parent 89ef223214
commit fbaed27c16

@ -87,10 +87,10 @@ public class EhsRescueTeamWorkerController extends BaseController {
/**
* id()
*/
@GetMapping("/listWorker/{rescueTeamId}")
public TableDataInfo listWorker(@PathVariable("rescueTeamId") Long rescueTeamId) {
@GetMapping("/listWorker")
public TableDataInfo listWorker(EhsRescueTeamWorker ehsRescueTeamWorker) {
startPage();
List<EhsRescueTeamWorker> list = ehsRescueTeamWorkerService.listWorker(rescueTeamId);
List<EhsRescueTeamWorker> list = ehsRescueTeamWorkerService.selectEhsRescueTeamWorkerList(ehsRescueTeamWorker);
return getDataTable(list);
}

@ -10,9 +10,10 @@ export const getXq = (id) => {
// 获取人员信息
export const getWorkerInfo = (rescueTeamId) => {
export const getWorkerInfo = (query) => {
return request({
url: '/ehs/ehsRescueTeamWorker/listWorker/' + rescueTeamId,
url: '/ehs/ehsRescueTeamWorker/listWorker',
method: 'get',
params: query
})
}

@ -145,7 +145,7 @@ export default {
methods:{
async getList() {
this.loading = true;
await getWorkerInfo(this.readParams.rescueTeamId).then(res => {
await getWorkerInfo({"pageNum" : this.pageNum, "pageSize" : this.pageSize, "rescueTeamId" : this.readParams.rescueTeamId}).then(res => {
this.total = res.total;
this.workerList = res.rows;
this.loading = false;

Loading…
Cancel
Save