|
@@ -2,7 +2,7 @@
|
|
<div id="reportlist">
|
|
<div id="reportlist">
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
<div slot="header" class="header">
|
|
<div slot="header" class="header">
|
|
- <el-form :inline="true" :model="searchform" @submit.native.prevent>
|
|
|
|
|
|
+ <el-form :inline="true" :model="searchform" @submit.native.prevent style="display:flex;">
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
<el-button
|
|
<el-button
|
|
v-permission="permissionBtn.reportManageBtn.reportManage_reportAdd"
|
|
v-permission="permissionBtn.reportManageBtn.reportManage_reportAdd"
|
|
@@ -11,7 +11,6 @@
|
|
@click="$router.push({ path: '/addreportNew' })"
|
|
@click="$router.push({ path: '/addreportNew' })"
|
|
>添加研报</el-button
|
|
>添加研报</el-button
|
|
>
|
|
>
|
|
- <!-- <el-button type="primary" plain size="medium" @click="$router.push({path:'/addreport'})">添加研报(旧版)</el-button> -->
|
|
|
|
<el-button
|
|
<el-button
|
|
v-permission="permissionBtn.reportManageBtn.reportManage_dayWeekReportAdd"
|
|
v-permission="permissionBtn.reportManageBtn.reportManage_dayWeekReportAdd"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -19,7 +18,6 @@
|
|
@click="$router.push({ path: '/dayorweek' })"
|
|
@click="$router.push({ path: '/dayorweek' })"
|
|
>添加晨报/周报</el-button
|
|
>添加晨报/周报</el-button
|
|
>
|
|
>
|
|
- <!-- <el-button type="primary" size="medium" @click="publishreport">发 布</el-button> -->
|
|
|
|
<template v-if="Role === 'rai_researcher'">
|
|
<template v-if="Role === 'rai_researcher'">
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -33,7 +31,107 @@
|
|
</a>
|
|
</a>
|
|
</template>
|
|
</template>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <!-- 整合的筛选项 -->
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
|
|
+ <el-popover
|
|
|
|
+ placement="bottom"
|
|
|
|
+ trigger="click"
|
|
|
|
+ :visible-arrow="false"
|
|
|
|
+ popper-class="report-select-popover"
|
|
|
|
+ width="320" style="display: inline-block;">
|
|
|
|
+ <div class="select-wrap">
|
|
|
|
+ <p>筛选项</p>
|
|
|
|
+ <div class="select-item">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="searchform.timeType"
|
|
|
|
+ placeholder="选择时间类型"
|
|
|
|
+ size="medium"
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ @change="search"
|
|
|
|
+ >
|
|
|
|
+ <el-option :label="isApprove?'审批时间':'发布时间'" value="publish_time"></el-option>
|
|
|
|
+ <el-option label="更新时间" value="modify_time"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-item">
|
|
|
|
+ <el-select
|
|
|
|
+ @change="search"
|
|
|
|
+ v-model="searchform.frequency"
|
|
|
|
+ placeholder="更新频度筛选"
|
|
|
|
+ size="medium"
|
|
|
|
+ clearable
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="年度" value="年度"></el-option>
|
|
|
|
+ <el-option label="半年度" value="半年度"></el-option>
|
|
|
|
+ <el-option label="季度" value="季度"></el-option>
|
|
|
|
+ <el-option label="月度" value="月度"></el-option>
|
|
|
|
+ <el-option label="双周度" value="双周度"></el-option>
|
|
|
|
+ <el-option label="周度" value="周度"></el-option>
|
|
|
|
+ <el-option label="日度" value="日度"></el-option>
|
|
|
|
+ <el-option label="不定时" value="不定时"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-item">
|
|
|
|
+ <el-cascader
|
|
|
|
+ @change="search"
|
|
|
|
+ :options="optionsArr"
|
|
|
|
+ v-model="searchform.classifynameArr"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="类型筛选"
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ ></el-cascader>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-item" v-if="!isApprove">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.number="searchform.publishState"
|
|
|
|
+ placeholder="发布筛选"
|
|
|
|
+ size="medium"
|
|
|
|
+ clearable
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ @change="search"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="已发布" :value="2"></el-option>
|
|
|
|
+ <el-option label="未发布" :value="1"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-item" v-if="isApprove">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.number="searchform.publishState"
|
|
|
|
+ placeholder="状态筛选"
|
|
|
|
+ size="medium"
|
|
|
|
+ clearable
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ @change="search"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="待提交" :value="1"></el-option>
|
|
|
|
+ <el-option label="待审批" :value="2"></el-option>
|
|
|
|
+ <el-option label="已审批" :value="4"></el-option>
|
|
|
|
+ <el-option label="已驳回" :value="3"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-item">
|
|
|
|
+ <el-select
|
|
|
|
+ v-permission="permissionBtn.reportManageBtn.reportManage_reportList_sendTime"
|
|
|
|
+ @change="search"
|
|
|
|
+ v-model.number="searchform.msgIsSend"
|
|
|
|
+ placeholder="推送消息状态"
|
|
|
|
+ size="medium"
|
|
|
|
+ clearable
|
|
|
|
+ style="width:100%;"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="未推送消息" :value="1"></el-option>
|
|
|
|
+ <el-option label="已推送消息" :value="2"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="select-btn" slot="reference">
|
|
|
|
+ <img src="~@/assets/icons/filter.svg">
|
|
|
|
+ <span>筛选条件</span>
|
|
|
|
+ </div>
|
|
|
|
+ </el-popover>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <!-- <el-form-item label="">
|
|
<el-select
|
|
<el-select
|
|
v-model="searchform.timeType"
|
|
v-model="searchform.timeType"
|
|
placeholder="选择时间类型"
|
|
placeholder="选择时间类型"
|
|
@@ -41,10 +139,10 @@
|
|
style="width:110px"
|
|
style="width:110px"
|
|
@change="search"
|
|
@change="search"
|
|
>
|
|
>
|
|
- <el-option label="发布时间" value="publish_time"></el-option>
|
|
|
|
|
|
+ <el-option :label="isApprove?'审批时间':'发布时间'" value="publish_time"></el-option>
|
|
<el-option label="更新时间" value="modify_time"></el-option>
|
|
<el-option label="更新时间" value="modify_time"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@change="search"
|
|
@change="search"
|
|
@@ -59,7 +157,7 @@
|
|
style="width: 280px"
|
|
style="width: 280px"
|
|
></el-date-picker>
|
|
></el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="">
|
|
|
|
|
|
+ <!-- <el-form-item label="">
|
|
<el-select
|
|
<el-select
|
|
@change="search"
|
|
@change="search"
|
|
v-model="searchform.frequency"
|
|
v-model="searchform.frequency"
|
|
@@ -77,8 +175,8 @@
|
|
<el-option label="日度" value="日度"></el-option>
|
|
<el-option label="日度" value="日度"></el-option>
|
|
<el-option label="不定时" value="不定时"></el-option>
|
|
<el-option label="不定时" value="不定时"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="">
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
+ <!-- <el-form-item label="">
|
|
<el-cascader
|
|
<el-cascader
|
|
@change="search"
|
|
@change="search"
|
|
:options="optionsArr"
|
|
:options="optionsArr"
|
|
@@ -88,7 +186,9 @@
|
|
size="medium"
|
|
size="medium"
|
|
></el-cascader>
|
|
></el-cascader>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="">
|
|
|
|
|
|
+ <el-form-item label="" v-if="!isApprove">
|
|
|
|
+ </el-form-item> -->
|
|
|
|
+ <!-- <el-form-item label="">
|
|
<el-select
|
|
<el-select
|
|
v-model.number="searchform.publishState"
|
|
v-model.number="searchform.publishState"
|
|
placeholder="发布筛选"
|
|
placeholder="发布筛选"
|
|
@@ -101,7 +201,24 @@
|
|
<el-option label="未发布" :value="1"></el-option>
|
|
<el-option label="未发布" :value="1"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="" v-if="isApprove">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.number="searchform.publishState"
|
|
|
|
+ placeholder="状态筛选"
|
|
|
|
+ size="medium"
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 140px"
|
|
|
|
+ @change="search"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="待提交" :value="1"></el-option>
|
|
|
|
+ <el-option label="待审批" :value="2"></el-option>
|
|
|
|
+ <el-option label="已审批" :value="4"></el-option>
|
|
|
|
+ <el-option label="已驳回" :value="3"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
|
|
+ </el-form-item> -->
|
|
|
|
+ <!-- <el-form-item label="">
|
|
<el-select
|
|
<el-select
|
|
v-permission="permissionBtn.reportManageBtn.reportManage_reportList_sendTime"
|
|
v-permission="permissionBtn.reportManageBtn.reportManage_reportList_sendTime"
|
|
@change="search"
|
|
@change="search"
|
|
@@ -114,17 +231,16 @@
|
|
<el-option label="未推送消息" :value="1"></el-option>
|
|
<el-option label="未推送消息" :value="1"></el-option>
|
|
<el-option label="已推送消息" :value="2"></el-option>
|
|
<el-option label="已推送消息" :value="2"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
+ <el-form-item style="flex:1;text-align: right;">
|
|
<el-input
|
|
<el-input
|
|
@input="search"
|
|
@input="search"
|
|
placeholder="标题 / 创建人"
|
|
placeholder="标题 / 创建人"
|
|
v-model="searchform.key_word"
|
|
v-model="searchform.key_word"
|
|
clearable
|
|
clearable
|
|
size="medium"
|
|
size="medium"
|
|
- >
|
|
|
|
- <i class="el-icon-search" slot="prefix" @click="search"></i>
|
|
|
|
- </el-input>
|
|
|
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- <el-form-item><el-button type="primary" size="medium" @click.native="search">搜索</el-button></el-form-item> -->
|
|
<!-- <el-form-item><el-button type="primary" size="medium" @click.native="search">搜索</el-button></el-form-item> -->
|
|
</el-form>
|
|
</el-form>
|
|
@@ -146,6 +262,7 @@
|
|
label="报告标题"
|
|
label="报告标题"
|
|
align="center"
|
|
align="center"
|
|
min-width="140"
|
|
min-width="140"
|
|
|
|
+ fixed="left"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div @click="lookreportdtl(scope.row)">
|
|
<div @click="lookreportdtl(scope.row)">
|
|
@@ -180,6 +297,7 @@
|
|
label="摘要"
|
|
label="摘要"
|
|
align="center"
|
|
align="center"
|
|
min-width="140"
|
|
min-width="140"
|
|
|
|
+ fixed="left"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column label="报告类型" align="center" min-width="140">
|
|
<el-table-column label="报告类型" align="center" min-width="140">
|
|
<template slot-scope="scope"
|
|
<template slot-scope="scope"
|
|
@@ -195,7 +313,7 @@
|
|
align="center"
|
|
align="center"
|
|
min-width="100"
|
|
min-width="100"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column label="发布状态" align="center">
|
|
|
|
|
|
+ <el-table-column label="发布状态" align="center" v-if="!isApprove">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.State == '2'" style="color: #46c371"
|
|
<span v-if="scope.row.State == '2'" style="color: #46c371"
|
|
>已发布</span
|
|
>已发布</span
|
|
@@ -203,7 +321,17 @@
|
|
<span v-if="scope.row.State == '1'">未发布</span>
|
|
<span v-if="scope.row.State == '1'">未发布</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="状态" align="center" v-if="isApprove">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-if="scope.row.State == '1'">待提交</span>
|
|
|
|
+ <span v-if="scope.row.State == '2'">待审批</span>
|
|
|
|
+ <span v-if="scope.row.State == '4'">已审批</span>
|
|
|
|
+ <span v-if="scope.row.State == '3'">已驳回</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
<el-table-column
|
|
<el-table-column
|
|
|
|
+ v-if="!isApprove"
|
|
prop="PublishTime"
|
|
prop="PublishTime"
|
|
label="发布时间"
|
|
label="发布时间"
|
|
min-width="124"
|
|
min-width="124"
|
|
@@ -217,6 +345,19 @@
|
|
</svg>
|
|
</svg>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-if="isApprove"
|
|
|
|
+ prop="PublishTime"
|
|
|
|
+ label="审批时间"
|
|
|
|
+ min-width="124"
|
|
|
|
+ align="center"
|
|
|
|
+ :formatter="formatterColumn"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{scope.row.PrePublishTime?scope.row.PrePublishTime:scope.row.PublishTime|formatTime}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
<el-table-column v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_reportList_sendTime)"
|
|
<el-table-column v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_reportList_sendTime)"
|
|
prop="MsgSendTime"
|
|
prop="MsgSendTime"
|
|
label="报告推送时间"
|
|
label="报告推送时间"
|
|
@@ -256,98 +397,99 @@
|
|
>{{ hasUV? scope.row.Pv+'/'+scope.row.Uv:scope.row.Pv }}</template
|
|
>{{ hasUV? scope.row.Pv+'/'+scope.row.Uv:scope.row.Pv }}</template
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" align="center" min-width="130">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" min-width="130" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="opt-btns">
|
|
<div class="opt-btns">
|
|
- <template
|
|
|
|
- v-if="scope.row.State == 1"
|
|
|
|
- >
|
|
|
|
- <!-- <i class="el-icon-edit-outline" @click="$router.push({name:'编辑研报',query:{id:scope.row.id}})"></i> -->
|
|
|
|
- <span
|
|
|
|
- v-permission="permissionBtn.reportManageBtn.reportManage_publish"
|
|
|
|
- class="editsty"
|
|
|
|
- @click="publishreport(scope.row)"
|
|
|
|
- v-if="scope.row.CanEdit"
|
|
|
|
- >发布</span
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit"
|
|
|
|
- class="editsty"
|
|
|
|
- @click="editreport(scope.row, 'edit')"
|
|
|
|
- v-if="scope.row.CanEdit"
|
|
|
|
- >编辑</span
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit"
|
|
|
|
- class="editsty"
|
|
|
|
- @click="editreport(scope.row, 'editing')"
|
|
|
|
- v-else
|
|
|
|
- >{{ scope.row.Editor || "" }}编辑中...</span
|
|
|
|
- >
|
|
|
|
- <!-- <i class="el-icon-delete" @click="deleteitem(scope.row)"></i> -->
|
|
|
|
- <span
|
|
|
|
- v-permission="permissionBtn.reportManageBtn.reportManage_reportDel"
|
|
|
|
- class="deletesty"
|
|
|
|
- @click="deleteitem(scope.row)"
|
|
|
|
- v-if="scope.row.CanEdit"
|
|
|
|
- >删除</span
|
|
|
|
- >
|
|
|
|
|
|
+ <!--不走审批流的按钮-->
|
|
|
|
+ <template v-if="!isApprove">
|
|
|
|
+ <template v-if="scope.row.State == 1">
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_publish" class="editsty"
|
|
|
|
+ @click="publishreport(scope.row)" v-if="scope.row.CanEdit">发布</span>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit" class="editsty"
|
|
|
|
+ @click="editreport(scope.row, 'edit')" v-if="scope.row.CanEdit">编辑</span>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit" class="editsty"
|
|
|
|
+ @click="editreport(scope.row, 'editing')" v-else>{{ scope.row.Editor || "" }}编辑中...</span>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_reportDel" class="deletesty"
|
|
|
|
+ @click="deleteitem(scope.row)" v-if="scope.row.CanEdit">删除</span>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="scope.row.State == 2">
|
|
|
|
+ <span
|
|
|
|
+ v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_cancelPublish)"
|
|
|
|
+ @click="canclepublish(scope.row)" style="color: red; cursor: pointer">取消发布</span>
|
|
|
|
+ <span
|
|
|
|
+ v-if="scope.row.MsgIsSend == 0 && permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
|
|
|
|
+ style="color: #4099ef; cursor: pointer" @click="messageSend(scope.row)">推送消息</span>
|
|
|
|
+ <span
|
|
|
|
+ v-else-if="scope.row.MsgIsSend != 0&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
|
|
|
|
+ style="color: red">已推送消息</span>
|
|
|
|
+ </template>
|
|
|
|
+ <span style="color: #46c371; cursor: pointer"
|
|
|
|
+ v-if="!['晨报', '周报'].includes(scope.row.ClassifyNameFirst)&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_audioUpload)"
|
|
|
|
+ @click="openupload(scope.row.Id)">音频上传</span>
|
|
|
|
+ <a v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
|
|
|
|
+ :href="hostapi + '?ReportId=' + parseInt(scope.row.Id)" v-if="
|
|
|
|
+ scope.row.VideoUrl &&
|
|
|
|
+ !['晨报', '周报'].includes(scope.row.ClassifyNameFirst)
|
|
|
|
+ " :download="scope.row.VideoName" style="cursor: pointer; color: #4099ef">音频下载</a>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
|
|
|
|
+ style="cursor: pointer; color: #4099ef" v-if="
|
|
|
|
+ ['晨报', '周报'].includes(scope.row.ClassifyNameFirst) &&
|
|
|
|
+ scope.row.ChapterVideoList.length > 0
|
|
|
|
+ " @click="handleShowDownloadAudio(scope.row)">音频下载</span>
|
|
</template>
|
|
</template>
|
|
- <template v-if="scope.row.State == 2">
|
|
|
|
- <span v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_cancelPublish)"
|
|
|
|
- @click="canclepublish(scope.row)"
|
|
|
|
- style="color: red; cursor: pointer"
|
|
|
|
- >取消发布</span
|
|
|
|
- >
|
|
|
|
- <!-- <template v-if="scope.row.ClassifyNameFirst!='周报'"> -->
|
|
|
|
- <span
|
|
|
|
- v-if="scope.row.MsgIsSend == 0 && permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
|
|
|
|
- style="color: #4099ef; cursor: pointer"
|
|
|
|
- @click="messageSend(scope.row)"
|
|
|
|
- >推送消息</span
|
|
|
|
- >
|
|
|
|
- <span v-else-if="scope.row.MsgIsSend != 0&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
|
|
|
|
- style="color: red">已推送消息</span>
|
|
|
|
- <!-- </template> -->
|
|
|
|
- <!-- <template v-else>
|
|
|
|
- <span v-if="scope.row.MsgIsSend=='0'" @click="gosendTemplateMsg(scope.row)" style="color:#4099ef; cursor:pointer;">推送模版消息</span>
|
|
|
|
- <span v-else style="color:red;">已推送模版消息</span>
|
|
|
|
- </template> -->
|
|
|
|
|
|
+ <!--走审批流的按钮,权限与原先按钮对应-->
|
|
|
|
+ <template v-if="isApprove">
|
|
|
|
+ <!--待提交-->
|
|
|
|
+ <template v-if="scope.row.State===1">
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_publish"
|
|
|
|
+ @click="publishreport(scope.row)"
|
|
|
|
+ class="editsty">提交</span>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit" class="editsty"
|
|
|
|
+ @click="editreport(scope.row, 'edit')" v-if="scope.row.CanEdit">编辑</span>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_reportEdit" class="editsty"
|
|
|
|
+ @click="editreport(scope.row, 'editing')" v-else>{{ scope.row.Editor || "" }}编辑中...</span>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_reportDel" class="deletesty"
|
|
|
|
+ @click="deleteitem(scope.row)" v-if="scope.row.CanEdit">删除</span>
|
|
|
|
+ </template>
|
|
|
|
+ <!--已提交(待审批,已审批)-->
|
|
|
|
+ <template v-if="[2,4].includes(scope.row.State)">
|
|
|
|
+ <span
|
|
|
|
+ v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_cancelPublish)"
|
|
|
|
+ @click="canclepublish(scope.row)"
|
|
|
|
+ class="editsty">撤销</span>
|
|
|
|
+ <template v-if="scope.row.State!==2">
|
|
|
|
+ <span
|
|
|
|
+ v-if="scope.row.MsgIsSend == 0 && permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
|
|
|
|
+ style="color: #4099ef; cursor: pointer" @click="messageSend(scope.row)">推送消息</span>
|
|
|
|
+ <span
|
|
|
|
+ v-else-if="scope.row.MsgIsSend != 0&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_sendMsg)"
|
|
|
|
+ style="color: red">已推送消息</span>
|
|
|
|
+ </template>
|
|
|
|
+ </template>
|
|
|
|
|
|
- <!-- <span v-if="scope.row.MsgIsSend=='0'" @click="gosendTemplateMsg(scope.row)" style="color:#4099ef; cursor:pointer;">推送模版消息</span>
|
|
|
|
- <span v-else style="color:red;">已推送模版消息</span>
|
|
|
|
- <template v-if="scope.row.NeedThsMsg!=0">
|
|
|
|
- <span v-if="scope.row.ThsMsgIsSend == 0" @click="messagePush(scope.row)" style="color:#4099ef; cursor:pointer;">推送客群消息</span>
|
|
|
|
- <span v-else style="color:red;">已推送客群消息</span>
|
|
|
|
- </template> -->
|
|
|
|
|
|
+ <!--已驳回则只显示撤销按钮-->
|
|
|
|
+ <template v-if="scope.row.State===3">
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_publish"
|
|
|
|
+ @click="canclepublish(scope.row)"
|
|
|
|
+ class="editsty">撤销</span>
|
|
|
|
+ </template>
|
|
|
|
+ <!--音频上传/下载 按原先逻辑-->
|
|
|
|
+ <template v-if="scope.row.State!==3">
|
|
|
|
+ <span style="color: #46c371; cursor: pointer"
|
|
|
|
+ v-if="!['晨报', '周报'].includes(scope.row.ClassifyNameFirst)&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_audioUpload)"
|
|
|
|
+ @click="openupload(scope.row.Id)">音频上传</span>
|
|
|
|
+ <a v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
|
|
|
|
+ :href="hostapi + '?ReportId=' + parseInt(scope.row.Id)" v-if="
|
|
|
|
+ scope.row.VideoUrl &&
|
|
|
|
+ !['晨报', '周报'].includes(scope.row.ClassifyNameFirst)
|
|
|
|
+ " :download="scope.row.VideoName" style="cursor: pointer; color: #4099ef">音频下载</a>
|
|
|
|
+ <span v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
|
|
|
|
+ style="cursor: pointer; color: #4099ef" v-if="
|
|
|
|
+ ['晨报', '周报'].includes(scope.row.ClassifyNameFirst) &&
|
|
|
|
+ scope.row.ChapterVideoList.length > 0
|
|
|
|
+ " @click="handleShowDownloadAudio(scope.row)">音频下载</span>
|
|
|
|
+ </template>
|
|
</template>
|
|
</template>
|
|
- <span
|
|
|
|
- style="color: #46c371; cursor: pointer"
|
|
|
|
- v-if="!['晨报', '周报'].includes(scope.row.ClassifyNameFirst)&&permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_audioUpload)"
|
|
|
|
- @click="openupload(scope.row.Id)"
|
|
|
|
- >音频上传</span
|
|
|
|
- >
|
|
|
|
- <a
|
|
|
|
- v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
|
|
|
|
- :href="hostapi + '?ReportId=' + parseInt(scope.row.Id)"
|
|
|
|
- v-if="
|
|
|
|
- scope.row.VideoUrl &&
|
|
|
|
- !['晨报', '周报'].includes(scope.row.ClassifyNameFirst)
|
|
|
|
- "
|
|
|
|
- :download="scope.row.VideoName"
|
|
|
|
- style="cursor: pointer; color: #4099ef"
|
|
|
|
- >音频下载</a
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- v-permission="permissionBtn.reportManageBtn.reportManage_audioDownload"
|
|
|
|
- style="cursor: pointer; color: #4099ef"
|
|
|
|
- v-if="
|
|
|
|
- ['晨报', '周报'].includes(scope.row.ClassifyNameFirst) &&
|
|
|
|
- scope.row.ChapterVideoList.length > 0
|
|
|
|
- "
|
|
|
|
- @click="handleShowDownloadAudio(scope.row)"
|
|
|
|
- >音频下载</span
|
|
|
|
- >
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -615,6 +757,13 @@ export default {
|
|
//是否有UV
|
|
//是否有UV
|
|
hasUV(){
|
|
hasUV(){
|
|
return this.permissionBtn.checkPermissionBtn(this.permissionBtn.reportManageBtn.reportManage_reportList_uv)
|
|
return this.permissionBtn.checkPermissionBtn(this.permissionBtn.reportManageBtn.reportManage_reportList_uv)
|
|
|
|
+ },
|
|
|
|
+ //是否开启审批流,若开启,发布相关按钮,筛选项改变
|
|
|
|
+ isApprove(){
|
|
|
|
+ const type = this.$setting.dynamicOutLinks.ApprovalFlow ||
|
|
|
|
+ this.$store.state.dynamicOutLinks.ApprovalFlow ||
|
|
|
|
+ JSON.parse(localStorage.getItem('dynamicOutLinks')).ApprovalFlow||''
|
|
|
|
+ return ['1','3'].includes(type)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -662,6 +811,8 @@ export default {
|
|
showPublish: false,
|
|
showPublish: false,
|
|
isDSFB:false,//是否为定时发布
|
|
isDSFB:false,//是否为定时发布
|
|
tableKey:0,
|
|
tableKey:0,
|
|
|
|
+
|
|
|
|
+ //isApprove:false,//是否开启审批流,若开启,发布相关按钮,筛选项改变
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -948,6 +1099,10 @@ export default {
|
|
// this.handlePublic(1)
|
|
// this.handlePublic(1)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if(this.isApprove){
|
|
|
|
+ this.handlePublic(1)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
const isPost = this.permissionBtn.checkPermissionBtn(this.permissionBtn.reportManageBtn.reportManage_sendMsg)
|
|
const isPost = this.permissionBtn.checkPermissionBtn(this.permissionBtn.reportManageBtn.reportManage_sendMsg)
|
|
if(isPost){
|
|
if(isPost){
|
|
this.showPublish = true;
|
|
this.showPublish = true;
|
|
@@ -1142,6 +1297,15 @@ export default {
|
|
white-space: normal;
|
|
white-space: normal;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.report-select-popover{
|
|
|
|
+ .select-wrap{
|
|
|
|
+ padding:8px;
|
|
|
|
+ margin:0 20px;
|
|
|
|
+ .select-item{
|
|
|
|
+ margin-top:20px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
#reportlist {
|
|
#reportlist {
|
|
@@ -1149,6 +1313,22 @@ export default {
|
|
.header .el-form-item {
|
|
.header .el-form-item {
|
|
margin-bottom: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
+ .header{
|
|
|
|
+ .select-btn{
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ width:120px;
|
|
|
|
+ height: 36px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ background-color: #ECF2FE;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ line-height:36px;
|
|
|
|
+ img,span{
|
|
|
|
+ display: inline-block;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.opt-btns {
|
|
.opt-btns {
|
|
span,
|
|
span,
|
|
a {
|
|
a {
|