修改
This commit is contained in:
parent
6a8174bf64
commit
5813d64b0f
@ -1,8 +1,8 @@
|
||||
// 应用全局配置
|
||||
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://127.0.0.1:48080/admin-api',
|
||||
// baseUrl: 'http://i3472v.natappfree.cc/admin-api',
|
||||
imagesUrl: 'http://www.nuoyunr.com/lananRsc',
|
||||
baseImageUrl: 'https://www.nuoyunr.com/minio',
|
||||
wsUrl: 'ws://127.0.0.1:48080',
|
||||
|
@ -11,8 +11,9 @@
|
||||
<view class="bai-title">当日订单</view>
|
||||
<view style="width: 15px; height: 100%;"></view>
|
||||
</view>
|
||||
<view class="example-body" style="width: 75%;margin-top: 1rem;display: flex;justify-content: space-between">
|
||||
<view class="example-body" style="width: 100%;margin-top: 1rem;display: flex;justify-content: space-between;">
|
||||
<uni-datetime-picker v-model="queryParams.queryTime" type="daterange" @maskClick="maskClick"/>
|
||||
<radio style="margin-left: 1rem;display: flex;align-items: center" :checked="queryParams.chooseStatus === item.value" @click="queryParams.chooseStatus = item.value" v-for="item in statues" :key="item.value">{{item.label}}</radio>
|
||||
<view class="sou" @click="handleSearch">搜索</view>
|
||||
<view class="sou" @click="handleReset">重置</view>
|
||||
</view>
|
||||
@ -55,15 +56,32 @@ export default {
|
||||
queryTime: null,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
chooseStatus: "1"
|
||||
},
|
||||
loading: false, // 加载更多时的标志位
|
||||
payTypes: [],
|
||||
pages: 0,
|
||||
statues: [
|
||||
{
|
||||
label: "全部",
|
||||
value: "1",
|
||||
},
|
||||
{
|
||||
label: "进行中",
|
||||
value: "2",
|
||||
},
|
||||
{
|
||||
label: "已完成",
|
||||
value: "3",
|
||||
},
|
||||
],
|
||||
countMap: []
|
||||
};
|
||||
},
|
||||
onReady() {
|
||||
this.setLandscape();
|
||||
this.getTableData();
|
||||
this.getCountMap()
|
||||
this.getDictData()
|
||||
},
|
||||
onUnload() {
|
||||
@ -81,6 +99,15 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getCountMap(){
|
||||
request({
|
||||
url: '/partnerOwn/partner/getTypeCount',
|
||||
method: 'get',
|
||||
params: this.queryParams
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
})
|
||||
},
|
||||
handleShow(id) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/index/orderdetails?inspectionInfoId=" + id
|
||||
@ -110,15 +137,19 @@ export default {
|
||||
queryTime: null,
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
chooseStatus: "1"
|
||||
};
|
||||
this.tableData = []; // 重置时清空数据
|
||||
this.getTableData();
|
||||
this.getCountMap()
|
||||
},
|
||||
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()
|
||||
}
|
||||
},
|
||||
getTableData(isLoadMore = false) {
|
||||
@ -291,4 +322,6 @@ export default {
|
||||
justify-content: center; /* 水平居中 */
|
||||
box-sizing: border-box; /* 确保 padding 和 border 不会增加元素的实际宽度 */
|
||||
}
|
||||
.example-body{
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user