添加隐藏显示

This commit is contained in:
打豆豆 2024-01-10 14:56:05 +08:00
parent d92eac3ff5
commit f72f5d0625

View File

@ -302,7 +302,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12" v-if="Typefile">
<el-form-item label="代码上传" prop=""> <el-form-item label="代码上传" prop="">
<el-upload <el-upload
ref="codeName" ref="codeName"
@ -458,6 +458,7 @@ export default {
lineName:"", lineName:"",
pointName:"", pointName:"",
TypeId:false, TypeId:false,
Typefile:false,
// //
form: {}, form: {},
// //
@ -549,8 +550,10 @@ export default {
handleNodeClick(data) { handleNodeClick(data) {
if(data.machineryTypeId == 229){ if(data.machineryTypeId == 229){
this.TypeId = true this.TypeId = true
this.Typefile = false
}else{ }else{
this.TypeId = false this.TypeId = false
this.Typefile = true
} }
this.form.machineryTypeName = data.machineryTypeName; this.form.machineryTypeName = data.machineryTypeName;
}, },
@ -661,6 +664,10 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
if(this.form.machineryTypeId == null){
this.TypeId = false
this.Typefile = false
}
this.open = true; this.open = true;
this.title = "添加工艺组成"; this.title = "添加工艺组成";
listRouteprocess(this.queryParams).then((response) => { listRouteprocess(this.queryParams).then((response) => {
@ -670,10 +677,17 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
if(row.machineryTypeId == 229){ if(row.machineryTypeId == null){
this.TypeId = true
}else{
this.TypeId = false this.TypeId = false
this.Typefile = false
}else{
if(row.machineryTypeId == 229){
this.TypeId = true
this.Typefile = false
}else{
this.TypeId = false
this.Typefile = true
}
} }
var name = {}; var name = {};
if (row.originalName != undefined && row.originalName != "") { if (row.originalName != undefined && row.originalName != "") {