fix bug kpi
This commit is contained in:
parent
63611d0811
commit
1fa38897cf
7 changed files with 82 additions and 69 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue