ตัวชี้วัดตามแผน
This commit is contained in:
parent
9542bb2edc
commit
cc52ce5e61
1 changed files with 1 additions and 19 deletions
|
|
@ -112,22 +112,6 @@ function onClickAddOrView(status: boolean = false, id: string = "") {
|
||||||
: router.push("/KPI-indicator-plan/add");
|
: 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() {
|
function fetchActive() {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
|
|
@ -179,7 +163,7 @@ async function deleteData(idData: string) {
|
||||||
http
|
http
|
||||||
.delete(config.API.kpiPlanById(idData))
|
.delete(config.API.kpiPlanById(idData))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
fetchData();
|
fetchList();
|
||||||
success($q, "ลบข้อมูลสำเร็จ");
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
@ -421,8 +405,6 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue