diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..9439a1d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "type": "node-terminal", + "name": "运行脚本: dev", + "request": "launch", + "command": "npm run dev", + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/components.d.ts b/components.d.ts index 5f20b40..6c73382 100644 --- a/components.d.ts +++ b/components.d.ts @@ -20,6 +20,8 @@ declare module 'vue' { LayContainer: typeof import('@layui/layui-vue')['LayContainer'] LayCountUp: typeof import('@layui/layui-vue')['LayCountUp'] LayDatePicker: typeof import('@layui/layui-vue')['LayDatePicker'] + LayDescriptions: typeof import('@layui/layui-vue')['LayDescriptions'] + LayDescriptionsItem: typeof import('@layui/layui-vue')['LayDescriptionsItem'] LayDropdown: typeof import('@layui/layui-vue')['LayDropdown'] LayDropdownMenu: typeof import('@layui/layui-vue')['LayDropdownMenu'] LayDropdownMenuItem: typeof import('@layui/layui-vue')['LayDropdownMenuItem'] @@ -40,6 +42,8 @@ declare module 'vue' { LayMenuItem: typeof import('@layui/layui-vue')['LayMenuItem'] LayPopconfirm: typeof import('@layui/layui-vue')['LayPopconfirm'] LayProgress: typeof import('@layui/layui-vue')['LayProgress'] + LayRadio: typeof import('@layui/layui-vue')['LayRadio'] + LayRadioGroup: typeof import('@layui/layui-vue')['LayRadioGroup'] LayRow: typeof import('@layui/layui-vue')['LayRow'] LaySelect: typeof import('@layui/layui-vue')['LaySelect'] LaySelectOption: typeof import('@layui/layui-vue')['LaySelectOption'] diff --git a/dist.zip b/dist.zip index 78cd708..cd874bf 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/api/http.ts b/src/api/http.ts index 99106c0..73515a2 100644 --- a/src/api/http.ts +++ b/src/api/http.ts @@ -7,7 +7,7 @@ type TAxiosOption = { timeout: number; baseURL: string; } - +//记得修改上传路径 //const baseURL = 'http://yfyd.hschool.com.cn' // 设置基础URL前缀 const baseURL="/api"; diff --git a/src/api/module/home.ts b/src/api/module/home.ts index f8a481c..2fa7cec 100644 --- a/src/api/module/home.ts +++ b/src/api/module/home.ts @@ -280,6 +280,51 @@ export const getYearListUpdate= function(date: any) { return Http.post('/api/backend/Year/getMonthlyListUpdate', date) } +//拒收红包列表 +export const getRejectRedEnvelopes= function(date: any) { + return Http.post('/api/backend/reject_red_envelopes/index', date) +} +//拒收红包列表(新增) +export const rejectRedEnvelopesCreate= function(date: any) { + return Http.post('/api/backend/reject_red_envelopes/create', date) +} +//拒收红包列表(编辑) +export const rejectRedEnvelopesUpdate= function(date: any) { + return Http.post('/api/backend/reject_red_envelopes/examine', date) +} +//所有用户 +export const getDoctorName= function(date: any) { + return Http.post('/api/backend/user/getDoctorName', date) +} +//加分减分记录 +export const getAddition= function(date: any) { + return Http.post('/api/backend/addition_and_subtraction_records/index', date) +} +//加分减分记录(新增) +export const getAdditionCreate= function(date: any) { + return Http.post('/api/backend/addition_and_subtraction_records/create', date) +} +//加分减分记录(编辑) +export const getAdditionUpdate= function(date: any) { + return Http.post('/api/backend/addition_and_subtraction_records/update', date) +} +//加分减分记录(删除) +export const getAdditionDelete= function(date: any) { + return Http.post('/api/backend/addition_and_subtraction_records/delete', date) +} + +//加分减分管理 +export const getAdditionIndexManage= function(date: any) { + return Http.post('/api/backend/addition_and_subtraction_records/index_manage', date) +} +//加分减分审核 +export const getAdditionIndexManageExamine= function(date: any) { + return Http.post('/api/backend/addition_and_subtraction_records/examine', date) +} + + + + diff --git a/src/router/module/base-routes.ts b/src/router/module/base-routes.ts index 7fcbe4d..6a61573 100644 --- a/src/router/module/base-routes.ts +++ b/src/router/module/base-routes.ts @@ -209,7 +209,7 @@ export default [ { path: '/census/index', name: 'censusIndex', - component: () => import('../../views/day_evaluation/index.vue'), + component: () => import('../../views/census/red.vue'), meta: {title: '拒收红包报表统计', requireAuth: true, closable: true}, },{ path: '/census/day', diff --git a/src/views/census/day.vue b/src/views/census/day.vue index 6593e96..c0c6d5f 100644 --- a/src/views/census/day.vue +++ b/src/views/census/day.vue @@ -6,8 +6,8 @@ - - + + @@ -23,7 +23,7 @@
@@ -31,7 +31,7 @@
@@ -46,19 +46,19 @@ import * as echarts from 'echarts' const mainRef = ref() const barChartRef = ref() -const yearmonth = ref('') +const date = ref('') // 查询方法 const toSearch = () => { - console.log('查询月度:', yearmonth.value) - // TODO: 这里可以根据月度重新获取数据并刷新图表 + console.log('查询日期:', date.value) + // TODO: 这里可以根据日期重新获取数据并刷新图表 initChart() initBarChart() } // 重置方法 const toReset = () => { - yearmonth.value = '' + date.value = '' // TODO: 重置后可以重新加载默认数据 initChart() initBarChart() @@ -71,54 +71,54 @@ const initChart = () => { const myChart = echarts.init(chartDom) const color = [ - '#0090FF', - '#36CE9E', - '#FFC005', - '#FF515A', - '#8B5CFF', - '#00CA69' + '#6236FF', // 高贵紫 + '#02C2E4', // 湖蓝 + '#FFB100', // 明黄 + '#1CC6A1', // 翡翠绿 + '#7B61FF', // 淡紫 + '#00B4D8' // 天蓝 ] const echartData = [ { name: '内科', - value1: 94, - value2: 91 + value1: 88, + value2: 85 }, { name: '外科', - value1: 93, - value2: 90 + value1: 87, + value2: 84 }, { name: '儿科', - value1: 95, - value2: 92 + value1: 89, + value2: 86 }, { name: '妇产科', - value1: 92, - value2: 89 + value1: 86, + value2: 83 }, { name: '急诊科', - value1: 91, - value2: 88 + value1: 85, + value2: 82 }, { name: '骨科', - value1: 93, - value2: 91 + value1: 87, + value2: 85 }, { name: '眼科', - value1: 94, - value2: 90 + value1: 88, + value2: 84 }, { name: '口腔科', - value1: 92, - value2: 89 + value1: 86, + value2: 83 } ] @@ -200,8 +200,8 @@ const initChart = () => { yAxis: [ { type: 'value', - min: 80, - max: 100, + min: 70, + max: 90, axisLabel: { textStyle: { color: '#666' @@ -318,14 +318,14 @@ const initBarChart = () => { const myChart = echarts.init(chartDom) const barData = [ - { name: '内科', value: 45 }, - { name: '外科', value: 38 }, - { name: '儿科', value: 25 }, - { name: '妇产科', value: 32 }, - { name: '急诊科', value: 28 }, - { name: '骨科', value: 22 }, - { name: '眼科', value: 18 }, - { name: '口腔科', value: 20 } + { name: '内科', value: 25 }, + { name: '外科', value: 22 }, + { name: '儿科', value: 18 }, + { name: '妇产科', value: 20 }, + { name: '急诊科', value: 15 }, + { name: '骨科', value: 12 }, + { name: '眼科', value: 10 }, + { name: '口腔科', value: 13 } ] const option = { @@ -379,17 +379,17 @@ const initBarChart = () => { data: barData.map(item => item.value), itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#83bff6' }, - { offset: 0.5, color: '#188df0' }, - { offset: 1, color: '#188df0' } + { offset: 0, color: '#6236FF' }, // 顶部渐变色 + { offset: 0.5, color: '#02C2E4' }, // 中间渐变色 + { offset: 1, color: '#1CC6A1' } // 底部渐变色 ]) }, emphasis: { itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#2378f7' }, - { offset: 0.7, color: '#2378f7' }, - { offset: 1, color: '#83bff6' } + { offset: 0, color: '#5020E0' }, // 高亮时顶部色 + { offset: 0.7, color: '#00A3C4' }, // 高亮时中间色 + { offset: 1, color: '#15A589' } // 高亮时底部色 ]) } } diff --git a/src/views/census/red.vue b/src/views/census/red.vue new file mode 100644 index 0000000..71c0512 --- /dev/null +++ b/src/views/census/red.vue @@ -0,0 +1,347 @@ + + + + + diff --git a/src/views/census/season.vue b/src/views/census/season.vue index cd2d37d..4a1a138 100644 --- a/src/views/census/season.vue +++ b/src/views/census/season.vue @@ -82,12 +82,12 @@ const initChart = () => { const myChart = echarts.init(chartDom) const color = [ - '#0090FF', - '#36CE9E', - '#FFC005', - '#FF515A', - '#8B5CFF', - '#00CA69' + '#FF6B6B', // 红色系 + '#4ECDC4', // 青色系 + '#45B7D1', // 蓝色系 + '#96CEB4', // 绿色系 + '#FFEEAD', // 黄色系 + '#D4A5A5' // 粉色系 ] const echartData = [ @@ -390,17 +390,17 @@ const initBarChart = () => { data: barData.map(item => item.value), itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#83bff6' }, - { offset: 0.5, color: '#188df0' }, - { offset: 1, color: '#188df0' } + { offset: 0, color: '#FF6B6B' }, // 顶部颜色 + { offset: 0.5, color: '#FF8787' }, // 中间颜色 + { offset: 1, color: '#FFA5A5' } // 底部颜色 ]) }, emphasis: { itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#2378f7' }, - { offset: 0.7, color: '#2378f7' }, - { offset: 1, color: '#83bff6' } + { offset: 0, color: '#FF5252' }, // 高亮时顶部颜色 + { offset: 0.7, color: '#FF6B6B' }, // 高亮时中间颜色 + { offset: 1, color: '#FF8787' } // 高亮时底部颜色 ]) } } diff --git a/src/views/census/year.vue b/src/views/census/year.vue index 826f817..b1f9720 100644 --- a/src/views/census/year.vue +++ b/src/views/census/year.vue @@ -71,12 +71,12 @@ const initChart = () => { const myChart = echarts.init(chartDom) const color = [ - '#0090FF', - '#36CE9E', - '#FFC005', - '#FF515A', - '#8B5CFF', - '#00CA69' + '#5470c6', // 典雅蓝 + '#91cc75', // 清新绿 + '#fac858', // 明亮黄 + '#ee6666', // 温暖红 + '#73c0de', // 浅天蓝 + '#3ba272' // 翠绿 ] const echartData = [ @@ -379,17 +379,17 @@ const initBarChart = () => { data: barData.map(item => item.value), itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#83bff6' }, - { offset: 0.5, color: '#188df0' }, - { offset: 1, color: '#188df0' } + { offset: 0, color: '#5470c6' }, // 顶部颜色 + { offset: 0.5, color: '#7b9eee' }, // 中间颜色 + { offset: 1, color: '#a8c1ff' } // 底部颜色 ]) }, emphasis: { itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#2378f7' }, - { offset: 0.7, color: '#2378f7' }, - { offset: 1, color: '#83bff6' } + { offset: 0, color: '#3a56b0' }, // 高亮时顶部颜色 + { offset: 0.7, color: '#5470c6' }, // 高亮时中间颜色 + { offset: 1, color: '#7b9eee' } // 高亮时底部颜色 ]) } } diff --git a/src/views/complaint/index.vue b/src/views/complaint/index.vue index 920217b..cf87ffb 100644 --- a/src/views/complaint/index.vue +++ b/src/views/complaint/index.vue @@ -8,7 +8,7 @@ - diff --git a/src/views/configuration/add.vue b/src/views/configuration/add.vue index cfcf334..94b8d36 100644 --- a/src/views/configuration/add.vue +++ b/src/views/configuration/add.vue @@ -11,11 +11,11 @@ 加分 减分 -