updated approved
This commit is contained in:
parent
113081b5ed
commit
a0334a04b4
2 changed files with 27 additions and 7 deletions
|
|
@ -51,12 +51,14 @@ const pagination = ref({
|
|||
rowsPerPage: 10,
|
||||
});
|
||||
|
||||
function onClickApprove(type: string = "") {
|
||||
async function onClickApprove(type: string = "") {
|
||||
if (store.selected.length !== 0) {
|
||||
const userIds = store.selected.map((user: ResEvaluatorAssessor) => user.id);
|
||||
const userIds = await store.selected.map(
|
||||
(user: ResEvaluatorAssessor) => user.id
|
||||
);
|
||||
dialogConfirm(
|
||||
$q,
|
||||
() => {
|
||||
async () => {
|
||||
showLoader();
|
||||
const url =
|
||||
store.tabMainevaluator === "2" || store.tabMainevaluator === "4"
|
||||
|
|
@ -77,7 +79,7 @@ function onClickApprove(type: string = "") {
|
|||
: undefined,
|
||||
id: userIds,
|
||||
};
|
||||
http
|
||||
await http
|
||||
.post(config.API.kpiEvaluation + `/admin/${url}`, body)
|
||||
.then(async () => {
|
||||
store.selected = [];
|
||||
|
|
|
|||
|
|
@ -653,7 +653,13 @@ onMounted(() => {
|
|||
dense
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
:options="evaluatorIdOp"
|
||||
:options="
|
||||
evaluatorIdOp.filter(
|
||||
(i) =>
|
||||
i.id !== formRound.commanderId &&
|
||||
i.id !== formRound.commanderHighId
|
||||
)
|
||||
"
|
||||
emit-value
|
||||
map-options
|
||||
hide-bottom-space
|
||||
|
|
@ -684,7 +690,13 @@ onMounted(() => {
|
|||
dense
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
:options="commanderIdOp"
|
||||
:options="
|
||||
commanderIdOp.filter(
|
||||
(i) =>
|
||||
i.id !== formRound.evaluatorId &&
|
||||
i.id !== formRound.commanderHighId
|
||||
)
|
||||
"
|
||||
emit-value
|
||||
map-options
|
||||
use-input
|
||||
|
|
@ -716,7 +728,13 @@ onMounted(() => {
|
|||
dense
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
:options="commanderHighOp"
|
||||
:options="
|
||||
commanderHighOp.filter(
|
||||
(i) =>
|
||||
i.id !== formRound.evaluatorId &&
|
||||
i.id !== formRound.commanderId
|
||||
)
|
||||
"
|
||||
emit-value
|
||||
map-options
|
||||
use-input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue