From 7bf3d0df2f8ca3fe613c44024932fef75da4aef0 Mon Sep 17 00:00:00 2001 From: xiayuping666 <1269237624@qq.com> Date: Thu, 7 Mar 2024 14:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BC=E5=84=BF=E8=AF=84=E4=BB=B7=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/admin.js | 15 + src/i18n/lang/en.js | 3 +- src/i18n/lang/zh-cn.js | 3 +- src/i18n/lang/zh-tw.js | 1 + src/views/evaluate/api.js | 42 +++ src/views/evaluate/columns.js | 52 ++++ src/views/evaluate/components/CommonHead.vue | 69 +++++ .../evaluate/components/CommonTablesImg.vue | 115 +++++++ src/views/evaluate/index.vue | 292 ++++++++++++++++++ 9 files changed, 590 insertions(+), 2 deletions(-) create mode 100644 src/views/evaluate/api.js create mode 100644 src/views/evaluate/columns.js create mode 100644 src/views/evaluate/components/CommonHead.vue create mode 100644 src/views/evaluate/components/CommonTablesImg.vue create mode 100644 src/views/evaluate/index.vue diff --git a/public/admin.js b/public/admin.js index aab49f4..c63bc07 100644 --- a/public/admin.js +++ b/public/admin.js @@ -613,6 +613,21 @@ export default { "roles": ["admin", "common"], "icon": "el-icon-s-opportunity" } + }, + { + "path": "/evaluate", + "name": "evaluate", + "component": "evaluate", + "meta": { + "title": "message.router.evaluate", + "isLink": "", + "isHide": false, + "isKeepAlive": true, + "isAffix": true, + "isIframe": false, + "roles": ["admin", "common"], + "icon": "el-icon-s-opportunity" + } } ] } diff --git a/src/i18n/lang/en.js b/src/i18n/lang/en.js index 7238e4a..e0b0697 100644 --- a/src/i18n/lang/en.js +++ b/src/i18n/lang/en.js @@ -54,7 +54,8 @@ export default { setScoreRules:'setScoreRules', facultyInformation:'facultyInformation', attendanceMachineEquipmentManagement:'attendanceMachineEquipmentManagement', - recipe: 'recipe' + recipe: 'recipe', + evaluate: 'evaluate', }, staticRoutes: { signIn: 'signIn', diff --git a/src/i18n/lang/zh-cn.js b/src/i18n/lang/zh-cn.js index c6475f9..56b88dc 100644 --- a/src/i18n/lang/zh-cn.js +++ b/src/i18n/lang/zh-cn.js @@ -54,7 +54,8 @@ export default { schoolAlbumManagement:'学校画册管理', facultyInformation:'教职工信息', attendanceMachineEquipmentManagement:'考勤机设备管理', - recipe: '每周食谱' + recipe: '每周食谱', + evaluate: '幼儿评价表', }, staticRoutes: { diff --git a/src/i18n/lang/zh-tw.js b/src/i18n/lang/zh-tw.js index c94ba11..b3ef425 100644 --- a/src/i18n/lang/zh-tw.js +++ b/src/i18n/lang/zh-tw.js @@ -55,6 +55,7 @@ export default { deviceManagement:'人脸设备管理', attendanceMachineEquipmentManagement:'考勤機設備管理', recipe: '每周食谱', + evaluate: '幼儿评价表', }, staticRoutes: { signIn: '登入', diff --git a/src/views/evaluate/api.js b/src/views/evaluate/api.js new file mode 100644 index 0000000..33d51a3 --- /dev/null +++ b/src/views/evaluate/api.js @@ -0,0 +1,42 @@ +import request from '@/utils/request'; + +// 查询评价表列表 +export function getEvaluation () { + return request({ + url: '/evaluation/form/list', + method: 'get', + }) +} +// 添加评价表列表 +export function postEvaluation (data) { + return request({ + url: '/evaluation/form', + method: 'post', + data + }) +} + +// 修改评价表列表 +export function putEvaluation (data) { + return request({ + url: '/evaluation/form', + method: 'put', + data + }) +} +// 查看详情问题 +export function getEvaluationById (data) { + return request({ + url: '/evaluation/form/'+data, + method: 'get', + }) +} +// 查看详情问题 +export function deleteEvaluationById (data) { + return request({ + url: '/evaluation/form/' + data, + method: 'delete', + }) +} + + diff --git a/src/views/evaluate/columns.js b/src/views/evaluate/columns.js new file mode 100644 index 0000000..44ca9f0 --- /dev/null +++ b/src/views/evaluate/columns.js @@ -0,0 +1,52 @@ +export default [ + { + label: "设备id", + prop: "deviceId", + type: "text", + }, + { + label: "账号名称", + prop: "username", + type: "text", + }, + + { + label: "设备名称", + prop: "deviceName", + type: "text", + }, + { + label: "用户名", + prop: "username", + type: "image", + }, + { + label: "密码", + prop: "password", + type: "text", + }, + + + { + label: "设备标签", + prop: "deviceLabel", + type: "text", + }, + { + label: "设备地址", + prop: "deviceUrl", + type: "text", + }, + { + label: "设备状态", + prop: "deviceStatus", + type: "text", + }, + + { + label: "设备物理地址", + prop: "macAddress", + type: "text", + }, + +] \ No newline at end of file diff --git a/src/views/evaluate/components/CommonHead.vue b/src/views/evaluate/components/CommonHead.vue new file mode 100644 index 0000000..dbfd7ea --- /dev/null +++ b/src/views/evaluate/components/CommonHead.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/views/evaluate/components/CommonTablesImg.vue b/src/views/evaluate/components/CommonTablesImg.vue new file mode 100644 index 0000000..c5d3705 --- /dev/null +++ b/src/views/evaluate/components/CommonTablesImg.vue @@ -0,0 +1,115 @@ + + + diff --git a/src/views/evaluate/index.vue b/src/views/evaluate/index.vue new file mode 100644 index 0000000..cc4083d --- /dev/null +++ b/src/views/evaluate/index.vue @@ -0,0 +1,292 @@ + + + + + \ No newline at end of file