修改
This commit is contained in:
parent
5813d64b0f
commit
f5128e32d8
@ -2,7 +2,7 @@
|
||||
module.exports = {
|
||||
// baseUrl: 'https://www.nuoyunr.com/admin-api',
|
||||
baseUrl: 'http://127.0.0.1:48080/admin-api',
|
||||
// baseUrl: 'http://i3472v.natappfree.cc/admin-api',
|
||||
// baseUrl: 'http://xp5ane.natappfree.cc/admin-api',
|
||||
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
||||
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
||||
wsUrl: 'ws://127.0.0.1:48080',
|
||||
|
@ -17,6 +17,11 @@
|
||||
<view class="sou" @click="handleSearch">搜索</view>
|
||||
<view class="sou" @click="handleReset">重置</view>
|
||||
</view>
|
||||
<view style="display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem auto; justify-content: flex-start;">
|
||||
<view v-for="[key, value] in countMap" :key="key" style="flex: 0 0 auto;">
|
||||
<view>{{key}}: {{value}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="table-container">
|
||||
<view class="table-row header-row">
|
||||
<view class="table-cell">序号</view>
|
||||
@ -80,8 +85,8 @@ export default {
|
||||
},
|
||||
onReady() {
|
||||
this.setLandscape();
|
||||
this.getTableData();
|
||||
this.getCountMap()
|
||||
this.getTableData();
|
||||
this.getDictData()
|
||||
},
|
||||
onUnload() {
|
||||
@ -105,7 +110,7 @@ export default {
|
||||
method: 'get',
|
||||
params: this.queryParams
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
this.countMap = Object.entries(res.data)
|
||||
})
|
||||
},
|
||||
handleShow(id) {
|
||||
@ -140,16 +145,16 @@ export default {
|
||||
chooseStatus: "1"
|
||||
};
|
||||
this.tableData = []; // 重置时清空数据
|
||||
this.getTableData();
|
||||
this.getCountMap()
|
||||
this.getTableData();
|
||||
},
|
||||
handleSearch() {
|
||||
this.queryParams.pageNum = 1
|
||||
if (this.queryParams.queryTime) {
|
||||
this.queryParams.startTime = this.queryParams.queryTime[0];
|
||||
this.queryParams.endTime = this.queryParams.queryTime[1];
|
||||
this.getTableData();
|
||||
this.getCountMap()
|
||||
this.getTableData();
|
||||
}
|
||||
},
|
||||
getTableData(isLoadMore = false) {
|
||||
|
@ -28,24 +28,24 @@
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="threebox">
|
||||
<!-- @click="gostatistics()" -->
|
||||
<view class="t-box">
|
||||
<view class="xbai">合规合格</view>
|
||||
<view class="dbai">{{threenum.hgNum}}</view>
|
||||
<!-- <view class="threebox">-->
|
||||
<!-- <!– @click="gostatistics()" –>-->
|
||||
<!-- <view class="t-box">-->
|
||||
<!-- <view class="xbai">合规合格</view>-->
|
||||
<!-- <view class="dbai">{{threenum.hgNum}}</view>-->
|
||||
|
||||
</view>
|
||||
<view class="t-box">
|
||||
<view class="xbai">当日订单</view>
|
||||
<view class="dbai">{{threenum.todayOrderNum}}</view>
|
||||
<!-- </view>-->
|
||||
<!-- <view class="t-box">-->
|
||||
<!-- <view class="xbai">当日订单</view>-->
|
||||
<!-- <view class="dbai">{{threenum.todayOrderNum}}</view>-->
|
||||
|
||||
</view>
|
||||
<view class="t-box">
|
||||
<view class="xbai">双燃料合格</view>
|
||||
<view class="dbai">{{threenum.srlNum}}</view>
|
||||
<!-- </view>-->
|
||||
<!-- <view class="t-box">-->
|
||||
<!-- <view class="xbai">双燃料合格</view>-->
|
||||
<!-- <view class="dbai">{{threenum.srlNum}}</view>-->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="threebox" @click="gocode">
|
||||
扫一扫
|
||||
</view> -->
|
||||
@ -110,6 +110,16 @@
|
||||
</view>
|
||||
<text class="h-text">上门取车</text>
|
||||
</view>
|
||||
|
||||
<view class="f-box" @click="goPresent">
|
||||
<view class="j-icon" v-if="appAndPick.pickNum != 0">
|
||||
<text>{{appAndPick.pickNum }}</text>
|
||||
</view>
|
||||
<view class="jgbox" style="width: 32px;height: 32px">
|
||||
<image src="../../static/detection/present.png" mode=""></image>
|
||||
</view>
|
||||
<text class="h-text">使用说明</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -173,24 +183,59 @@
|
||||
appAndPick: {
|
||||
appointNum: 0,
|
||||
pickNum: 0
|
||||
}
|
||||
|
||||
},
|
||||
present: {},
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.baseUrl = this.$baseUrl
|
||||
this.startScrolling();
|
||||
this.getPresent()
|
||||
},
|
||||
onShow() {
|
||||
this.getindex()
|
||||
this.getAppointAndPickNum()
|
||||
this.getbottom()
|
||||
|
||||
},
|
||||
components: {
|
||||
tabBar,
|
||||
},
|
||||
methods: {
|
||||
goPresent(){
|
||||
if (!this.present){
|
||||
uni.showToast({
|
||||
title: '暂无使用说明',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
let old = this.present.filePath
|
||||
if (old[0] !== '/'){
|
||||
old = "/" + old
|
||||
}
|
||||
uni.downloadFile({
|
||||
url: this.$baseImageUrl+old,
|
||||
success: function (res) {
|
||||
var filePath = res.tempFilePath;
|
||||
uni.openDocument({
|
||||
filePath: filePath,
|
||||
showMenu: true,
|
||||
success: function (res) {
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getPresent(){
|
||||
request({
|
||||
url: '/inspectionFile/inspectionFile/getPresent',
|
||||
method: 'get'
|
||||
}).then(res => {
|
||||
if (res.data){
|
||||
this.present = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
async getAppointAndPickNum() {
|
||||
let res = await request({
|
||||
url: '/partnerOwn/partner/getAppointAndPickNum',
|
||||
|
BIN
static/detection/present.png
Normal file
BIN
static/detection/present.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue
Block a user