多维图数据设置已完成
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user