forked from github/dataease
Merge pull request #1048 from dataease/pr@dev@feat_chart_count
feat: 视图支持设置结果展示
This commit is contained in:
commit
e1d9cd3c23
@ -143,7 +143,7 @@
|
|||||||
{{ $t('chart.result_count') }}
|
{{ $t('chart.result_count') }}
|
||||||
</span>
|
</span>
|
||||||
<el-row>
|
<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="all"><span>{{ $t('chart.result_mode_all') }}</span></el-radio>
|
||||||
<el-radio label="custom">
|
<el-radio label="custom">
|
||||||
<el-input v-model="view.resultCount" class="result-count" size="mini" @change="save" />
|
<el-input v-model="view.resultCount" class="result-count" size="mini" @change="save" />
|
||||||
@ -369,7 +369,7 @@
|
|||||||
<el-row class="padding-lr">
|
<el-row class="padding-lr">
|
||||||
<span class="title-text">{{ $t('chart.style_priority') }}</span>
|
<span class="title-text">{{ $t('chart.style_priority') }}</span>
|
||||||
<el-row>
|
<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="view"><span>{{ $t('chart.chart') }}</span></el-radio>
|
||||||
<el-radio label="panel"><span>{{ $t('chart.dashboard') }}</span></el-radio>
|
<el-radio label="panel"><span>{{ $t('chart.dashboard') }}</span></el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -1906,5 +1906,8 @@ export default {
|
|||||||
.result-count{
|
.result-count{
|
||||||
width:80px;
|
width:80px;
|
||||||
}
|
}
|
||||||
|
.radio-span>>>.el-radio__label{
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user