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 |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/views/exam/personalRandomTemplate/list.vue b/src/views/exam/personalRandomTemplate/list.vue
index 1ec3776..20bc40b 100644
--- a/src/views/exam/personalRandomTemplate/list.vue
+++ b/src/views/exam/personalRandomTemplate/list.vue
@@ -25,19 +25,18 @@
         range-separator="鑷�"
         start-placeholder="寮�濮嬫棩鏈�"
         end-placeholder="缁撴潫鏃ユ湡"
+        value-format="yyyy-MM-dd"
         :picker-options="pickerOptions">
       </el-date-picker>
     </el-form-item>
      <el-form-item>
-       <el-button type="primary" @click="submitForm">鏌ヨ</el-button>
-       <!-- <router-link :to="{path:'/exam/personalSimulation/edit'}" class="link-left">
-         <el-button type="primary">娣诲姞</el-button>
-       </router-link> -->
+       <el-button type="primary" @click="submitForm" size="small" style="margin-right: 5px">鏌ヨ</el-button>
+       <router-link :to="{path:'/exam/personalRandomTemplate/edit'}">
+         <el-button type="success" size="small" style="margin-bottom: 5px">娣诲姞</el-button>
+       </router-link>
      </el-form-item>
    </el-form>
-    <router-link :to="{path:'/exam/personalRandomTemplate/edit'}">
-      <el-button type="primary" size="small" style="margin-bottom: 5px">娣诲姞</el-button>
-    </router-link>
+
     <el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row style="width: 100%">
       <el-table-column prop="subjectNames" label="璇剧洰" />
       <el-table-column prop="name" label="鍚嶇О"  />
@@ -207,7 +206,7 @@
         if (valid) {
           let op = [];
           for(var ele of this.form.menuIds){
-            op.push(ele[1])
+            op.push(ele)
           };
           this.form.menuIds = JSON.stringify(this.form.menuIds);
           this.form.userIds = op;
@@ -280,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
@@ -324,4 +324,4 @@
   padding: 8px 20px;
   border-bottom: 1px solid #ccc;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0