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