ipostatus弹窗2
This commit is contained in:
parent
254c5b08c3
commit
19e0970bb3
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue