|
@@ -6,38 +6,37 @@
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <div v-for="item in traceComments" :key="item.id" class="media">
|
|
|
|
|
|
|
+ <div v-for="item in recordComments" :key="item.id" class="media">
|
|
|
<div class="media-body">
|
|
<div class="media-body">
|
|
|
- <div class="commentClass">
|
|
|
|
|
|
|
+ <div class="comment">
|
|
|
<AuthImage
|
|
<AuthImage
|
|
|
:auth-src="getImgSrc(item.imageName)"
|
|
:auth-src="getImgSrc(item.imageName)"
|
|
|
class="media-object thumbnail m-image"
|
|
class="media-object thumbnail m-image"
|
|
|
- style="height: 120px"
|
|
|
|
|
|
|
+ style="width: 60px; height: 60px"
|
|
|
/>
|
|
/>
|
|
|
- <div class="commentDetail">
|
|
|
|
|
|
|
+ <div class="comment-detail">
|
|
|
<div class="common">
|
|
<div class="common">
|
|
|
<span class="media-heading">
|
|
<span class="media-heading">
|
|
|
{{ item.createdName }}
|
|
{{ item.createdName }}
|
|
|
- <a-tag style="font-size: 12px; margin: 0 18px" color="red">评论人</a-tag>
|
|
|
|
|
</span>
|
|
</span>
|
|
|
- <span class="media-heading">
|
|
|
|
|
|
|
+ <a-tag v-if="item.carbonCopyUserIds != null && item.carbonCopyUserIds.length > 0" class="comment-user-tag">
|
|
|
|
|
+ 发送给:
|
|
|
{{
|
|
{{
|
|
|
- item.carbonCopyUserIds ? item.carbonCopyUserIds : "暂无通知人"
|
|
|
|
|
|
|
+ item.carbonCopyUserIds
|
|
|
}}
|
|
}}
|
|
|
- <a-tag style="font-size: 12px; margin: 0 18px" color="orange">通知人</a-tag>
|
|
|
|
|
- </span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="common">
|
|
|
|
|
- <span style="font-size: 12px">{{ item.created }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="common">
|
|
|
|
|
- <span>主题</span>
|
|
|
|
|
- <p>{{ item.theme }}</p>
|
|
|
|
|
|
|
+ </a-tag>
|
|
|
|
|
+
|
|
|
|
|
+ <a-tag color="default">
|
|
|
|
|
+ <template #icon>
|
|
|
|
|
+ <clock-circle-outlined />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ {{ item.created }}
|
|
|
|
|
+ </a-tag>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="common">
|
|
<div class="common">
|
|
|
- <span>评论的内容</span>
|
|
|
|
|
|
|
+ <span class="common-title">{{ item.theme }}</span>
|
|
|
<!-- eslint-disable-next-line -->
|
|
<!-- eslint-disable-next-line -->
|
|
|
- <div v-html="item.content" />
|
|
|
|
|
|
|
+ <div class="common-content" v-html="item.content" />
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
v-if="item.attachments != '' && item.attachments != undefined"
|
|
v-if="item.attachments != '' && item.attachments != undefined"
|
|
@@ -83,19 +82,19 @@ import Common from '../../common/Common.js';
|
|
|
import { DownloadService } from 'pc-component-v3';
|
|
import { DownloadService } from 'pc-component-v3';
|
|
|
import AuthImage from '../../widget/AuthImage.vue';
|
|
import AuthImage from '../../widget/AuthImage.vue';
|
|
|
import { FileTextOutlined } from '@ant-design/icons-vue';
|
|
import { FileTextOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
+import {
|
|
|
|
|
+ ClockCircleOutlined,
|
|
|
|
|
+} from '@ant-design/icons-vue';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
DownloadService,
|
|
DownloadService,
|
|
|
AuthImage,
|
|
AuthImage,
|
|
|
FileTextOutlined,
|
|
FileTextOutlined,
|
|
|
|
|
+ ClockCircleOutlined,
|
|
|
},
|
|
},
|
|
|
- // props: ['traceId', 'trace'],
|
|
|
|
|
props: {
|
|
props: {
|
|
|
- traceId: {
|
|
|
|
|
- type: String,
|
|
|
|
|
- default: null,
|
|
|
|
|
- },
|
|
|
|
|
- trace: {
|
|
|
|
|
|
|
+ recordId: {
|
|
|
type: String,
|
|
type: String,
|
|
|
default: null,
|
|
default: null,
|
|
|
},
|
|
},
|
|
@@ -103,7 +102,7 @@ export default {
|
|
|
|
|
|
|
|
data: function () {
|
|
data: function () {
|
|
|
return {
|
|
return {
|
|
|
- traceComments: [],
|
|
|
|
|
|
|
+ recordComments: [],
|
|
|
className: 'com.leanwo.prodog.system.model.CurdWindowComment',
|
|
className: 'com.leanwo.prodog.system.model.CurdWindowComment',
|
|
|
uuid: '',
|
|
uuid: '',
|
|
|
userClassName: 'com.leanwo.prodog.base.model.User',
|
|
userClassName: 'com.leanwo.prodog.base.model.User',
|
|
@@ -111,17 +110,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
watch: {
|
|
|
- traceId: function (curVal, oldVal) {
|
|
|
|
|
|
|
+ recordId: function (curVal, oldVal) {
|
|
|
if (curVal != undefined) {
|
|
if (curVal != undefined) {
|
|
|
- this.getTraceComment();
|
|
|
|
|
|
|
+ this.getCurdComment();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.recordComments = [];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
mounted: function () {
|
|
mounted: function () {
|
|
|
this.uuid = this.$route.params.uuid;
|
|
this.uuid = this.$route.params.uuid;
|
|
|
- if (this.traceId != undefined) {
|
|
|
|
|
- this.getTraceComment();
|
|
|
|
|
|
|
+ if (this.recordId != undefined) {
|
|
|
|
|
+ this.getCurdComment();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -137,8 +138,9 @@ export default {
|
|
|
* 根据追踪表Id获取评论
|
|
* 根据追踪表Id获取评论
|
|
|
* @author GuoZhiBo 20171201
|
|
* @author GuoZhiBo 20171201
|
|
|
*/
|
|
*/
|
|
|
- getTraceComment: function () {
|
|
|
|
|
|
|
+ getCurdComment: function () {
|
|
|
var _self = this;
|
|
var _self = this;
|
|
|
|
|
+ _self.recordComments = [];
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
url: Common.getApiURL(
|
|
url: Common.getApiURL(
|
|
|
'CurdWindowCommentResource/queryCurdWindowComment',
|
|
'CurdWindowCommentResource/queryCurdWindowComment',
|
|
@@ -147,13 +149,13 @@ export default {
|
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
|
async: false,
|
|
async: false,
|
|
|
data: {
|
|
data: {
|
|
|
- traceId: _self.traceId,
|
|
|
|
|
|
|
+ recordId: _self.recordId,
|
|
|
},
|
|
},
|
|
|
beforeSend: function (request) {
|
|
beforeSend: function (request) {
|
|
|
Common.addTokenToRequest(request);
|
|
Common.addTokenToRequest(request);
|
|
|
},
|
|
},
|
|
|
success: function (data) {
|
|
success: function (data) {
|
|
|
- _self.traceComments = data;
|
|
|
|
|
|
|
+ _self.recordComments = data;
|
|
|
},
|
|
},
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
@@ -186,32 +188,40 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
-.headDiv {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: space-between;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
-}
|
|
|
|
|
-.commentClass {
|
|
|
|
|
|
|
+.comment {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
}
|
|
}
|
|
|
-.commentDetail {
|
|
|
|
|
|
|
+
|
|
|
|
|
+.comment-detail {
|
|
|
margin-left: 24px;
|
|
margin-left: 24px;
|
|
|
}
|
|
}
|
|
|
-.common {
|
|
|
|
|
- padding-bottom: 10px;
|
|
|
|
|
-}
|
|
|
|
|
-:deep(p) {
|
|
|
|
|
- margin-left: 24px;
|
|
|
|
|
|
|
+
|
|
|
|
|
+.comment-detail p {
|
|
|
margin-bottom: 0px !important;
|
|
margin-bottom: 0px !important;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
- width: 90%;
|
|
|
|
|
}
|
|
}
|
|
|
-span {
|
|
|
|
|
- font-size: 16px;
|
|
|
|
|
|
|
+
|
|
|
|
|
+.comment-user{
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.comment-user-tag{
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ margin: 0 10px 0 5px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.ant-divider-horizontal {
|
|
.ant-divider-horizontal {
|
|
|
margin: 6px 0;
|
|
margin: 6px 0;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+.common-title{
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+:deep .common-content p{
|
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.files {
|
|
.files {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|