合并分支 'dev_20230216' 到 'master'

Dev 20230216

查看合并请求 laws-foton-slrs/foton-laws-system-front!37
This commit is contained in:
高嵩
2023-04-06 04:57:36 +08:00
4 changed files with 56 additions and 29 deletions
@@ -165,19 +165,27 @@ export default {
_this: this _this: this
}, res => { }, res => {
if(this.list.length === 0){ if(this.list.length === 0){
this.deleteReplyToenNotice() this.$http.get('lawss/activiti/selectWenDan', {
.then(res => { taskId: this.$route.query.taskIds,
this.$http.post("lawss/activiti/completeTask", { }, {
json: JSON.stringify(this.form), _this: this
taskId: this.$route.query.taskIds, }, res => {
userId: this.$store.getters.userInfo.userId this.form = Object.assign(this.form,res)
}, {}, res => { this.deleteReplyToenNotice()
.then(res => {
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(this.form),
taskId: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
}); });
this.form.reply = '' this.form.reply = ''
this.fileList = [] this.fileList = []
this.$emit('emitInsState',true) this.$emit('emitInsState',true)
}).catch(e => console.log(e)) }).catch(e => console.log(e))
}, e => {
})
}else{ }else{
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(this.form), json: JSON.stringify(this.form),
@@ -26,7 +26,8 @@
</div> </div>
</div> </div>
<div style="float: right; margin-top: 20px"> <div style="float: right; margin-top: 20px">
<el-checkbox v-if="answer.checkedShow && archiveVerify()" @change="answerChang" :disabled="answer.state && answer.state === 'yes'" v-model="answer.checked">归档</el-checkbox> <!--<el-checkbox v-if="answer.checkedShow && archiveVerify()" @change="answerChang" :disabled="answer.state && answer.state === 'yes'" v-model="answer.checked">归档</el-checkbox>-->
<el-checkbox @change="answerChang" :disabled="answer.state && answer.state === 'yes'" v-model="answer.checked">归档</el-checkbox>
</div> </div>
</div> </div>
<!-- <div class="footer-box">--> <!-- <div class="footer-box">-->
@@ -87,7 +88,9 @@ export default {
this.$preview(attId) this.$preview(attId)
} }
}, },
answerChang(){} answerChang(val){
this.$emit('answerCheckedChange',this.answer)
}
}, },
mounted () { mounted () {
}, },
@@ -24,7 +24,8 @@
<question-item-info :key="qiiKey" <question-item-info :key="qiiKey"
:answer="item" :answer="item"
:fileList="fileListSetFunc(item)" :fileList="fileListSetFunc(item)"
:questionerForm="form"></question-item-info> :questionerForm="form"
@answerCheckedChange="answerCheckedChange"></question-item-info>
</div> </div>
</div> </div>
</template> </template>
@@ -77,6 +78,16 @@ export default {
this.getData() this.getData()
}, },
methods:{ methods:{
answerCheckedChange(answer){
this.answerList = this.answerList.filter(item=>{
if(item.askId === answer.id){
return answer
}else{
return item
}
})
this.aiKey++
},
getData(){ getData(){
let taskId = this.$route.query.taskIds let taskId = this.$route.query.taskIds
this.$http.get('lawss/activiti/selectAskId',{ this.$http.get('lawss/activiti/selectAskId',{
@@ -92,21 +103,26 @@ export default {
{ {
_this: this _this: this
}, res => { }, res => {
this.form=res.data[0] if(res.data.length === 0){
this.dataLoading = false
}else{
this.form=res.data[0]
if(res.data[1].length){ if(res.data[1].length){
res.data[1].forEach(item => { res.data[1].forEach(item => {
item.checkedShow = true item.checkedShow = true
if(item.state && item.state === 'yes'){ if(item.state && item.state === 'yes'){
item.checked = true item.checked = true
}else { }else {
item.checked = false item.checked = false
} }
}) })
}
this.answerList = res.data[1]
this.aiKey++
this.dataLoading = false
} }
this.answerList = res.data[1]
this.dataLoading = false
}, e => { }, e => {
}) })
}, e => { }, e => {
@@ -2229,7 +2229,7 @@ export default {
break break
case '27': case '27':
this.$router.push({ this.$router.push({
name: 'MyQuestions', name: 'MyQuestions2',
query:{ query:{
taskIds: row.taskIds, taskIds: row.taskIds,
prcId: row.prcId, prcId: row.prcId,