เปลี่ยนเส้น API
This commit is contained in:
parent
c1622582d2
commit
a1bffb7e3b
2 changed files with 7 additions and 5 deletions
|
|
@ -170,6 +170,7 @@ export default {
|
||||||
*/
|
*/
|
||||||
workflow: `${workflow}/`,
|
workflow: `${workflow}/`,
|
||||||
commanderPosexe: (type:string)=>`${workflow}/commander-posexe/${type}`,
|
commanderPosexe: (type:string)=>`${workflow}/commander-posexe/${type}`,
|
||||||
|
commanderOperate: `${workflow}/commander/operate`,
|
||||||
|
|
||||||
keycloakLogSSO: `${org}/keycloak/log/sso`,
|
keycloakLogSSO: `${org}/keycloak/log/sso`,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,11 +61,11 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "posExecutiveNameOrg",
|
name: "posExecutiveName",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ตำแหน่งทางการบริหาร",
|
label: "ตำแหน่งทางการบริหาร",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "posExecutiveNameOrg",
|
field: "posExecutiveName",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
|
|
@ -82,7 +82,7 @@ function onSubmit() {
|
||||||
? `${selected.value[0].prefix}${selected.value[0].firstName} ${selected.value[0].lastName}`
|
? `${selected.value[0].prefix}${selected.value[0].firstName} ${selected.value[0].lastName}`
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
dataStore.commanderPosition = selected.value[0].posExecutiveNameOrg;
|
dataStore.commanderPosition = selected.value[0].posExecutiveName;
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeDialog() {
|
function closeDialog() {
|
||||||
|
|
@ -95,12 +95,13 @@ function closeDialog() {
|
||||||
async function getCommander() {
|
async function getCommander() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.commanderPosexe("operate"), {
|
.put(config.API.commanderOperate, {
|
||||||
isAct: isAct.value,
|
isAct: isAct.value,
|
||||||
keyword: search.value,
|
keyword: search.value.trim(),
|
||||||
page: pagination.value.page,
|
page: pagination.value.page,
|
||||||
pageSize: pagination.value.rowsPerPage,
|
pageSize: pagination.value.rowsPerPage,
|
||||||
keycloakId: storeData.formData.keycloakId,
|
keycloakId: storeData.formData.keycloakId,
|
||||||
|
type:storeData.officerType.toLocaleUpperCase() == 'OFFICER' ? 'officer':'employee'
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
rows.value = res.data.result.data;
|
rows.value = res.data.result.data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue