|
|
@ -163,19 +163,25 @@ export default { |
|
|
|
const closeMessage = loadingMessage({ message: "人员获取中..." }); |
|
|
|
|
|
|
|
request({ |
|
|
|
url: `/business/employees/list`, |
|
|
|
method: "GET", |
|
|
|
params: { |
|
|
|
organizationId: id |
|
|
|
// url: `/business/employees/list`, |
|
|
|
// method: "GET", |
|
|
|
// params: { |
|
|
|
// organizationId: id |
|
|
|
// } |
|
|
|
url: `/business/shifts/byStation`, |
|
|
|
method: "POST", |
|
|
|
data: { |
|
|
|
station: this.data.station, |
|
|
|
date: this.data.date, |
|
|
|
} |
|
|
|
}) |
|
|
|
.then((result) => { |
|
|
|
if (result.code != 200) return Message.error("人员获取失败"); |
|
|
|
if (!result.rows?.length) return Message.warning("该驻点下暂无人员"); |
|
|
|
if (!result.data?.length) return Message.warning("该驻点下暂无人员"); |
|
|
|
|
|
|
|
Message.success("人员获取成功") |
|
|
|
|
|
|
|
this.peopleList = result.rows; |
|
|
|
this.peopleList = result.data; |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
Message.error("人员获取失败") |
|
|
|