From 984c481df80b2ab07bf3e656f7d31adede1c2b10 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 10 Mar 2025 08:53:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B7=A5=E8=89=BA=E8=B7=AF=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mtm/route_form.vue | 22 +++++++++------------- src/views/mtm/routepack_form.vue | 4 +--- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index eca28225..28d61a48 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -23,7 +23,6 @@ placeholder="工序" clearable style="width: 100%" - :disabled="updateDisable" > { that.isSaveing = false; - that.$emit("success", that.form, that.mode); + that.$emit("success"); that.visible = false; that.$message.success("操作成功"); }) @@ -392,17 +391,14 @@ export default { that.isSaveing = false; }); } else { - that.$API.mtm.route.update - .req(that.form.id, that.form) - .then((res) => { - that.isSaveing = false; - that.$emit("success", that.form, that.mode); - that.visible = false; - that.$message.success("操作成功"); - }) - .catch((res) => { - that.isSaveing = false; - }); + that.$API.mtm.route.update.req(that.form.id, that.form).then((res) => { + that.isSaveing = false; + that.$emit("success"); + that.visible = false; + that.$message.success("操作成功"); + }).catch((res) => { + that.isSaveing = false; + }); } } }); diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index 6fb13f5a..8262bf53 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -66,7 +66,7 @@ v-model="fileList" :multiple="false" :limit="1" - :accept="['.pdf']" + :accept="'.pdf'" @success = "fileUPSuccess" > @@ -110,8 +110,6 @@ :query="query" :params="query" row-key="id" - hidePagination - hideDo stripe >