This commit is contained in:
Sliverber 2024-07-20 09:06:30 +08:00
commit 87f77925dc
3 changed files with 30 additions and 14 deletions

View File

@ -5,8 +5,8 @@ VUE_APP_TITLE = 共享电动车管理系统
ENV = 'development' ENV = 'development'
# 共享电动车管理系统/开发环境 # 共享电动车管理系统/开发环境
# VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api' VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api'
VUE_APP_BASE_API = 'http://192.168.2.189:8080' # VUE_APP_BASE_API = 'http://192.168.2.189:8080'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -30,6 +30,14 @@ export function addArea(data) {
data: data data: data
}) })
} }
// 根据token获取运营区
export function getArealist() {
return request({
url: '/index/getAreaList',
method: 'get',
})
}
// 修改运营区 // 修改运营区
export function updateArea(data) { export function updateArea(data) {

View File

@ -20,7 +20,7 @@
</div> </div>
<div class="txt_li" style="margin-top: 0.33rem;">已提现{{StatisticsInfo.withdraw}}</div> <div class="txt_li" style="margin-top: 0.33rem;">已提现{{StatisticsInfo.withdraw}}</div>
<div class="txt_li" style="margin-top: 1.17rem;">待结算金额{{StatisticsInfo.settlementAmount}}</div> <div class="txt_li" style="margin-top: 1.17rem;">待结算金额{{StatisticsInfo.settlementAmount}}</div>
<div class="bot_btn">提现</div> <div class="bot_btn" @click="topage()">提现</div>
</div> </div>
<div class="tops_right"> <div class="tops_right">
<div class="tops_right_top"> <div class="tops_right_top">
@ -209,7 +209,7 @@
<div class="cont_li"> <div class="cont_li">
<div class="cont_li_top"> <div class="cont_li_top">
<img src="https://lxnapi.ccttiot.com/bike/img/static/uTicws9tIsCpsqj8buxT" alt="">换电工单 <img src="https://lxnapi.ccttiot.com/bike/img/static/uDOL2U9faZ5ku81NTPnU" alt="">换电工单
</div> </div>
<div class="cont_li_bot"> <div class="cont_li_bot">
{{StatisticsInfo.operationVo.replacementOrderCount}} {{StatisticsInfo.operationVo.replacementOrderCount}}
@ -217,7 +217,7 @@
</div> </div>
<div class="cont_li"> <div class="cont_li">
<div class="cont_li_top"> <div class="cont_li_top">
<img src="https://lxnapi.ccttiot.com/bike/img/static/uTicws9tIsCpsqj8buxT" alt="">调度工单 <img src="https://lxnapi.ccttiot.com/bike/img/static/uuCZPQA3uCAJsAqca8Bv" alt="">调度工单
</div> </div>
<div class="cont_li_bot"> <div class="cont_li_bot">
{{StatisticsInfo.operationVo.dispatchCount}} {{StatisticsInfo.operationVo.dispatchCount}}
@ -225,7 +225,7 @@
</div> </div>
<div class="cont_li"> <div class="cont_li">
<div class="cont_li_top"> <div class="cont_li_top">
<img src="https://lxnapi.ccttiot.com/bike/img/static/uTicws9tIsCpsqj8buxT" alt="">维修工单 <img src="https://lxnapi.ccttiot.com/bike/img/static/uwGblBABW5uKSVzW4FjE" alt="">维修工单
</div> </div>
<div class="cont_li_bot"> <div class="cont_li_bot">
{{StatisticsInfo.operationVo.repairCount}} {{StatisticsInfo.operationVo.repairCount}}
@ -233,7 +233,7 @@
</div> </div>
<div class="cont_li"> <div class="cont_li">
<div class="cont_li_top"> <div class="cont_li_top">
<img src="https://lxnapi.ccttiot.com/bike/img/static/uTicws9tIsCpsqj8buxT" alt="">已完成换电 <img src="https://lxnapi.ccttiot.com/bike/img/static/uDOL2U9faZ5ku81NTPnU" alt="">已完成换电
</div> </div>
<div class="cont_li_bot"> <div class="cont_li_bot">
{{StatisticsInfo.operationVo.completedReplacementOrderCount}} {{StatisticsInfo.operationVo.completedReplacementOrderCount}}
@ -241,7 +241,7 @@
</div> </div>
<div class="cont_li"> <div class="cont_li">
<div class="cont_li_top"> <div class="cont_li_top">
<img src="https://lxnapi.ccttiot.com/bike/img/static/uTicws9tIsCpsqj8buxT" alt="">已完成调度 <img src="https://lxnapi.ccttiot.com/bike/img/static/uuCZPQA3uCAJsAqca8Bv" alt="">已完成调度
</div> </div>
<div class="cont_li_bot"> <div class="cont_li_bot">
{{StatisticsInfo.operationVo.completedDispatchCount}} {{StatisticsInfo.operationVo.completedDispatchCount}}
@ -249,7 +249,7 @@
</div> </div>
<div class="cont_li"> <div class="cont_li">
<div class="cont_li_top"> <div class="cont_li_top">
<img src="https://lxnapi.ccttiot.com/bike/img/static/uTicws9tIsCpsqj8buxT" alt="">已完成维修 <img src="https://lxnapi.ccttiot.com/bike/img/static/uwGblBABW5uKSVzW4FjE" alt="">已完成维修
</div> </div>
<div class="cont_li_bot"> <div class="cont_li_bot">
{{StatisticsInfo.operationVo.completedRepairCount}} {{StatisticsInfo.operationVo.completedRepairCount}}
@ -261,7 +261,7 @@
</template> </template>
<script> <script>
import { listArea, getStatistics, optionselect as getAreaOptionselect } from '@/api/system/area' import { getArealist, getStatistics, optionselect as getAreaOptionselect } from '@/api/system/area'
// import { getStatistics } from '@/api/system/area' // import { getStatistics } from '@/api/system/area'
import * as echarts from 'echarts'; import * as echarts from 'echarts';
export default { export default {
@ -269,16 +269,17 @@ export default {
data() { data() {
return { return {
areaOptions: [], areaOptions: [],
areaId: 14, areaId: null,
StatisticsInfo: {} StatisticsInfo: {}
}; };
}, },
created() { created() {
this.getAreaOptions();
}, },
mounted() { mounted() {
this.getAreastatistics() this.getAreaOptions();
}, },
methods: { methods: {
handleAreaChange(newAreaId) { handleAreaChange(newAreaId) {
@ -287,9 +288,16 @@ export default {
// this.getAreaList(this.areaId); // this.getAreaList(this.areaId);
this.getAreastatistics() this.getAreastatistics()
}, },
topage(){
this.$router.push('/finance/withdraw');
},
getAreaOptions() { getAreaOptions() {
getAreaOptionselect().then(response => { getArealist().then(response => {
this.areaOptions = response.data; this.areaOptions = response.data;
this.areaId= this.areaOptions[0].areaId
this.getAreastatistics()
console.log("areaOptions", this.areaOptions); console.log("areaOptions", this.areaOptions);
}); });
}, },