|
|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2025-01-09 18:10:35
|
|
|
- * @LastEditTime: 2025-01-21 14:57:11
|
|
|
+ * @LastEditTime: 2025-01-21 16:01:46
|
|
|
* @LastEditors: bogon
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /performance-test/src/views/overview/components/power_scatter_2D/index.vue
|
|
|
@@ -54,7 +54,7 @@ export default {
|
|
|
></powerMarkers2DCharts>
|
|
|
</VirtualList>
|
|
|
|
|
|
- <el-tabs value="first">
|
|
|
+ <el-tabs value="first" v-if="isShowDescription">
|
|
|
<el-tab-pane label="意见描述" name="first">
|
|
|
<TinymceEditor
|
|
|
ref="editor"
|
|
|
@@ -65,7 +65,7 @@ export default {
|
|
|
</TinymceEditor>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
- <el-row type="flex" class="row-bg" justify="end">
|
|
|
+ <el-row type="flex" class="row-bg" justify="end" v-if="isShowDescription">
|
|
|
<el-col :span="2" style="margin: 20px">
|
|
|
<el-button type="primary" size="small" @click="handleComment"
|
|
|
>提交评论</el-button
|
|
|
@@ -130,6 +130,7 @@ export default {
|
|
|
diagramRelationsDatas: [], //分图
|
|
|
commentDescriptionVos: [], //评论列表
|
|
|
editableTabs: [],
|
|
|
+ isShowDescription: false,
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -213,6 +214,9 @@ export default {
|
|
|
? undefined
|
|
|
: this.fieldEngineCodes.join(","),
|
|
|
});
|
|
|
+ if (result.data.length > 0) {
|
|
|
+ this.isShowDescription = true;
|
|
|
+ }
|
|
|
if (
|
|
|
result.data &&
|
|
|
result.data[0] &&
|
|
|
@@ -239,6 +243,7 @@ export default {
|
|
|
this.diagramRelationsDatas =
|
|
|
(result.data &&
|
|
|
result.data[0] &&
|
|
|
+ result.data[0].diagramRelations &&
|
|
|
result.data[0].diagramRelations.filter((item) =>
|
|
|
item.fileAddr.endsWith(".json")
|
|
|
)) ||
|