修改
This commit is contained in:
parent
5813d64b0f
commit
f5128e32d8
@ -2,7 +2,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
// baseUrl: 'https://www.nuoyunr.com/admin-api',
|
// baseUrl: 'https://www.nuoyunr.com/admin-api',
|
||||||
baseUrl: 'http://127.0.0.1:48080/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',
|
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
||||||
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
||||||
wsUrl: 'ws://127.0.0.1:48080',
|
wsUrl: 'ws://127.0.0.1:48080',
|
||||||
|
@ -17,6 +17,11 @@
|
|||||||
<view class="sou" @click="handleSearch">搜索</view>
|
<view class="sou" @click="handleSearch">搜索</view>
|
||||||
<view class="sou" @click="handleReset">重置</view>
|
<view class="sou" @click="handleReset">重置</view>
|
||||||
</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-container">
|
||||||
<view class="table-row header-row">
|
<view class="table-row header-row">
|
||||||
<view class="table-cell">序号</view>
|
<view class="table-cell">序号</view>
|
||||||
@ -75,13 +80,13 @@ export default {
|
|||||||
value: "3",
|
value: "3",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
countMap: []
|
countMap:[]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
this.setLandscape();
|
this.setLandscape();
|
||||||
this.getTableData();
|
|
||||||
this.getCountMap()
|
this.getCountMap()
|
||||||
|
this.getTableData();
|
||||||
this.getDictData()
|
this.getDictData()
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
@ -105,7 +110,7 @@ export default {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
params: this.queryParams
|
params: this.queryParams
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res)
|
this.countMap = Object.entries(res.data)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleShow(id) {
|
handleShow(id) {
|
||||||
@ -140,16 +145,16 @@ export default {
|
|||||||
chooseStatus: "1"
|
chooseStatus: "1"
|
||||||
};
|
};
|
||||||
this.tableData = []; // 重置时清空数据
|
this.tableData = []; // 重置时清空数据
|
||||||
this.getTableData();
|
|
||||||
this.getCountMap()
|
this.getCountMap()
|
||||||
|
this.getTableData();
|
||||||
},
|
},
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
if (this.queryParams.queryTime) {
|
if (this.queryParams.queryTime) {
|
||||||
this.queryParams.startTime = this.queryParams.queryTime[0];
|
this.queryParams.startTime = this.queryParams.queryTime[0];
|
||||||
this.queryParams.endTime = this.queryParams.queryTime[1];
|
this.queryParams.endTime = this.queryParams.queryTime[1];
|
||||||
this.getTableData();
|
|
||||||
this.getCountMap()
|
this.getCountMap()
|
||||||
|
this.getTableData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getTableData(isLoadMore = false) {
|
getTableData(isLoadMore = false) {
|
||||||
|
@ -28,24 +28,24 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="threebox">
|
<!-- <view class="threebox">-->
|
||||||
<!-- @click="gostatistics()" -->
|
<!-- <!– @click="gostatistics()" –>-->
|
||||||
<view class="t-box">
|
<!-- <view class="t-box">-->
|
||||||
<view class="xbai">合规合格</view>
|
<!-- <view class="xbai">合规合格</view>-->
|
||||||
<view class="dbai">{{threenum.hgNum}}</view>
|
<!-- <view class="dbai">{{threenum.hgNum}}</view>-->
|
||||||
|
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<view class="t-box">
|
<!-- <view class="t-box">-->
|
||||||
<view class="xbai">当日订单</view>
|
<!-- <view class="xbai">当日订单</view>-->
|
||||||
<view class="dbai">{{threenum.todayOrderNum}}</view>
|
<!-- <view class="dbai">{{threenum.todayOrderNum}}</view>-->
|
||||||
|
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<view class="t-box">
|
<!-- <view class="t-box">-->
|
||||||
<view class="xbai">双燃料合格</view>
|
<!-- <view class="xbai">双燃料合格</view>-->
|
||||||
<view class="dbai">{{threenum.srlNum}}</view>
|
<!-- <view class="dbai">{{threenum.srlNum}}</view>-->
|
||||||
|
|
||||||
</view>
|
<!-- </view>-->
|
||||||
</view>
|
<!-- </view>-->
|
||||||
<!-- <view class="threebox" @click="gocode">
|
<!-- <view class="threebox" @click="gocode">
|
||||||
扫一扫
|
扫一扫
|
||||||
</view> -->
|
</view> -->
|
||||||
@ -110,6 +110,16 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="h-text">上门取车</text>
|
<text class="h-text">上门取车</text>
|
||||||
</view>
|
</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>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -173,24 +183,59 @@
|
|||||||
appAndPick: {
|
appAndPick: {
|
||||||
appointNum: 0,
|
appointNum: 0,
|
||||||
pickNum: 0
|
pickNum: 0
|
||||||
}
|
},
|
||||||
|
present: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.baseUrl = this.$baseUrl
|
this.baseUrl = this.$baseUrl
|
||||||
this.startScrolling();
|
this.startScrolling();
|
||||||
|
this.getPresent()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getindex()
|
this.getindex()
|
||||||
this.getAppointAndPickNum()
|
this.getAppointAndPickNum()
|
||||||
this.getbottom()
|
this.getbottom()
|
||||||
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
tabBar,
|
tabBar,
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
async getAppointAndPickNum() {
|
||||||
let res = await request({
|
let res = await request({
|
||||||
url: '/partnerOwn/partner/getAppointAndPickNum',
|
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