+
@@ -1239,7 +1246,10 @@ export default {
},
data(){
return{
+ aiKey:1,
dataLoading: true,
+ roleFlag: false,
+ nodeList: [],
mergeList: [],
historyList: [], //相似历史问题
handleSelectForm: {
@@ -1322,13 +1332,8 @@ export default {
immediate: true,
deep: true,
handler(val) {
- this.mergeList = []
- val.forEach(item =>{
- if(item.checked){
- this.mergeList.push(item.id)
- }
- })
- sessionStorage.setItem('mergeList', JSON.stringify(this.mergeList))
+ this.aiKey++
+ // sessionStorage.setItem('mergeList', JSON.stringify(this.mergeList))
}
},
'questionForm.problemDescription':{
@@ -1337,8 +1342,26 @@ export default {
}
},
methods:{
+ checkedRole(data){
+ if(data[0].id){
+ let asdId = sessionStorage.getItem('queId')
+ this.$http.postData('lawss/AskUser/insertAskUser',{
+ asdId: asdId,
+ usid: data[0].id,
+ },{
+ _this: this
+ }, res => {
+ }, e => {
+
+ })
+ }
+ },
+ roleFlagBooFunc(boo){
+ if(boo){
+ this.roleFlag = true
+ }
+ },
emitInsState(state){
- console.log(state)
if(state){
this.questionClick()
}else {
@@ -1611,6 +1634,11 @@ export default {
if(res.data.length){
res.data.forEach(item => {
item.checkedShow = true
+ if(item.state && item.state === 'yes'){
+ item.checked = true
+ }else {
+ item.checked = false
+ }
})
}
this.answerList = res.data
@@ -1699,6 +1727,7 @@ export default {
_this: this,
}, res => {
this.standList = res.data
+ this.questionClick()
})
},
//查询订阅标准
@@ -1710,6 +1739,7 @@ export default {
_this: this
}, res => {
this.standList = res.data
+ this.questionClick()
}, e =>{
})
@@ -1720,6 +1750,7 @@ export default {
_this: this
}, res =>{
this.standList = res.data
+ this.questionClick()
}, e => {
})
@@ -1796,32 +1827,38 @@ 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('请输入问题')
+ }
+ })
},
},
};