Merge pull request #9536 from dataease/pr@dev@fix_formatter_cfg_edit

Pr@dev@fix formatter cfg edit
This commit is contained in:
wisonic-s 2024-05-08 15:50:07 +08:00 committed by GitHub
commit a3082b9323
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -3715,7 +3715,7 @@ export default {
this.showValueFormatter = false this.showValueFormatter = false
}, },
saveValueFormatter() { saveValueFormatter() {
const formatterItem = _.cloneDeep(this.valueFormatterItem) const formatterItem = JSON.parse(JSON.stringify(this.valueFormatterItem))
const formatterCfg = formatterItem.formatterCfg const formatterCfg = formatterItem.formatterCfg
const ele = formatterCfg.decimalCount const ele = formatterCfg.decimalCount
if (ele === undefined || ele.toString().indexOf('.') > -1 || parseInt(ele).toString() === 'NaN' || parseInt(ele) < 0 || parseInt(ele) > 10) { if (ele === undefined || ele.toString().indexOf('.') > -1 || parseInt(ele).toString() === 'NaN' || parseInt(ele) < 0 || parseInt(ele) > 10) {

View File

@ -16,7 +16,10 @@
class="drill-item" class="drill-item"
@click.native="drillJump(index + 1)" @click.native="drillJump(index + 1)"
> >
<span :style="{'color': textColor}">{{ filter.value[0] }}</span> <span
:style="{'color': textColor}"
:title="filter.value[0]"
>{{ filter.value[0] }}</span>
</el-breadcrumb-item> </el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</div> </div>
@ -97,6 +100,8 @@ export default {
margin: 0!important; margin: 0!important;
} }
.drill-item{ .drill-item{
max-width: 120px;
overflow: hidden;
cursor: pointer; cursor: pointer;
} }
</style> </style>