From cd70fe15fc16fddf626c3dbe25e1b0003a4bf7b2 Mon Sep 17 00:00:00 2001 From: guoweilong Date: Tue, 24 Oct 2023 18:04:58 +0800 Subject: [PATCH] feat: 联调接口 --- api/organize.js | 45 +++++++++++++++++++++++++++++++++++++++++++++ components/news-list/news-list.vue | 5 +++-- main.js | 8 ++++++++ pages.json | 1 + pages/market/components/reportModule1.vue | 18 ++++++++++-------- pages/market/index.vue | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------- pages/market/insight.vue | 353 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------- pages/market/newsDetails.vue | 4 ++-- pages/market/reportDetails.vue | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- pages/market/userDetails.vue | 486 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------- static/images/empty/logo.png | Bin 0 -> 28696 bytes utils/dictionary.js | 18 ++++++++++++++++++ utils/state.js | 16 ++++++++++++++++ 13 files changed, 860 insertions(+), 237 deletions(-) create mode 100644 api/organize.js create mode 100644 static/images/empty/logo.png create mode 100644 utils/dictionary.js create mode 100644 utils/state.js diff --git a/api/organize.js b/api/organize.js new file mode 100644 index 0000000..38c6ecd --- /dev/null +++ b/api/organize.js @@ -0,0 +1,45 @@ +const { http } = uni.$u +// 列表和条件筛选 +export const getOrganizelist = params => http.get('/organize/list', { params }) + +//居民用户 +export const getPoolResidentlist = params => http.get('/poolResident/list', { params }) + +//商业用户 +export const getPoolCommercelist = params => http.get('/poolCommerce/list', { params }) + +//工业用户 +export const getPoolIndustrylist = params => http.get('/poolIndustry/list', { params }) + +/*报告详情*/ + +//报告详情-组织实施落实 1 +export const getOrganize = params => http.get('/organize/' + params ) + +//报告详情-天然气市场总体概况主表 2 +export const getGeneralOverview = params => http.get('/generalOverview/'+ params) + +//报告详情-天然气市场总体概况附表 3 +export const getGeneralOverviewAttach = params => http.get('/generalOverviewAttach/'+ params) + +//报告详情-告详情-重点市场业务分析 4 +export const getBusinessAnalyze = params => http.get('/businessAnalyze/'+ params) + + +//报告详情-预计2021财年-2022财年已签约且在2023财年安装确认项目 5 +export const getNewBuildingInfo = params => http.get('/newBuildingInfo/'+ params) + + +//报告详情-预计2023-2025财年安装确认项目 6 +export const getNewBuildingItem = params => http.get('/newBuildingItem/'+ params) + +//报告详情-未来发展规划,所需资源配置 7 +export const getDevelopmentPlan = params => http.get('/developmentPlan/'+ params) + +//报告详情-目标思路建议 8 +export const getTargetSuggestion = params => http.get('/targetSuggestion/'+ params) + + + + + diff --git a/components/news-list/news-list.vue b/components/news-list/news-list.vue index 49fa762..a4a7864 100644 --- a/components/news-list/news-list.vue +++ b/components/news-list/news-list.vue @@ -6,7 +6,7 @@ {{newItem.title}} - {{ newItem.plate_name }} + {{ $dict(newItem.plateName) }} {{newItem.organizeName}} @@ -19,6 +19,7 @@ diff --git a/static/images/empty/logo.png b/static/images/empty/logo.png new file mode 100644 index 0000000..63e5804 Binary files /dev/null and b/static/images/empty/logo.png differ diff --git a/utils/dictionary.js b/utils/dictionary.js new file mode 100644 index 0000000..af240c4 --- /dev/null +++ b/utils/dictionary.js @@ -0,0 +1,18 @@ +const dictionary = { + "0": "宏观经济", + "1": "产业政策", + "2": "行业动态", + "3": "友商动态", + "4": "用户资讯", + "5": "国际能源" +}; + +function dict(key) { + return dictionary[key] || "未找到对应的值"; +} + + +export default dict + +// 0:宏观经济、1:产业政策、2:行业动态、3:友商动态、4:用户资讯、5:国际能源', + diff --git a/utils/state.js b/utils/state.js new file mode 100644 index 0000000..a8685d8 --- /dev/null +++ b/utils/state.js @@ -0,0 +1,16 @@ +const stateList = { + "0": "待申报", + "1": "待评审", + "2": "待修改", + "3": "已通过", +}; + +function state(key) { + return stateList[key] || "未找到对应的值"; +} + + +export default state + +// 0待申报 1待评审 2待修改 3已通过' + -- libgit2 0.21.2