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,
|
rowsPerPage: 10,
|
||||||
});
|
});
|
||||||
|
|
||||||
function onClickApprove(type: string = "") {
|
async function onClickApprove(type: string = "") {
|
||||||
if (store.selected.length !== 0) {
|
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(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
() => {
|
async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
const url =
|
const url =
|
||||||
store.tabMainevaluator === "2" || store.tabMainevaluator === "4"
|
store.tabMainevaluator === "2" || store.tabMainevaluator === "4"
|
||||||
|
|
@ -77,7 +79,7 @@ function onClickApprove(type: string = "") {
|
||||||
: undefined,
|
: undefined,
|
||||||
id: userIds,
|
id: userIds,
|
||||||
};
|
};
|
||||||
http
|
await http
|
||||||
.post(config.API.kpiEvaluation + `/admin/${url}`, body)
|
.post(config.API.kpiEvaluation + `/admin/${url}`, body)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
store.selected = [];
|
store.selected = [];
|
||||||
|
|
|
||||||
|
|
@ -653,7 +653,13 @@ onMounted(() => {
|
||||||
dense
|
dense
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
:options="evaluatorIdOp"
|
:options="
|
||||||
|
evaluatorIdOp.filter(
|
||||||
|
(i) =>
|
||||||
|
i.id !== formRound.commanderId &&
|
||||||
|
i.id !== formRound.commanderHighId
|
||||||
|
)
|
||||||
|
"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
|
|
@ -684,7 +690,13 @@ onMounted(() => {
|
||||||
dense
|
dense
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
:options="commanderIdOp"
|
:options="
|
||||||
|
commanderIdOp.filter(
|
||||||
|
(i) =>
|
||||||
|
i.id !== formRound.evaluatorId &&
|
||||||
|
i.id !== formRound.commanderHighId
|
||||||
|
)
|
||||||
|
"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
use-input
|
use-input
|
||||||
|
|
@ -716,7 +728,13 @@ onMounted(() => {
|
||||||
dense
|
dense
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
:options="commanderHighOp"
|
:options="
|
||||||
|
commanderHighOp.filter(
|
||||||
|
(i) =>
|
||||||
|
i.id !== formRound.evaluatorId &&
|
||||||
|
i.id !== formRound.commanderId
|
||||||
|
)
|
||||||
|
"
|
||||||
emit-value
|
emit-value
|
||||||
map-options
|
map-options
|
||||||
use-input
|
use-input
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue