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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 清空
+
+
+ 提问
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 国内标准
+ 海外标准
+ 企业标准
+ 公共
+
+
+
+
+
+
+
+ 选择标准
+
+
+
+
+
+
+
+
+
+
+
+ 相似历史问题:
+
+
+ {{item.problemDescription}}
+ {{item.questionTime}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+
数据获取中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+