Explorar el Código

bug - paper by hand remove qType required condition

hehaitao hace 1 año
padre
commit
55f8171b70

+ 2 - 1
.env.development

@@ -4,7 +4,8 @@ ENV = 'development'
 # 一铭小状元学习系统/生产环境
 #VUE_APP_BASE_API = 'https://www.mingxuejinbang.com/prod-api'
 #VUE_APP_BASE_API = 'http://localhost:8080'
-VUE_APP_BASE_API = 'https://test.mingxue100.com/prod-api'
+#VUE_APP_BASE_API = 'https://test.mingxue100.com/prod-api'
+VUE_APP_BASE_API = 'http://front.mingxuejinbang.com/prod-api'
 
 VUE_APP_MOBILE = "https://h5.ymxzy.com"
 

+ 1 - 4
src/views/questioncenter/components/collect.vue

@@ -65,7 +65,7 @@ export default {
         favSubject: '',
         favQueType: ''
       },
-      requireFields: ['favCollectType', 'favSubject', 'favQueType'],
+      requireFields: ['favCollectType', 'favSubject'],
       pageForm: {
         total: 0,
         pageSize: 10,
@@ -87,9 +87,6 @@ export default {
       handler(data) {
         if (data == 'question') {
           this.queryParams['favQueType'] = ''
-          if (!this.requireFields.find(item => item == 'favQueType')) {
-            this.requireFields.push('favQueType')
-          }
         } else {
           delete this.queryParams['favQueType']
           this.requireFields.remove('favQueType')

+ 3 - 3
src/views/questioncenter/components/generate-tabs/paper-by-hand.vue

@@ -199,19 +199,19 @@ export default {
             model.exeGrade = '' // 学册
             if (!this.ignoreQType) model.exeQTypeChapter = '' // 题型
             this.requireFields = ['exeBranch', 'exeSubject', 'exeOrder', 'exeGrade']
-            if (this.isPaperWork && !this.ignoreQType) this.requireFields.push('exeQTypeChapter')
+            // if (this.isPaperWork && !this.ignoreQType) this.requireFields.push('exeQTypeChapter')
             break
           case consts.enum.questionBranches.knowledge.value:
             model.exeSubject = '' // 科目
             if (!this.ignoreQType) model.exeQTypeKnowledge = '' // 题型
             this.requireFields = ['exeBranch', 'exeSubject']
-            if (this.isPaperWork && !this.ignoreQType) this.requireFields.push('exeQTypeKnowledge')
+            // if (this.isPaperWork && !this.ignoreQType) this.requireFields.push('exeQTypeKnowledge')
             break
           case consts.enum.questionBranches.collect.value:
             model.favCollectType = consts.enum.collectionType.question.type
             model.favSubject = ''
             model.favQueType = ''
-            this.requireFields = ['exeBranch', 'favSubject', 'favQueType']
+            this.requireFields = ['exeBranch', 'favSubject']
             this.invisibleFields = ['favCollectType']
             break
           default: