From 7c2ff43a4f70638fb063d0aa1d2f1624e6cada33 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期六, 07 五月 2022 15:25:42 +0800 Subject: [PATCH] 其他业务 --- src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue | 2 +- src/api/businessPolicy.js | 6 ++++++ config/index.js | 2 +- src/pages/show/businessPolicy/BusinessPolicy.vue | 24 +++++++++++++++++++----- 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/config/index.js b/config/index.js index cb7612d..7faa8ad 100644 --- a/config/index.js +++ b/config/index.js @@ -3,7 +3,7 @@ // see http://vuejs-templates.github.io/webpack for documentation. const path = require("path"); -let url = 'http://192.168.0.130:8081' +let url = 'http://192.168.0.139:8081' module.exports = { dev: { diff --git a/src/api/businessPolicy.js b/src/api/businessPolicy.js new file mode 100644 index 0000000..d49322f --- /dev/null +++ b/src/api/businessPolicy.js @@ -0,0 +1,6 @@ +import {postRequest,getRequest} from "../libs/axios"; + +// 37. 鏌ヨ钀ュ晢鏀跨瓥浜斾釜缁熻鏁伴噺鎺ュ彛 +export const getCount = params=> { + return postRequest('/ybg/webservice/app/policy/getCount.do',params) +} diff --git a/src/pages/show/businessPolicy/BusinessPolicy.vue b/src/pages/show/businessPolicy/BusinessPolicy.vue index e14b855..a01e5dc 100644 --- a/src/pages/show/businessPolicy/BusinessPolicy.vue +++ b/src/pages/show/businessPolicy/BusinessPolicy.vue @@ -11,7 +11,7 @@ /> </div> <div class="text">绱鍑哄彴鏀跨瓥鏁伴噺</div> - <div class="numText"><span>280</span>鏉�</div> + <div class="numText"><span>{{ CountObj.totalPolicy }}</span>鏉�</div> </div> <div class="upCentent_item"> <div class="icon"> @@ -21,7 +21,7 @@ /> </div> <div class="text">鎯犲強浼佷笟鏁伴噺</div> - <div class="numText"><span>70</span>涓囨埛</div> + <div class="numText"><span>{{ CountObj.units }}</span>涓囨埛</div> </div> <div class="upCentent_item"> <div class="icon"> @@ -31,7 +31,7 @@ /> </div> <div class="text">鎯犲強涓汉鏁伴噺</div> - <div class="numText"><span>25.9</span>涓囦汉</div> + <div class="numText"><span>{{ CountObj.persons }}</span>涓囦汉</div> </div> <div class="upCentent_item"> <div class="icon"> @@ -41,7 +41,7 @@ /> </div> <div class="text">鍑忓厤閲戦</div> - <div class="numText"><span>1563</span>涓囧厓</div> + <div class="numText"><span>{{ CountObj.amount }}</span>涓囧厓</div> </div> <div class="upCentent_item"> <div class="icon"> @@ -51,7 +51,7 @@ /> </div> <div class="text">鏂伴椈鎶ラ亾鏁伴噺</div> - <div class="numText"><span>36500</span>鏉�</div> + <div class="numText"><span>{{ CountObj.news }}</span>鏉�</div> </div> </div> <!-- 琛ㄦ牸鍖� --> @@ -167,9 +167,11 @@ </div> </template> <script> +import {getCount} from '@/api/businessPolicy' export default { data() { return { + CountObj:{}, tableData: [ { keshi: "澶变笟澶�", @@ -456,6 +458,9 @@ tableHeight: window.innerHeight * 0.62 }; }, + mounted(){ + this.getCount() + }, methods: { tableRowClassName({rowIndex}) { if (rowIndex % 2 === 0) { @@ -468,6 +473,15 @@ console.log(row); console.log(row.__ob__.dep.id); console.log(row.id); + }, + // 37. 鏌ヨ钀ュ晢鏀跨瓥浜斾釜缁熻鏁伴噺鎺ュ彛 + getCount(){ + getCount().then(res=>{ + // console.log(res); + if(res.code === 1000){ + this.CountObj = res.obj + } + }) } } }; diff --git a/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue b/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue index 597b6d1..3eb3935 100644 --- a/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue +++ b/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue @@ -167,7 +167,7 @@ // 32. 鏌ヨ灞呮皯鍙敮閰嶆敹鍏ュ垎鏋愬浘鏁版嵁鎺ュ彛 getIncomeLine() { getIncomeLine().then(res => { - console.log(res); + // console.log(res); if(res.code===1000){ this.echartsSeries = res.obj this.Init_echarts() -- Gitblit v1.9.1