|
@@ -5,17 +5,32 @@
|
|
|
|
|
|
<ul class="handle-list">
|
|
|
<li v-if="reportBase.ReportLayout===2&&isCreator" @click="openTerritorySet">
|
|
|
- <img src="~@/assets/img/icons/submit_ico.svg" alt="">
|
|
|
- <el-button type="text"><!-- 版图设置 -->{{$t('ReportManage.ReportList.img_set_btn')}}</el-button>
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ :content="$t('ReportManage.ReportList.information_title')"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i class="el-icon-setting" style="color:#0052D9;font-size:20px;"></i>
|
|
|
+ </el-tooltip>
|
|
|
</li>
|
|
|
|
|
|
<li @click="$emit('openBaseInfo')" v-if="isCreator">
|
|
|
- <img src="~@/assets/img/icons/baseinfo_ico.svg" alt="">
|
|
|
- <el-button type="text"><!-- 基础信息 -->{{$t('ReportManage.ReportList.information_title')}}</el-button>
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ :content="$t('ReportManage.ReportList.information_title')"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img src="~@/assets/img/icons/baseinfo_ico.svg" class="handle-icon" alt="">
|
|
|
+ </el-tooltip>
|
|
|
</li>
|
|
|
<li @click="$emit('handlePreviewReport')">
|
|
|
- <img src="~@/assets/img/icons/preview_ico.svg" alt="">
|
|
|
- <el-button type="text"><!-- 预览 -->{{$t('ReportManage.ReportList.preview_btn')}}</el-button>
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ :content="$t('ReportManage.ReportList.preview_btn')"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img src="~@/assets/img/icons/preview_ico.svg" class="handle-icon" alt="">
|
|
|
+ </el-tooltip>
|
|
|
</li>
|
|
|
|
|
|
<template v-if="!isApprove||!hasApproveFlow">
|
|
@@ -25,8 +40,13 @@
|
|
|
@click="handlePublishReport('dsfb')"
|
|
|
v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_publish)&&isCreator"
|
|
|
>
|
|
|
- <img src="~@/assets/img/icons/submit_ico.svg" alt="">
|
|
|
- <el-button type="text">{{$t('ReportManage.ReportList.scheduled_publish_btn')}}</el-button>
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ :content="$t('ReportManage.ReportList.scheduled_publish_btn')"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img src="~@/assets/img/icons/timing_ico.svg" class="handle-icon" alt="">
|
|
|
+ </el-tooltip>
|
|
|
</li>
|
|
|
<li
|
|
|
class="action-item"
|
|
@@ -34,8 +54,13 @@
|
|
|
@click="handlePublishReport('fb')"
|
|
|
v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_publish)&&isCreator"
|
|
|
>
|
|
|
- <img src="~@/assets/img/icons/submit_ico.svg" alt="">
|
|
|
- <el-button type="text">{{$t('ReportManage.ReportList.publish_btn')}}</el-button>
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ :content="$t('ReportManage.ReportList.publish_btn')"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img src="~@/assets/img/icons/publish_ico.svg" class="handle-icon" alt="">
|
|
|
+ </el-tooltip>
|
|
|
</li>
|
|
|
</template>
|
|
|
<template v-if="isApprove&&hasApproveFlow">
|
|
@@ -45,8 +70,13 @@
|
|
|
@click="handlePublishReport('submit')"
|
|
|
v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportManage_publish)&&isCreator"
|
|
|
>
|
|
|
- <img src="~@/assets/img/icons/submit_ico.svg" alt="">
|
|
|
- <el-button type="text"><!--提交 -->{{$t('ReportManage.ReportList.submission_btn')}}</el-button>
|
|
|
+ <el-tooltip
|
|
|
+ effect="dark"
|
|
|
+ :content="$t('ReportManage.ReportList.submission_btn')"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <img src="~@/assets/img/icons/submit_ico.svg" class="handle-icon" alt="">
|
|
|
+ </el-tooltip>
|
|
|
</li>
|
|
|
</template>
|
|
|
</ul>
|
|
@@ -87,13 +117,15 @@
|
|
|
trigger="click"
|
|
|
>
|
|
|
<img style="width:150px" :src="item.QRCodeImg" alt="">
|
|
|
- <i
|
|
|
- slot="reference"
|
|
|
- class="el-icon-share"
|
|
|
+
|
|
|
+ <img
|
|
|
+ src="~@/assets/img/icons/wx_round.svg"
|
|
|
+ class="handle-icon"
|
|
|
+ slot="reference"
|
|
|
v-if="permissionBtn.checkPermissionBtn(permissionBtn.reportManageBtn.reportMange_chapter_share)&&item.PublishState===2"
|
|
|
style="font-size:18px;color:#0052D9;cursor:pointer;"
|
|
|
@click.stop="handleGetWechatImg(item)"
|
|
|
- ></i>
|
|
|
+ />
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
|
|
@@ -111,15 +143,15 @@
|
|
|
<img
|
|
|
src="~@/assets/img/data_m/move_ico.png"
|
|
|
alt=""
|
|
|
- style="width: 16px; height: 16px;"
|
|
|
+ style="width: 16px; height: 16px;margin-right:5px;"
|
|
|
/>
|
|
|
|
|
|
- <i
|
|
|
+ <!-- <i
|
|
|
class="el-icon-edit editsty"
|
|
|
v-if="item.CanEdit&&item.IsAuth"
|
|
|
@click.stop="chooseChapter(item,'edit')"
|
|
|
style="font-size: 18px;margin:0 10px;"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
|
|
|
<el-dropdown
|
|
|
trigger="click"
|
|
@@ -441,27 +473,33 @@ export default {
|
|
|
this.reportBase.CanvasColor = info.bgColor;
|
|
|
},
|
|
|
|
|
|
+ async handleMarkOver(ReportChapterId=0) {
|
|
|
+ await markReport({
|
|
|
+ Status: 3,
|
|
|
+ ReportId: Number(this.$route.query.id),
|
|
|
+ ReportChapterId,
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
//选择章节 预览
|
|
|
- async chooseChapter(item,type='') {
|
|
|
- this.selectChapterId = item.ReportChapterId;
|
|
|
- this.editChapterId = type==='edit'?item.ReportChapterId:0;
|
|
|
+ async chooseChapter(item) {
|
|
|
+ this.editChapterId && this.handleMarkOver(this.editChapterId);
|
|
|
|
|
|
- if(type === 'edit') {
|
|
|
+ if(item.IsAuth) {
|
|
|
//编辑前标记一下
|
|
|
const res = await markReport({
|
|
|
Status: 1,
|
|
|
ReportId: Number(this.$route.query.id),
|
|
|
- ReportChapterId: this.editChapterId
|
|
|
+ ReportChapterId: item.ReportChapterId
|
|
|
});
|
|
|
|
|
|
if (res.Ret === 200) {
|
|
|
- if (res.Data.Status == 1) {
|
|
|
+ if (res.Data.Status === 1) {
|
|
|
this.$message.warning(res.Data.Msg || "该研报正在编辑,不可重复编辑");
|
|
|
item.CanEdit = false;
|
|
|
item.Editor = res.Data.Editor || "";
|
|
|
return;
|
|
|
- } else if (res.Data.Status == 0) {
|
|
|
+ } else if (res.Data.Status === 0) {
|
|
|
item.CanEdit = true;
|
|
|
item.Editor = res.Data.Editor || "";
|
|
|
}
|
|
@@ -469,6 +507,11 @@ export default {
|
|
|
this.$message.error(res.ErrMsg || "未知错误,请稍后重试");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ this.editChapterId = item.ReportChapterId;
|
|
|
+ this.selectChapterId = item.ReportChapterId;
|
|
|
+ }else {
|
|
|
+ this.selectChapterId = item.ReportChapterId;
|
|
|
}
|
|
|
|
|
|
this.$emit('change',{ selectChapterId: this.selectChapterId,editChapterId:this.editChapterId })
|
|
@@ -732,10 +775,9 @@ export default {
|
|
|
.box-top {
|
|
|
padding-bottom: 0;
|
|
|
.handle-list {
|
|
|
- margin-top: 30px;
|
|
|
+ margin: 30px 0 10px;
|
|
|
display: flex;
|
|
|
- /* flex-wrap: wrap; */
|
|
|
- gap: 0 10px;
|
|
|
+ gap: 0 20px;
|
|
|
li {
|
|
|
cursor: pointer;display: flex;align-items: center;
|
|
|
&.disabled {
|
|
@@ -743,7 +785,11 @@ export default {
|
|
|
cursor: not-allowed;
|
|
|
color:#999;
|
|
|
}
|
|
|
- }
|
|
|
+ .handle-icon {
|
|
|
+ width: 18px;
|
|
|
+ height: 18px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.box-main {
|