修改文件夹位置

This commit is contained in:
GGJ
2024-01-22 20:24:50 +08:00
parent 4f285a61e5
commit f2384c86cd
16 changed files with 777 additions and 20 deletions

View File

@@ -10,7 +10,7 @@
import { onBeforeUnmount, ref, watch, onMounted, defineEmits } from 'vue'
import * as echarts from 'echarts4'
import { useDictData } from '@/stores/dictData'
const dictData = useDictData()
const dictData = useDictData()
const props = defineProps(['options'])
const myCharts = ref()
const showCircle = ref(false)
@@ -56,6 +56,7 @@ const GetEchar = async (name: string) => {
backgroundColor: 'rgba(0,0,0,0.35)',
...(props.options.tooltip || null)
},
legend: {
orient: 'vertical',
left: 26,
@@ -65,6 +66,7 @@ const GetEchar = async (name: string) => {
...(props.options.legend || null)
},
color: [
...(props.options.color || ''),
'#07CCCA ',
@@ -78,6 +80,7 @@ const GetEchar = async (name: string) => {
'#66FFCC',
'#B3B3B3'
],
geo: {
map: name,
zoom: 1.2,
@@ -144,7 +147,9 @@ const GetEchar = async (name: string) => {
},
...props.options.options
}
if (props.options.visualMap) {
option.visualMap = props.options.visualMap
}
myCharts.value.setOption(option)
window.addEventListener('resize', resizeHandler)
@@ -165,8 +170,6 @@ const MapReturn = (name: string) => {
let flag = true
for (let i = 0; i < area.length; i++) {
if (area[i].name == name) {
console.log(11111)
list = area[i]
flag = false
emit('getRegionByRegion', list)

View File

@@ -16,7 +16,7 @@
:label-width="90"
>
<el-form-item label="区域" v-if="area">
<Area v-model="tableStore.table.params.deptIndex" />
<Area ref="areaRef" v-model="tableStore.table.params.deptIndex" />
</el-form-item>
<el-form-item label="日期" v-if="datePicker" style="grid-column: span 2; max-width: unset">
<DatePicker ref="datePickerRef"></DatePicker>
@@ -49,6 +49,7 @@ const tableStore = inject('tableStore') as TableStore
const tableHeader = ref()
const datePickerRef = ref()
const dictData = useDictData()
const areaRef = ref()
interface Props {
datePicker?: boolean
area?: boolean
@@ -114,9 +115,6 @@ const onComSearch = async () => {
tableStore.table.params.endTime = datePickerRef.value.timeValue[1]
tableStore.table.params.timeFlag = datePickerRef.value.timeFlag
}
if (props.area) {
tableStore.table.params.deptIndex = dictData.state.area[0].id
}
await tableStore.onTableAction('search', {})
}
@@ -127,7 +125,7 @@ const dateChange = () => {
// tableStore.table.params.searchBeginTime = date.value[0]
// tableStore.table.params.searchEndTime = date.value[1]
}
defineExpose({ onComSearch })
defineExpose({ onComSearch, areaRef })
</script>
<style scoped lang="scss">