Merge branch 'master' of https://gitee.com/wjl2008_admin/tougao_web into zy-email
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<template>
|
||||
<div style="height: 98%">
|
||||
<div style="height:100%">
|
||||
<!-- <div class="crumbs">
|
||||
<el-breadcrumb separator="/">
|
||||
<el-breadcrumb-item> <i class="el-icon-document-copy"></i> HTML Proofread </el-breadcrumb-item>
|
||||
<el-breadcrumb-item> <i class="el-icon-document-copy"></i> Text Proofread </el-breadcrumb-item>
|
||||
</el-breadcrumb>
|
||||
</div> -->
|
||||
|
||||
<div
|
||||
class="container"
|
||||
style="
|
||||
height: 98%;
|
||||
height: 100%;
|
||||
min-width: calc(1000px);
|
||||
width: calc(100%);
|
||||
background-color: #fafafa;
|
||||
@@ -107,6 +107,7 @@
|
||||
@onDelete="onDelete"
|
||||
@onComment="onComment"
|
||||
@onAddComment="onAddComment"
|
||||
@onEditTitle="onEditTitle"
|
||||
@changeComment="changeComment"
|
||||
style="width: calc(100%); height: calc(100% - 50px); margin-top: -1px"
|
||||
:style="`100%`"
|
||||
@@ -217,10 +218,15 @@
|
||||
v-if="commentVisible"
|
||||
title="Comment"
|
||||
:visible.sync="commentVisible"
|
||||
width="1200px"
|
||||
width="600px"
|
||||
:close-on-click-modal="false"
|
||||
>
|
||||
<el-form ref="editMes" :model="commentForm" label-width="115px">
|
||||
|
||||
<el-form-item label="Select Content:" v-if="commentForm.commentLabel">
|
||||
<p style="background: #eef0f4;line-height: 20px;padding: 10px;box-sizing: border-box;">{{ commentForm.commentLabel }}</p>
|
||||
|
||||
</el-form-item>
|
||||
<el-form-item label="Word">
|
||||
<span slot="label">
|
||||
<font style="color: #f56c6c; margin-right: 5px">*</font>
|
||||
@@ -720,14 +726,49 @@ export default {
|
||||
}
|
||||
console.log('data at line 575:', data);
|
||||
},
|
||||
async onAddComment(dataId) {
|
||||
console.log('dataId at line 721:', dataId);
|
||||
var data = this.Main_List.find((item) => item.am_id == dataId);
|
||||
async onAddComment(data) {
|
||||
|
||||
var form = this.Main_List.find((item) => item.am_id == data.mainId);
|
||||
this.commentForm = {
|
||||
...data
|
||||
commentLabel:data.label,
|
||||
...form
|
||||
};
|
||||
this.commentVisible = true;
|
||||
console.log('data at line 575:', data);
|
||||
|
||||
},
|
||||
async onEditTitle(data) {
|
||||
var url;
|
||||
switch (data.value){
|
||||
case 1:
|
||||
url = 'api/Preaccept/changeH1';
|
||||
break;
|
||||
case 2:
|
||||
url = 'api/Preaccept/changeH2';
|
||||
break;
|
||||
case 3:
|
||||
url = 'api/Preaccept/changeH3';
|
||||
break;
|
||||
}
|
||||
|
||||
console.log('data at line 739:', data)
|
||||
await this.$api
|
||||
.post(url, {
|
||||
am_id: data.mainId,
|
||||
|
||||
})
|
||||
.then(async (res) => {
|
||||
this.getDate();
|
||||
})
|
||||
.catch((err) => {
|
||||
this.$message.error(err.msg);
|
||||
});
|
||||
// var form = this.Main_List.find((item) => item.am_id == data.mainId);
|
||||
// this.commentForm = {
|
||||
// commentLabel:data.label,
|
||||
// ...form
|
||||
// };
|
||||
// this.commentVisible = true;
|
||||
|
||||
},
|
||||
clearButton() {
|
||||
var deleteButtons = document.querySelectorAll('.wordButtonContainer');
|
||||
|
||||
Reference in New Issue
Block a user