CN-1551 fix: 添加知识库和detection页table的单元格设置

This commit is contained in:
刘洪洪
2024-03-11 15:24:49 +08:00
parent 53f05ac649
commit f58c2af6ce
4 changed files with 35 additions and 7 deletions

View File

@@ -31,3 +31,4 @@
- drawer抽屉在header.vue中遇到custom-class="cn-menu"渲染后class中没有cn-menu也许是按需引入导致的额外标注
- message-box弹窗新版在旧版的el-message-box的外层包裹了一层父div el-overlay-message-box导致原样式会错乱
- dialog: custom在2.4版本后被移除使用class替代插槽中的title也在2.4版本后移除使用header替代
- tabs: 点击tabstab-click有延迟v-model获取的信息是上一个路由的信息使用tab-change获取的v-model则是实时的根据使用内容进行取舍。tab-change在2.1.8版本上线

View File

@@ -122,7 +122,7 @@
<script>
import unitConvert, { valueToRangeValue } from '@/utils/unit-convert'
import { storageKey, unitTypes, networkTable, operationType, curTabState, metricType, metricOptions } from '@/utils/constants'
import { storageKey, unitTypes, networkTable, operationType, curTabState, metricOptions } from '@/utils/constants'
import * as echarts from 'echarts'
import { appListChartOption } from '@/views/charts2/charts/options/echartOption'
import { shallowRef } from 'vue'
@@ -551,6 +551,7 @@ export default {
this.showAddApp = false
},
appTypeTabChange (n) {
// 此处的tab-click有延迟获取的是上一个路由jest单测里获取的是click为兼容故继续使用tab-click而非tab-change
this.pageObj.pageNo = 1
this.searcherApp = ''
this.addApp('', '', '', n.index)

View File

@@ -60,8 +60,8 @@
height="156px"
width="100%"
class="dialog-table"
cell-style="padding:4px 0px;font-size: 12px;color: #353636;font-weight: 400;"
header-cell-style="padding:4px 0px;background: #F5F8FA;font-size: 12px;color: #353636;font-weight: 500;">
:cell-style="myCellStyle"
:header-cell-style="myHeaderCellStyle">
<el-table-column :resizable="false" align="center" type="selection" width="50"></el-table-column>
<el-table-column property="ruleId" label="ID" width="150"></el-table-column>
<el-table-column property="name" label="Name"></el-table-column>
@@ -122,7 +122,20 @@ export default {
filterParams: {},
policyTotal: 0,
policyEnabledNum: 0,
policyDetail: {}
policyDetail: {},
myCellStyle: {
padding: '4px 0px',
'font-size': '12px',
color: '#353636',
'font-weight': 400
},
myHeaderCellStyle: {
padding: '4px 0px',
background: '#F5F8FA',
'font-size': '12px',
color: '#353636',
'font-weight': 500
}
}
},
mounted () {

View File

@@ -77,8 +77,8 @@
height="156px"
width="100%"
class="dialog-table"
cell-style="padding:4px 0px;font-size: 12px;color: #353636;font-weight: 400;"
header-cell-style="padding:4px 0px;background: #F5F8FA;font-size: 12px;color: #353636;font-weight: 500;">
:cell-style="myCellStyle"
:header-cell-style="myHeaderCellStyle">
<el-table-column
:resizable="false"
align="center"
@@ -121,7 +121,20 @@ export default {
keyWord: '',
showConfirmDialog: false,
delItemList: [],
secondBatchDeleteObjs: []
secondBatchDeleteObjs: [],
myCellStyle: {
padding: '4px 0px',
'font-size': '12px',
color: '#353636',
'font-weight': 400
},
myHeaderCellStyle: {
padding: '4px 0px',
background: '#F5F8FA',
'font-size': '12px',
color: '#353636',
'font-weight': 500
}
}
},
watch: {