From ba57cac6472c4f9798e1d7193b9ccd96a93b675f Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Tue, 8 Apr 2025 21:02:01 +0800
Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81=E4=BB=A5=E6=8F=90=E9=AB=98=E5=8F=AF=E8=AF=BB=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/examination/index.js | 158 ++++-----
.../authentication/components/questionCard.vue | 352 ++++++++++-----------
2 files changed, 262 insertions(+), 248 deletions(-)
diff --git a/api/examination/index.js b/api/examination/index.js
index 8779b70..6be61fe 100644
--- a/api/examination/index.js
+++ b/api/examination/index.js
@@ -3,112 +3,128 @@ import request from '@/utils/request'
// 伴宠师工作台-查询专业执照列表
export const getLicenseList = () => {
- return request({
- url: '/applet/examination/licenseList',
- method: "get"
- }).then(res => {
- return res.data
- })
+ return request({
+ url: '/applet/examination/licenseList',
+ method: "get"
+ }).then(res => {
+ return res.data
+ })
}
export const getServiceList = (params) => {
- return request({
- url: '/applet/config/serviceList',
- method: "get",
+ return request({
+ url: '/applet/config/serviceList',
+ method: "get",
params
- }).then(res => {
- return res.data?.map?.(item => {
- const { id, title, video } = item
+ }).then(res => {
+ return res.data?.map?.(item => {
+ const {
+ id,
+ title,
+ video
+ } = item
- return { id, title, video }
- }) || []
- })
+ return {
+ id,
+ title,
+ video
+ }
+ }) || []
+ })
}
export const getTrainList = (params) => {
- return request({
- url: '/applet/config/trainList',
- method: "get",
+ return request({
+ url: '/applet/config/trainList',
+ method: "get",
params
- }).then(res => {
- return res.data?.map?.(item => {
- const { id, title, content } = item
+ }).then(res => {
+ return res.data?.map?.(item => {
+ const {
+ id,
+ title,
+ content
+ } = item
- return { id, title, content }
- }) || []
- })
+ return {
+ id,
+ title,
+ content
+ }
+ }) || []
+ })
}
// 伴宠师工作台-题目列表数据查询
export const getQuestionList = (params) => {
- return request({
- url: '/applet/examination/questionList',
- method: "get",
+ return request({
+ url: '/applet/examination/questionList',
+ method: "get",
params
- }).then(res => {
- return res.data
- })
+ }).then(res => {
+ return res.data
+ })
}
// 伴宠师工作台-根据题目id查询题目答案
export const getQuestionOptions = (params) => {
- return request({
- url: '/applet/examination/insertUser',
- method: "get",
+ return request({
+ url: '/applet/examination/insertUser',
+ method: "get",
params
- }).then(res => {
- return res.data
- })
+ }).then(res => {
+ return res.data
+ })
}
// 伴宠师工作台-添加用户基本考核答案
export const addBaseAnswer = (data) => {
- return request({
- url: '/applet/examination/addBaseAnswer',
- headers: {
- isToken: true
- },
- method: 'post',
- data
- })
+ return request({
+ url: '/applet/examination/addBaseAnswer',
+ headers: {
+ isToken: true
+ },
+ method: 'post',
+ data
+ })
}
// 伴宠师工作台-根据题目id查询基本考核答案
export const answeBaseByQuestionId = (params) => {
- return request({
- url: '/applet/examination/answeBaseByQuestionId',
- headers: {
- isToken: true
- },
- method: "get",
+ return request({
+ url: '/applet/examination/answeBaseByQuestionId',
+ headers: {
+ isToken: true
+ },
+ method: "get",
params
- }).then(res => {
- return res.data?.pop() || {}
- })
+ }).then(res => {
+ return res.data?.pop() || {}
+ })
}
// 伴宠师工作台-添加用户培训考核答案
export const addTrainAnswer = (data) => {
- return request({
- url: '/applet/examination/addTrainAnswer',
- headers: {
- isToken: true
- },
- method: 'post',
- data
- })
+ return request({
+ url: '/applet/examination/addTrainAnswer',
+ headers: {
+ isToken: true
+ },
+ method: 'post',
+ data
+ })
}
// 伴宠师工作台-根据题目id查询培训考核答案
export const answeTrainByQuestionId = (params) => {
- return request({
- url: '/applet/examination/answeTrainByQuestionId',
- headers: {
- isToken: true
- },
- method: "get",
+ return request({
+ url: '/applet/examination/answeTrainByQuestionId',
+ headers: {
+ isToken: true
+ },
+ method: "get",
params
- }).then(res => {
- return res.data?.pop() || {}
- })
-}
+ }).then(res => {
+ return res.data?.pop() || {}
+ })
+}
\ No newline at end of file
diff --git a/otherPages/authentication/components/questionCard.vue b/otherPages/authentication/components/questionCard.vue
index 4010703..1b18a27 100644
--- a/otherPages/authentication/components/questionCard.vue
+++ b/otherPages/authentication/components/questionCard.vue
@@ -1,187 +1,185 @@
-
-
- {{ props.data.title }}
-
-
-
-
-
- {{ option.title }}
-
-
-
-
-
-
-
-
-
-
-
+
+ {{ props.data.title }}
+
+
+
+
+
+ {{ option.title }}
+
+
+
+
+
+
+
+
+
+
+
- {{ option.title }}
-
-
-
-
-
-
-
-
-
-
- {{ props.data.value }}
- {{ props.data.answer }}
-
-
-
-
+ ]">
+ {{ option.title }}
+
+
+
+
+
+
+
+
+
+
+ {{ props.data.value }}
+ {{ props.data.answer }}
+
+
+
+
\ No newline at end of file