1.优化
This commit is contained in:
2025-07-08 17:50:37 +08:00
parent 7565056a7e
commit f6e5bb78da
8 changed files with 39 additions and 28 deletions
-3
View File
@@ -247,7 +247,6 @@
...formRecord.value,
...result,
};
console.log(formRecord.value);
}
function handleClicksearch() {
formState.value = {
@@ -264,7 +263,6 @@
orgCode2.value = '';
orgCode1.value = '';
formState.value = {};
console.log(formState.value, formRecord.value, 'asjshj');
formRecord.value = {};
closeDialog();
}
@@ -277,7 +275,6 @@
...formRecord.value,
salvageUserDepart: '',
};
console.log(formState.value, formRecord.value);
}
defineExpose({
openDialog,
+11 -8
View File
@@ -78,14 +78,17 @@
condition: chooseType.value,
centerId: props.centerId,
};
statisticsNewApi(params).then((res) => {
console.log(res);
if (res.code != 200 || !res.result) {
return;
}
setSession(LEFT_KEY1, JSON.stringify(res.result));
setValue(res.result);
});
statisticsNewApi(params)
.then((res) => {
if (res.code != 200 || !res.result) {
return;
}
setSession(LEFT_KEY1, JSON.stringify(res.result));
setValue(res.result);
})
.catch((e) => {
console.log(e);
});
}
function setValue(result) {
+9 -6
View File
@@ -96,12 +96,15 @@
twoLApi({
sex: chooseType.value,
depart: selectValue.value,
}).then((res) => {
console.log(res, 'resessss');
if (res.code == 200) {
initChart(res.result);
}
});
})
.then((res: any) => {
if (res.code == 200) {
initChart(res.result);
}
})
.catch((err) => {
console.log(err);
});
}
function initChart(value) {
+11 -7
View File
@@ -147,13 +147,17 @@
});
function getList() {
twoRApi({}).then((res) => {
if (res.code == 200) {
localStorage.removeItem('twoRList');
twoRList.value = res.result;
localStorage.setItem('twoRList', JSON.stringify(res.result));
}
});
twoRApi({})
.then((res: any) => {
if (res.code == 200) {
localStorage.removeItem('twoRList');
twoRList.value = res.result;
localStorage.setItem('twoRList', JSON.stringify(res.result));
}
})
.catch((err) => {
console.log(err);
});
}
function handleClickNum1(type, date, normal) {
emit('handleClick', { type, date, normal });