ipostatus弹窗2

This commit is contained in:
zhuzhuxia233 2023-04-13 23:34:27 +08:00
parent 254c5b08c3
commit 19e0970bb3
1 changed files with 20 additions and 20 deletions

View File

@ -227,21 +227,21 @@ const FinalAllocationPublic = ref('')
const InitialAllocationInstitutional = ref('')
const FinalAllocationInstitutional = ref('')
const setBarRight = async () => {
const result = await getDataFromId('bar')
const ipoID = '00314';
const index = result.findIndex((item: any) => item.ipoID == ipoID);
const graph = result[index].graph;
PublicOfferX.value = graph.map((item: any) => {
return moment(item.dateTime).format('MM-DD')
})
PublicOfferY.value = graph.map((item: any) => {
return item.poApplicationQuantity;
});
const amount = Number(initialpublic.value) + Number(initialinstituational.value);
InitialAllocationPublic.value = Math.round(Number(initialpublic.value) / amount * 10000) / 100 + "%";
// const result = await getDataFromId('bar')
// const ipoID = '00314';
// const index = result.findIndex((item: any) => item.ipoID == ipoID);
// const graph = result[index].graph;
// PublicOfferX.value = graph.map((item: any) => {
// return moment(item.dateTime).format('MM-DD')
// })
// PublicOfferY.value = graph.map((item: any) => {
// return item.poApplicationQuantity;
// });
// const amount = Number(initialpublic.value) + Number(initialinstituational.value);
// InitialAllocationPublic.value = Math.round(Number(initialpublic.value) / amount * 10000) / 100 + "%";
InitialAllocationInstitutional.value = Math.round(Number(initialinstituational.value) / amount * 10000) / 100 + "%";
init();
// InitialAllocationInstitutional.value = Math.round(Number(initialinstituational.value) / amount * 10000) / 100 + "%";
// init();
}
const setBar = async () => {
const ipoID = localStorage.getItem('ipoID')
@ -264,8 +264,8 @@ const setBar = async () => {
init();
}
onMounted(() => {
setBarRight();//bar
// setBar()//
// setBarRight();//bar
setBar()//
})
const getdatatime = async () => {
const res = await getHomeIpo(1)
@ -274,13 +274,13 @@ const getdatatime = async () => {
}
const getreferencedata = async () => {
//---mock
const result1 = await getDataFromId('bar');
const res = result1[0];
// const result1 = await getDataFromId('bar');
// const res = result1[0];
//---mock
const ipoID = localStorage.getItem('ipoID')
// const result = await getIpo(ipoID as string)
// const res=(result as any).data[0];
const result = await getIpo(ipoID as string)
const res = (result as any).data[0];
// console.log(res);
const { bookOpenDate, bookCloseDate, allotmentDate, siInputDate, listingDate } = res;