|
@@ -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("流程启动成功");
|