diff --git a/README.md b/README.md index 47e8d68..39a2a19 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,3 @@ fini项目 -test \ No newline at end of file diff --git a/index.html b/index.html index 3f1776f..e77bba4 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,12 @@ diff --git a/package-lock.json b/package-lock.json index c5231b0..8d4f6cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@element-plus/icons-vue": "^2.1.0", "amfe-flexible": "^2.2.1", "axios": "^0.27.2", - "echarts": "^5.4.1", + "echarts": "^5.4.2", "element-plus": "^2.3.0", "js-cookie": "^3.0.1", "moment": "^2.29.4", @@ -25,6 +25,7 @@ "pinia": "^2.0.33", "postcss-px2rem": "^0.3.0", "vue": "^3.2.36", + "vue-echarts": "^6.5.5", "vue-i18n": "^9.2.2", "vue-lazyload": "^3.0.0-rc.2", "vue-router": "^4.0.15" @@ -4174,12 +4175,12 @@ } }, "node_modules/echarts": { - "version": "5.4.1", - "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.1.tgz", - "integrity": "sha512-9ltS3M2JB0w2EhcYjCdmtrJ+6haZcW6acBolMGIuf01Hql1yrIV01L1aRj7jsaaIULJslEP9Z3vKlEmnJaWJVQ==", + "version": "5.4.2", + "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.2.tgz", + "integrity": "sha512-2W3vw3oI2tWJdyAz+b8DuWS0nfXtSDqlDmqgin/lfzbkB01cuMEN66KWBlmur3YMp5nEDEEt5s23pllnAzB4EA==", "dependencies": { "tslib": "2.3.0", - "zrender": "5.4.1" + "zrender": "5.4.3" } }, "node_modules/echarts/node_modules/tslib": { @@ -9213,6 +9214,11 @@ "node": ">=0.10.0" } }, + "node_modules/resize-detector": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/resize-detector/-/resize-detector-0.3.0.tgz", + "integrity": "sha512-R/tCuvuOHQ8o2boRP6vgx8hXCCy87H1eY9V5imBYeVNyNVpuL9ciReSccLj2gDcax9+2weXy3bc8Vv+NRXeEvQ==" + }, "node_modules/resize-observer-polyfill": { "version": "1.5.1", "resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", @@ -10537,6 +10543,48 @@ "@vue/shared": "3.2.37" } }, + "node_modules/vue-echarts": { + "version": "6.5.5", + "resolved": "https://registry.npmmirror.com/vue-echarts/-/vue-echarts-6.5.5.tgz", + "integrity": "sha512-KJD1MSyoMQ33q8M4hM45OYeSC+t7LzesIXQOrkRSXv4xhOi0iN+6yEjQuIuqRB9zZGCT2J4bK3eQ+1ttdz4Uag==", + "hasInstallScript": true, + "dependencies": { + "resize-detector": "^0.3.0", + "vue-demi": "^0.13.2" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.5", + "echarts": "^5.4.1", + "vue": "^2.6.12 || ^3.1.1" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/vue-echarts/node_modules/vue-demi": { + "version": "0.13.11", + "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.13.11.tgz", + "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/vue-eslint-parser": { "version": "8.3.0", "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz", @@ -10877,9 +10925,9 @@ } }, "node_modules/zrender": { - "version": "5.4.1", - "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.4.1.tgz", - "integrity": "sha512-M4Z05BHWtajY2241EmMPHglDQAJ1UyHQcYsxDNzD9XLSkPDqMq4bB28v9Pb4mvHnVQ0GxyTklZ/69xCFP6RXBA==", + "version": "5.4.3", + "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.4.3.tgz", + "integrity": "sha512-DRUM4ZLnoaT0PBVvGBDO9oWIDBKFdAVieNWxWwK0niYzJCMwGchRk21/hsE+RKkIveH3XHCyvXcJDkgLVvfizQ==", "dependencies": { "tslib": "2.3.0" } @@ -14471,12 +14519,12 @@ } }, "echarts": { - "version": "5.4.1", - "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.1.tgz", - "integrity": "sha512-9ltS3M2JB0w2EhcYjCdmtrJ+6haZcW6acBolMGIuf01Hql1yrIV01L1aRj7jsaaIULJslEP9Z3vKlEmnJaWJVQ==", + "version": "5.4.2", + "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.4.2.tgz", + "integrity": "sha512-2W3vw3oI2tWJdyAz+b8DuWS0nfXtSDqlDmqgin/lfzbkB01cuMEN66KWBlmur3YMp5nEDEEt5s23pllnAzB4EA==", "requires": { "tslib": "2.3.0", - "zrender": "5.4.1" + "zrender": "5.4.3" }, "dependencies": { "tslib": { @@ -18321,6 +18369,11 @@ "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" }, + "resize-detector": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/resize-detector/-/resize-detector-0.3.0.tgz", + "integrity": "sha512-R/tCuvuOHQ8o2boRP6vgx8hXCCy87H1eY9V5imBYeVNyNVpuL9ciReSccLj2gDcax9+2weXy3bc8Vv+NRXeEvQ==" + }, "resize-observer-polyfill": { "version": "1.5.1", "resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", @@ -19375,6 +19428,23 @@ "@vue/shared": "3.2.37" } }, + "vue-echarts": { + "version": "6.5.5", + "resolved": "https://registry.npmmirror.com/vue-echarts/-/vue-echarts-6.5.5.tgz", + "integrity": "sha512-KJD1MSyoMQ33q8M4hM45OYeSC+t7LzesIXQOrkRSXv4xhOi0iN+6yEjQuIuqRB9zZGCT2J4bK3eQ+1ttdz4Uag==", + "requires": { + "resize-detector": "^0.3.0", + "vue-demi": "^0.13.2" + }, + "dependencies": { + "vue-demi": { + "version": "0.13.11", + "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.13.11.tgz", + "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "requires": {} + } + } + }, "vue-eslint-parser": { "version": "8.3.0", "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz", @@ -19635,9 +19705,9 @@ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" }, "zrender": { - "version": "5.4.1", - "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.4.1.tgz", - "integrity": "sha512-M4Z05BHWtajY2241EmMPHglDQAJ1UyHQcYsxDNzD9XLSkPDqMq4bB28v9Pb4mvHnVQ0GxyTklZ/69xCFP6RXBA==", + "version": "5.4.3", + "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.4.3.tgz", + "integrity": "sha512-DRUM4ZLnoaT0PBVvGBDO9oWIDBKFdAVieNWxWwK0niYzJCMwGchRk21/hsE+RKkIveH3XHCyvXcJDkgLVvfizQ==", "requires": { "tslib": "2.3.0" }, diff --git a/package.json b/package.json index 6c02ead..02c65ce 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@element-plus/icons-vue": "^2.1.0", "amfe-flexible": "^2.2.1", "axios": "^0.27.2", - "echarts": "^5.4.1", + "echarts": "^5.4.2", "element-plus": "^2.3.0", "js-cookie": "^3.0.1", "moment": "^2.29.4", @@ -27,6 +27,7 @@ "pinia": "^2.0.33", "postcss-px2rem": "^0.3.0", "vue": "^3.2.36", + "vue-echarts": "^6.5.5", "vue-i18n": "^9.2.2", "vue-lazyload": "^3.0.0-rc.2", "vue-router": "^4.0.15" diff --git a/src/App.vue b/src/App.vue index e9b332c..b97bd25 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,26 +1,43 @@ diff --git a/src/api/reqIpo/ipo.ts b/src/api/reqIpo/ipo.ts index 5fc79b5..7071a8e 100644 --- a/src/api/reqIpo/ipo.ts +++ b/src/api/reqIpo/ipo.ts @@ -11,7 +11,7 @@ enum Api { EventData="/api/ipos/listingData", TypeofList="/api/ipo/refdata/typeOfListing", searchUrl="/api/ipo/refdata/search", - selectUrl="/api/ipo/refdata/filter", + selectUrl="/api/ipo/refdata/searchAndFilter", findAllListingDate="/api/ipo/refdata/findAllListingDate" } //获取ipo详情页的数据 @@ -35,9 +35,11 @@ export const getTypeofListing = (ipoID:string) => { return request.get(Api.TypeofList+`?ipoID=${ipoID}`); }; //获取首页的搜索数据 -export const getSearchListing = (keyword:string) => { - return request.get(Api.searchUrl+`?keyword=${keyword}`); -}; +export const getSearchListing = (keyWord:string) => { + // return request.post(Api.selectUrl+`?keyWord=${keyWord}`); + + return request.post(Api.selectUrl,{keyWord}); +} export const getDate = () => { return request.get(Api.findAllListingDate); }; @@ -83,3 +85,6 @@ export const getSelectList = (body:selectObj) => { // var obj=JSON.stringify({status}) return request.post(Api.selectUrl,body); }; +// export const getSearchListing =(keyword:string)=>{ +// return request.post(Api.selectUrl,keyword); +// } \ No newline at end of file diff --git a/src/assets/1x/backgroud4.png b/src/assets/1x/backgroud4.png new file mode 100644 index 0000000..201b4a9 Binary files /dev/null and b/src/assets/1x/backgroud4.png differ diff --git a/src/assets/1x/background1.png b/src/assets/1x/background1.png new file mode 100644 index 0000000..f418e7e Binary files /dev/null and b/src/assets/1x/background1.png differ diff --git a/src/assets/1x/background2.png b/src/assets/1x/background2.png new file mode 100644 index 0000000..a30e11c Binary files /dev/null and b/src/assets/1x/background2.png differ diff --git a/src/assets/1x/background3.png b/src/assets/1x/background3.png new file mode 100644 index 0000000..a30e11c Binary files /dev/null and b/src/assets/1x/background3.png differ diff --git a/src/locales/en.ts b/src/locales/en.ts index c2eb3f7..b76d38b 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -39,7 +39,8 @@ export default { ChineseYuan:'Chinese Yuan', UnitedStatesDollar:'United States Dollar', noevent:'No event', - Norelevantselectdata:'No relevant select data' + Norelevantselectdata:'No relevant select data', + nodata:'No Data', }, dashboard:{ Home:'Home', @@ -56,7 +57,7 @@ export default { ApplicationQuantity:'Application Quantity (Shares)', InitialShares:'Initial Shares', FinalShares:'Final Shares', - LastUpadated:'Last Upadated', + LastUpadated:'Last Updated', InitialAllocation:'Initial Allocation', Public:'Public', Institutional:'Institutional', diff --git a/src/locales/zh-cn.ts b/src/locales/zh-cn.ts index da6c8ba..a25bdab 100644 --- a/src/locales/zh-cn.ts +++ b/src/locales/zh-cn.ts @@ -36,7 +36,8 @@ export default { ChineseYuan:'人民币', UnitedStatesDollar:'美元', noevent:'无事件', - Norelevantselectdata:'无相关选择数据' + Norelevantselectdata:'无相关选择数据', + nodata:'无数据', }, dashboard:{ Home:'主页', diff --git a/src/locales/zh-ct.ts b/src/locales/zh-ct.ts index 5f23133..408791d 100644 --- a/src/locales/zh-ct.ts +++ b/src/locales/zh-ct.ts @@ -36,7 +36,8 @@ export default { ChineseYuan:'人民幣', UnitedStatesDollar:'美元', noevent:'無事件', - Norelevantselectdata:'無相關選擇數據' + Norelevantselectdata:'無相關選擇數據', + nodata:'無數據', }, dashboard:{ Home:'主頁', diff --git a/src/router/routes.ts b/src/router/routes.ts index 464d8f3..82d3464 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -64,16 +64,6 @@ export const staticRoutes: Array = [ name: "XIPO", component: () => import("@/views/IPO/index.vue") }, - { - path: "/searchdash", - name: "Xsearchdash", - component: () => import("@/views/searchdash/index.vue") - }, - { - path: "/searchipo", - name: "Xsearchipo", - component: () => import("@/views/searchipo/index.vue") - }, { path: "/IPOcalendar", name: "Xsearchipo", diff --git a/src/stores/ipo.ts b/src/stores/ipo.ts index 5810a58..a323597 100644 --- a/src/stores/ipo.ts +++ b/src/stores/ipo.ts @@ -3,12 +3,23 @@ import { defineStore } from 'pinia' import zhCn from 'element-plus/dist/locale/zh-cn.mjs' import en from 'element-plus/dist/locale/en.mjs' import zhTw from 'element-plus/dist/locale/zh-tw.mjs' +import request from "@/utils/request"; +enum Api { + selectUrl="/api/ipo/refdata/searchAndFilter", + +} export const ipoStore = defineStore({ id: 'app', state: () => ({ //1代表英文 2代表繁体中文 3代表简体中文 locale:1, - + homeDay:new Date(), + mobileActiveShow:1, + mainExpand:-1, + filterObj:{}, //把过滤条件放在这里 + keyWord:"", + selectedArr:{}, + ipoIds:[] as any }), getters: { localeLang(state) { @@ -18,7 +29,45 @@ export const ipoStore = defineStore({ actions: { //更改语言的方法 setLocale(data: number) { - this.locale = data + this.locale = data + + }, + setHomeDay(day:string|Date){ + this.homeDay=day as Date; + }, + setMobileActiveShow(num:number){ + this.mobileActiveShow=num; + }, + setMainExpand(num:number){ + this.mainExpand=num; + }, + setFilterObje(obj:any){ + this.filterObj=obj; + }, + // reqSearchList(keyworld:string){ + + // } + setSelectedArr(data:any){ + this.selectedArr=data; + }, + setKeyWord(keyWord:string){ + this.keyWord=keyWord; + }, + getSearchSelectList(){ + const keyWord=this.keyWord; + const selectedArr=this.selectedArr; + return request.post(Api.selectUrl,{keyWord,...selectedArr}); + }, + setIpoIds(ipoId:string|number){ + const arr=this.$state.ipoIds; + const hasId= arr.some((i:any)=>i==ipoId); + const index=arr.findIndex((i:any)=>i==ipoId); + hasId&&arr.splice(index,1) + !hasId&&arr.push(ipoId) + }, + isExpand(ipoId:string|number){ + return this.$state.ipoIds.some((i:any)=>i==ipoId); } - } + }, + }) \ No newline at end of file diff --git a/src/views/IPO/components/IpoContent.vue b/src/views/IPO/components/IpoContent.vue index 3604df3..08522be 100644 --- a/src/views/IPO/components/IpoContent.vue +++ b/src/views/IPO/components/IpoContent.vue @@ -60,9 +60,9 @@
- + + :label="title.header" :width="322 * (title.width / 100)" :align="title.align" :key="index" />
diff --git a/src/views/IPO/components/IpoHeader.vue b/src/views/IPO/components/IpoHeader.vue index 6b212a0..93a633d 100644 --- a/src/views/IPO/components/IpoHeader.vue +++ b/src/views/IPO/components/IpoHeader.vue @@ -1,7 +1,7 @@ \ No newline at end of file diff --git a/src/views/login/components/a-image/index.vue b/src/views/login/components/a-image/index.vue index eb91cc7..66c50cf 100644 --- a/src/views/login/components/a-image/index.vue +++ b/src/views/login/components/a-image/index.vue @@ -1,5 +1,5 @@