This commit is contained in:
LiJianZhao 2025-05-27 17:08:45 +08:00
parent dcbb44bd80
commit fcb536753e
3 changed files with 8 additions and 5 deletions

View File

@ -4,14 +4,15 @@ import {post} from "@/utils/request.ts";
import {onMounted, ref, defineModel} from "vue";
import {formatDate} from "@/utils/dateUtils.ts";
import {loadConfig} from "@/utils/config.ts";
import {API} from "@/assets/config/API.ts";
const decryptedText = ref<any>({})
const ciphertext = ref<any>('')
const list = ref<any>([])
const init = async () => {
ciphertext.value = await post("common/auth/get");
decryptedText.value = await post("common/auth/check");
list.value = await post("common/config/list")
ciphertext.value = await post(API.Common.Auth.Get);
decryptedText.value = await post(API.Common.Auth.Check);
list.value = await post(API.Common.Config.List)
list.value.forEach((item: any) => {
if (item.k == "logoUrl") {
loadConfig().then((res: any) => {

View File

@ -47,11 +47,12 @@ import Mask from "@/components/common/Mask.vue";
import {ref} from "vue";
import CloseBtn from "@/components/CloseBtn.vue";
import {post} from "@/utils/request.ts";
import {API} from "@/assets/config/API.ts";
const tableData = ref<any>([]);
const show = ref(false);
const init = () => {
show.value = true;
post("statistics/expiryDateWarning",{pageNum: pageNum.value, pageSize: pageSize.value}).then((res: any) => {
post(API.Statistics.Base.ExpiryDateWarning,{pageNum: pageNum.value, pageSize: pageSize.value}).then((res: any) => {
tableData.value = res.list
total.value = res.total_count
})

View File

@ -51,12 +51,13 @@ import Mask from "@/components/common/Mask.vue";
import {ref} from "vue";
import CloseBtn from "@/components/CloseBtn.vue";
import {post} from "@/utils/request.ts";
import {API} from "@/assets/config/API.ts";
const tableData = ref<any>([]);
const show = ref(false);
const init = () => {
show.value = true;
post("statistics/numberEarlyWarning", {pageNum: pageNum.value, pageSize: pageSize.value}).then((res: any) => {
post(API.Statistics.Base.NumberEarlyWarning, {pageNum: pageNum.value, pageSize: pageSize.value}).then((res: any) => {
tableData.value = res.list
total.value = res.total_count
})