优化页面

This commit is contained in:
pengxiaolong
2025-06-19 22:27:00 +08:00
parent b73ddb0370
commit bcaa54bec8
115 changed files with 1273 additions and 353 deletions

View File

@@ -94,6 +94,15 @@ const _sfc_main = {
closePopup() {
this.$refs.popup.close();
},
//格式化日期
dateformat(date) {
const isoString = date.replace(" ", "T");
const timestamp = Date.parse(isoString);
if (isNaN(timestamp)) {
throw new Error(`Invalid date format: ${this.datetimesingle}`);
}
return Math.floor(timestamp / 1e3);
},
//确认弹窗
confirm() {
this.ConfirmStatus = true;
@@ -163,11 +172,11 @@ const _sfc_main = {
}
if (this.mindatetimesingle !== "") {
condition.pkTime = {
start: this.mindatetimesingle
start: this.dateformat(this.mindatetimesingle)
};
}
if (this.maxdatetimesingle !== "") {
condition.pkTime.end = this.maxdatetimesingle;
condition.pkTime.end = this.dateformat(this.maxdatetimesingle);
}
if (this.countrys !== "") {
condition.country = this.countrys;
@@ -281,7 +290,7 @@ const _sfc_main = {
},
formatDate: components_formatDate.formatDate,
async pkList(condition) {
common_vendor.index.__f__("log", "at pages/Home/Home.vue:485", condition);
common_vendor.index.__f__("log", "at pages/Home/Home.vue:494", "`````````````````````````````", condition);
const res = await components_request.request({
url: "pk/pkList",
method: "POST",
@@ -295,7 +304,7 @@ const _sfc_main = {
userInfo: false
});
if (res.code === 200) {
common_vendor.index.__f__("log", "at pages/Home/Home.vue:500", res.data);
common_vendor.index.__f__("log", "at pages/Home/Home.vue:509", "````````````````````````````````", res.data);
this.triggered = false;
if (condition.type === 1) {
this.MakeAppointmentPKlist.push(...res.data);
@@ -307,6 +316,9 @@ const _sfc_main = {
if (condition.type == this.listtype) {
this.list = this.RealTimePklist;
}
if (condition.type == null) {
this.list = this.RealTimePklist;
}
}
}
}