UI *รอ API สำหรับส่งคนไปออกคำสั่ง PART 2
This commit is contained in:
parent
df7c3f2961
commit
4d2d8cf975
8 changed files with 135 additions and 98 deletions
|
|
@ -118,7 +118,8 @@ async function getDataComplaint() {
|
|||
await http
|
||||
.get(
|
||||
config.API.complaintbyGetId(
|
||||
data.idComplaint ? data.idComplaint : store.complaintId,mainStore.pathComplaints(route.name as string)
|
||||
data.idComplaint ? data.idComplaint : store.complaintId,
|
||||
mainStore.pathComplaints(route.name as string)
|
||||
)
|
||||
)
|
||||
.then((res) => {
|
||||
|
|
@ -155,7 +156,12 @@ async function getDataComplaint() {
|
|||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.investigateByGetId(id.value,mainStore.pathInves(route.name as string)))
|
||||
.get(
|
||||
config.API.investigateByGetId(
|
||||
id.value,
|
||||
mainStore.pathInves(route.name as string)
|
||||
)
|
||||
)
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
data.id = dataList.id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue