浏览代码

Fix: 审批

chris 3 年之前
父节点
当前提交
970a1dac89
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/views/modules/msg-center/approveTo.vue

+ 11 - 0
src/views/modules/msg-center/approveTo.vue

@@ -66,6 +66,17 @@
       dataFormSubmit (val) {
         this.$refs['dataForm'].validate((valid) => {
           if (valid) {
+            // 添加附件
+            let fList = this.fileList
+            if (fList.length > 0) {
+              this.dataForm.attachList = []
+              for (let i = 0; i < fList.length; i++) {
+                this.dataForm.attachList.push({
+                  fileName: fList[i].name,
+                  url: fList[i].url
+                })
+              }
+            }
             this.$http({
               url: this.$http.adornUrl(`/biz-service/business/approval`),
               method: 'post',