Merge pull request #617 from veops/dev_ui_240914

dev_ui_240914
This commit is contained in:
Leo Song 2024-09-14 17:28:42 +08:00 committed by GitHub
commit 3beea17770
3 changed files with 5 additions and 6 deletions

View File

@ -45,7 +45,7 @@
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="type_id" width="100px" :title="$t('cmdb.ciType.ciType')"></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')"> <vxe-column field="operate_type" width="89px" :title="$t('operation')">
<template #header="{ column }"> <template #header="{ column }">
<span>{{ column.title }}</span> <span>{{ column.title }}</span>

View File

@ -85,7 +85,7 @@
@change="onChange" @change="onChange"
format="YYYY-MM-DD HH:mm" format="YYYY-MM-DD HH:mm"
:placeholder="[$t('cmdb.history.startTime'), $t('cmdb.history.endTime')]" :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="{ :show-time="{
hideDisabledOptions: true, hideDisabledOptions: true,
defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')], defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')],

View File

@ -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,