From a8256a8d8e8db7584df2271eaa845759ba60b646 Mon Sep 17 00:00:00 2001 From: hanshaozhuang Date: Fri, 8 Jul 2022 18:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regulatoryRepository/standQA/index.vue | 452 ++---- .../regulatoryRepository/standQA/index2.vue | 1385 +++++++++++++++++ 2 files changed, 1521 insertions(+), 316 deletions(-) create mode 100644 src/pages/regulatoryRepository/standQA/index2.vue diff --git a/src/pages/regulatoryRepository/standQA/index.vue b/src/pages/regulatoryRepository/standQA/index.vue index 1c0fe93f9..b1c80bf9d 100644 --- a/src/pages/regulatoryRepository/standQA/index.vue +++ b/src/pages/regulatoryRepository/standQA/index.vue @@ -3,6 +3,16 @@
+ + + + + @@ -24,243 +34,46 @@
- - -
-
- 暂无数据 -
-
-
- - - -
-
- -
-
- 暂无数据 -
-
-
- - - -
-
- -
-
- 暂无数据 -
-
-
- - - -
-
- -
-
- 暂无数据 -
-
-
- - - -
-
-
+ + + + + + + + + + +
+ + +
+ +
+ +
+ +
+
@@ -766,13 +604,37 @@ export default { {required: true, message: '请输入问题', trigger: 'blur'}, ], }, + classificationOption: [ + { + value: 'INLAND', + label: '国内标准' + }, + { + value: 'FOREIGN', + label: '海外标准' + }, + { + value: 'BUSINESS_STAND', + label: '企业标准' + }, + { + value: 'OTHER', + label: '公共问题' + } + ], + tableData: [], + tableLoading: false, + tableTotal: 0, questionSerach:{ classification: 'INLAND', standardName: '', //标准名称 standardEncdoing: '', //标准编号 problemDescription: '', //关键词/问题描述 + page: 1, + pageSize: this.$store.getters.userInfo.configContent, }, answerList: [], + answerListDrawer: false, answer: '', standList: [], standIdList: [], @@ -781,33 +643,9 @@ export default { } }, mounted(){ - if(this.$route.query.queId){ - this.questionSerach.standardName = this.$route.query.standName - this.questionSerach.classification = this.$route.query.standType - this.activeName = this.$route.query.standType - this.standSearch() - }else{ - 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 - } - } + this.questionSerach.standardName = this.$route.query.standName + this.questionSerach.classification = this.$route.query.standType + this.searchBtn() // 查询各下拉框数据 this.$http.get("sys/dictype/getDicTypeListCode", "", { _this: this, @@ -820,6 +658,34 @@ export default { }); }, methods:{ + formatClassification(e){ + for (let i=0; i { + this.answerListDrawer = true + this.answerList = res.data + }, e => { + }) + }, refreshStandMap(){ this.standMap = new Map() this.standList.forEach(item=>{ @@ -1029,9 +895,6 @@ export default { this.questionSerach.standardEncdoing = '' this.standSearch() }, - standClick(){ - this.queSearch() - }, questionClick(){ sessionStorage.setItem('queId', this.activeQue) this.$http.get('lawss/AskQuestions/getAskQuestionsByakId',{ @@ -1087,18 +950,19 @@ export default { questioner: this.$store.getters.userInfo.userId, //提问人 problemDescription: '', //关键词/问题描述 } - this.standSearch2() + this.searchBtn() }, searchBtn(){ - this.questionSerach.classification = this.activeType this.questionSerach.questioner = '' - this.$http.get('lawss/AskQuestions/retrieve',{ + this.tableLoading = true + this.$http.postData('lawss/AskQuestions/list',{ ...this.questionSerach },{ _this: this }, res => { - this.standList = res.data - this.refreshStandMap() + this.tableData = res.data.records + this.tableTotal = res.total + this.tableLoading = false }) }, //问题查询 @@ -1113,31 +977,7 @@ export default { this.questionsList = res.data }) }, - //回答查询 - ansSearch(){ - this.$http.get('lawss/AskQuestions/getReplyDetails',{ - classification: this.questionSerach.classification, - answerer: this.$store.getters.userInfo.userId, - }, { - _this: this, - }, res => { - - }) - }, //查询提问标准 - standSearch(){ - this.$http.get('lawss/AskQuestions/getAskQuestionsDetails',{ ...this.questionSerach },{ - _this: this - }, res =>{ - this.standList = res.data - this.refreshStandMap() - if(this.$route.query.queId){ - this.activestand = this.standList[0].standardId - this.queSearch() - } - }, e => { - }) - }, standSearch2(){ let qId = this.$route.query.standId let queNumber = 0 @@ -1240,27 +1080,7 @@ export default { _this: this }, 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 - } - this.queSearch() + this.searchBtn() }, e => { }) diff --git a/src/pages/regulatoryRepository/standQA/index2.vue b/src/pages/regulatoryRepository/standQA/index2.vue new file mode 100644 index 000000000..1c0fe93f9 --- /dev/null +++ b/src/pages/regulatoryRepository/standQA/index2.vue @@ -0,0 +1,1385 @@ + + + + + +