From 7dfe95a1aadeaacd5daaf82b455dca74869adbc6 Mon Sep 17 00:00:00 2001 From: "396572590@qq.com" Date: Wed, 3 Aug 2022 15:36:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E2=80=8556725=20=E6=88=91=E7=9A=84=E8=AE=A2=E9=98=85=EF=BC=8C?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/questionItemInfo.vue | 10 ++- .../personal/pages/my-questions/index.vue | 64 +++++++++++++------ 2 files changed, 53 insertions(+), 21 deletions(-) diff --git a/src/pages/personal/pages/my-questions/components/questionItemInfo.vue b/src/pages/personal/pages/my-questions/components/questionItemInfo.vue index 408da7b5c..2db8bdde9 100644 --- a/src/pages/personal/pages/my-questions/components/questionItemInfo.vue +++ b/src/pages/personal/pages/my-questions/components/questionItemInfo.vue @@ -12,7 +12,7 @@
附件: -
+
{{ item.name }}
@@ -43,6 +43,10 @@ export default { type: Object, required: false }, + fileList: { + type: Array, + required: false + }, questionerForm: { type: Object, required: false @@ -58,6 +62,9 @@ export default { } }, methods:{ + fileListSetFunc(){ + return this.assemble(this.answer.appendixId,this.answer.appendixName) + }, archiveVerify(){ return !!(this.questionerForm && this.questionerForm.questioner && this.questionerForm.questioner !== this.answererNowUserName && this.institutionId === '30001273'); @@ -83,7 +90,6 @@ export default { answerChang(){} }, mounted () { - this.fileList = this.assemble(this.answer.appendixId,this.answer.appendixName) }, watch:{ answer: { diff --git a/src/pages/personal/pages/my-questions/index.vue b/src/pages/personal/pages/my-questions/index.vue index 25d27956b..95b52d63e 100644 --- a/src/pages/personal/pages/my-questions/index.vue +++ b/src/pages/personal/pages/my-questions/index.vue @@ -68,6 +68,7 @@
- +
@@ -126,6 +127,7 @@
- +
@@ -184,6 +186,7 @@
- +
@@ -242,6 +245,7 @@
- +
@@ -311,7 +315,7 @@
-
-
-
-
-
- +
@@ -635,7 +639,7 @@
-
- +
@@ -693,7 +697,7 @@
-
- +
@@ -751,7 +755,7 @@
-
- +
@@ -846,7 +850,7 @@
取 消 - 提 交 + 提 交 @@ -1253,6 +1257,7 @@ export default { }, data(){ return{ + tagsLoading: false, submitBtnLoading: false, aiKey:1, qiiKey:1, @@ -1326,7 +1331,6 @@ export default { } }, mounted(){ - console.log(this.$store.getters.userInfo) this.standSearch() // 查询各下拉框数据 this.$http.get("sys/dictype/getDicTypeListCode", "", { @@ -1621,9 +1625,11 @@ export default { this.subSearch() }, standClick(){ + this.tagsLoading = true this.queSearch() }, standClick2(){ + this.tagsLoading = true this.$http.get('lawss/AskQuestions/getAskQuestionsByStandardId',{ standardId: this.activestand, answerer: this.$store.getters.userInfo.userId, @@ -1631,11 +1637,13 @@ export default { _this: this }, res => { this.questionsList = res.data + this.tagsLoading = false }, e =>{ }) }, standClick3(){ + this.tagsLoading = true this.$http.get('lawss/AskQuestions/getSubscriptionByStandId',{ standardId: this.activestand, answerer: this.$store.getters.userInfo.userId, @@ -1643,6 +1651,7 @@ export default { _this: this }, res => { this.questionsList = res.data + this.tagsLoading = false }, e =>{ }) @@ -1668,14 +1677,31 @@ export default { }) } this.answerList = res.data + this.answerList.fileList = this.assemble(this.answerList.appendixId,this.answerList.appendixName) }else{ this.answerList = res.data + this.answerList.fileList = this.assemble(this.answerList.appendixId,this.answerList.appendixName) } this.qiiKey++ this.dataLoading = false + this.tagsLoading = false }, e => { }) }, + fileListSetFunc(item){ + return this.assemble(item.appendixId,item.appendixName) + }, + assemble(ids,names){ + let list= []; + if(ids && ids !== '' && names && names !== ''){ + let idArray=ids.split(','); + let nameArray=names.split(','); + for(let i=0; i { this.questionsList = res.data + this.tagsLoading = false }) }, //查询回答标准 @@ -1805,7 +1832,6 @@ export default { }, //文件上传前 beforeUploadTheme(file){ - console.log(file); var filename = file.name; var index1 = filename.lastIndexOf('.') var index2 = filename.length