作者 张晓杰

合规审查附件上传

@@ -267,10 +267,10 @@ export default { @@ -267,10 +267,10 @@ export default {
267 // 假设后端返回的数据结构中有一个字段 url 表示文件地址 267 // 假设后端返回的数据结构中有一个字段 url 表示文件地址
268 const fileUrl = response.data.fileNames; 268 const fileUrl = response.data.fileNames;
269 // 将文件地址或文件名赋值给表单的字段 269 // 将文件地址或文件名赋值给表单的字段
270 - this.form.templatefile =fileUrl; 270 + this.form.attachments =fileUrl;
271 }, 271 },
272 handleRemove(file, fileList) { 272 handleRemove(file, fileList) {
273 - this.form.templatefile='' 273 + this.form.attachments=''
274 console.log(file, fileList); 274 console.log(file, fileList);
275 }, 275 },
276 handlePreview(file) { 276 handlePreview(file) {
@@ -295,7 +295,6 @@ export default { @@ -295,7 +295,6 @@ export default {
295 // console.log(this.formData) 295 // console.log(this.formData)
296 if (valid) { 296 if (valid) {
297 console.log("===", this.form); 297 console.log("===", this.form);
298 - this.form.attachments = this.fileList[0].name;  
299 // return 298 // return
300 addAndStart(this.form).then((response) => { 299 addAndStart(this.form).then((response) => {
301 this.$modal.msgSuccess("流程启动成功"); 300 this.$modal.msgSuccess("流程启动成功");
@@ -402,8 +402,8 @@ export default { @@ -402,8 +402,8 @@ export default {
402 this.$refs["elForm"].validate((valid) => { 402 this.$refs["elForm"].validate((valid) => {
403 // console.log(this.formData) 403 // console.log(this.formData)
404 if (valid) { 404 if (valid) {
405 - console.log("===", this.formData);  
406 this.formData.attachments = this.fileList[0].name; 405 this.formData.attachments = this.fileList[0].name;
  406 + console.log("===", this.formData);
407 // return 407 // return
408 addAndStart(this.formData).then((response) => { 408 addAndStart(this.formData).then((response) => {
409 this.$modal.msgSuccess("流程启动成功"); 409 this.$modal.msgSuccess("流程启动成功");