chris %!s(int64=3) %!d(string=hai) anos
pai
achega
970a1dac89
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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',