|
@@ -400,7 +400,8 @@
|
|
|
</div>
|
|
|
<div style="padding: 10px 30px 0" v-if="showType == 2 || showType == 3">
|
|
|
<el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
|
|
|
- <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接</el-button>
|
|
|
+ <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<div style="padding: 0px 30px" v-if="showType == 1">
|
|
|
<el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
|
|
@@ -1819,7 +1820,8 @@
|
|
|
<div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
|
|
|
<div class="pzNavTop">
|
|
|
<div>批</div>
|
|
|
- <div>{{ pz.username }}的批注</div>
|
|
|
+ <div>{{ pz.username.length > 5 ? pz.username.substring(0,5)+'...' : pz.username }}的批注</div>
|
|
|
+ <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">删除</div>
|
|
|
</div>
|
|
|
<div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'">
|
|
|
<!-- {{ }} -->
|
|
@@ -4022,6 +4024,38 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ deletePz(id){
|
|
|
+ this.$confirm(
|
|
|
+ "确定删除此批注吗?",
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ id: id,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api + "deletePz", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message({
|
|
|
+ message: "删除成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.selectPz();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.$message.error("网络异常");
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
selectPz() {
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
@@ -4796,7 +4830,7 @@ export default {
|
|
|
this.fulltype = type;
|
|
|
this.fullUrl = url;
|
|
|
},
|
|
|
- openLine(url){
|
|
|
+ openLine(url) {
|
|
|
window.open(url)
|
|
|
},
|
|
|
resize() {
|
|
@@ -7114,6 +7148,13 @@ export default {
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
+.pzDelete {
|
|
|
+ cursor: pointer;
|
|
|
+ margin-left: auto;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #afafaf;
|
|
|
+}
|
|
|
+
|
|
|
.pzNavTop>div:nth-child(1) {
|
|
|
background: #3760af;
|
|
|
width: 35px;
|