mirror of https://github.com/veops/cmdb.git
commit
3beea17770
|
@ -45,7 +45,7 @@
|
|||
</template>
|
||||
</vxe-column>
|
||||
<vxe-column field="type_id" width="100px" :title="$t('cmdb.ciType.ciType')"></vxe-column>
|
||||
<vxe-column field="show_attr_value" width="100px" :title="$t('cmdb.ciType.show')"></vxe-column>
|
||||
<vxe-column field="show_attr_value" width="100px" :title="$t('cmdb.ci.instance')"></vxe-column>
|
||||
<vxe-column field="operate_type" width="89px" :title="$t('operation')">
|
||||
<template #header="{ column }">
|
||||
<span>{{ column.title }}</span>
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
@change="onChange"
|
||||
format="YYYY-MM-DD HH:mm"
|
||||
:placeholder="[$t('cmdb.history.startTime'), $t('cmdb.history.endTime')]"
|
||||
v-else-if="valueTypeMap[item.value_type] == 'date' || valueTypeMap[item.value_type] == 'datetime'"
|
||||
v-else-if="item.value_type === '3'"
|
||||
:show-time="{
|
||||
hideDisabledOptions: true,
|
||||
defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')],
|
||||
|
|
|
@ -71,10 +71,9 @@ export default {
|
|||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
// eslint-disable-next-line vue/require-default-prop
|
||||
otherOptions: {
|
||||
type: Array,
|
||||
defualt: () => [],
|
||||
default: () => [],
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
@ -105,8 +104,8 @@ export default {
|
|||
employeeTreeSelectOption() {
|
||||
return formatOption(
|
||||
[
|
||||
..._.cloneDeep(this.allTreeDepAndEmp),
|
||||
..._.cloneDeep(this.otherOptions)
|
||||
..._.cloneDeep((Array.isArray(this.allTreeDepAndEmp) ? this.allTreeDepAndEmp : [])),
|
||||
..._.cloneDeep((Array.isArray(this.otherOptions) ? this.otherOptions : []))
|
||||
],
|
||||
this.idType,
|
||||
false,
|
||||
|
|
Loading…
Reference in New Issue