全局映入echarts
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onBeforeUnmount, onMounted, ref, defineExpose, watch } from 'vue'
|
||||
import echarts from './echarts'
|
||||
// import echarts from './echarts'
|
||||
import * as echarts from 'echarts'; // 全引入
|
||||
|
||||
import 'echarts/lib/component/dataZoom'
|
||||
|
||||
const chartRef = ref<HTMLDivElement>()
|
||||
|
||||
@@ -92,9 +92,9 @@ const init = async () => {
|
||||
id: 1,
|
||||
pid: 3,
|
||||
type: 'menu',
|
||||
title: '审计列表',
|
||||
name: 'comptroller/list',
|
||||
path: 'comptroller/list',
|
||||
title: '图表1',
|
||||
name: 'comptroller/list1',
|
||||
path: 'comptroller/list1',
|
||||
icon: 'el-icon-List',
|
||||
menu_type: 'tab',
|
||||
url: '',
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<DatePicker ref='datePickerRef'></DatePicker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type='primary' @click='search' icon='el-icon-search'>查询</el-button>
|
||||
<el-button type='primary' @click='search' icon='el-icon-Search'>查询</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-empty description='暂无数据' v-if='!echartsData' style='flex: 1'></el-empty>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<DatePicker ref="datePickerRef"></DatePicker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleClick">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-Search" @click="handleClick">查询</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div style="overflow: auto" :style="{ height: tableHeight }" v-loading="tableLoading">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<DatePicker ref="datePickerRef" v-if="dialogVisible"></DatePicker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="init">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-Search" @click="init">查询</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<MyEchart :options="echartsData" v-if="echartsData" style="flex: 1" />
|
||||
|
||||
Reference in New Issue
Block a user