浏览代码

fix: 数据确认 附件bug

32197351@qq.com 1 年之前
父节点
当前提交
8f53e7fa47
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      itdmWeb/src/views/module-iTDM/gongdanshuju/ItdmGongdanShujuList2.vue

+ 5 - 2
itdmWeb/src/views/module-iTDM/gongdanshuju/ItdmGongdanShujuList2.vue

@@ -474,8 +474,11 @@ export default {
         },
         // 上传附件打开
         submitFJ(){
-          getUpload({woId: this.queryParam.woId}).then(res => {
+          getUpload({weituoId: this.queryParam2.weituoId}).then(res => {
             console.log(res.result)
+            if (res.result === '') {
+              this.fileList=[]
+            }
             this.fileList = res.result.split(',')
             console.log(this.fileList)
             this.visible = true;
@@ -484,7 +487,7 @@ export default {
         // 上传附件确定
         handleOk () {
             var query = {
-                woId: this.queryParam.woId,
+                weituoId: this.queryParam2.weituoId,
                 images: this.fileList.toString()
             }
             upload(query).then(res => {