Lou
2024-04-13 45ff8bf8bb28eaab39c6cc7e13730fbaeb2e44fc
subPackage/counterfraud/addReport.vue
@@ -48,7 +48,7 @@
      <!-- <footer-btn @click="sumitInfo"></footer-btn> -->
      <button class="submit-btn" @click="sumitInfo">提交</button>
      <button class="list-btn mb-20" @click="navTo">我上报的事件</button>
      <button class="list-btn mb-20" @click="navTo">上报记录</button>
@@ -230,22 +230,19 @@
               for (let k = 0, kk = this.questionList[i].children.length; k < kk; k++) {
                  // if (this.questionList[i].children[k].state != null) {
                  if (this.questionList[i].children[k].urls.length) {
                     // files.push(this.questionList[i].children[k].id)
                     arr.push({
                        itemId: this.questionList[i].children[k].id,
                        // state: this.questionList[i].children[k].state,
                        imageUrls: this.setImages(this.questionList[i].children[k].urls),
                        // remark: this.questionList[i].children[k].remark || ""
                     })
                  }
                  // if (this.questionList[i].children[k].urls.length) {
                  //    arr.push({
                  //       itemId: this.questionList[i].children[k].id,
                  //       state: this.questionList[i].children[k].state,
                  //       imageUrls: this.setImages(this.questionList[i].children[k].urls),
                  //       remark: this.questionList[i].children[k].remark || ""
                  //    })
                  // }
                  // arr.push({
                  //    itemId: this.questionList[i].children[k].id,
                  //    imageUrls: this.setImages(this.questionList[i].children[k].urls),
                  // })
                  arr.push({
                     itemId: this.questionList[i].children[k].id,
                     imageUrls: this.setImages(this.questionList[i].children[k].urls),
                  })
                  // if (this.questionList[i].children[k].state == 0) {
                  //    count += 1;
                  // }
@@ -318,12 +315,15 @@
            //    this.info.imageUrls = urls.join(",")
            // }
            if (!this.getSelected().length) {
               this.$showTips("您还没有上传附件");
               return;
            } else {
               this.info.taskPlaceRecordVOList = this.getSelected()
            }
            // if (!this.getSelected().length) {
            //    this.$showTips("您还没有上传附件");
            //    return;
            // } else {
            //    this.info.taskPlaceRecordVOList = this.getSelected()
            // }
            this.info.taskPlaceRecordVOList = this.getSelected()
            if (this.isEdit) {
               this.info.status = 1;
               updateCounterfraudReport(this.info).then(res => {