61 lines
2.6 KiB
Plaintext
61 lines
2.6 KiB
Plaintext
<view class="container">
|
|
<view class="page-header">
|
|
<view class="page-title">报告</view>
|
|
<view class="page-subtitle">生成与历史查询</view>
|
|
</view>
|
|
<view class="card">
|
|
<view class="card-title">生成报告</view>
|
|
<view class="section-title">类型(week/month/custom)</view>
|
|
<input class="input" data-key="type" value="{{type}}" bindinput="onInput" />
|
|
<view class="section-title">开始/结束日期(自定义)</view>
|
|
<view class="row">
|
|
<input class="input" data-key="start_date" value="{{start_date}}" bindinput="onInput" />
|
|
<input class="input" data-key="end_date" value="{{end_date}}" bindinput="onInput" />
|
|
</view>
|
|
<view class="section-title">包含内容(逗号分隔)</view>
|
|
<input class="input" data-key="include" value="{{include}}" bindinput="onInput" />
|
|
<view class="section-title">脱敏金额/姓名(true/false)</view>
|
|
<view class="row">
|
|
<input class="input" data-key="mask_money" value="{{mask_money}}" bindinput="onInput" />
|
|
<input class="input" data-key="mask_names" value="{{mask_names}}" bindinput="onInput" />
|
|
</view>
|
|
<view class="row action-row">
|
|
<button class="btn" bindtap="generate">生成</button>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="card">
|
|
<view class="card-title">历史记录</view>
|
|
<view class="section-title">页码/每页</view>
|
|
<view class="row">
|
|
<input class="input" type="number" data-key="page" value="{{page}}" bindinput="onInput" />
|
|
<input class="input" type="number" data-key="pageSize" value="{{pageSize}}" bindinput="onInput" />
|
|
</view>
|
|
<view class="row pagination">
|
|
<view class="badge">页码 {{page || 1}}</view>
|
|
<view class="badge">每页 {{pageSize || 10}}</view>
|
|
</view>
|
|
<view class="section-hint">修改上方页码/每页后点击查询历史</view>
|
|
<view class="row action-row">
|
|
<button class="btn btn-secondary" bindtap="history">查询历史</button>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="card result-card" wx:if="{{result}}">
|
|
<view class="result-header">
|
|
<view class="result-title">结果</view>
|
|
<view class="badge">原始数据</view>
|
|
</view>
|
|
<view class="result-hint">已为你保留完整响应</view>
|
|
<view wx:if="{{resultCards.length}}" class="list">
|
|
<view wx:for="{{resultCards}}" wx:key="label" class="card card--inner list-item">
|
|
<view class="row" style="justify-content: space-between;">
|
|
<view class="module-title">{{item.label}}</view>
|
|
<view class="badge">{{item.value}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="result">{{result}}</view>
|
|
</view>
|
|
</view>
|