作者 张晓杰

合规审查附件上传

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