From b19db7524cd38e3e6f46a10ee9fd41014eb0e1c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?=
=?UTF-8?q?=E7=A8=80?= <2675540038@qq.com>
Date: Tue, 25 Mar 2025 16:05:10 +0800
Subject: [PATCH] daaa
---
README.md | 52 +----
src/api/module/home.ts | 29 +++
src/router/module/base-routes.ts | 7 +-
src/views/configuration/level.vue | 118 +++-------
src/views/day_evaluation/list.vue | 290 +++++++++++++++++++++++++
src/views/month_evaluation/assess.vue | 86 +++++---
src/views/season_evaluation/assess.vue | 103 ++++++---
src/views/year_evaluation/assess.vue | 98 ++++++---
src/views/year_evaluation/list.vue | 142 +++++++++---
9 files changed, 664 insertions(+), 261 deletions(-)
create mode 100644 src/views/day_evaluation/list.vue
diff --git a/README.md b/README.md
index 3bf6aa9..cf556ee 100644
--- a/README.md
+++ b/README.md
@@ -1,43 +1,7 @@
-
-
-
-
- layui vue admin
-
-
-
- 开 箱 即 用 的 layui vue 企 业 级 前 端 模 板
-
-
- [官 网](http://www.layui-vue.com/) | [预 览](http://admin.layui-vue.com/)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
### 🌈 项目概述
-* 基于 Layui Vue 实现的通用前端模板。整合最新技术高效快速开发,前后端分离模式,开箱即用。
-* 核心模块包括:登录、工作空间、表单页面、列表页面、结果页面、异常页面 等功能。
-* 代码量少、学习简单、功能强大、轻量级、易扩展,轻松开发从现在开始!
+* 医风医德考评系统
### 开始使用
@@ -63,16 +27,4 @@ npm run dev
npm run build
-```
-
-## 预览截图
-
-| 预览 | 界面 |
-|-----------------------|-----------------------|
-|  |  |
-|  |  |
-|  |  |
-|  |  |
-|  |  |
-|  |  |
-|  |  |
\ No newline at end of file
+```
\ No newline at end of file
diff --git a/src/api/module/home.ts b/src/api/module/home.ts
index 9723da9..1d1e2d5 100644
--- a/src/api/module/home.ts
+++ b/src/api/module/home.ts
@@ -388,6 +388,35 @@ export function personalProfileFind(data: any) {
return Http.post('/api/backend/Personal_profile/find', data)
}
+// 月度评价
+export function monthlyEvaluation(data: any) {
+ return Http.post('/api/backend/Evaluate/index', data)
+}
+// 月度新增评价
+export function monthlyEvaluationCreate(data: any) {
+ return Http.post('/api/backend/Evaluate/create', data)
+}
+// 评价管理列表
+export function monthlyEvaluationGroupIndex(data: any) {
+ return Http.post('/api/backend/Evaluate/groupIndex', data)
+}
+// 科室评价
+export function monthlyEvaluationGroupUpdate(data: any) {
+ return Http.post('/api/backend/Evaluate/groupUpdate', data)
+}
+// 科室评价
+export function monthlyEvaluationGroupIndexrecords(data: any) {
+ return Http.post('/api/backend/Evaluate/groupIndexrecords', data)
+}
+// 加减法详情
+export function evaluationGroupIndexrecordsList(data: any) {
+ return Http.post('/api/backend/Evaluate/groupIndexrecordsList', data)
+}
+
+
+
+
+
diff --git a/src/router/module/base-routes.ts b/src/router/module/base-routes.ts
index b7aacdb..aa9f00e 100644
--- a/src/router/module/base-routes.ts
+++ b/src/router/module/base-routes.ts
@@ -117,6 +117,11 @@ export default [
name: 'dayEvaluationExamine',
component: () => import('../../views/day_evaluation/examine.vue'),
meta: { title: '加减分审核', requireAuth: true, closable: true },
+ },{
+ path: '/day_evaluation/list',
+ name: 'dayEvaluationList',
+ component: () => import('../../views/day_evaluation/list.vue'),
+ meta: { title: '考评列表', requireAuth: true, closable: true },
},
]
},
@@ -178,7 +183,7 @@ export default [
name: 'yearEvaluationList',
component: () => import('../../views/year_evaluation/list.vue'),
meta: { title: '评价管理列表', requireAuth: true, closable: true },
- },
+ }
]
}
]
diff --git a/src/views/configuration/level.vue b/src/views/configuration/level.vue
index e86e160..9b8e531 100644
--- a/src/views/configuration/level.vue
+++ b/src/views/configuration/level.vue
@@ -6,12 +6,11 @@
科室列表
-
-
+
-
- {{ data.title }} {{ data.id }}
+
+ {{ data.name }}
@@ -21,43 +20,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
-
- 重置
-
-
-
-
-
-
+ 个人记录列表
+ 新增记录
+
+
@@ -66,11 +33,6 @@
{{ row.role }}
-
-
- 新增
- 删除
-
编辑
@@ -106,51 +68,25 @@
+
+
\ No newline at end of file
diff --git a/src/views/month_evaluation/assess.vue b/src/views/month_evaluation/assess.vue
index 98344dc..d3de26d 100644
--- a/src/views/month_evaluation/assess.vue
+++ b/src/views/month_evaluation/assess.vue
@@ -28,21 +28,39 @@
新增自我评价
+ size="lg">
+
+ {{ scope.row.group_evaluation? scope.row.group_evaluation : '未评价'}}
+
+
+ 详情
+
+
-
填报月份:{{ month }}月
-
+
+
+
+ 填报月份:{{ infoData.term }}月
+ 考评对象:{{ infoData.nickname }}
+ 评价时间:{{ infoData.selftime }}
+ 我的评价:{{ infoData.self_evaluation }}
+ 科室:{{ infoData.group_name }}
+ 科室评价:{{ infoData.group_evaluation? infoData.group_evaluation : '未评价' }}
+
+
@@ -50,8 +68,7 @@
import { ref, onMounted, reactive } from 'vue'
import { layer } from '@layui/layer-vue'
import {
- MonthlyList,
- MonthlyContent
+ monthlyEvaluation, monthlyEvaluationCreate
} from '../../api/module/home'
import { useUserStore } from "@/store/user";
import dayjs from "dayjs";
@@ -59,14 +76,29 @@ const addIsInfo = ref(1);
const dataSource = ref([]);
const addShow = ref(false);
const month = ref(dayjs().format('MM'));
+const infoShow = ref(false);
+const infoData = ref({});
+const toDetail = (row: any) => {
+ console.log(row)
+ infoShow.value = true;
+ infoData.value = row;
+}
const addModel = reactive({
- desc: ''
+ self_evaluation: '',
+ type: 1
})
onMounted(() => {
- //getMonthlyList();
+ getMonthlyEvaluation();
//getMonthlyContent();
})
-
+const getMonthlyEvaluation = () => {
+ monthlyEvaluation({ 'type': 1 }).then((res) => {
+ console.log(res)
+ if (res.code == 1) {
+ dataSource.value = res.data;
+ }
+ })
+}
const searchAccount = ref(dayjs().year())
function toReset() {
@@ -77,28 +109,34 @@ const columns = [
title: '月度',
width: '120px',
align: 'center',
- key: 'month'
+ key: 'term'
},
{
title: '考评对象',
width: '150px',
align: 'center',
- key: 'user'
+ key: 'nickname'
},
{
title: '评价时间',
width: '250px',
align: 'center',
- key: 'createtime'
+ key: 'selftime'
},
{
title: '我的评价',
- key: 'self_score',
+ key: 'self_evaluation',
+ ellipsisTooltip: true,
+ align: 'center',
+ },{
+ title: '科室',
+ key: 'group_name',
align: 'center',
}, {
title: '科室评价',
- key: 'department_score',
- customSlot: 'department_score',
+ key: 'group_evaluation',
+ customSlot: 'group_evaluation',
+ ellipsisTooltip: true,
align: 'center',
},
{
@@ -114,17 +152,15 @@ const addButton = ref([
{
text: "确认",
callback: async () => {
- // var json = JSON.stringify(dataSource6.value);
- // var res = await MonthlyCreate({ 'json': json, 'user_id': userStore.userInfo.id, evaluation_schedule_id: current1.value });
- // console.log(res)
- // if (res.code == 1) {
- // layer.msg('提交成功!', { icon: 1 })
- // visible11.value = false;
- // getMonthlyList();
- // //getMonthlyContent();
- // } else {
- // layer.msg(res.msg, { icon: 2 })
- // }
+ var res = await monthlyEvaluationCreate(addModel);
+ console.log(res)
+ if (res.code == 1) {
+ layer.msg(res.msg)
+ addShow.value = false;
+ getMonthlyEvaluation();
+ } else {
+ layer.msg(res.msg, { icon: 2 })
+ }
}
},
{
diff --git a/src/views/season_evaluation/assess.vue b/src/views/season_evaluation/assess.vue
index 0967d7d..dfbf59d 100644
--- a/src/views/season_evaluation/assess.vue
+++ b/src/views/season_evaluation/assess.vue
@@ -24,25 +24,46 @@
- 季度评价填报
+ 季度自评填报
新增自我评价
+ size="lg">
+
+ {{ scope.row.group_evaluation? scope.row.group_evaluation : '未评价'}}
+
+
+ 详情
+
+
-
+
填报季度:第 {{ quarter }} 季度
-
+
+
+
+ 填报月份:{{ infoData.term }}月
+ 考评对象:{{ infoData.nickname }}
+ 评价时间:{{ infoData.selftime }}
+ 我的评价:{{ infoData.self_evaluation }}
+ 科室:{{ infoData.group_name }}
+ 评价时间:{{ infoData.grouptime?infoData.grouptime:'未评价' }}
+
+
+
@@ -50,29 +71,41 @@
import { ref, onMounted, reactive } from 'vue'
import { layer } from '@layui/layer-vue'
import {
- MonthlyList,
- MonthlyContent
+ monthlyEvaluation, monthlyEvaluationCreate
} from '../../api/module/home'
import { useUserStore } from "@/store/user";
import dayjs from "dayjs";
const addIsInfo = ref(1);
const dataSource = ref([]);
const addShow = ref(false);
-//
-
-const addModel = reactive({
- desc: ''
-})
const getQuarter = () => {
- //帮我改造一下
- return dayjs().month() < 3 ? 1 : dayjs().month() < 6 ? 2 : dayjs().month() < 9 ? 3 : 4;
+ //帮我改造一下
+ return dayjs().month() < 3 ? 1 : dayjs().month() < 6 ? 2 : dayjs().month() < 9 ? 3 : 4;
}
const quarter = ref(getQuarter());
+const infoShow = ref(false);
+const infoData = ref({});
+const toDetail = (row: any) => {
+ console.log(row)
+ infoShow.value = true;
+ infoData.value = row;
+}
+const addModel = reactive({
+ self_evaluation: '',
+ type: 2
+})
onMounted(() => {
- //getMonthlyList();
+ getMonthlyEvaluation();
//getMonthlyContent();
})
-
+const getMonthlyEvaluation = () => {
+ monthlyEvaluation({ 'type': 2 }).then((res) => {
+ console.log(res)
+ if (res.code == 1) {
+ dataSource.value = res.data;
+ }
+ })
+}
const searchAccount = ref(dayjs().year())
function toReset() {
@@ -83,28 +116,34 @@ const columns = [
title: '季度',
width: '120px',
align: 'center',
- key: 'quarter'
+ key: 'term'
},
{
title: '考评对象',
width: '150px',
align: 'center',
- key: 'user'
+ key: 'nickname'
},
{
title: '评价时间',
width: '250px',
align: 'center',
- key: 'createtime'
+ key: 'selftime'
},
{
title: '我的评价',
- key: 'self_score',
+ key: 'self_evaluation',
+ ellipsisTooltip: true,
+ align: 'center',
+ },{
+ title: '科室',
+ key: 'group_name',
align: 'center',
}, {
title: '科室评价',
- key: 'department_score',
- customSlot: 'department_score',
+ key: 'group_evaluation',
+ customSlot: 'group_evaluation',
+ ellipsisTooltip: true,
align: 'center',
},
{
@@ -120,17 +159,15 @@ const addButton = ref([
{
text: "确认",
callback: async () => {
- // var json = JSON.stringify(dataSource6.value);
- // var res = await MonthlyCreate({ 'json': json, 'user_id': userStore.userInfo.id, evaluation_schedule_id: current1.value });
- // console.log(res)
- // if (res.code == 1) {
- // layer.msg('提交成功!', { icon: 1 })
- // visible11.value = false;
- // getMonthlyList();
- // //getMonthlyContent();
- // } else {
- // layer.msg(res.msg, { icon: 2 })
- // }
+ var res = await monthlyEvaluationCreate(addModel);
+ console.log(res)
+ if (res.code == 1) {
+ layer.msg(res.msg)
+ addShow.value = false;
+ getMonthlyEvaluation();
+ } else {
+ layer.msg(res.msg, { icon: 2 })
+ }
}
},
{
diff --git a/src/views/year_evaluation/assess.vue b/src/views/year_evaluation/assess.vue
index 2473242..a445735 100644
--- a/src/views/year_evaluation/assess.vue
+++ b/src/views/year_evaluation/assess.vue
@@ -24,25 +24,46 @@
- 年度评价填报
+ 年度自评填报
新增自我评价
+ size="lg">
+
+ {{ scope.row.group_evaluation? scope.row.group_evaluation : '未评价'}}
+
+
+ 详情
+
+
-
+
- 填报年度:{{ searchAccount }} 年度
+ 填报年度:{{ year }}年
-
+
+
+
+ 填报月份:{{ infoData.term }}月
+ 考评对象:{{ infoData.nickname }}
+ 评价时间:{{ infoData.selftime }}
+ 我的评价:{{ infoData.self_evaluation }}
+ 科室:{{ infoData.group_name }}
+ 评价时间:{{ infoData.grouptime?infoData.grouptime:'未评价' }}
+
+
+
@@ -50,24 +71,37 @@
import { ref, onMounted, reactive } from 'vue'
import { layer } from '@layui/layer-vue'
import {
- MonthlyList,
- MonthlyContent
+ monthlyEvaluation, monthlyEvaluationCreate
} from '../../api/module/home'
import { useUserStore } from "@/store/user";
import dayjs from "dayjs";
const addIsInfo = ref(1);
const dataSource = ref([]);
const addShow = ref(false);
-//
-
+const year = ref(dayjs().year());
+const infoShow = ref(false);
+const infoData = ref({});
+const toDetail = (row: any) => {
+ console.log(row)
+ infoShow.value = true;
+ infoData.value = row;
+}
const addModel = reactive({
- desc: ''
+ self_evaluation: '',
+ type: 3
})
onMounted(() => {
- //getMonthlyList();
+ getMonthlyEvaluation();
//getMonthlyContent();
})
-
+const getMonthlyEvaluation = () => {
+ monthlyEvaluation({ 'type': 3 }).then((res) => {
+ console.log(res)
+ if (res.code == 1) {
+ dataSource.value = res.data;
+ }
+ })
+}
const searchAccount = ref(dayjs().year())
function toReset() {
@@ -78,28 +112,34 @@ const columns = [
title: '年度',
width: '120px',
align: 'center',
- key: 'year'
+ key: 'term'
},
{
title: '考评对象',
width: '150px',
align: 'center',
- key: 'user'
+ key: 'nickname'
},
{
title: '评价时间',
width: '250px',
align: 'center',
- key: 'createtime'
+ key: 'selftime'
},
{
title: '我的评价',
- key: 'self_score',
+ key: 'self_evaluation',
+ ellipsisTooltip: true,
+ align: 'center',
+ },{
+ title: '科室',
+ key: 'group_name',
align: 'center',
}, {
title: '科室评价',
- key: 'department_score',
- customSlot: 'department_score',
+ key: 'group_evaluation',
+ customSlot: 'group_evaluation',
+ ellipsisTooltip: true,
align: 'center',
},
{
@@ -115,17 +155,15 @@ const addButton = ref([
{
text: "确认",
callback: async () => {
- // var json = JSON.stringify(dataSource6.value);
- // var res = await MonthlyCreate({ 'json': json, 'user_id': userStore.userInfo.id, evaluation_schedule_id: current1.value });
- // console.log(res)
- // if (res.code == 1) {
- // layer.msg('提交成功!', { icon: 1 })
- // visible11.value = false;
- // getMonthlyList();
- // //getMonthlyContent();
- // } else {
- // layer.msg(res.msg, { icon: 2 })
- // }
+ var res = await monthlyEvaluationCreate(addModel);
+ console.log(res)
+ if (res.code == 1) {
+ layer.msg(res.msg)
+ addShow.value = false;
+ getMonthlyEvaluation();
+ } else {
+ layer.msg(res.msg, { icon: 2 })
+ }
}
},
{
diff --git a/src/views/year_evaluation/list.vue b/src/views/year_evaluation/list.vue
index 445b18e..3ab41eb 100644
--- a/src/views/year_evaluation/list.vue
+++ b/src/views/year_evaluation/list.vue
@@ -23,7 +23,7 @@
-
+
@@ -38,7 +38,7 @@
-
+
@@ -54,32 +54,51 @@
-
- 已自评
- 未自评
- 科室已评
+
+ 月度
+ 季度
+ 年度
-
- {{ row.nickname }}
-
+
+ {{ row.group_evaluation ? row.group_evaluation : '未评价' }}
-
- 科室评分
- 考评详情
- 未自评
+ 评价
+ 详情
+
+
+ 填报月份:{{ addModel.term }}月
+ 评价对象:{{ addModel.nickname }}
+
+
+
+
+
+
+
+
+
+ 填报月份:{{ addModel.term }}月
+ 考评对象:{{ addModel.nickname }}
+ 评价时间:{{ addModel.selftime }}
+
+ 科室:{{ addModel.group_name }}
+ 评价时间:{{ addModel.grouptime?addModel.grouptime:'未评价' }}
+
+
+