no message

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-08-23 16:00:32 +07:00
parent cc3f375ca9
commit 8c9760bb83
4 changed files with 641 additions and 444 deletions

View file

@ -149,13 +149,10 @@ const visibleColumns = ref<string[]>([
const action = ref<string>("");
const fileUpload = ref<any>(null);
const fileInputRef = ref<any>(null);
onMounted(() => {
retireld.value = retireld_params.toString();
console.log(retireld_params);
fecthlistprofile(retireld.value);
fecthCheck(retireld.value);
});
const round = ref<number>();
const typeReport = ref<string>("");
@ -188,6 +185,9 @@ const fecthlistprofile = async (id: string) => {
remove: e.remove,
}));
console.log(statusReport.value);
if (statusReport.value == false) {
fecthCheck(retireld.value);
} else statusUpload.value = true;
})
.catch((e) => {
messageError($q, e);
@ -200,7 +200,6 @@ const fecthCheck = async (id: string) => {
await http
.get(config.API.checkfileupload(id))
.then((res) => {
console.log(res);
statusUpload.value = res.data.result;
})
.catch((err) => {

View file

@ -380,6 +380,7 @@ const fetchRetirement = async (type: string, year: any) => {
round: items.round,
typeReport: typeReportChangeName(items.typeReport),
json: items.json,
document: items.document,
}));
actionOption.value = rows.value;
rows.value.sort((a, b) => a.round - b.round);
@ -569,13 +570,17 @@ const clickSelect = async (action: string) => {
.onDismiss(() => {});
};
const clickClose = async () => {
modal.value = false;
};
// const clickClose = async () => {
// modal.value = false;
// };
const checkjson = ref<boolean>();
const checkststus = (data: any) => {
let jsonfasle = rows.value.find((e: any) => e.json == false);
let jsonfasle = data.find((e: any) => e.document == false);
// console.log(jsonfasle)
if (jsonfasle) {
checkjson.value = true;
} else checkjson.value = false;