mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 00:50:22 +08:00
fix(ui): employeeTreeSelect display error
This commit is contained in:
@@ -71,10 +71,9 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
// eslint-disable-next-line vue/require-default-prop
|
|
||||||
otherOptions: {
|
otherOptions: {
|
||||||
type: Array,
|
type: Array,
|
||||||
defualt: () => [],
|
default: () => [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -105,8 +104,8 @@ export default {
|
|||||||
employeeTreeSelectOption() {
|
employeeTreeSelectOption() {
|
||||||
return formatOption(
|
return formatOption(
|
||||||
[
|
[
|
||||||
..._.cloneDeep(this.allTreeDepAndEmp),
|
..._.cloneDeep((Array.isArray(this.allTreeDepAndEmp) ? this.allTreeDepAndEmp : [])),
|
||||||
..._.cloneDeep(this.otherOptions)
|
..._.cloneDeep((Array.isArray(this.otherOptions) ? this.otherOptions : []))
|
||||||
],
|
],
|
||||||
this.idType,
|
this.idType,
|
||||||
false,
|
false,
|
||||||
|
Reference in New Issue
Block a user