This commit is contained in:
bb_pan 2025-04-18 13:58:47 +08:00
parent 22f562c0b2
commit 29033c0cfa
2 changed files with 9 additions and 1 deletions

View File

@ -160,7 +160,7 @@
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
v-if="!isView" v-if="!isEdit && !isAdd"
type="warning" type="warning"
plain plain
icon="el-icon-download" icon="el-icon-download"

View File

@ -53,6 +53,7 @@
placeholder="请选择所属上级" placeholder="请选择所属上级"
@select="handleTypeTree" @select="handleTypeTree"
style="width: 240px" style="width: 240px"
@input="changeTree"
/> />
</el-form-item> </el-form-item>
<el-form-item label="是否绑定库管员" prop="isBind"> <el-form-item label="是否绑定库管员" prop="isBind">
@ -464,6 +465,13 @@ export default {
this.queryParams.modelName = '' this.queryParams.modelName = ''
} }
}, },
changeTree (val) {
console.log('🚀 ~ changeTree ~ val:', val)
if (!val) {
this.queryParams.typeName = ''
this.queryParams.modelName = ''
}
},
// //
filterNode(value, data) { filterNode(value, data) {
if (!value) return true if (!value) return true