|
@@ -0,0 +1,61 @@
|
|
|
+<script setup>
|
|
|
+import {ref} from 'vue'
|
|
|
+import ETAChart from './ETAChart.vue'
|
|
|
+
|
|
|
+const typeOpt=['图表插入','批量插入','表格插入','沙盘插入']
|
|
|
+const activeType=ref('图表插入')
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="report-insert-content-wrap">
|
|
|
+ <ul class="top-type-box">
|
|
|
+ <li
|
|
|
+ :class="['item',activeType===item&&'active']"
|
|
|
+ v-for="item in typeOpt"
|
|
|
+ :key="item"
|
|
|
+ @click="activeType=item"
|
|
|
+ >{{item}}</li>
|
|
|
+ </ul>
|
|
|
+ <div class="main-box">
|
|
|
+ <ETAChart />
|
|
|
+ </div>
|
|
|
+ <div class="bot-btn">
|
|
|
+ <van-button type="primary" block>插入</van-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.report-insert-content-wrap{
|
|
|
+ width: 100%;
|
|
|
+ height: 70vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ .top-type-box{
|
|
|
+ background-color: $page-bg-grey;
|
|
|
+ display: flex;
|
|
|
+ border-bottom: 1px solid $border-color;
|
|
|
+ .item{
|
|
|
+ padding: 24px 0;
|
|
|
+ flex: 1;
|
|
|
+ text-align: center;
|
|
|
+ border-top-right-radius: var(--van-popup-round-radius);
|
|
|
+ border-top-left-radius: var(--van-popup-round-radius);
|
|
|
+ transition: all 0.3s;
|
|
|
+ }
|
|
|
+ .active{
|
|
|
+ background-color: #fff;
|
|
|
+ color: $theme-color;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .main-box{
|
|
|
+ flex: 1;
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
+ .bot-btn{
|
|
|
+ padding: 48px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|