main
15036302109 9 months ago
parent 89ef223214
commit fbaed27c16

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

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

@ -145,7 +145,7 @@ export default {
methods:{ methods:{
async getList() { async getList() {
this.loading = true; 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.total = res.total;
this.workerList = res.rows; this.workerList = res.rows;
this.loading = false; this.loading = false;

Loading…
Cancel
Save