forked from github/dataease
fix: 顶级组织不能编辑为非顶级组织
This commit is contained in:
parent
e8fa566549
commit
be033a5c66
@ -86,7 +86,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="顶级组织" prop="top">
|
<el-form-item label="顶级组织" prop="top">
|
||||||
<el-radio-group v-model="form.top" style="width: 140px">
|
<el-radio-group v-model="form.top" style="width: 140px" @change="topChange">
|
||||||
<el-radio :label="true">是</el-radio>
|
<el-radio :label="true">是</el-radio>
|
||||||
<el-radio :label="false">否</el-radio>
|
<el-radio :label="false">否</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -507,6 +507,10 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
return roots
|
return roots
|
||||||
|
},
|
||||||
|
topChange(value) {
|
||||||
|
// console.log(value)
|
||||||
|
!value && (this.depts = null)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user