Merge branch 'develop' into devTee

This commit is contained in:
STW_TTTY\stwtt 2024-04-23 11:13:20 +07:00
commit 5a0f3345e1
10 changed files with 445 additions and 471 deletions

View file

@ -55,7 +55,7 @@ function getData() {
http
.get(config.API.kpiEvaluation)
.then((res) => {
dataLevel.value = res.data.result;
dataLevel.value = res.data.result.data;
})
.finally(() => {
hideLoader();

View file

@ -86,7 +86,7 @@ function onSubmit() {
class="q-mr-sm"
@click="router.go(-1)"
/>
<span class="toptitle text-dark">เพสมรรถนะ</span>
<span class="toptitle text-dark">เพ/แกไขสมรรถนะ</span>
</div>
<q-card flat bordered>
<!-- @submit.prevent @validation-success="onSubmit" -->

View file

@ -112,22 +112,6 @@ function onClickAddOrView(status: boolean = false, id: string = "") {
: router.push("/KPI-indicator-plan/add");
}
async function fetchData() {
showLoader();
await http
.get(config.API.kpiPlan)
.then(async (res) => {
const data = res.data.result.data;
rows.value = data;
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
function fetchActive() {
showLoader();
http
@ -179,7 +163,7 @@ async function deleteData(idData: string) {
http
.delete(config.API.kpiPlanById(idData))
.then(() => {
fetchData();
fetchList();
success($q, "ลบข้อมูลสำเร็จ");
})
.catch((err) => {
@ -421,8 +405,6 @@ onMounted(() => {
</div>
</div>
</q-card>
</template>
<style lang="scss" scoped>