From c0c83a91c98cc8afc04f82c0cd2e7031321ffc2e Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 25 Feb 2025 14:14:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B7=A5=E8=89=BA=E8=B7=AF=E7=BA=BF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=82=E8=80=83=E6=96=87=E7=8C=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/routepack_form.vue | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index 1a0e6584..7e785bf0 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -59,6 +59,19 @@ + + + + + + + @@ -196,6 +209,7 @@ export default { dialog: { save: false, }, + fileList:[], form: { name: "", material: "", @@ -227,7 +241,17 @@ export default { }, setData(data) { Object.assign(this.form, data); - console.log("setData this.form", this.form); + let obj = {}; + obj.name=data.document_.name; + obj.url=data.document_.file; + this.fileList.push(obj); + // console.log("setData this.form", this.form); + }, + fileUPSuccess(res) { + let that = this; + // console.log('res',res); + // console.log('that.fileList',that.fileList); + that.form.document = res.id; }, getMaterials() { let that = this; @@ -253,14 +277,14 @@ export default { let form = {}; form.name = that.form.name; form.material = that.form.material; - console.log("that.form",that.form) + // console.log("that.form",that.form) if (that.form.id) { that.$API.mtm.routepack.update .req(that.form.id, that.form) .then((res) => { that.routepack = res.id; that.query.routepack = res.id; - console.log("that.query", that.query); + // console.log("that.query", that.query); that.apiObj = that.$API.mtm.route.list; that.active = 1; // that.$refs.tables.refresh(); @@ -270,7 +294,7 @@ export default { this.active = 1; that.form.id = res.id; that.routepack = res.id; - console.log("that.form",that.form) + // console.log("that.form",that.form) }); } },