feat: There is no way the, bug #52942
This commit is contained in:
@@ -102,15 +102,17 @@ export default {
|
|||||||
methods:{
|
methods:{
|
||||||
//提交
|
//提交
|
||||||
handleSubmit(){
|
handleSubmit(){
|
||||||
|
this.$emit('emitInsState',false)
|
||||||
let asdId = sessionStorage.getItem('queId')
|
let asdId = sessionStorage.getItem('queId')
|
||||||
this.form.fileList = this.fileList
|
this.form.fileList = this.fileList
|
||||||
this.form.askId = asdId
|
this.form.askId = asdId
|
||||||
this.$http.postData('lawss/Reply/insertReply',{ ...this.form },{
|
this.$http.postData('lawss/Reply/insertReply',{ ...this.form },{
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res.merge === '添加成功'){
|
if(res.respCode === '200'){
|
||||||
this.form.reply = ''
|
this.form.reply = ''
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
this.$emit('emitInsState',true)
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -145,6 +146,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -202,6 +204,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -259,6 +262,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -324,13 +328,14 @@
|
|||||||
<template v-for="(item, index) in answerList">
|
<template v-for="(item, index) in answerList">
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="answer-box" >
|
<div class="answer-box" >
|
||||||
<question-item-info :answer="item"></question-item-info>
|
<question-item-info :answer="item" :dataLoading="dataLoading"></question-item-info>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-answer" >
|
<div class="info-answer" >
|
||||||
<answer-item></answer-item>
|
<answer-item @emitInsState="emitInsState"></answer-item>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -388,9 +393,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-answer" >
|
<div class="info-answer" >
|
||||||
<answer-item></answer-item>
|
<answer-item @emitInsState="emitInsState"></answer-item>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -448,9 +454,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-answer" >
|
<div class="info-answer" >
|
||||||
<answer-item></answer-item>
|
<answer-item @emitInsState="emitInsState"></answer-item>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -504,13 +511,16 @@
|
|||||||
<template v-for="(item, index) in answerList">
|
<template v-for="(item, index) in answerList">
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<div class="answer-box" >
|
<div class="answer-box" >
|
||||||
<question-item-info :answer="item"></question-item-info>
|
<question-item-info
|
||||||
|
:answer="item"
|
||||||
|
></question-item-info>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-answer" >
|
<div class="info-answer" >
|
||||||
<answer-item></answer-item>
|
<answer-item @emitInsState="emitInsState"></answer-item>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -580,6 +590,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -638,6 +649,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@@ -694,6 +706,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -751,6 +764,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</template>
|
</template>
|
||||||
@@ -1225,6 +1239,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
dataLoading: true,
|
||||||
mergeList: [],
|
mergeList: [],
|
||||||
historyList: [], //相似历史问题
|
historyList: [], //相似历史问题
|
||||||
handleSelectForm: {
|
handleSelectForm: {
|
||||||
@@ -1322,6 +1337,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
emitInsState(state){
|
||||||
|
console.log(state)
|
||||||
|
if(state){
|
||||||
|
this.questionClick()
|
||||||
|
}else {
|
||||||
|
this.dataLoading = true
|
||||||
|
}
|
||||||
|
},
|
||||||
changeInput:debounce(function(val){
|
changeInput:debounce(function(val){
|
||||||
if(val.length){
|
if(val.length){
|
||||||
this.$http.get('lawss/AskQuestions/resemblance',{
|
this.$http.get('lawss/AskQuestions/resemblance',{
|
||||||
@@ -1577,7 +1600,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
questionClick(){
|
questionClick(){
|
||||||
sessionStorage.setItem('queId', this.activeQue)
|
this.dataLoading = true
|
||||||
|
sessionStorage.setItem('queId', this.activeQue)
|
||||||
this.$http.get('lawss/AskQuestions/getAskQuestionsByakId',{
|
this.$http.get('lawss/AskQuestions/getAskQuestionsByakId',{
|
||||||
id: this.activeQue
|
id: this.activeQue
|
||||||
},{
|
},{
|
||||||
@@ -1593,6 +1617,7 @@ export default {
|
|||||||
}else{
|
}else{
|
||||||
this.answerList = res.data
|
this.answerList = res.data
|
||||||
}
|
}
|
||||||
|
this.dataLoading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user