修改bug 55897 没有自动带出分类以及标准信息

This commit is contained in:
hanshaozhuang
2022-06-24 15:49:00 +08:00
parent 8cfccdb522
commit 894d891b46
2 changed files with 36 additions and 12 deletions
@@ -1321,6 +1321,7 @@ export default {
answerList: [],
standList: [],
questionsList: [],
standMap: new Map()
}
},
mounted(){
@@ -1352,6 +1353,12 @@ export default {
}
},
methods:{
refreshStandMap(){
this.standMap = new Map()
this.standList.forEach(item=>{
this.standMap.set(item.standardId,item)
})
},
checkedRole(data){
if(data[0].id){
let asdId = sessionStorage.getItem('queId')
@@ -1666,15 +1673,16 @@ export default {
queBtn(){
this.fileList = []
// 清空提问
this.standType = "INLAND"
const selectedStand = this.activestand == '0' ? this.standList[0] : this.standMap.get(this.activestand)
this.standType = selectedStand.classification
this.questionForm = {
pubQue : '',//公共问题
classification: 'INLAND', //标准类型
pubQue : selectedStand.classification === "OTHER" ? selectedStand.standardId : '',//公共问题
classification: selectedStand.classification, //标准类型
problemDescription: '', //问题
questioner: this.$store.getters.userInfo.userId, //提问人
standardEncdoing: '', //标准编号
standardName: '', //标准名称
standardId:'', //标准id
standardEncdoing: selectedStand.standardEncdoing, //标准编号
standardName: selectedStand.standardName, //标准名称
standardId: selectedStand.standardId, //标准id
fileList: '',
}
this.dialogVisible = true
@@ -1720,6 +1728,7 @@ export default {
_this: this
}, res => {
this.standList = res.data
this.refreshStandMap()
})
},
//问题查询
@@ -1742,6 +1751,7 @@ export default {
_this: this,
}, res => {
this.standList = res.data
this.refreshStandMap()
this.questionClick()
})
},
@@ -1754,6 +1764,7 @@ export default {
_this: this
}, res => {
this.standList = res.data
this.refreshStandMap()
this.questionClick()
}, e =>{
@@ -1765,6 +1776,7 @@ export default {
_this: this
}, res =>{
this.standList = res.data
this.refreshStandMap()
this.questionClick()
}, e => {
@@ -777,6 +777,7 @@ export default {
standList: [],
standIdList: [],
questionsList: [],
standMap: new Map()
}
},
mounted(){
@@ -819,6 +820,12 @@ export default {
});
},
methods:{
refreshStandMap(){
this.standMap = new Map()
this.standList.forEach(item=>{
this.standMap.set(item.standardId,item)
})
},
changeInput:debounce(function(val){
if(val.length){
this.$http.get('lawss/AskQuestions/resemblance',{
@@ -1040,15 +1047,16 @@ export default {
//提问按钮
queBtn(){
this.fileList = []
this.standType = "INLAND"
const selectedStand = this.activestand == '0' ? this.standList[0] : this.standMap.get(this.activestand)
this.standType = selectedStand.classification
this.questionForm = {
pubQue : '',//公共问题
classification: 'INLAND', //标准类型
pubQue : selectedStand.classification === "OTHER" ? selectedStand.standardId : '',//公共问题
classification: selectedStand.classification, //标准类型
problemDescription: '', //问题
questioner: this.$store.getters.userInfo.userId, //提问人
standardEncdoing: '', //标准编号
standardName: '', //标准名称
standardId:'', //标准id
standardEncdoing: selectedStand.standardEncdoing, //标准编号
standardName: selectedStand.standardName, //标准名称
standardId: selectedStand.standardId, //标准id
fileList: '',
}
this.dialogVisible = true
@@ -1076,6 +1084,7 @@ export default {
_this: this
}, res => {
this.standList = res.data
this.refreshStandMap()
})
},
//问题查询
@@ -1107,6 +1116,7 @@ export default {
_this: this
}, res =>{
this.standList = res.data
this.refreshStandMap()
if(this.$route.query.queId){
this.activestand = this.standList[0].standardId
this.queSearch()
@@ -1129,6 +1139,7 @@ export default {
})
if(queNumber === 0){
this.standList = res.data
this.refreshStandMap()
}
}, e => {
@@ -1235,6 +1246,7 @@ export default {
this.standSearch2()
break
}
this.queSearch()
}, e => {
})