From 5255214b634273b1129dca5f1fd2d428f34ca7f4 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 14 Mar 2023 12:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91-=E9=A6=96=E9=A1=B5=20?= =?UTF-8?q?=E5=BA=94=E6=94=B6=E8=B4=A6=E6=AC=BE=E5=A2=9E=E5=8A=A0=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=82=B9=E5=87=BB=E7=9A=84=E4=BA=8B=E4=BB=B6=EF=BC=9B?= =?UTF-8?q?=E4=BC=9A=E8=AE=AE=E6=8A=A5=E5=90=8D=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=B4=E8=B4=B9=E6=96=B9=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/NotReceivedEcharts.vue | 27 +- .../dashboard/modules/NotReceivedModal.vue | 407 ++++++++++++++++++ .../incomePayments/meetManage/Attendance.vue | 12 + 3 files changed, 441 insertions(+), 5 deletions(-) create mode 100644 src/views/dashboard/modules/NotReceivedModal.vue diff --git a/src/views/dashboard/NotReceivedEcharts.vue b/src/views/dashboard/NotReceivedEcharts.vue index 0e22c6e..af9d204 100644 --- a/src/views/dashboard/NotReceivedEcharts.vue +++ b/src/views/dashboard/NotReceivedEcharts.vue @@ -37,7 +37,7 @@ :scroll="{x: 500}" :dataSource="dataSource" :pagination="false" - class="j-table-force-nowrap main-table"> + class="j-table-force-nowrap main-table not-receive-table"> @@ -81,6 +83,7 @@ echarts.use([ import {getAction} from '@api/manage' import {formatMoney} from '@/utils/formatMoney' import {queryDepartTreeList} from '@api/api' +import NotReceivedModal from './modules/NotReceivedModal' const columns = [ { @@ -94,6 +97,7 @@ const columns = [ export default { name: 'NotReceivedEcharts', + components: { NotReceivedModal }, data() { return { activeIndex: 'income', @@ -193,7 +197,7 @@ export default { show: true, trigger: 'item', formatter: (param) => { - console.log(param,'eee') + // console.log(param,'eee') return `
${param.name} @@ -247,6 +251,19 @@ export default { window.addEventListener('resize', () => { myChart.resize() }) + myChart.on('click', this.chartClickFunc) + }, + // echarts 的点击事件 + + chartClickFunc(params) { + console.log('--------顺序----------', params) + // 获取当前点击的饼状图的名字 + let queryData = { + name: params.data.name, // 名字 + type: params.dataIndex + 1 // 序号 + } + this.$refs.notReceivedModal.show(queryData) + }, /** * 处理表头 @@ -381,20 +398,20 @@ export default { font-size: 20px; } -/deep/ .ant-table-thead tr > th { +/deep/.not-receive-table .ant-table-thead tr > th { color: #050525; font-weight: bold; background: rgb(245, 245, 246); border: none; } -/deep/ .ant-table-tbody tr > td { +/deep/ .not-receive-table .ant-table-tbody tr > td { color: rgba(5, 5, 37, 0.8); border: none; border-bottom: 1px solid rgb(245, 245, 246); } -/deep/ .ant-table-tbody tr > td:first-child { +/deep/ .not-receive-table .ant-table-tbody tr > td:first-child { color: #050525; font-weight: bold; background: rgb(245, 245, 246); diff --git a/src/views/dashboard/modules/NotReceivedModal.vue b/src/views/dashboard/modules/NotReceivedModal.vue new file mode 100644 index 0000000..6b5ab3e --- /dev/null +++ b/src/views/dashboard/modules/NotReceivedModal.vue @@ -0,0 +1,407 @@ + + + + + \ No newline at end of file diff --git a/src/views/incomePayments/meetManage/Attendance.vue b/src/views/incomePayments/meetManage/Attendance.vue index 5379f61..5091d42 100644 --- a/src/views/incomePayments/meetManage/Attendance.vue +++ b/src/views/incomePayments/meetManage/Attendance.vue @@ -204,6 +204,14 @@ dictCode="yn"/> + + + + +