Merge branch 'nice_dev' into develop

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-23 09:21:26 +07:00
commit b962fa3733

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>