fix:工艺路线

This commit is contained in:
shijing 2025-03-10 08:53:30 +08:00
parent 6d0d40eef5
commit 984c481df8
2 changed files with 10 additions and 16 deletions

View File

@ -23,7 +23,6 @@
placeholder="工序" placeholder="工序"
clearable clearable
style="width: 100%" style="width: 100%"
:disabled="updateDisable"
> >
<el-option <el-option
v-for="item in options" v-for="item in options"
@ -384,7 +383,7 @@ export default {
.req(that.form) .req(that.form)
.then((res) => { .then((res) => {
that.isSaveing = false; that.isSaveing = false;
that.$emit("success", that.form, that.mode); that.$emit("success");
that.visible = false; that.visible = false;
that.$message.success("操作成功"); that.$message.success("操作成功");
}) })
@ -392,15 +391,12 @@ export default {
that.isSaveing = false; that.isSaveing = false;
}); });
} else { } else {
that.$API.mtm.route.update that.$API.mtm.route.update.req(that.form.id, that.form).then((res) => {
.req(that.form.id, that.form)
.then((res) => {
that.isSaveing = false; that.isSaveing = false;
that.$emit("success", that.form, that.mode); that.$emit("success");
that.visible = false; that.visible = false;
that.$message.success("操作成功"); that.$message.success("操作成功");
}) }).catch((res) => {
.catch((res) => {
that.isSaveing = false; that.isSaveing = false;
}); });
} }

View File

@ -66,7 +66,7 @@
v-model="fileList" v-model="fileList"
:multiple="false" :multiple="false"
:limit="1" :limit="1"
:accept="['.pdf']" :accept="'.pdf'"
@success = "fileUPSuccess" @success = "fileUPSuccess"
> >
<el-button type="primary" icon="el-icon-upload"> </el-button> <el-button type="primary" icon="el-icon-upload"> </el-button>
@ -110,8 +110,6 @@
:query="query" :query="query"
:params="query" :params="query"
row-key="id" row-key="id"
hidePagination
hideDo
stripe stripe
> >
<el-table-column label="排序" prop="sort" width="50"> <el-table-column label="排序" prop="sort" width="50">