diff --git a/ui/src/views/cmdb/attributes/index.vue b/ui/src/views/cmdb/attributes/index.vue new file mode 100644 index 0000000..b3d97fb --- /dev/null +++ b/ui/src/views/cmdb/attributes/index.vue @@ -0,0 +1,374 @@ + + + + + {{ btnName }} + + + + + setSelectedKeys(e.target.value ? [e.target.value] : [])" + @pressEnter="() => handleSearch(selectedKeys, confirm, column)" + style="width: 188px; margin-bottom: 8px; display: block;" + /> + handleSearch(selectedKeys, confirm, column)" + icon="search" + size="small" + style="width: 90px; margin-right: 8px" + >Search + handleReset(clearFilters, column)" + size="small" + style="width: 90px" + >Reset + + + + + + + {{ fragment }} + {{ fragment }} + + + {{ text }} + + + + + + {{ fragment }} + {{ fragment }} + + + {{ text }} + + + + + + + + + 编辑 + + 删除 + + + + + + + + + + + + diff --git a/ui/src/views/cmdb/attributes/module/attributeForm.vue b/ui/src/views/cmdb/attributes/module/attributeForm.vue new file mode 100644 index 0000000..9959925 --- /dev/null +++ b/ui/src/views/cmdb/attributes/module/attributeForm.vue @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + {{ value }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 确定 + 取消 + + + + + + + + + + + diff --git a/ui/src/views/cmdb/attributes/module/const.js b/ui/src/views/cmdb/attributes/module/const.js new file mode 100644 index 0000000..2f43d48 --- /dev/null +++ b/ui/src/views/cmdb/attributes/module/const.js @@ -0,0 +1,8 @@ +export const valueTypeMap = { + '0': '整数', + '1': '浮点数', + '2': '文本', + '3': 'datetime', + '4': 'date', + '5': 'time' +} diff --git a/ui/src/views/cmdb/ci_type/attributesTable.vue b/ui/src/views/cmdb/ci_type/attributesTable.vue new file mode 100644 index 0000000..22adaf3 --- /dev/null +++ b/ui/src/views/cmdb/ci_type/attributesTable.vue @@ -0,0 +1,551 @@ + + + + + {{ singleAttrAction.btnName }} + {{ batchBindAttrAction.btnName }} + + + + + setSelectedKeys(e.target.value ? [e.target.value] : [])" + @pressEnter="() => handleSearch(selectedKeys, confirm, column)" + style="width: 188px; margin-bottom: 8px; display: block;" + /> + handleSearch(selectedKeys, confirm, column)" + icon="search" + size="small" + style="width: 90px; margin-right: 8px" + >Search + handleReset(clearFilters, column)" + size="small" + style="width: 90px" + >Reset + + + + + + + {{ fragment }} + {{ fragment }} + + + {{ text }} + + + + + + {{ fragment }} + {{ fragment }} + + + {{ text }} + + + + + + + + + 编辑 + + 删除 + + + + + + + + + + + + + 确定 + 取消 + + + + + + + + + + + diff --git a/ui/src/views/cmdb/ci_type/checkTable.vue b/ui/src/views/cmdb/ci_type/checkTable.vue new file mode 100644 index 0000000..cf201b9 --- /dev/null +++ b/ui/src/views/cmdb/ci_type/checkTable.vue @@ -0,0 +1,349 @@ + + + 批量修改 + + + + + + + + + 删除 + + + + + + + + + + + 确定 + 取消 + + + + + + + + + + + + diff --git a/ui/src/views/cmdb/ci_type/defaultShowTable.vue b/ui/src/views/cmdb/ci_type/defaultShowTable.vue new file mode 100644 index 0000000..ac24abf --- /dev/null +++ b/ui/src/views/cmdb/ci_type/defaultShowTable.vue @@ -0,0 +1,355 @@ + + + 批量修改 + + + + + + + + 删除 + + + + + + + + + + + 确定 + 取消 + + + + + + + + + + + + diff --git a/ui/src/views/cmdb/ci_type/detail.vue b/ui/src/views/cmdb/ci_type/detail.vue new file mode 100644 index 0000000..6ba6f21 --- /dev/null +++ b/ui/src/views/cmdb/ci_type/detail.vue @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/src/views/cmdb/ci_type/group.vue b/ui/src/views/cmdb/ci_type/group.vue new file mode 100644 index 0000000..24bf748 --- /dev/null +++ b/ui/src/views/cmdb/ci_type/group.vue @@ -0,0 +1,591 @@ + + + + 添加分组 + + + + + 保存 + 取消 + + + + + + + + + + + {{ CITypeGroup.name }} + ({{ CITypeGroup.attributes.length }}) + + + + + + + 保存 + 取消 + + + + + + + + + 上移 + + + + + + + 下移 + + + + + + + 添加属性 + + + + + + 删除分组 + + + + + + + + + + + + + + + + {{ item.alias }} + + + + 添加属性 + + + + + + + + + + + + + 更多属性 + ({{ otherGroupAttributes.length }}) + + + + + + 上移 + + + + + + + 下移 + + + + + + + 添加属性 + + + + + + 删除分组 + + + + + + + + + + + + + + {{ item.alias }} + + + + 添加属性 + + + + + + + + + + + + + + + {{ attribute.alias }} + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/src/views/cmdb/ci_type/list.vue b/ui/src/views/cmdb/ci_type/list.vue new file mode 100644 index 0000000..5e6b225 --- /dev/null +++ b/ui/src/views/cmdb/ci_type/list.vue @@ -0,0 +1,291 @@ + + + + + + + + + + 新增 + + + + + + + + + + + + {{ item.alias || item.name }} + + {{ item.name[0].toUpperCase() }} + + {{ item.name }} + + + + + + + + + + + + + + + + + + + + + + + {{ item.alias || item.name }} + + + + + + + + + + 确定 + 取消 + + + + + + + + + + + diff --git a/ui/src/views/cmdb/ci_type/relationTable.vue b/ui/src/views/cmdb/ci_type/relationTable.vue new file mode 100644 index 0000000..da5835a --- /dev/null +++ b/ui/src/views/cmdb/ci_type/relationTable.vue @@ -0,0 +1,337 @@ + + + 新增关系 + + + + + + + + + 删除 + + + + + + + + + + {{ CIType.alias }} + + + + + + {{ CIType.alias }} + + + + + + {{ relationType.name }} + + + + + + + 确定 + 取消 + + + + + + + + + + + +