heyang hace 9 meses
padre
commit
1993ce9720

+ 1 - 1
src/api/creditViolation/index.js

@@ -151,7 +151,7 @@ export function violationSiteType(query) {
 //根据输入值查询除法方式
 export function getIntegralMatchingRules(query) {
   return request({
-    url: '/laboratory/violation/getIntegralMatchingRules',
+    url: '/exam/violation/getIntegralMatchingRules',
     method: 'get',
     params: query
   })

+ 12 - 1
src/views/creditViolation/credit/violation/index.vue

@@ -931,7 +931,7 @@ export default {
         };
         getIntegralMatchingRules(obj).then(res => {
           this.loading = false;
-          if(res.data.id){
+          if(res.data){
             //判断-约谈
             if(res.data.warningStatus == 1){
               this.form.checkList.push('interviewStatus')
@@ -963,6 +963,17 @@ export default {
               this.form.practiceStatusType = false;
             }
             this.form.handleDay = res.data.handleDay;
+          }else{
+            this.form.checkList=[];
+            this.form.checkListTwo=[];
+            this.form.learnHour='';
+            this.form.learnMinute='';
+            this.form.learnStatusType=false;
+            this.form.numberTopics='';
+            this.form.numberAccuracy='';
+            this.form.practiceStatusType=false;
+            this.form.handleDay='';
+
           }
         });
       }