fix bug kpi

This commit is contained in:
Warunee Tamkoo 2024-05-15 18:23:55 +07:00
parent 63611d0811
commit 1fa38897cf
7 changed files with 82 additions and 69 deletions

View file

@ -108,7 +108,7 @@ function onSubmitAdd() {
config.API.kpiCommentP(
"problem",
type.value + sendType.value,
"user",
store.rolePerson.toLowerCase(),
sendId.value ? sendId.value : idList.value
),
{
@ -162,7 +162,14 @@ function closeAdd() {
function getList() {
showLoader();
http
.get(config.API.kpiCommentP("problem", type.value, "user", idList.value))
.get(
config.API.kpiCommentP(
"problem",
type.value,
store.rolePerson.toLowerCase(),
idList.value
)
)
.then((res) => {
const data = res.data.result;
listTarget.value = data;
@ -190,7 +197,12 @@ function onSubmitComment(role: string) {
showLoader();
http
.put(
config.API.kpiCommentP("problem", type.value, role, formDataView.id),
config.API.kpiCommentP(
"problem",
type.value,
store.rolePerson.toLowerCase(),
formDataView.id
),
body
)
.then((res) => {
@ -345,11 +357,11 @@ watch(
<div v-else>
<div class="row q-pa-md q-col-gutter-sm">
<div class="row col-12 text-weight-medium">
<div class="col-4 text-grey-6">วขความกาวหน</div>
<div class="col-4 text-grey-6">วขญห</div>
<div class="col-8">{{ formDataView.topic }}</div>
</div>
<div class="row col-12 text-weight-medium">
<div class="col-4 text-grey-6">รายละเอยดความกาวหน</div>
<div class="col-4 text-grey-6">รายละเอยดญห</div>
<div class="col-8">{{ formDataView.reason }}</div>
</div>
<div class="col-12">