From 0ebcc1fd3b16b7a43e85a9a4bde1a1cee3ae5831 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 16 七月 2024 17:47:10 +0800
Subject: [PATCH] feat:出生年月取消必填、隐藏模拟菜单

---
 src/views/exam/personalRandomTemplate/list.vue |    2 ++
 src/router.js                                  |   38 +++++++++++++++++++-------------------
 src/views/user/student/edit.vue                |    3 ---
 3 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/src/router.js b/src/router.js
index ba0699d..9a3b6a7 100644
--- a/src/router.js
+++ b/src/router.js
@@ -171,18 +171,18 @@
         meta: { title: '鍗曢�夐缂栬緫', noCache: true, activeMenu: '/exam/question/list' },
         hidden: true
       },
-      {
-        path: 'simulation/list',
-        component: () => import('@/views/exam/simulation/list'),
-        name: 'personalSimulationList',
-        meta: { title: '妯℃嫙鍒楄〃', noCache: true }
-      },
-      {
-        path: 'personalSimulation/list',
-        component: () => import('@/views/exam/personalSimulation/list'),
-        name: 'personalSimulation',
-        meta: { title: '涓汉妯℃嫙', noCache: true }
-      },
+      // {
+      //   path: 'simulation/list',
+      //   component: () => import('@/views/exam/simulation/list'),
+      //   name: 'personalSimulationList',
+      //   meta: { title: '妯℃嫙鍒楄〃', noCache: true }
+      // },
+      // {
+      //   path: 'personalSimulation/list',
+      //   component: () => import('@/views/exam/personalSimulation/list'),
+      //   name: 'personalSimulation',
+      //   meta: { title: '涓汉妯℃嫙', noCache: true }
+      // },
       {
         path: 'personalRandomTemplate/list',
         component: () => import('@/views/exam/personalRandomTemplate/list'),
@@ -215,13 +215,13 @@
         name: 'feedback',
         meta: { title: '閿欓鍙嶉', noCache: true }
       },
-      {
-        path: 'personalSimulation/list/mathList',
-        component: () => import('@/views/exam/mathList/list.vue'),
-        name: 'multiplemathList',
-        meta: { title: '妯℃嫙鍒楄〃璇︽儏', noCache: true, activeMenu: '/exam/mathList/list' },
-        hidden: true
-      },
+      // {
+      //   path: 'personalSimulation/list/mathList',
+      //   component: () => import('@/views/exam/mathList/list.vue'),
+      //   name: 'multiplemathList',
+      //   meta: { title: '妯℃嫙鍒楄〃璇︽儏', noCache: true, activeMenu: '/exam/mathList/list' },
+      //   hidden: true
+      // },
       {
         path: 'question/edit/multipleChoice',
         component: () => import('@/views/exam/question/edit/multiple-choice'),
diff --git a/src/views/exam/personalRandomTemplate/list.vue b/src/views/exam/personalRandomTemplate/list.vue
index 7f39ae2..20bc40b 100644
--- a/src/views/exam/personalRandomTemplate/list.vue
+++ b/src/views/exam/personalRandomTemplate/list.vue
@@ -25,6 +25,7 @@
         range-separator="鑷�"
         start-placeholder="寮�濮嬫棩鏈�"
         end-placeholder="缁撴潫鏃ユ湡"
+        value-format="yyyy-MM-dd"
         :picker-options="pickerOptions">
       </el-date-picker>
     </el-form-item>
@@ -278,6 +279,7 @@
     search () {
       this.listLoading = true
       this.queryParam.status = 0
+      if (this.queryParam.period) this.queryParam.period[1] += ' 23:59:59'
       examPaperApi.pageselfList(this.queryParam).then(data => {
         const re = data.response
         this.tableData = re.list
diff --git a/src/views/user/student/edit.vue b/src/views/user/student/edit.vue
index ec30e33..35b252e 100644
--- a/src/views/user/student/edit.vue
+++ b/src/views/user/student/edit.vue
@@ -90,9 +90,6 @@
         ],
         deptIds: [
           { required: true, message: '璇烽�夋嫨閮ㄩ棬', trigger: 'change' }
-        ],
-        birthDay: [
-          { required: true, message: '璇烽�夋嫨鍑虹敓鏃ユ湡', trigger: 'blur' }
         ]
       }
     }

--
Gitblit v1.8.0