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/) - -
- -

- - Pear Admin Pro Version - - - Vue Version - - - Ant Design Vue Version - - - Node Version - -

- -
- -
- ### 🌈 项目概述 -* 基于 Layui Vue 实现的通用前端模板。整合最新技术高效快速开发,前后端分离模式,开箱即用。 -* 核心模块包括:登录、工作空间、表单页面、列表页面、结果页面、异常页面 等功能。 -* 代码量少、学习简单、功能强大、轻量级、易扩展,轻松开发从现在开始! +* 医风医德考评系统 ### 开始使用 @@ -63,16 +27,4 @@ npm run dev npm run build -``` - -## 预览截图 - -| 预览 | 界面 | -|-----------------------|-----------------------| -| ![](resources/1.jpg) | ![](resources/2.jpg) | -| ![](resources/3.jpg) | ![](resources/4.jpg) | -| ![](resources/5.jpg) | ![](resources/6.jpg) | -| ![](resources/7.jpg) | ![](resources/8.jpg) | -| ![](resources/9.jpg) | ![](resources/10.jpg) | -| ![](resources/11.jpg) | ![](resources/12.jpg) | -| ![](resources/13.jpg) | ![](resources/14.jpg) | \ 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 @@
科室列表
- - + @@ -21,43 +20,11 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - 查询 - - 重置 - - - - - - + 个人记录列表 + 新增记录 +
+ @@ -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"> + + +
- +
填报季度:第 {{ 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"> + + +
- + -
填报年度:{{ 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 @@ -