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 >