mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
feat: 增加插件需要的参数
This commit is contained in:
parent
084eef5318
commit
7c0be7e92d
@ -3,6 +3,8 @@
|
||||
:is="mode"
|
||||
:ref="refId"
|
||||
:obj="obj"
|
||||
:bus="bus"
|
||||
:axios-request="request"
|
||||
v-bind="$attrs"
|
||||
v-on="$listeners"
|
||||
/>
|
||||
@ -11,6 +13,9 @@
|
||||
<script>
|
||||
import { uuid } from 'vue-uuid'
|
||||
import { get } from '@/api/system/dynamic'
|
||||
import bus from '@/utils/bus'
|
||||
import request from '@/utils/request'
|
||||
|
||||
export default {
|
||||
name: 'AsyncComponent',
|
||||
inheritAttrs: true,
|
||||
@ -29,7 +34,9 @@ export default {
|
||||
return {
|
||||
resData: '',
|
||||
mode: '',
|
||||
refId: null
|
||||
refId: null,
|
||||
bus: bus,
|
||||
request: request
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -473,7 +473,8 @@
|
||||
<plugin-com
|
||||
v-if="view.isPlugin"
|
||||
:component-name="view.type + '-data'"
|
||||
:obj="{view, param, chart, dimensionData, quotaData}"
|
||||
:obj="{view, param, chart, dimension, dimensionData, quota, quotaData}"
|
||||
:bus="bus"
|
||||
/>
|
||||
<div v-else>
|
||||
|
||||
@ -1796,7 +1797,7 @@ export default {
|
||||
DrillPath,
|
||||
PluginCom,
|
||||
MapMapping,
|
||||
MarkMapDataEditor,
|
||||
MarkMapDataEditor
|
||||
},
|
||||
props: {
|
||||
param: {
|
||||
@ -1816,6 +1817,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
bus: bus,
|
||||
positionActiveNames: 'positionAdjust',
|
||||
loading: false,
|
||||
table: {},
|
||||
@ -2955,7 +2957,7 @@ export default {
|
||||
|
||||
// 更换数据集
|
||||
changeChart() {
|
||||
const optType = this.view.tableId === this.changeTable.id && this.view.dataFrom!=='template' ? 'same' : 'change'
|
||||
const optType = this.view.tableId === this.changeTable.id && this.view.dataFrom !== 'template' ? 'same' : 'change'
|
||||
// 更换数据集后清空视图字段,并重新请求数据;否则没有操作
|
||||
if (optType === 'change') {
|
||||
this.view.dataFrom = 'dataset'
|
||||
|
@ -21,8 +21,8 @@
|
||||
<el-col class="info-item">
|
||||
<p class="info-title">{{ $t('chart.chart_type') }}</p>
|
||||
<svg-icon
|
||||
v-if="detail.chart.type"
|
||||
:icon-class="detail.chart.type"
|
||||
:icon-class="detail.chart.isPlugin && detail.chart.type && detail.chart.type !== 'buddle-map' ? ('/api/pluginCommon/staticInfo/' + detail.chart.type + '/svg') : detail.chart.type"
|
||||
class="chart-icon"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col class="info-item">
|
||||
|
Loading…
Reference in New Issue
Block a user