Forráskód Böngészése

考试取消限制

y595705120 2 napja
szülő
commit
b9f351c431

+ 8 - 6
src/containers/center/exam/indexTest.vue

@@ -319,14 +319,16 @@ export default {
     submitPaper() {
       let that = this
       let ufinish= this.getUnFinishExamTest()
-      if( ufinish  >-1 ) {
-        this.$message.error(`第${+ufinish+1}题还未完成,不能提交`, 2);
-        document.getElementById( `select-${ufinish}`).click()
-        return;
-      }
+      let content = '你已经做完所有题目';
+      if(ufinish >-1) content = `第${+ufinish+1}题还未完成,是否确认提交`
+      // if( ufinish  >-1 ) {
+      //   this.$message.error(, 2);
+      //   document.getElementById( `select-${ufinish}`).click()
+      //   return;
+      // }
       MessageBox({
         title: "确认交卷",
-        message: "是否确认交卷",
+        message: content,
         showCancelButton: true,
         confirmButtonText: "确定",
         cancelButtonText: "取消",

+ 14 - 7
src/containers/center/market/index.vue

@@ -193,7 +193,7 @@
             </el-form-item>
           </el-col>
         </el-row>
-        <el-row v-if="hasPromise(type)">
+        <el-row v-if="typeInfo.needPromise==1">
           <div style="width: 700px;margin: 0 auto;text-align: left;color: red;">
             提示:继续教育承诺函企业名称应与个人报名系统企业名称一致,如已变更单位的,
             请先在个人系统帐号设置进入额外信息栏进行修改工作单位与报名承诺函工作单位相符后方可上传承诺函确认
@@ -340,6 +340,9 @@
         promise: {
           status: 0,
           showType: 1
+        },
+        typeInfo:{
+
         },
         imgUrl: '',
         qrcodeUrl: "",
@@ -460,6 +463,15 @@
           }
         }
       },
+      matchType(type) {
+        for (let i in this.typeList) {
+          let item = this.typeList[i];
+          if(item.name == type) {
+            this.typeInfo = Object.assign(this.typeInfo, item);
+            return;
+          }
+        }
+      },
       getData() {
         let param = {
           size: 1000,
@@ -549,12 +561,6 @@
       uploadBuyImg(url) {
         this.buyForm.buyImg = url;
       },
-      hasPromise(type) {
-        return type == '施工现场专业人员'
-      },
-      hasNotice() {
-        return this.buyForm.name == '施工现场电焊工'
-      },
       testBuyOK(item) {
         this.stage = 2;
         this.isCompanyPay = 1;
@@ -584,6 +590,7 @@
         this.buyForm.temp = item;
         this.buyForm.courseName = item.name;
         this.matchPromise(item.name);
+        this.matchType(item.type);
         // this.testBuyOK(item)
         // return;
         // 检查

+ 0 - 2
src/utils/plugins.js

@@ -7,8 +7,6 @@ const preventReClick = Vue.directive('preventReClick', {
                 setTimeout(() => {
                     el.disabled = false
                 }, binding.value || 1000)
-            }else{
-              alert("点击太快")
             }
         })
     }