+ @focus="stageZoomIn">
-
+
@@ -76,7 +75,7 @@ export default {
deep: true,
handler (n) {
this.searchLabel = { id: n.id }
- this.getTableData()
+ // this.getTableData()
}
}
@@ -88,8 +87,7 @@ export default {
searchLabel: { id: this.obj.id },
tableData: [],
// 输入框参数
- row: 'add-small',
- textareaShow: false,
+ rowBox: false,
// 修改数据
editComment: {
id: '',
@@ -117,17 +115,13 @@ export default {
},
// 输入框聚焦事件
stageZoomIn () {
- this.row = 'add-big'
- setTimeout(() => {
- this.textareaShow = true
- })
+ this.rowBox = true
},
// 取消事件
cancel () {
this.editComment.content = ''
- this.textareaShow = false
- this.row = 'add-small'
this.editComment.id = ''
+ this.rowBox = false
},
save (obj) {
const params = {
@@ -193,7 +187,7 @@ export default {
}
.textarea-button{
position: absolute;
- bottom: 20px;
+ bottom: 10px;
right: 10px;
.nz-btn.nz-btn-size-mini{
width: 74px;
diff --git a/nezha-fronted/src/components/common/table/asset/assetCommentTable.vue b/nezha-fronted/src/components/common/table/asset/assetCommentTable.vue
index 5e8d0512a..dbd6def5b 100644
--- a/nezha-fronted/src/components/common/table/asset/assetCommentTable.vue
+++ b/nezha-fronted/src/components/common/table/asset/assetCommentTable.vue
@@ -38,8 +38,8 @@
{{scope.row.createUser.name}}
@{{scope.row.createUser.name}}
{{utcTimeToTimezoneStr(scope.row.cts)}}
-
-
+
+
{{scope.row.content}}