diff --git a/cmdb-ui/src/modules/cmdb/views/ci_types/attributeEditForm.vue b/cmdb-ui/src/modules/cmdb/views/ci_types/attributeEditForm.vue
index c5b3c6c..38741a6 100644
--- a/cmdb-ui/src/modules/cmdb/views/ci_types/attributeEditForm.vue
+++ b/cmdb-ui/src/modules/cmdb/views/ci_types/attributeEditForm.vue
@@ -633,8 +633,10 @@ export default {
values = { ...values, ...computedAreaData }
} else {
// 如果是非计算属性,就看看有没有预定义值
- const preValueAreaData = this.$refs.preValueArea.getData()
- values = { ...values, ...preValueAreaData }
+ if (values.value_type !== '6') {
+ const preValueAreaData = this.$refs.preValueArea.getData()
+ values = { ...values, ...preValueAreaData }
+ }
}
const fontOptions = this.$refs.fontArea.getData()
diff --git a/cmdb-ui/src/modules/cmdb/views/ci_types/attributesTable.vue b/cmdb-ui/src/modules/cmdb/views/ci_types/attributesTable.vue
index 86a58f7..42da472 100644
--- a/cmdb-ui/src/modules/cmdb/views/ci_types/attributesTable.vue
+++ b/cmdb-ui/src/modules/cmdb/views/ci_types/attributesTable.vue
@@ -100,12 +100,6 @@
:CITypeId="CITypeId"
/>
-
-
@@ -145,10 +139,6 @@
:CITypeId="CITypeId"
/>
-
@@ -262,7 +252,6 @@ export default {
group.editable = false
group.originOrder = group.order
group.originName = group.name
- // group.attributes = group.attributes.sort((a, b) => a.order - b.order)
})
this.otherGroupAttributes = this.attributes
@@ -390,7 +379,6 @@ export default {
group.attributes = group.attributes.filter((x) => !values.checkedAttributes.includes(x.id))
}
})
- // this.CITypeGroups = this.CITypeGroups
this.otherGroupAttributes.forEach((attributes) => {
if (values.groupId === null) {
diff --git a/cmdb-ui/src/modules/cmdb/views/ci_types/ceateNewAttribute.vue b/cmdb-ui/src/modules/cmdb/views/ci_types/ceateNewAttribute.vue
index d573942..9755f51 100644
--- a/cmdb-ui/src/modules/cmdb/views/ci_types/ceateNewAttribute.vue
+++ b/cmdb-ui/src/modules/cmdb/views/ci_types/ceateNewAttribute.vue
@@ -1,547 +1,549 @@
-
-
- 基础设置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ value }}
-
-
-
-
-
-
-
-
-
-
-
-
- 自增ID
-
-
-
-
-
-
- 创建时间
-
-
- 更新时间
-
-
- 自定义时间
-
-
-
-
-
-
-
-
- 创建时间
-
-
- 更新时间
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ `索引` }}
-
- {
- e.stopPropagation()
- e.preventDefault()
- }
- "
- />
-
-
-
-
-
-
-
-
-
- {{ `显示` }}
-
- {
- e.stopPropagation()
- e.preventDefault()
- }
- "
- />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ `多值` }}
-
- {
- e.stopPropagation()
- e.preventDefault()
- }
- "
- />
-
-
-
- onChange(checked, 'is_list')"
- name="is_list"
- v-decorator="['is_list', { rules: [], valuePropName: 'checked' }]"
- />
-
-
-
-
- onChange(checked, 'is_password')"
- name="is_password"
- v-decorator="['is_password', { rules: [], valuePropName: 'checked' }]"
- />
-
-
-
-
- onChange(checked, 'is_link')"
- name="is_link"
- v-decorator="['is_link', { rules: [], valuePropName: 'checked' }]"
- />
-
-
- 高级设置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ `计算属性` }}
-
- {
- e.stopPropagation()
- e.preventDefault()
- }
- "
- />
-
-
-
- onChange(checked, 'is_computed')"
- name="is_password"
- v-decorator="['is_computed', { rules: [], valuePropName: 'checked' }]"
- />
-
-
-
-
-
- 新增
-
- 取消
-
-
-
-
-
+
+
+ 基础设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ value }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 自增ID
+
+
+
+
+
+
+ 创建时间
+
+
+ 更新时间
+
+
+ 自定义时间
+
+
+
+
+
+
+
+
+ 创建时间
+
+
+ 更新时间
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ `索引` }}
+
+ {
+ e.stopPropagation()
+ e.preventDefault()
+ }
+ "
+ />
+
+
+
+
+
+
+
+
+
+ {{ `显示` }}
+
+ {
+ e.stopPropagation()
+ e.preventDefault()
+ }
+ "
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ `多值` }}
+
+ {
+ e.stopPropagation()
+ e.preventDefault()
+ }
+ "
+ />
+
+
+
+ onChange(checked, 'is_list')"
+ name="is_list"
+ v-decorator="['is_list', { rules: [], valuePropName: 'checked' }]"
+ />
+
+
+
+
+ onChange(checked, 'is_password')"
+ name="is_password"
+ v-decorator="['is_password', { rules: [], valuePropName: 'checked' }]"
+ />
+
+
+
+
+ onChange(checked, 'is_link')"
+ name="is_link"
+ v-decorator="['is_link', { rules: [], valuePropName: 'checked' }]"
+ />
+
+
+ 高级设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ `计算属性` }}
+
+ {
+ e.stopPropagation()
+ e.preventDefault()
+ }
+ "
+ />
+
+
+
+ onChange(checked, 'is_computed')"
+ name="is_password"
+ v-decorator="['is_computed', { rules: [], valuePropName: 'checked' }]"
+ />
+
+
+
+
+
+ 新增
+
+ 取消
+
+
+
+
+