From b8383fab8fd8bdf4ba60102ec1839cf8e38d237f Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 15 Jun 2022 16:16:12 +0800 Subject: [PATCH] feat: There is no way the, bug #55728 --- .../personal/pages/my-questions/index.vue | 40 ++++++++++--------- .../standQA/components/stand-item.vue | 7 +--- .../regulatoryRepository/standQA/index.vue | 21 +++++++++- 3 files changed, 42 insertions(+), 26 deletions(-) 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 @@