This commit is contained in:
Sliverber 2024-07-19 20:16:28 +08:00
parent bf6bc1fd5d
commit c1f6f38248
3 changed files with 30 additions and 14 deletions

View File

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

View File

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

View File

@ -20,7 +20,7 @@
</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="bot_btn">提现</div>
<div class="bot_btn" @click="topage()">提现</div>
</div>
<div class="tops_right">
<div class="tops_right_top">
@ -209,7 +209,7 @@
<div class="cont_li">
<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 class="cont_li_bot">
{{StatisticsInfo.operationVo.replacementOrderCount}}
@ -217,7 +217,7 @@
</div>
<div class="cont_li">
<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 class="cont_li_bot">
{{StatisticsInfo.operationVo.dispatchCount}}
@ -225,7 +225,7 @@
</div>
<div class="cont_li">
<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 class="cont_li_bot">
{{StatisticsInfo.operationVo.repairCount}}
@ -233,7 +233,7 @@
</div>
<div class="cont_li">
<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 class="cont_li_bot">
{{StatisticsInfo.operationVo.completedReplacementOrderCount}}
@ -241,7 +241,7 @@
</div>
<div class="cont_li">
<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 class="cont_li_bot">
{{StatisticsInfo.operationVo.completedDispatchCount}}
@ -249,7 +249,7 @@
</div>
<div class="cont_li">
<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 class="cont_li_bot">
{{StatisticsInfo.operationVo.completedRepairCount}}
@ -261,7 +261,7 @@
</template>
<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 * as echarts from 'echarts';
export default {
@ -269,16 +269,17 @@ export default {
data() {
return {
areaOptions: [],
areaId: 14,
areaId: null,
StatisticsInfo: {}
};
},
created() {
this.getAreaOptions();
},
mounted() {
this.getAreastatistics()
this.getAreaOptions();
},
methods: {
handleAreaChange(newAreaId) {
@ -287,9 +288,16 @@ export default {
// this.getAreaList(this.areaId);
this.getAreastatistics()
},
topage(){
this.$router.push('/finance/withdraw');
},
getAreaOptions() {
getAreaOptionselect().then(response => {
getArealist().then(response => {
this.areaOptions = response.data;
this.areaId= this.areaOptions[0].areaId
this.getAreastatistics()
console.log("areaOptions", this.areaOptions);
});
},