多维图数据设置已完成

This commit is contained in:
aixianling
2023-10-08 11:14:00 +08:00
parent 8aaf56e9e9
commit 8dd48bc16c
6 changed files with 554 additions and 457 deletions

View File

@@ -66,7 +66,7 @@
v-else-if="currentType === 'video'"/>
<AiDvPartyOrg style="width: 100%; height: 100%;" v-else-if="currentType === 'partyOrg'" :instance="instance"/>
<!-- <ai-sprite v-else-if="/building/.test(currentType)" v-bind="data" is3D @init="mods[currentType]"/> -->
<ai-dv-plot v-else-if="currentType=='plot'"/>
<ai-dv-plot v-else-if="currentType=='plot'" :options="data.charts"/>
</ai-dv-panel>
</div>
</template>

View File

@@ -14,6 +14,7 @@ const install = function (Vue) {
})
Vue.prototype.MODEL = model
}
Vue.prototype.$echartTpls = require("./AiEchart/echartTpls")
// 遍历注册全局组件
let contexts = require.context('.', true, /[\\\/]Ai([^\\\/]+)\.vue$/);
if (contexts) {

View File

@@ -1,6 +1,6 @@
<template>
<section class="AiDvPlot">
<ai-select class="plotPicker" v-model="current" :select-list="options"/>
<ai-select class="plotPicker" v-model="current" :select-list="charts" @change="handleChangeChart"/>
<div ref="DvPlot"/>
</section>
</template>
@@ -15,7 +15,15 @@ export default {
current: 0
}
},
methods: {},
computed: {
charts: v => v.options.map((e, id) => ({id, label: e.title})),
plot: v => v.options[v.current]
},
methods: {
handleChangeChart() {
}
},
}
</script>
<style scoped lang="scss">