From 63935d892e682e18d4a4adc0f3d9f51b8eb79383 Mon Sep 17 00:00:00 2001 From: Min5203 <2318556978@qq.com> Date: Wed, 26 Jan 2022 14:44:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=BB=9F=E8=AE=A1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E9=A5=BC=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BarEcharts.vue | 130 +++++++++++++++++++++++++++++ components/RingEcharts.vue | 148 +++++++++++++++++++++++++++++++++ nuxt.config.ts | 5 +- pages/Initiate-application.vue | 39 --------- pages/applicant.vue | 12 --- pages/index.vue | 84 +++++++++++++++++-- 6 files changed, 357 insertions(+), 61 deletions(-) create mode 100644 components/BarEcharts.vue create mode 100644 components/RingEcharts.vue diff --git a/components/BarEcharts.vue b/components/BarEcharts.vue new file mode 100644 index 0000000..ea31046 --- /dev/null +++ b/components/BarEcharts.vue @@ -0,0 +1,130 @@ + + diff --git a/components/RingEcharts.vue b/components/RingEcharts.vue new file mode 100644 index 0000000..781c268 --- /dev/null +++ b/components/RingEcharts.vue @@ -0,0 +1,148 @@ + + + + + + diff --git a/nuxt.config.ts b/nuxt.config.ts index b7b03f4..0f62890 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -27,6 +27,9 @@ export default defineNuxtConfig({ href:"https://cdn.bootcdn.net/ajax/libs/tailwindcss/2.2.19/tailwind.min.css", }, ], - script: [{ src: 'https://cdn.bootcdn.net/ajax/libs/dayjs/1.10.7/dayjs.min.js' }], + script: [ + { src: 'https://cdn.bootcdn.net/ajax/libs/dayjs/1.10.7/dayjs.min.js' }, + {src:'https://cdn.bootcdn.net/ajax/libs/echarts/5.2.2/echarts.common.js'} + ], }, }); diff --git a/pages/Initiate-application.vue b/pages/Initiate-application.vue index 66b35bf..54944e6 100644 --- a/pages/Initiate-application.vue +++ b/pages/Initiate-application.vue @@ -273,49 +273,10 @@ const billList = ref([ const reviewerList = ref(['冯教授','周亮','李洪明','夏红','麦琪其','薇薇安','卫老师']); //审核人数组 const selected = ref(['冯教授']); //默认的审核人 const showHistory = ref(true); // 根据数据判断是否有历史记录 -const applyData = ref([ - { - applicant:'代用名1', - money:100, - time:'2021/12/31 12:31', - type: 1 - }, - { - applicant:'代用名2', - money:100, - time:'2021/12/31 12:31', - type: 2 - }, - { - applicant:'代用名1', - money:100, - time:'2021/12/31 12:31', - type: 3 - }, - { - applicant:'代用名2', - money:100, - time:'2021/12/31 12:31', - type: 3 - }, - { - applicant:'代用名1', - money:100, - time:'2021/12/31 12:31', - type: 1 - }, - { - applicant:'代用名2', - money:100, - time:'2021/12/31 12:31', - type: 2 - } -]); // 申请的记录 const isSuccess = ref(false) // 上传票据是否成功 const name = ref('') // 提交人的姓名 const applyMoney = ref(5000) // 手动输入时输入的申请的金额 const titleHidden = ref(true) // 上传提示语隐藏 -const currentPage = ref(0) //当前显示页数 const personalType = ref('个人申请') const personalCategory = ref('用款') diff --git a/pages/applicant.vue b/pages/applicant.vue index 15d6a23..16cf19a 100644 --- a/pages/applicant.vue +++ b/pages/applicant.vue @@ -9,16 +9,6 @@ -
@@ -26,8 +16,6 @@
- -
奖金领取记录
diff --git a/pages/index.vue b/pages/index.vue index 4357815..de2eda2 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,6 +1,5 @@