|
@@ -251,17 +251,24 @@
|
|
|
<div class="opt-btns">
|
|
|
|
|
|
<!-- 前面的按钮 -->
|
|
|
- <span v-for="bu in getbuttonList(scope.row,'f')" :key="bu.label"
|
|
|
- :class="['删除'].includes(bu.label)?'deletesty':'editsty'"
|
|
|
- :style="{
|
|
|
- color:['撤销','取消发布','已推送消息'].includes(bu.label)?'red':
|
|
|
- ['音频上传'].includes(bu.label)?'#46c371':'',
|
|
|
- cursor:['已推送消息'].includes(bu.label)?'text':''
|
|
|
- }"
|
|
|
- @click.stop="itemclickHandle({type:bu.label,data:scope.row})">
|
|
|
- <template v-if="bu.label=='编辑中'">{{ scope.row.Editor || "" }}{{$t(bu.text)}}</template>
|
|
|
+ <span
|
|
|
+ v-for="bu in getbuttonList(scope.row,'f')"
|
|
|
+ :key="bu.label"
|
|
|
+ :class="['删除'].includes(bu.label)?'deletesty':'editsty'"
|
|
|
+ :style="{
|
|
|
+ color:['撤销','取消发布','已推送消息'].includes(bu.label)?'red':
|
|
|
+ ['音频上传'].includes(bu.label)?'#46c371':'',
|
|
|
+ cursor:['已推送消息'].includes(bu.label)?'text':''
|
|
|
+ }"
|
|
|
+ @click.stop="itemclickHandle({type:bu.label,data:scope.row})"
|
|
|
+ >
|
|
|
+ <template v-if="bu.label==='编辑中'">{{ scope.row.Editor || "" }}{{$t(bu.text)}}</template>
|
|
|
+
|
|
|
+ <template v-if="bu.label==='撤销'">{{scope.row.HasAuth?$t(bu.text):''}}</template>
|
|
|
+
|
|
|
<a :href="hostapi + '?ReportId=' + parseInt(scope.row.Id)" v-else-if="bu.label=='音频下载A'"
|
|
|
:download="scope.row.VideoName" style="cursor: pointer; color: #4099ef">{{$t('ReportManage.smart_audio_download_btn')}}</a>
|
|
|
+
|
|
|
<template v-else>{{$t(bu.text)}}</template>
|
|
|
</span>
|
|
|
<!-- 后面的按钮 -->
|
|
@@ -1129,12 +1136,12 @@ export default {
|
|
|
(typeof(but.States)=='boolean' || but.States.includes(row.State) ) &&
|
|
|
(!row.CanEdit)
|
|
|
}else if(but.label==='推送消息'){
|
|
|
- return commonFilterPass && row.MsgIsSend==0
|
|
|
+ return commonFilterPass && row.MsgIsSend==0 && row.HasAuth
|
|
|
}else if(but.label==='已推送消息'){
|
|
|
return commonFilterPass && row.MsgIsSend!==0
|
|
|
}else if(['音频上传'].includes(but.label)){
|
|
|
return commonFilterPass&&
|
|
|
- (![this.$t('ReportManage.smart_btn.morning_paper'), this.$t('ReportManage.smart_btn.weekly')].includes(row.ClassifyNameFirst))
|
|
|
+ (![this.$t('ReportManage.smart_btn.morning_paper'), this.$t('ReportManage.smart_btn.weekly')].includes(row.ClassifyNameFirst))&&row.HasAuth
|
|
|
}else if(but.label==='音频下载A'){
|
|
|
return commonFilterPass &&
|
|
|
(![this.$t('ReportManage.smart_btn.morning_paper'), this.$t('ReportManage.smart_btn.weekly')].includes(row.ClassifyNameFirst))&&
|
|
@@ -1211,3 +1218,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
+<style lang="scss">
|
|
|
+ .el-tooltip__popper {
|
|
|
+ max-width: 40%;
|
|
|
+ }
|
|
|
+</style>
|