|
|
<view class="edl-content">
|
|
|
<view class="top-tab" style="display: flex; justify-content: flex-start;">
|
|
|
<view style="margin-top: 15rpx;margin-left: 24rpx">
|
|
|
<van-dropdown-menu>
|
|
|
<van-dropdown-item value="{{sTitleType}}" options="{{searchOption}}" bind:change="brandChange"></van-dropdown-item>
|
|
|
<!-- <van-dropdown-item value="{{sTitleType}}" options="{{searchOption}}"></van-dropdown-item> -->
|
|
|
</van-dropdown-menu>
|
|
|
</view>
|
|
|
<view style="width: 75%;">
|
|
|
<van-search value="{{ sTitle }}" bind:search="onSearch" bind:change="sTitleChange" placeholder="请输入搜索关键词" use-action-slot>
|
|
|
<view slot="action" bind:tap="onSearch">搜索</view> </van-search>
|
|
|
</view>
|
|
|
</view>
|
|
|
<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>
|
|
|
<van-cell title="选择开始时间" is-link value="{{ sStartTime }}" bind:click="onDisplayStart" />
|
|
|
<van-cell title="选择结束时间" is-link value="{{ sEndTime }}" bind:click="onDisplayEnd" />
|
|
|
<van-popup show="{{ show1 }}" position="bottom">
|
|
|
<van-datetime-picker type="datetime" value="{{d1}}" bind:confirm="onConfirm" min-date="{{d1}}" max-date="{{d2}}" bind:cancel="onCancel" />
|
|
|
</van-popup>
|
|
|
<van-popup show="{{ show2 }}" position="bottom">
|
|
|
<van-datetime-picker type="datetime" value="{{d2}}" bind:confirm="onConfirm1" min-date="{{d1}}" max-date="{{d2}}" bind:cancel="onCancel1" />
|
|
|
</van-popup>
|
|
|
</view>
|
|
|
</van-dropdown-item>
|
|
|
<van-dropdown-item id="back" title="更多筛选">
|
|
|
<view style="margin: 32rpx 32rpx 0 32rpx;">
|
|
|
<view>去重方式</view>
|
|
|
<view class="filter">
|
|
|
<view wx:if="{{iGroupBy == 0}}" class="more-item-active">不去重</view>
|
|
|
<view wx:else bindtap="iGroupByChange" class="more-item">不去重</view>
|
|
|
<view wx:if="{{iGroupBy == 1}}" class="more-item-active">相似度去重</view>
|
|
|
<view wx:else bindtap="iGroupByChange" class="more-item">相似度去重</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="margin: 0rpx 32rpx 32rpx 32rpx;">
|
|
|
<view>排序方式</view>
|
|
|
<view class="filter">
|
|
|
<view wx:if="{{listType == 0}}" class="more-item-active">默认</view>
|
|
|
<view wx:else bindtap="listTypeChange" class="more-item">默认</view>
|
|
|
<view wx:if="{{listType == 1}}" class="more-item-active">影响力倒序</view>
|
|
|
<view wx:else bindtap="listTypeChange" class="more-item">影响力倒序</view>
|
|
|
</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 class="tdl-content">
|
|
|
<view style="color: #333333;font-size: 12px;margin-bottom: 20rpx;">共{{total}}条信息数据</view>
|
|
|
<van-checkbox-group value="{{ result }}" bind:change="onChange">
|
|
|
<view class="tdl-item" wx:for="{{dataList}}" wx:key="index" name="{{item}}">
|
|
|
<view class="top-time">
|
|
|
<view style="display: flex;width: 200px;height: 25px;line-height: 25px;">
|
|
|
<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;">
|
|
|
<rich-text nodes="{{item._source.title}}"></rich-text>
|
|
|
</view>
|
|
|
<view class="bottom-source">
|
|
|
<view>来源:{{item._source.source}}</view>
|
|
|
<view style="margin-left: 64rpx;">作者:{{item._source.user_author}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="loading" hidden="{{!loadMore}}">正在载入更多...</view>
|
|
|
<view class="loading" hidden="{{!loadAll}}" wx:if="{{iPageIndex>1}}">已加载全部</view>
|
|
|
</van-checkbox-group>
|
|
|
</view>
|
|
|
<view class="tdl-footer" style="display: flex;justify-content: space-between;">
|
|
|
<view style="width: 40%;margin-top: 3%;margin-left: 32rpx">
|
|
|
<van-checkbox-group value="{{ isSelectAll }}" bind:change="changeSelectAll">
|
|
|
<van-checkbox name="0" shape="square" class="van-checkbox">当前页面全选</van-checkbox>
|
|
|
</van-checkbox-group>
|
|
|
</view>
|
|
|
<!-- style="width: 50%;margin-right: -32rpx;" -->
|
|
|
<view style="width: 50%;display: flex;justify-content: space-between;padding: 0 10rpx;">
|
|
|
<van-button disabled="{{total == 0}}" bind:click="openReport" color="#0084FF" class="theme-add-btn" plain>所有数据</van-button>
|
|
|
<van-button bind:click="toThemeBoard" color="#0084FF" class="theme-add-btn">数据看板</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>
|
|
|
<van-dialog use-slot title="复制成功" show="{{copyShow}}">
|
|
|
<view>
|
|
|
<view style="font-size: 17px;font-weight: 600;color: #D0D0D0;line-height: 24px;margin-bottom: 24rpx">已复制到剪贴板,快去分享吧</view>
|
|
|
<view>发布时间:{{copyData.sourcetime}}</view>
|
|
|
<!-- <view>车型:{{copyData.sourcetime}}</view> -->
|
|
|
<view>来源:{{copyData.source}}</view>
|
|
|
<view>标题:{{copyData.title}}</view>
|
|
|
<view style="word-break: break-all">链接:{{copyData.url}}</view>
|
|
|
<view>调性:{{copyData.affections == 1?'正面':copyData.affections == 2?'中性':'负面'}}</view>
|
|
|
<view>作者:{{copyData.user_author}}</view>
|
|
|
</view>
|
|
|
</van-dialog>
|
|
|
</view> |