lrf402788946 4 năm trước cách đây
mục cha
commit
43f933be61
1 tập tin đã thay đổi với 8 bổ sung6 xóa
  1. 8 6
      src/views/teacher/verify.vue

+ 8 - 6
src/views/teacher/verify.vue

@@ -46,7 +46,7 @@
           </el-tabs>
           </el-tabs>
           <el-row type="flex" justify="center" :gutter="20">
           <el-row type="flex" justify="center" :gutter="20">
             <el-col :span="7">
             <el-col :span="7">
-              <el-form-item :label="info.status === '2' ? '资料评分' : '面试评分'">
+              <el-form-item :label="info.status === '2' || info.status === '1' ? '资料评分' : '面试评分'">
                 <el-input
                 <el-input
                   v-if="info.status === '2' || info.status === '1'"
                   v-if="info.status === '2' || info.status === '1'"
                   type="number"
                   type="number"
@@ -68,8 +68,8 @@
               </el-form-item>
               </el-form-item>
             </el-col>
             </el-col>
             <el-col :span="5">
             <el-col :span="5">
-              <el-button v-if="info.status === '2' || info.status === '1'" size="mini" type="primary" plain @click="handleSave">通知面试</el-button>
-              <el-button v-if="info.status === '3'" size="mini" type="primary" plain @click="handleSave">确认入库</el-button>
+              <el-button v-if="info.status === '2' || info.status === '1'" size="mini" type="primary" plain @click="handleSave(3)">通知面试</el-button>
+              <el-button v-if="info.status === '3'" size="mini" type="primary" plain @click="handleSave(4)">确认入库</el-button>
             </el-col>
             </el-col>
           </el-row>
           </el-row>
         </el-form>
         </el-form>
@@ -109,9 +109,11 @@ export default {
       if (this.$checkRes(res)) this.$set(this, `info`, res.data);
       if (this.$checkRes(res)) this.$set(this, `info`, res.data);
       this.loading = false;
       this.loading = false;
     },
     },
-    async handleSave() {
-      let object = { status: this.info.status * 1 + 1 };
-      this.info.status === '2' ? (object.zlscore = this.info.zlscore || 0) : (object.msscore = this.info.msscore || 0);
+    async handleSave(status) {
+      let object = { status: status };
+      if (status == '3') object.zlscore = this.info.zlscore || 0;
+      else if (status == '4') object.msscore = this.info.msscore || 0;
+      // this.info.status === '2' ? (object.zlscore = this.info.zlscore || 0) : this.info.status === '3' ? (object.msscore = this.info.msscore || 0) : '';
       let res;
       let res;
       let msg;
       let msg;
       let teachersid = [];
       let teachersid = [];