Skip to content

Commit

Permalink
Merge pull request #745 from WeBankPartners/744_ci_attribute_show_des…
Browse files Browse the repository at this point in the history
…cription

#744 ci attribute support update and show description
  • Loading branch information
homiexie authored Mar 20, 2020
2 parents 2155998 + 079afa8 commit 2dfb9d7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmdb-ui/src/pages/admin/cmdb-model-management.vue
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@
<FormItem prop="name" :label="$t('ci_attribute_name')">
<Input v-model="item.form.name" :disabled="item.form.status === 'decommissioned'"></Input>
</FormItem>
<FormItem prop="description" :label="$t('description')">
<Input
v-model="item.form.description"
:disabled="item.form.status === 'decommissioned'"
type="textarea"
:rows="1"
:autosize="true"
/>
</FormItem>
<FormItem
v-if="item.form.inputType !== 'password'"
:label="$t('search_filter_number')"
Expand Down Expand Up @@ -580,6 +589,9 @@
<FormItem :label="$t('ci_attribute_name')" prop="name">
<Input v-model="addNewAttrForm.name"></Input>
</FormItem>
<FormItem :label="$t('description')" prop="description">
<Input v-model="addNewAttrForm.description" type="textarea" :rows="1" :autosize="true" />
</FormItem>
<FormItem prop="propertyName" :label="$t('ci_attribute_id')">
<Input v-model="addNewAttrForm.propertyName"></Input>
</FormItem>
Expand Down
5 changes: 5 additions & 0 deletions cmdb-ui/src/pages/designing/ci-data.vue
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,11 @@ export default {
..._,
tooltip: true,
title: _.name,
renderHeader: (h, params) => (
<Tooltip content={_.description} placement="top">
<span>{_.name}</span>
</Tooltip>
),
key: renderKey,
inputKey: _.propertyName,
inputType: _.inputType,
Expand Down

0 comments on commit 2dfb9d7

Please sign in to comment.