fix:修改text图表样式

This commit is contained in:
zyh
2023-09-27 15:31:00 +08:00
parent 51e14fb092
commit f9498279e0
3 changed files with 22 additions and 4 deletions

View File

@@ -38,7 +38,6 @@
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
padding: 3px 15px; padding: 3px 15px;
margin-bottom: -1px;
color: $--color-text-regular; color: $--color-text-regular;
border: 1px solid $--border-color-light; border: 1px solid $--border-color-light;
background: $--alert-rule-background-color; background: $--alert-rule-background-color;

View File

@@ -107,6 +107,16 @@
.v-md-editor-preview{ .v-md-editor-preview{
padding: 0; padding: 0;
} }
.text-content{
.el-scrollbar__wrap{
margin-right: 0 !important;
margin-bottom: 0 !important;
overflow: hidden !important;
}
.el-scrollbar__bar{
display: none;
}
}
} }
.no-data{ .no-data{
text-align: center; text-align: center;

View File

@@ -146,10 +146,19 @@ export default {
this.tableData = response.data.list this.tableData = response.data.list
const globalSearchId = this.$store.getters.getGlobalSearchId const globalSearchId = this.$store.getters.getGlobalSearchId
let detailViewRightObj = '' let detailViewRightObj = ''
if (globalSearchId) { if (this.tableId === 'notebookTable' && this.detailType === 'view') { // 防止详情视图编辑后切换到别的数据
detailViewRightObj = this.tableData.find(item => item.id === globalSearchId) const obj = this.tableData.find(item => item.id === this.detailViewRightObj.id)
if (obj) {
detailViewRightObj = obj
} else {
detailViewRightObj = this.tableData[0]
}
} else { } else {
detailViewRightObj = this.tableData[0] if (globalSearchId) {
detailViewRightObj = this.tableData.find(item => item.id === globalSearchId)
} else {
detailViewRightObj = this.tableData[0]
}
} }
this.detailViewRightObj = this.$lodash.cloneDeep(detailViewRightObj) this.detailViewRightObj = this.$lodash.cloneDeep(detailViewRightObj)
this.pageObj.total = response.data.total this.pageObj.total = response.data.total