no message
This commit is contained in:
parent
a487e8445d
commit
56f4d36bf8
3 changed files with 33 additions and 21 deletions
|
|
@ -19,6 +19,8 @@ const { showLoader, hideLoader, messageError, dialogConfirm, success } =
|
|||
useCounterMixin();
|
||||
|
||||
const evaluatorId = ref<string>(route.params.id.toString());
|
||||
const isReadonly = <boolean>(route.name === "KPIEditEvaluator" ? true : false);
|
||||
|
||||
const props = defineProps({
|
||||
type: {
|
||||
type: String,
|
||||
|
|
@ -103,7 +105,7 @@ function createValue(val: string, done: Function) {
|
|||
function filterFn(val: string, update: Function) {
|
||||
update(() => {
|
||||
optionTopic.value = optionTopicMain.value.filter(
|
||||
(v: any) => v.indexOf(val) > -1
|
||||
(v: string) => v.indexOf(val) > -1
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -144,7 +146,15 @@ onMounted(() => {
|
|||
<template>
|
||||
<div class="q-pa-md">
|
||||
<q-toolbar style="padding: 0px">
|
||||
<q-btn flat round dense icon="add" color="blue-4" @click="openDialog">
|
||||
<q-btn
|
||||
v-if="isReadonly"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
icon="add"
|
||||
color="blue-4"
|
||||
@click="openDialog"
|
||||
>
|
||||
<q-tooltip>เสนอความคิดเห็น</q-tooltip>
|
||||
</q-btn>
|
||||
<q-space />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue