|
|
<view class="tdl-content">
|
|
|
<view class="top-tab">
|
|
|
<van-dropdown-menu>
|
|
|
<van-dropdown-item id="allSource" title="全部渠道">
|
|
|
<view style="margin: 24rpx">
|
|
|
<view class="filter">
|
|
|
<view wx:for="{{affList}}" wx:key="index">
|
|
|
<view data-value="{{item}}" wx:if="{{item.isSelect == false}}" class="more-item" style="width: 200rpx" bindtap="changeSource">{{item.value}}</view>
|
|
|
<view data-value="{{item}}" wx:else class="more-item-active" style="width: 200rpx" bindtap="changeSource">{{item.value}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-dropdown-item>
|
|
|
<van-dropdown-item id="allAff" title="全部调性">
|
|
|
<view style="margin: 24rpx">
|
|
|
<view class="filter">
|
|
|
<view wx:for="{{qgList}}" wx:key="index">
|
|
|
<view data-value="{{item}}" wx:if="{{item.isSelect == false}}" class="more-item" style="width: 200rpx" bindtap="changeQingGan">{{item.value}}</view>
|
|
|
<view data-value="{{item}}" wx:else class="more-item-active" style="width: 200rpx" bindtap="changeQingGan">{{item.value}}</view>
|
|
|
</view>
|
|
|
<view wx:for="{{wjList}}" wx:key="index">
|
|
|
<view data-value="{{item}}" wx:if="{{item.isSelect == false}}" class="more-item" style="width: 200rpx" bindtap="changeWeiJi">{{item.value}}</view>
|
|
|
<view data-value="{{item}}" wx:else class="more-item-active" style="width: 200rpx" bindtap="changeWeiJi">{{item.value}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-dropdown-item>
|
|
|
<van-dropdown-item id="sort" title="时间范围">
|
|
|
<view style="margin-top: -32rpx;">
|
|
|
<time-custom bind:change="changeTime"></time-custom>
|
|
|
</view>
|
|
|
</van-dropdown-item>
|
|
|
<van-dropdown-item id="back" title="更多筛选">
|
|
|
<view style="margin: 0rpx 32rpx 32rpx 32rpx;">
|
|
|
<view style="margin-top: 32rpx">排序方式</view>
|
|
|
<view class="filter">
|
|
|
<view wx:if="{{iTimeType == 0}}" class="more-item-active">发布时间</view>
|
|
|
<view wx:else bindtap="iTimeTypeChange" class="more-item">发布时间</view>
|
|
|
<view wx:if="{{iTimeType == 1}}" class="more-item-active">入库时间</view>
|
|
|
<view wx:else bindtap="iTimeTypeChange" class="more-item">入库时间</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-dropdown-item>
|
|
|
</van-dropdown-menu>
|
|
|
</view>
|
|
|
<view style="color: #333333;font-size: 12px;margin-top: 20rpx">共{{total}}条信息数据</view>
|
|
|
<van-checkbox-group value="{{ result }}" bind:change="onChange">
|
|
|
<view class="tdl-item" style="margin-top: 16rpx;" wx:for="{{brandDataList}}" wx:key="index">
|
|
|
<view class="top-time">
|
|
|
<view style="display: flex;width: 200px;height: 25px;line-height: 20px;">
|
|
|
<van-checkbox name="{{item._id}}" shape="square" class="van-checkbox"></van-checkbox>
|
|
|
<view class="top-time-item">{{item._source.sourcetime}}</view>
|
|
|
</view>
|
|
|
<view style="line-height: 12rpx;">
|
|
|
<van-tag wx:if="{{item._source.crisis == 1}}" color="#FFE9A8" text-color="#FFBF00">低级危机</van-tag>
|
|
|
<van-tag wx:if="{{item._source.crisis == 2}}" color="#FFDFCF" text-color="#FF6E25">中级危机</van-tag>
|
|
|
<van-tag wx:if="{{item._source.crisis == 3}}" color="#FFF0F1" text-color="#FF4852">高级危机</van-tag>
|
|
|
<van-tag wx:if="{{item._source.affections == 1}}" color="#F0F8FF" text-color="#0084FF">正面</van-tag>
|
|
|
<van-tag wx:if="{{item._source.affections == 3}}" color="#FFFBF0" text-color="#FDCD42">中性</van-tag>
|
|
|
<van-tag wx:if="{{item._source.affections == 2}}" color="#FFF0F1" text-color="#FF4852">负面</van-tag>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="middle-title" data-id='{{item}}' bindtap="toEventDetail" style="margin-top: 16rpx;">
|
|
|
{{item._source.title}}
|
|
|
</view>
|
|
|
<view class="bottom-source">
|
|
|
<view>来源:{{item._source.source}}</view>
|
|
|
<view style="margin-left: 64rpx;">作者:{{item._source.user_author}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-checkbox-group>
|
|
|
<view class="tdl-footer" style="display: flex;justify-content: flex-start;">
|
|
|
<view style="width: 20%;margin-top: 3%;margin-left: 64rpx">
|
|
|
<van-checkbox-group value="{{ isSelectAll }}" bind:change="changeSelectAll">
|
|
|
<van-checkbox name="0" shape="square" class="van-checkbox">全选</van-checkbox>
|
|
|
</van-checkbox-group>
|
|
|
</view>
|
|
|
<view style="margin-left: 36%;">
|
|
|
<van-button bind:click="openReport" color="#0084FF" custom-style="width: 120%" class="theme-add-btn" plain>生成数据</van-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<van-dialog use-slot title="导出选项" show="{{reportShow}}" bind:confirm="report" show-cancel-button>
|
|
|
<scroll-view scroll-y style="height: 750rpx;margin: 32rpx">
|
|
|
<view>文件名称</view>
|
|
|
<view style="color:#999999;font-size: 14px;margin:24rpx">{{fileName}}</view>
|
|
|
<view>导出数量</view>
|
|
|
<view style="color:#999999;margin: 24rpx;font-size: 14px;">共导出 <span style="color: #0084FF">{{result.length == 0 ? total : result.length}}</span> 条数据,以xlsx格式导出</view>
|
|
|
<view>导出字段</view>
|
|
|
<view class="filter" >
|
|
|
<view wx:for="{{reportOption}}" wx:key="index">
|
|
|
<view data-data="{{item}}" data-index="{{index}}" wx:if="{{item.checked == 0}}" class="more-item" style="width: 162rpx" bindtap="fieldChange">{{item.name}}</view>
|
|
|
<view data-data="{{item}}" data-index="{{index}}" wx:else class="more-item-active" style="width: 162rpx" bindtap="fieldChange">{{item.name}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
</van-dialog>
|
|
|
</view> |