diff --git a/src/pages/personal/pages/my-questions/components/answerItem.vue b/src/pages/personal/pages/my-questions/components/answerItem.vue index cdeaa62c6..e008bccf4 100644 --- a/src/pages/personal/pages/my-questions/components/answerItem.vue +++ b/src/pages/personal/pages/my-questions/components/answerItem.vue @@ -68,6 +68,26 @@
点击或拖拽上传文件
+ + +
+ + +
+ +
+
+
+
+ + 取 消 + 提 交 + +
@@ -88,6 +108,13 @@ export default { // 上传地址 actionPath: 'api/att/attFile/uploadNew', importModalshowflagtemp: false, + submitBtnLoading: false, + dialogVisible: false, + queList:[], + queRules:{}, + questionForm:{ + problemDescription: '', //回答 + }, fileList: [], form:{ reply: '', @@ -184,28 +211,35 @@ export default { } }) }, + handleClose(){ + this.dialogVisible = false + }, + queSubmit(){ + console.log(this.queList,'queSubmit'); + // this.$emit('emitInsState',false) + // let listId = list.join(',') + // this.$http.post('lawss/Reply/updateReply', { + // id: listId, + // },{ + // _this: this + // }, res => { + // if(res.respCode === '200'){ + // this.$emit('emitInsState',true) + // } + // }, e => { + // }) + }, //问题归档 queArchive(){ - let list = [] this.mergeSelectList = this.mergeSelectList.filter ( item => item.state !== 'yes' && item.checked); for (let i = 0; i < this.mergeSelectList.length; i++) { if(this.mergeSelectList[i].checked){ - list.push(this.mergeSelectList[i].id) + this.queList.push(this.mergeSelectList[i]) } } - if(this.mergeSelectList && this.mergeSelectList.length > 0){ - this.$emit('emitInsState',false) - let listId = list.join(',') - this.$http.post('lawss/Reply/updateReply', { - id: listId, - },{ - _this: this - }, res => { - if(res.respCode === '200'){ - this.$emit('emitInsState',true) - } - }, e => { - }) + console.log(this.queList); + if(this.queList && this.queList.length > 0){ + this.dialogVisible = true }else { this.$message.warning('请选择归档内容') } @@ -217,6 +251,7 @@ export default { }, mounted () { this.mergeSelectList = this.list + console.log(this.mergeSelectList); }, };