| | |
| | | } |
| | | }; |
| | | const getListMatter = async () => { |
| | | console.log('permission.value.o_and_m_p_jump', permission.value.o_and_m_p_jump); |
| | | // console.log('permission.value.o_and_m_p_jump', permission.value.o_and_m_p_jump); |
| | | |
| | | if (permission.value.o_and_m_p_jump === true) { |
| | | const res = await getdaiban(0,userInfo.value.detail.areaCode); |
| | | todos.value = res.data.data?.slice(0, 5); |
| | | console.log('2222',res.data.data); |
| | | |
| | | } else { |
| | | const res = await getdaiban(1,userInfo.value.detail.areaCode); |
| | | todos.value = res.data.data?.slice(0, 5); |
| | | console.log('111111',res.data.data); |
| | | |
| | | } |
| | | |
| | | }; |
| | |
| | | import { useRouter } from 'vue-router'; |
| | | import ev1 from '@/assets/images/workbench/ev1.png'; |
| | | import ev2 from '@/assets/images/workbench/ev2.png'; |
| | | import { ElMessage } from 'element-plus' |
| | | const router = useRouter(); |
| | | const events = ref({}); |
| | | const params = ref({ |
| | |
| | | (newV, oldV) => { |
| | | if (newV && oldV) { |
| | | const newDate = dayjs(newV); |
| | | const oldDate = dayjs(oldV); |
| | | params.value = { |
| | | start_date: newDate.startOf('month').format('YYYY-MM-DD HH:mm:ss'), |
| | | end_date: newDate.endOf('month').format('YYYY-MM-DD HH:mm:ss'), |
| | |
| | | day: day, |
| | | }, |
| | | }); |
| | | }else{ |
| | | ElMessage.warning('加急开发中...') |
| | | } |
| | | }; |
| | | onMounted(() => { |
| | |
| | | import flyImg2 from '@/assets/images/workbench/fy3.png'; |
| | | import flyImg3 from '@/assets/images/workbench/fy4.png'; |
| | | import statistics from './components/statistics.vue'; |
| | | import { ElMessage } from 'element-plus' |
| | | let checked = ref('CURRENT_YEAR'); |
| | | let timeListStr = ['本周', '本月', '本年']; |
| | | let timeListEnum = ['CURRENT_WEEK', 'CURRENT_MONTH', 'CURRENT_YEAR']; |
| | |
| | | checked.value = item; |
| | | params.value.date_enum = item; |
| | | dateSelect.value = item; |
| | | // console.log('日期选择', params.value.date_enum); |
| | | getTypeData(); |
| | | getFlyList() |
| | | getFlyTimeList() |
| | | }; |
| | | // 跳转 |
| | | const jumpshebei= ()=>{} |
| | | const jumpshebei= ()=>{ |
| | | ElMessage.warning('加急开发中...') |
| | | } |
| | | |
| | | const eventTypeList = ref([ |
| | | { name: '待审核', value: 0, img: overviewImg2, color: '#FF472F', status: '2', rate: 0 }, |
| | | { name: '待处理', value: 0, img: overviewImg3, color: '#FF7411', status: '0', rate: 0 }, |
| | |
| | | const getFlyTimeList=()=>{ |
| | | getFlyTime(params.value).then(res=>{ |
| | | const resList = res?.data?.data || []; |
| | | // console.log('飞行统计11',res.data.data); |
| | | lineCharts(resList) |
| | | }) |
| | | } |
| | |
| | | const chartRef = ref(null); |
| | | let { chart: lineChart } = useEchartsResize(chartRef); |
| | | const initChart = val => { |
| | | // 转换数据格式并计算总数 |
| | | const totalNum = val.reduce((sum, item) => sum + item.num, 0); |
| | | const data = { |
| | | total: { |
| | |
| | | legend: { |
| | | show: false, |
| | | }, |
| | | title: { |
| | | text: data.total.title, |
| | | textStyle: { |
| | | color: 'rgba(28, 31, 35, 0.80)', |
| | | fontSize: '12px', |
| | | fontWeight: 'normal', |
| | | }, |
| | | subtext: data.total.figure, |
| | | subtextStyle: { |
| | | color: '#1C1F23', |
| | | fontSize: '20px', |
| | | fontWeight: '600', |
| | | }, |
| | | top: '40%', |
| | | left: '50%', |
| | | title: { |
| | | text: data.total.title, |
| | | textStyle: { |
| | | color: 'rgba(28, 31, 35, 0.80)', |
| | | fontSize: '12px', |
| | | fontWeight: 'normal', |
| | | }, |
| | | subtext: data.total.figure, |
| | | subtextStyle: { |
| | | color: '#1C1F23', |
| | | fontSize: '20px', |
| | | fontWeight: '600', |
| | | }, |
| | | top: '40%', |
| | | left: '53%', |
| | | textAlign: 'center', // 文本对齐 |
| | | }, |
| | | series: [ |
| | | { |
| | | name: '', |
| | |
| | | }, |
| | | }, |
| | | yAxis: [ |
| | | // 只保留第一个y轴 |
| | | |
| | | { |
| | | type: 'log', |
| | | name: '单位:万套', |
| | |
| | | { |
| | | name: '任务成果', |
| | | type: 'line', |
| | | yAxisIndex: 1, // 改为使用第一个y轴 |
| | | yAxisIndex: 1, |
| | | smooth: true, |
| | | // symbol: 'circle', |
| | | // symbolSize: 8, |
| | |
| | | } |
| | | </style> |
| | | <style scoped lang="scss"> |
| | | // 开始 |
| | | .workbench { |
| | | padding: 0px 20px 0 20px; |
| | | display: flex; |
| | |
| | | .workleft { |
| | | width: 68%; |
| | | margin-right: 10px; |
| | | // 综合 |
| | | .comprehensiveCon { |
| | | // height: 736px; |
| | | background: #ffffff; |