多维表数据设置面板完成

This commit is contained in:
aixianling
2023-10-07 18:04:34 +08:00
parent 03272542b9
commit fa551fe618
5 changed files with 218 additions and 159 deletions

View File

@@ -66,6 +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-panel>
</div>
</template>
@@ -81,6 +82,7 @@ import AiSwiper from './AiSwiper.vue'
import AiDvDisplay from "./layout/AiDvDisplay/AiDvDisplay";
import AiDvPanel from "./layout/AiDvPanel/AiDvPanel";
import AiDvSummary from "./layout/AiDvSummary/AiDvSummary";
import AiDvPlot from "./layout/AiDvPlot/AiDvPlot.vue";
Vue.use(scrollBoard)
@@ -88,6 +90,7 @@ export default {
name: 'AiDvRender',
props: ['data', 'index', 'theme', 'instance'],
components: {
AiDvPlot,
// AiSprite,
AiDvSummary,
AiDvDisplay,
@@ -118,8 +121,7 @@ export default {
deep: true, handler() {
if (this.currentType == 'map') {
this.renderMap()
}
if (this.currentType === 'AiDvTable') {
} else if (this.currentType === 'AiDvTable') {
this.dvTableConfig = this.data[this.data.dataType].map((v, i) => {
return {
color: this.data.config[i] ? (this.data.config[i].color || '') : '',