|
@@ -107,14 +107,14 @@
|
|
|
<img class="statistic-icon" src="../../assets/imgs/dot.png" alt="">
|
|
<img class="statistic-icon" src="../../assets/imgs/dot.png" alt="">
|
|
|
<div class="statistic-label fontMF">累计运单/车</div>
|
|
<div class="statistic-label fontMF">累计运单/车</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <counts bg :startVal="0" :length="6" :endVal='totalStatistics.totalOrders' separator="" />
|
|
|
|
|
|
|
+ <counts bg :startVal="0" :length="9" :endVal='totalStatistics.totalOrders' separator="" />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="statistic-item">
|
|
<div class="statistic-item">
|
|
|
<div class="statistic-header">
|
|
<div class="statistic-header">
|
|
|
<img class="statistic-icon" src="../../assets/imgs/dot.png" alt="">
|
|
<img class="statistic-icon" src="../../assets/imgs/dot.png" alt="">
|
|
|
<div class="statistic-label fontMF">累计运载/吨</div>
|
|
<div class="statistic-label fontMF">累计运载/吨</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <counts bg :startVal="0" :length="6" :endVal='totalStatistics.totalWeight.toFixed(0)'
|
|
|
|
|
|
|
+ <counts bg :startVal="0" :length="9" :endVal='totalStatistics.totalWeight.toFixed(0)'
|
|
|
separator="" />
|
|
separator="" />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="statistic-item">
|
|
<div class="statistic-item">
|
|
@@ -122,7 +122,7 @@
|
|
|
<img class="statistic-icon" src="../../assets/imgs/dot.png" alt="">
|
|
<img class="statistic-icon" src="../../assets/imgs/dot.png" alt="">
|
|
|
<div class="statistic-label fontMF">配送中车辆数/辆</div>
|
|
<div class="statistic-label fontMF">配送中车辆数/辆</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <counts bg :startVal="0" :length="6" :endVal='totalStatistics.deliveringVehicles'
|
|
|
|
|
|
|
+ <counts bg :startVal="0" :length="9" :endVal='totalStatistics.deliveringVehicles'
|
|
|
separator="" />
|
|
separator="" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -132,6 +132,15 @@
|
|
|
<div id="amap-container" style="width: 100%; height: 100%;"></div>
|
|
<div id="amap-container" style="width: 100%; height: 100%;"></div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="center-panel-bottom">
|
|
|
|
|
+ <div class="section-title fontMF">智调数据库</div>
|
|
|
|
|
+ <div class="btn-group">
|
|
|
|
|
+ <div :class="{ 'act': btn_current == 1 }" @click="openFunction(1)">运单</div>
|
|
|
|
|
+ <div :class="{ 'act': btn_current == 2 }" @click="openFunction(2)">车辆</div>
|
|
|
|
|
+ <div :class="{ 'act': btn_current == 3 }" @click="openFunction(3)">司机</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="section-title2 fontMF"></div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right-panel">
|
|
<div class="right-panel">
|
|
|
<div class="section-title fontMF" style="margin-top: 0px;margin-left: 0 !important;">车辆入驻统计</div>
|
|
<div class="section-title fontMF" style="margin-top: 0px;margin-left: 0 !important;">车辆入驻统计</div>
|
|
@@ -213,6 +222,25 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <a-modal v-model:open="open" :footer="null" wrapClassName="wrapClassName" title="" :width="1197">
|
|
|
|
|
+ <a-table :dataSource="dataSource" :loading="tableLoading" :columns="columns" :scroll="{ x: 'max-content' }"
|
|
|
|
|
+ :pagination="{
|
|
|
|
|
+ position: ['bottomRight'],
|
|
|
|
|
+ showTotal: total => `共 ${totalCount} 条记录`,
|
|
|
|
|
+ showSizeChanger: false,
|
|
|
|
|
+ size: 'small',
|
|
|
|
|
+ current: pageIndex,
|
|
|
|
|
+ pageSize: pageSize,
|
|
|
|
|
+ total: totalCount,
|
|
|
|
|
+ }" @change="handleChangePage"
|
|
|
|
|
+ :row-class-name="(_record, index) => (index % 2 === 1 ? 'table-striped1' : 'table-striped2')">
|
|
|
|
|
+ <template #bodyCell="{ column, record, index }">
|
|
|
|
|
+ <template v-if="column.key === 'index'">
|
|
|
|
|
+ <span>{{ (pageIndex - 1) * pageSize + index + 1 }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </a-modal>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -227,10 +255,11 @@ import { POST, GET } from '@/server/api/common';
|
|
|
import * as echarts from "echarts";
|
|
import * as echarts from "echarts";
|
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
|
import { getCurrentInstance } from 'vue';
|
|
import { getCurrentInstance } from 'vue';
|
|
|
|
|
+import axios from 'axios';
|
|
|
import $ from 'jquery';
|
|
import $ from 'jquery';
|
|
|
const { appContext } = getCurrentInstance();
|
|
const { appContext } = getCurrentInstance();
|
|
|
const $config = appContext.config.globalProperties.$config;
|
|
const $config = appContext.config.globalProperties.$config;
|
|
|
-
|
|
|
|
|
|
|
+import data from './data'
|
|
|
// 注册组件
|
|
// 注册组件
|
|
|
const components = { Charts, Chartsbar, count, counts };
|
|
const components = { Charts, Chartsbar, count, counts };
|
|
|
|
|
|
|
@@ -239,7 +268,73 @@ const nowWeek = ref('');
|
|
|
const nowDate = ref('');
|
|
const nowDate = ref('');
|
|
|
const nowTime = ref('');
|
|
const nowTime = ref('');
|
|
|
|
|
|
|
|
|
|
+//智调数据库
|
|
|
|
|
+const btn_current = ref(1)
|
|
|
|
|
+const open = ref(false)
|
|
|
|
|
+const pageIndex = ref(1);
|
|
|
|
|
+const pageSize = ref(10);
|
|
|
|
|
+const totalCount = ref(0)
|
|
|
const tabIndex = ref(1);
|
|
const tabIndex = ref(1);
|
|
|
|
|
+const tableLoading = ref(false)
|
|
|
|
|
+const dataSource = ref([])
|
|
|
|
|
+
|
|
|
|
|
+const columns = ref(data.waybill)
|
|
|
|
|
+const handleChangePage = (page) => {
|
|
|
|
|
+ pageIndex.value = page.current
|
|
|
|
|
+ pageSize.value = page.pageSize
|
|
|
|
|
+ openFunction()
|
|
|
|
|
+}
|
|
|
|
|
+const openFunction = async (value) => {
|
|
|
|
|
+ if (value) {
|
|
|
|
|
+ pageIndex.value = 1
|
|
|
|
|
+ btn_current.value = value
|
|
|
|
|
+ dataSource.value = []
|
|
|
|
|
+ if (value == 1) {
|
|
|
|
|
+ columns.value = data.waybill
|
|
|
|
|
+ } else if (value == 2) {
|
|
|
|
|
+ columns.value = data.carThead
|
|
|
|
|
+ } else if (value == 3) {
|
|
|
|
|
+ columns.value = data.driverThead
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ tableLoading.value = true
|
|
|
|
|
+ open.value = true
|
|
|
|
|
+ let url, method
|
|
|
|
|
+ if (btn_current.value == 1) {
|
|
|
|
|
+ url = 'http://elms.sckaiwu.cn/api/elms-data/waybill/queryWaybillByPage2'
|
|
|
|
|
+ method = 'POST'
|
|
|
|
|
+ } else if (btn_current.value == 2) {
|
|
|
|
|
+ url = 'http://elms.sckaiwu.cn/api/elms-data/truck/page2'
|
|
|
|
|
+ method = 'GET'
|
|
|
|
|
+ } else if (btn_current.value == 3) {
|
|
|
|
|
+ url = 'http://elms.sckaiwu.cn/api/elms-data/driver/page2'
|
|
|
|
|
+ method = 'GET'
|
|
|
|
|
+ }
|
|
|
|
|
+ let res = await axios({
|
|
|
|
|
+ method: method,
|
|
|
|
|
+ url,
|
|
|
|
|
+ data: {
|
|
|
|
|
+ pageNo: pageIndex.value,
|
|
|
|
|
+ pageSize: pageSize.value
|
|
|
|
|
+ },
|
|
|
|
|
+ params: {
|
|
|
|
|
+ pageNo: pageIndex.value,
|
|
|
|
|
+ pageSize: pageSize.value
|
|
|
|
|
+ },
|
|
|
|
|
+ timeout: 10000,
|
|
|
|
|
+ })
|
|
|
|
|
+ tableLoading.value = false
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ totalCount.value = res.data.data.total
|
|
|
|
|
+ dataSource.value = res.data.data.list
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
let newTimer = null;
|
|
let newTimer = null;
|
|
|
let time1 = null;
|
|
let time1 = null;
|
|
@@ -1227,6 +1322,76 @@ onBeforeUnmount(() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.center-panel {
|
|
.center-panel {
|
|
|
|
|
+ .center-panel-bottom {
|
|
|
|
|
+ padding-top: 4px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+
|
|
|
|
|
+ .btn-group {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ top: 14px;
|
|
|
|
|
+ padding: 0 23px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+
|
|
|
|
|
+ div {
|
|
|
|
|
+ width: 59px;
|
|
|
|
|
+ height: 52px;
|
|
|
|
|
+ background: url(../../assets/img/btn.png) no-repeat;
|
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ line-height: 52px;
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
|
+ font-family: MFLiHei;
|
|
|
|
|
+ color: #3A93FF;
|
|
|
|
|
+ letter-spacing: 2px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .act {
|
|
|
|
|
+ width: 71px;
|
|
|
|
|
+ height: 62px;
|
|
|
|
|
+ background: url(../../assets/img/btn-ac.png) no-repeat;
|
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
|
+ font-size: 17px;
|
|
|
|
|
+ line-height: 62px;
|
|
|
|
|
+ color: #01ffff;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-title {
|
|
|
|
|
+ width: 313px;
|
|
|
|
|
+ height: 24px;
|
|
|
|
|
+ background-image: url(../../assets/imgs/tits_bg.png);
|
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
|
+ text-indent: 25px;
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ line-height: 15px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-title2 {
|
|
|
|
|
+ width: 313px;
|
|
|
|
|
+ height: 24px;
|
|
|
|
|
+ background-image: url(../../assets/imgs/tits_bg2.png);
|
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ font-size: 18px;
|
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
|
+ text-indent: 25px;
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ line-height: 15px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.statistics-top {
|
|
.statistics-top {
|
|
|
width: 1018px;
|
|
width: 1018px;
|
|
|
height: 138px;
|
|
height: 138px;
|
|
@@ -1266,7 +1431,7 @@ onBeforeUnmount(() => {
|
|
|
.map-container {
|
|
.map-container {
|
|
|
margin-top: 14px;
|
|
margin-top: 14px;
|
|
|
width: 1018px;
|
|
width: 1018px;
|
|
|
- height: 860px;
|
|
|
|
|
|
|
+ height: 770px;
|
|
|
// width: 1018px;
|
|
// width: 1018px;
|
|
|
// height: 658px;
|
|
// height: 658px;
|
|
|
// background-image: url(../../assets/imgs/map_bg.png);
|
|
// background-image: url(../../assets/imgs/map_bg.png);
|
|
@@ -1448,57 +1613,4 @@ onBeforeUnmount(() => {
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-#right_modal {
|
|
|
|
|
- .mask {
|
|
|
|
|
- position: fixed;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- z-index: 19;
|
|
|
|
|
- display: none;
|
|
|
|
|
- background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .model_content {
|
|
|
|
|
- position: fixed;
|
|
|
|
|
- width: 930px;
|
|
|
|
|
- height: 1030px;
|
|
|
|
|
- right: -930px;
|
|
|
|
|
- bottom: 10px;
|
|
|
|
|
- background-image: url(https://ore-1302260927.cos.ap-chengdu.myqcloud.com/data_screen/image/23.png);
|
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- z-index: 20;
|
|
|
|
|
-
|
|
|
|
|
- .model_title {
|
|
|
|
|
- font-size: 18px;
|
|
|
|
|
- font-weight: 400;
|
|
|
|
|
- color: #ffffff;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- line-height: 32px;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .list {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
|
- justify-content: space-between;
|
|
|
|
|
- padding: 0 60px;
|
|
|
|
|
-
|
|
|
|
|
- .list_item {
|
|
|
|
|
- width: 48%;
|
|
|
|
|
- margin-bottom: 20px;
|
|
|
|
|
-
|
|
|
|
|
- .title {
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- color: #ffffff;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
</style>
|
|
</style>
|