Merge branch 'dev' into pr@dev@feat_view_plugin

This commit is contained in:
fit2cloud-chenyw
2022-02-10 18:29:04 +08:00
committed by GitHub
9 changed files with 48 additions and 46 deletions

View File

@@ -53,7 +53,7 @@ export default {
}
// 加载视图数据
initPanelData(this.panelId, function() {
this.dataLoading = false
_this.dataLoading = false
// 如果含有跳转参数 进行触发
const tempParam = localStorage.getItem('jumpInfoParam')
if (tempParam) {

View File

@@ -1550,7 +1550,8 @@ export default {
},
auth: {
authConfig: 'Auth Config',
authConfig: 'Configure Permissions By User',
sourceConfig: 'Configure Permissions By Source',
authQuickConfig: 'Auth Quick Config',
dept: 'Dept',
role: 'Role',

View File

@@ -1559,7 +1559,8 @@ export default {
},
auth: {
authConfig: '權限配置',
authConfig: '按用户配置權限',
sourceConfig: '按资源配置權限',
authQuickConfig: '權限快捷配置',
dept: '組織',
role: '角色',

View File

@@ -1568,7 +1568,8 @@ export default {
},
auth: {
authConfig: '权限配置',
authConfig: '按用户配置权限',
sourceConfig: '按资源配置权限',
authQuickConfig: '权限快捷配置',
dept: '组织',
role: '角色',

View File

@@ -219,27 +219,32 @@
</el-radio-group>
</el-row>
</el-row>
<plugin-com v-if="isPlugin" :component-name="view.type + '-data'" :obj="{view, param, chart}" />
<div v-else>
<el-row v-if="view.type ==='map'" class="padding-lr">
<span style="width: 80px;text-align: right;">
<span>{{ $t('chart.map_range') }}</span>
</span>
<span class="tree-select-span">
<treeselect
ref="mapSelector"
v-model="view.customAttr.areaCode"
:options="places"
:placeholder="$t('chart.select_map_range')"
:normalizer="normalizer"
:no-children-text="$t('commons.treeselect.no_children_text')"
:no-options-text="$t('commons.treeselect.no_options_text')"
:no-results-text="$t('commons.treeselect.no_results_text')"
@input="calcData"
@deselect="calcData"
/>
</span>
</el-row>
<el-row v-if="view.type ==='map'" class="padding-lr">
<span style="width: 80px;text-align: right;">
<span>{{ $t('chart.map_range') }}</span>
</span>
<span class="tree-select-span">
<treeselect
ref="mapSelector"
v-model="view.customAttr.areaCode"
:options="places"
:placeholder="$t('chart.select_map_range')"
:normalizer="normalizer"
:no-children-text="$t('commons.treeselect.no_children_text')"
:no-options-text="$t('commons.treeselect.no_options_text')"
:no-results-text="$t('commons.treeselect.no_results_text')"
:disabled="!hasDataPermission('manage',param.privileges)"
@input="calcData"
@deselect="calcData"
/>
</span>
</el-row>
<!--xAxisExt-->
<el-row
v-if="view.type === 'table-pivot'"

View File

@@ -58,9 +58,10 @@
{{ $t('dataset.preview_item') }}
</span>
<el-pagination
v-show="false"
:current-page="currentPage.page"
:page-sizes="[100]"
:page-size="currentPage.pageSize"
:page-sizes="[parseInt(form.row)]"
:page-size="parseInt(form.row)"
:pager-count="5"
layout="sizes, prev, pager, next"
:total="currentPage.show"
@@ -104,7 +105,7 @@ export default {
height: 500,
currentPage: {
page: 1,
pageSize: 100,
pageSize: parseInt(this.form.row),
show: parseInt(this.form.row)
}
}
@@ -153,6 +154,7 @@ export default {
return
}
this.currentPage.show = parseInt(this.form.row)
this.currentPage.pageSize = parseInt(this.form.row)
this.currentPage.page = 1
this.$emit('reSearch', { form: this.form, page: this.currentPage })
},

View File

@@ -93,7 +93,7 @@ export default {
data: [],
page: {
page: 1,
pageSize: 100,
pageSize: 1000,
show: 1000
},
tabActive: 'dataPreview',
@@ -160,7 +160,7 @@ export default {
this.data = []
this.page = {
page: 1,
pageSize: 100,
pageSize: 1000,
show: 0
}
})
@@ -218,7 +218,7 @@ export default {
resetPage() {
this.page = {
page: 1,
pageSize: 100,
pageSize: 1000,
show: 1000
}
},