Browse Source

模拟志愿步骤合并

shilipojs 2 năm trước cách đây
mục cha
commit
450085d894

+ 1 - 1
src/views/career/components/FillBatch.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="fill-batch">
-    <div class="top-title">()选择填报批次</div>
+    <div class="top-title">()选择填报批次</div>
     <div class="input-box">
       <div class="input-title">
         您的预估高考成绩: {{ subject }}

+ 1 - 1
src/views/career/components/FillMajor.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="fill-batch">
-    <div class="top-title">()选择院校专业</div>
+    <div class="top-title">()选择院校专业</div>
     <div class="content-box">
       <div class="content-title">
         {{ currentUser.provinceName }}{{ year }}年{{ batchInfo.name }}学校志愿智能模拟

+ 5 - 1
src/views/career/components/FillScore.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="fill-score">
-    <div class="top-title">()输入高考的成绩</div>
+    <div class="top-title">()输入高考的成绩</div>
     <div class="input-box">
       <div class="input-item">
         <div class="item-label">科目:</div>
@@ -32,11 +32,15 @@
         <div class="item-msg">当前为估分模拟,不需填写排名</div>
       </div>
     </div>
+    <simulate-notice></simulate-notice>
   </div>
 </template>
 
 <script>
+import SimulateNotice from '@/views/career/components/SimulateNotice'
+
 export default {
+  components:{SimulateNotice},
   name: "FillScore",
   data: () => {
     return {

+ 6 - 2
src/views/career/components/NewFillScore.vue

@@ -1,6 +1,6 @@
 <template>
-  <div class="fill-score" style="margin:0 20%;">
-    <div class="top-title">()输入高考的成绩</div>
+  <div class="fill-score" >
+    <div class="top-title">()输入高考的成绩</div>
     <div class="input-box">
       <div class="input-item">
         <div class="item-label">科目:</div>
@@ -42,11 +42,15 @@
         <div class="item-msg">当前为估分模拟,不需填写排名</div>
       </div>
     </div>
+    <simulate-notice></simulate-notice>
   </div>
 </template>
 
 <script>
+import SimulateNotice from '@/views/career/components/SimulateNotice'
+
 export default {
+  components:{SimulateNotice},
   name: "NewFillScore",
   data: () => {
     return {

+ 7 - 6
src/views/career/components/SimulateNotice.vue

@@ -1,11 +1,12 @@
 <template>
   <div class="notice">
-    <div style="text-align: center">
-      <h2 style="font-size: 2em; font-weight: 400" :style="{ color: theme }">
-        (一)高考志愿模拟填报须知
-      </h2>
-    </div>
-    <div style="margin-top: 50px">
+<!--    <div style="text-align: center">-->
+<!--      <h2 style="font-size: 2em; font-weight: 400" :style="{ color: theme }">-->
+<!--        (一)高考志愿模拟填报须知-->
+<!--      </h2>-->
+<!--    </div>-->
+    <p>填报须知</p>
+    <div class="mt20">
       <ul>
         <li>
           目前系统为非正式志愿模拟填报阶段,您可输入不同分数进行多次志愿智能模拟,找准自己的目标院校和专业。

+ 17 - 21
src/views/career/zhiyuan/SimulatedVolunteer.vue

@@ -19,12 +19,11 @@
       <div style="min-height: 400px; font-family: PingFangSC-Regular, PingFang SC, Helvetica, serif;">
         <!-- <component :is="isComponent"></component> -->
         <div class="list-page">
-          <simulate-notice v-if="active == 1"></simulate-notice>
-          <component :is="isNewCollegeEntranceExam ? 'NewFillScore' : 'FillScore'" ref="score" :isDisIndex="isDisIndex" v-if="active == 2"></component>
-          <fill-batch @onFillIn="onFillIn" ref="batch" :zytbBatchesList="zytbBatchesList" :subject="curSubject" :isNewCollegeEntranceExam="isNewCollegeEntranceExam" :firstSubject="firstSubject" :lastSubject="lastSubject" :score="curScore" v-if="active == 3"></fill-batch>
-          <fill-major ref="major" :batch="curBatch" :batchInfo="curBatchInfo" :subject="curSubject" :score="curScore" :isNewCollegeEntranceExam="isNewCollegeEntranceExam" :firstSubject="firstSubject" :lastSubject="lastSubject" :year="curBatchInfo.year" v-if="active == 4"></fill-major>
+          <component :is="isNewCollegeEntranceExam ? 'NewFillScore' : 'FillScore'" ref="score" :isDisIndex="isDisIndex" v-if="active == 1"></component>
+          <fill-batch @onFillIn="onFillIn" ref="batch" :zytbBatchesList="zytbBatchesList" :subject="curSubject" :isNewCollegeEntranceExam="isNewCollegeEntranceExam" :firstSubject="firstSubject" :lastSubject="lastSubject" :score="curScore" v-if="active == 2"></fill-batch>
+          <fill-major ref="major" :batch="curBatch" :batchInfo="curBatchInfo" :subject="curSubject" :score="curScore" :isNewCollegeEntranceExam="isNewCollegeEntranceExam" :firstSubject="firstSubject" :lastSubject="lastSubject" :year="curBatchInfo.year" v-if="active == 3"></fill-major>
 
-          <div class="success-complete" v-if="active == 5">
+          <div class="success-complete" v-if="active == 4">
             <div class="text">填报完成</div>
             <img src="@/assets/images/career/icon_data.png" alt="" />
             <div style="margin-top: 20px">
@@ -35,11 +34,11 @@
       </div>
       <el-divider></el-divider>
       <!--      底部按钮-->
-      <div style="text-align: center; margin-top: 30px" v-if="active != 5">
+      <div style="text-align: center; margin-top: 30px" v-if="active != 4">
         <el-button @click="goVolunteerList">查看记录</el-button>
         <el-button type="primary" @click="toBackPage" :disabled="active == 1">上一步</el-button>
-        <el-button type="primary" v-if="active < 3" :disabled="active == 5" @click="nextStep">下一步</el-button>
-        <el-button type="primary" v-if="active >= 3" @click="saveData()">保存志愿</el-button>
+        <el-button type="primary" v-if="active < 2" :disabled="active == 4" @click="nextStep">下一步</el-button>
+        <el-button type="primary" v-if="active >= 2" @click="saveData()">保存志愿</el-button>
       </div>
     </div>
   </div>
@@ -70,11 +69,11 @@ export default {
       firstSubject: "",
       lastSubject: [],
       topStep: [
-        { index: 1, label: "填报须知" },
-        { index: 2, label: "高考分数" },
-        { index: 3, label: "填报批次" },
-        { index: 4, label: "院校专业" },
-        { index: 5, label: "保存志愿" },
+        // { index: 1, label: "填报须知" },
+        { index: 1, label: "高考分数" },
+        { index: 2, label: "填报批次" },
+        { index: 3, label: "院校专业" },
+        { index: 4, label: "保存志愿" },
       ],
     };
   },
@@ -104,7 +103,7 @@ export default {
     onFillIn(item) {
       this.curBatch = item.batch;
       this.curBatchInfo = item;
-      this.active = 4;
+      this.active = 3;
     },
     onChangeInputScore(e) {
       console.log(e);
@@ -135,7 +134,7 @@ export default {
         mode: this.curSubject || [this.firstSubject, ...this.lastSubject].toString(),
         score: this.curScore,
       };
-      if (this.active == 4) {
+      if (this.active == 3) {
         let wishe = [];
         let dataList = this.$refs.major.dataList;
         let len = dataList.length;
@@ -173,19 +172,16 @@ export default {
     },
     httpSave(req) {
       zytbSave(req).then((res) => {
-        this.active = 5;
+        this.active = 4;
       });
     },
     nextStep() {
       let self = this;
-      if (this.active >= 5) {
+      if (this.active >= 4) {
         return;
       }
       switch (this.active) {
         case 1:
-          self.active = 2;
-          break;
-        case 2:
           let score = self.$refs.score;
           if (this.isNewCollegeEntranceExam) {
             //console.log(111111111);
@@ -214,7 +210,7 @@ export default {
             return;
           }
           this.httpzytbBatches(() => {
-            self.active = 3;
+            self.active = 2;
           });
           break;
       }

+ 1 - 2
src/views/permission/components/mx-teacher-info.vue

@@ -16,7 +16,6 @@
       <!--<i class="el-icon-success" v-else></i>-->
     </div>
     <div class="icon-wrap2 f12" >
-<!--      <i class="el-icon-warning-outline f-red"></i>-->
       {{selecedClassName}}
     </div>
   </el-card>
@@ -28,7 +27,7 @@ export default {
   props: {
     selecedClassName: {
       type: String | Number,
-      default: ''
+      default: {}
     },
     selectMode: {
       type: Boolean,