diff --git a/src/pages/personal/pages/my-questions/index.vue b/src/pages/personal/pages/my-questions/index.vue index 83b9b401f..590918cec 100644 --- a/src/pages/personal/pages/my-questions/index.vue +++ b/src/pages/personal/pages/my-questions/index.vue @@ -1828,26 +1828,28 @@ export default { this.questionForm.standardName = this.questionForm.pubQue this.questionForm.standardEncdoing = this.questionForm.pubQue } - if(this.questionForm.standardId){ - this.questionForm.fileList = this.fileList - this.$refs['queForm'].validate((valid) => { - if(valid){ - this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm }, - { - _this: this - }, res => { - console.log(res); - this.dialogVisible = false - }, e => { - - }) - }else{ - return this.$message.warning('请输入问题') - } - }) - }else{ - this.$message.warning('请选择至少一条标准') + if(!this.questionForm.standardId){ + this.$message.warning('请选择至少一条标准') + return } + this.questionForm.fileList = this.fileList + this.$refs['queForm'].validate((valid) => { + if(valid){ + this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm }, + { + _this: this + }, res => { + this.dialogVisible = false + this.activeName = "myQue" + this.activeType = this.standType + this.searchBtn() + }, e => { + + }) + }else{ + return this.$message.warning('请输入问题') + } + }) }, }, }; diff --git a/src/pages/regulatoryRepository/standQA/components/stand-item.vue b/src/pages/regulatoryRepository/standQA/components/stand-item.vue index ada2d7335..af0f68590 100644 --- a/src/pages/regulatoryRepository/standQA/components/stand-item.vue +++ b/src/pages/regulatoryRepository/standQA/components/stand-item.vue @@ -4,12 +4,7 @@
- {{stand.standardEncdoing}} -
-
-
-
- {{stand.standardName}} + {{stand.standardName}}
diff --git a/src/pages/regulatoryRepository/standQA/index.vue b/src/pages/regulatoryRepository/standQA/index.vue index 563c845da..0d3a03847 100644 --- a/src/pages/regulatoryRepository/standQA/index.vue +++ b/src/pages/regulatoryRepository/standQA/index.vue @@ -1213,8 +1213,27 @@ export default { { _this: this }, res => { - console.log(res); this.dialogVisible = false + switch (this.standType){ + case 'INLAND': + this.standSearch2() + break + case 'FOREIGN': + this.activeName = 'FOREIGN' + this.questionSerach.classification = 'FOREIGN' + this.standSearch2() + break + case 'BUSINESS_STAND': + this.activeName = 'BUSINESS_STAND' + this.questionSerach.classification = 'BUSINESS_STAND' + this.standSearch2() + break + case 'OTHER': + this.activeName = 'OTHER' + this.questionSerach.classification = 'OTHER' + this.standSearch2() + break + } }, e => { })