调整工作台接口,处理特殊字符
This commit is contained in:
parent
84c6c54e58
commit
883461c852
@ -109,7 +109,7 @@ Component({
|
||||
return
|
||||
}
|
||||
this.setData({
|
||||
columns: parks?.map(item => `${item.meterNo}-${item.address}${item.tenement?.name ? '-' + item.tenement?.name : ''}`),
|
||||
columns: parks?.map(item => `${item.meterNo}-${item.address}${item.shortName ? '-' + item.shortName : ''}`),
|
||||
list: parks,
|
||||
})
|
||||
}
|
||||
|
@ -1 +1,3 @@
|
||||
/* components/searchSelect/index.wxss */
|
||||
.van-ellipsis van-picker-column__item {
|
||||
}
|
@ -23,7 +23,11 @@ Component({
|
||||
keywordTemp: "",
|
||||
page: 1,
|
||||
},
|
||||
|
||||
lifetimes: {
|
||||
attached() {
|
||||
this.init();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
|
@ -14,82 +14,80 @@
|
||||
</van-button>
|
||||
</van-field>
|
||||
|
||||
<van-empty wx:if="{{!park}}" description="选择园区后查看" />
|
||||
<view wx:else>
|
||||
<van-field
|
||||
value="{{ keyword }}"
|
||||
placeholder="请输入关键字"
|
||||
label="关键字"
|
||||
border="{{ false }}"
|
||||
use-button-slot
|
||||
bind:change="onChangeKeyword"
|
||||
title-width="100rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onSearch">
|
||||
搜索
|
||||
</van-button>
|
||||
</van-field>
|
||||
<view>
|
||||
<view wx:if="{{list.length}}">
|
||||
<view class="tableWrapper">
|
||||
<view class="table">
|
||||
<view class="thead">
|
||||
<view class="th" style="width: 70rpx"> </view>
|
||||
<view class="th" style="width: 250rpx"> 商户名字 </view>
|
||||
<view class="th" style="width: 150rpx"> 充值金额 </view>
|
||||
<view class="th" style="width: 200rpx"> 操作 </view>
|
||||
</view>
|
||||
<view class="tbody">
|
||||
<van-radio-group value="{{ record }}" bind:change="onChangeSelectRecharge">
|
||||
<block wx:for="{{list}}" wx:for-index="itemIndex" wx:key="item">
|
||||
<view class="tr">
|
||||
<view class="th" style="width: 60rpx">
|
||||
<van-radio wx:if="{{item.orderStatus !== '已退回'}}" name="{{item.id}}"></van-radio>
|
||||
</view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.tenement.shortName }} </view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.money }} </view>
|
||||
<view class="th" style="width: 200rpx">
|
||||
<view class="primaryTextBtn" bind:tap="jumpToDetail" data-id="{{item.id}}">
|
||||
查看详细
|
||||
</view>
|
||||
<van-field
|
||||
value="{{ keyword }}"
|
||||
placeholder="请输入关键字"
|
||||
label="关键字"
|
||||
border="{{ false }}"
|
||||
use-button-slot
|
||||
bind:change="onChangeKeyword"
|
||||
title-width="100rpx"
|
||||
>
|
||||
<van-button slot="button" size="small" type="primary" bind:click="onSearch">
|
||||
搜索
|
||||
</van-button>
|
||||
</van-field>
|
||||
<view>
|
||||
<view wx:if="{{list.length}}">
|
||||
<view class="tableWrapper">
|
||||
<view class="table">
|
||||
<view class="thead">
|
||||
<view class="th" style="width: 70rpx"> </view>
|
||||
<view class="th" style="width: 250rpx"> 商户名字 </view>
|
||||
<view class="th" style="width: 150rpx"> 充值金额 </view>
|
||||
<view class="th" style="width: 200rpx"> 操作 </view>
|
||||
</view>
|
||||
<view class="tbody">
|
||||
<van-radio-group value="{{ record }}" bind:change="onChangeSelectRecharge">
|
||||
<block wx:for="{{list}}" wx:for-index="itemIndex" wx:key="item">
|
||||
<view class="tr">
|
||||
<view class="th" style="width: 60rpx">
|
||||
<van-radio wx:if="{{item.orderStatus !== '已退回'}}" name="{{item.id}}"></van-radio>
|
||||
</view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.tenement.shortName }} </view>
|
||||
<view class="th" style="width: 200rpx"> {{ item.money }} </view>
|
||||
<view class="th" style="width: 200rpx">
|
||||
<view class="primaryTextBtn" bind:tap="jumpToDetail" data-id="{{item.id}}">
|
||||
查看详细
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</van-radio-group>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<pagination
|
||||
currentIndex="{{page}}"
|
||||
totalPage="{{totalPage}}"
|
||||
bind:pagingChange="onChangePage"
|
||||
/>
|
||||
|
||||
</view>
|
||||
<empty bind:refresh="init" wx:else />
|
||||
<view class="operate">
|
||||
<view style="margin-top: 60rpx; margin-bottom: 60rpx;display: flex; justify-content: center; align-items: center;">
|
||||
<van-button
|
||||
type="info"
|
||||
size="small"
|
||||
style="margin-right: 30rpx;"
|
||||
bind:click="handleApprove"
|
||||
data-status="0"
|
||||
disabled="{{!record}}"
|
||||
> 同意 </van-button>
|
||||
<van-button
|
||||
size="small"
|
||||
bind:click="handleClear"
|
||||
disabled="{{!record}}"
|
||||
bind:click="handleApprove"
|
||||
data-status="1"
|
||||
> 拒绝 </van-button>
|
||||
</view>
|
||||
|
||||
<pagination
|
||||
currentIndex="{{page}}"
|
||||
totalPage="{{totalPage}}"
|
||||
bind:pagingChange="onChangePage"
|
||||
/>
|
||||
|
||||
</view>
|
||||
<empty bind:refresh="init" wx:else />
|
||||
<view class="operate">
|
||||
<view style="margin-top: 60rpx; margin-bottom: 60rpx;display: flex; justify-content: center; align-items: center;">
|
||||
<van-button
|
||||
type="info"
|
||||
size="small"
|
||||
style="margin-right: 30rpx;"
|
||||
bind:click="handleApprove"
|
||||
data-status="0"
|
||||
disabled="{{!record}}"
|
||||
> 同意 </van-button>
|
||||
<van-button
|
||||
size="small"
|
||||
bind:click="handleClear"
|
||||
disabled="{{!record}}"
|
||||
bind:click="handleApprove"
|
||||
data-status="1"
|
||||
> 拒绝 </van-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<search-select
|
||||
show="{{show}}"
|
||||
title="{{title}}"
|
||||
|
@ -61,6 +61,9 @@ Component({
|
||||
},
|
||||
async init() {
|
||||
const { page, keyword, park } = this.data;
|
||||
if (!park) {
|
||||
return;
|
||||
}
|
||||
const { code, message, data, total } = await getParkMeterList({ park, keyword, page })
|
||||
if (code !== OK) {
|
||||
alertInfo(message);
|
||||
|
@ -18,12 +18,12 @@ export const getTenementMeterList = async function(tid) {
|
||||
|
||||
// 获取某一园区下的电表列表
|
||||
export const getParkMeterList = async function({park = "", keyword = "", page = 1}) {
|
||||
return await GET(`/equipment/getOperateMeterList?page=${page}&park=${park}&keyword=${keyword}`);
|
||||
return await GET(`/equipment/getOperateMeterList?page=${page}&park=${park}&keyword=${escape(keyword)}`);
|
||||
}
|
||||
|
||||
// 获取某一园区下的简洁电表列表
|
||||
export const getParkSimpleMeterList = async function({park = "", keyword = "", page = 1}) {
|
||||
return await GET(`/work/getWorkMeter?page=${page}&park=${park}&keyword=${keyword}`);
|
||||
return await GET(`/work/getWorkMeter?page=${page}&park=${park}&keyword=${escape(keyword)}`);
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,8 +33,8 @@ export const handleRecharge = async function(park, data) {
|
||||
}
|
||||
|
||||
// 获取后台审核列表
|
||||
export const getRechargeApproveList = async function({park, page, keyword}) {
|
||||
return await GET(`/wx/getTopExamineList?park=${park}&page=${page}&keyword=${keyword}`)
|
||||
export const getRechargeApproveList = async function({park = "", page, keyword}) {
|
||||
return await GET(`/wx/getTopExamineList?park=${park}&page=${page}&keyword=${escape(keyword)}`)
|
||||
}
|
||||
|
||||
// 对公审核
|
||||
|
Loading…
x
Reference in New Issue
Block a user