Merge pull request #1048 from dataease/pr@dev@feat_chart_count

feat: 视图支持设置结果展示
This commit is contained in:
XiaJunjie2020 2021-10-29 10:33:31 +08:00 committed by GitHub
commit e1d9cd3c23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@
{{ $t('chart.result_count') }}
</span>
<el-row>
<el-radio-group v-model="view.resultMode" :disabled="!hasDataPermission('manage',param.privileges)" size="mini" @change="save">
<el-radio-group v-model="view.resultMode" class="radio-span" :disabled="!hasDataPermission('manage',param.privileges)" size="mini" @change="save">
<el-radio label="all"><span>{{ $t('chart.result_mode_all') }}</span></el-radio>
<el-radio label="custom">
<el-input v-model="view.resultCount" class="result-count" size="mini" @change="save" />
@ -369,7 +369,7 @@
<el-row class="padding-lr">
<span class="title-text">{{ $t('chart.style_priority') }}</span>
<el-row>
<el-radio-group v-model="view.stylePriority" :disabled="!hasDataPermission('manage',param.privileges)" size="mini" @change="save">
<el-radio-group v-model="view.stylePriority" class="radio-span" :disabled="!hasDataPermission('manage',param.privileges)" size="mini" @change="save">
<el-radio label="view"><span>{{ $t('chart.chart') }}</span></el-radio>
<el-radio label="panel"><span>{{ $t('chart.dashboard') }}</span></el-radio>
</el-radio-group>
@ -1906,5 +1906,8 @@ export default {
.result-count{
width:80px;
}
.radio-span>>>.el-radio__label{
margin-left: 4px;
}
</style>