แก้ API
This commit is contained in:
parent
c621268010
commit
eef561f91f
3 changed files with 12 additions and 4 deletions
|
|
@ -38,6 +38,9 @@ export default {
|
|||
dataUserDuty: `${profileOrg}/duty/user`,
|
||||
dataUserDutyByType: (type: string) => `${org}/profile${type}/duty/user`,
|
||||
|
||||
dataUserActpositionByType: (type: string) => `${org}/profile${type}/actposition/user`,
|
||||
dataUserAssistanceByType: (type: string) => `${org}/profile${type}/assistance/user`,
|
||||
|
||||
dataUserSalary: `${profileOrg}/salary/user`,
|
||||
dataUserSalaryByType: (type: string) => `${org}/profile${type}/salary/user`,
|
||||
dataUserAssessments: `${profileOrg}/assessments/user`,
|
||||
|
|
@ -87,6 +90,11 @@ export default {
|
|||
dataUserDutyHistoryByType: (emType: string, id: string) =>
|
||||
`${org}/profile${emType}/duty/history/${id}`,
|
||||
|
||||
dataUserActpositionHistoryByType: (emType: string, id: string) =>
|
||||
`${org}/profile${emType}/actposition/history/${id}`,
|
||||
dataUserAssistanceHistoryByType: (emType: string, id: string) =>
|
||||
`${org}/profile${emType}/assistance/history/${id}`,
|
||||
|
||||
dataUserSalaryHistory: (id: string) => `${profileOrg}/salary/history/${id}`,
|
||||
dataUserSalaryHistoryByType: (emType: string, id: string) =>
|
||||
`${org}/profile${emType}/salary/history/${id}`,
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ function onHistory(id: string) {
|
|||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserDutyByType(link.value))
|
||||
.get(config.API.dataUserActpositionByType(link.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rows.value = data;
|
||||
|
|
@ -197,7 +197,7 @@ function getData() {
|
|||
function getHistory() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserDutyHistoryByType(link.value, idByRow.value))
|
||||
.get(config.API.dataUserActpositionHistoryByType(link.value, idByRow.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rowsHistory.value = data;
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ function onHistory(id: string) {
|
|||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserDutyByType(link.value))
|
||||
.get(config.API.dataUserAssistanceByType(link.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rows.value = data;
|
||||
|
|
@ -190,7 +190,7 @@ function getData() {
|
|||
function getHistory() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserDutyHistoryByType(link.value, idByRow.value))
|
||||
.get(config.API.dataUserAssistanceHistoryByType(link.value, idByRow.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rowsHistory.value = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue