diff --git a/orion-ops-launch/src/main/java/com/orion/ops/launch/generator/CodeGenerator.java b/orion-ops-launch/src/main/java/com/orion/ops/launch/generator/CodeGenerator.java index 93fe73de..4a9fdbbd 100644 --- a/orion-ops-launch/src/main/java/com/orion/ops/launch/generator/CodeGenerator.java +++ b/orion-ops-launch/src/main/java/com/orion/ops/launch/generator/CodeGenerator.java @@ -56,10 +56,9 @@ public class CodeGenerator { // .values("value", 1, 2) // .color("blue", "green") // .build(), - Template.create("host_key", "主机秘钥", "host") - .vue("asset", "host-key") + Template.create("host_identity", "主机身份", "host") + .vue("asset", "host-identity") .enableCardView() - .enableDrawerForm() .build() }; // jdbc 配置 - 使用配置文件 diff --git a/orion-ops-launch/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm b/orion-ops-launch/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm index 04d8b756..c7735304 100644 --- a/orion-ops-launch/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm +++ b/orion-ops-launch/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm @@ -71,28 +71,28 @@ #foreach($field in ${table.fields}) - #if(${vue.enums.containsKey(${field.propertyName})}) - - #else - #if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long") - - #elseif("$field.propertyType" == "Date") - - #else - - #end - #end - + #if(${vue.enums.containsKey(${field.propertyName})}) + + #else + #if("$field.propertyType" == "Integer" || "$field.propertyType" == "Long") + + #elseif("$field.propertyType" == "Date") + + #else + + #end + #end + #end @@ -120,6 +120,7 @@ const list = ref<${vue.featureEntity}QueryResponse[]>([]); const emits = defineEmits(['openAdd', 'openUpdate']); + const formRef = ref(); const formModel = reactive<${vue.featureEntity}QueryRequest>({ searchValue: undefined, #foreach($field in ${table.fields}) @@ -135,7 +136,7 @@ // 删除当前行 const deleteRow = (id: number) => { Modal.confirm({ - title: '删除前确认?', + title: '删除前确认!', titleAlign: 'start', content: '确定要删除这条记录吗?', okText: '删除', diff --git a/orion-ops-launch/src/main/resources/templates/orion-vue-views-index.vue.vm b/orion-ops-launch/src/main/resources/templates/orion-vue-views-index.vue.vm index 292ad22f..34b3633b 100644 --- a/orion-ops-launch/src/main/resources/templates/orion-vue-views-index.vue.vm +++ b/orion-ops-launch/src/main/resources/templates/orion-vue-views-index.vue.vm @@ -38,12 +38,6 @@ + + + + diff --git a/orion-ops-ui/src/views/asset/host-identity/components/host-identity-table.vue b/orion-ops-ui/src/views/asset/host-identity/components/host-identity-table.vue index 89e5c14e..74aa6759 100644 --- a/orion-ops-ui/src/views/asset/host-identity/components/host-identity-table.vue +++ b/orion-ops-ui/src/views/asset/host-identity/components/host-identity-table.vue @@ -127,8 +127,6 @@ import useLoading from '@/hooks/loading'; import columns from '../types/table.columns'; import { usePagination } from '@/types/table'; - import { getHostKeyList } from '@/api/asset/host-key'; - import { useCacheStore } from '@/store'; import HostKeySelector from '@/components/asset/host-key/host-key-selector.vue'; import useCopy from '@/hooks/copy'; import usePermission from '@/hooks/permission'; @@ -140,7 +138,6 @@ const { loading, setLoading } = useLoading(); const emits = defineEmits(['openAdd', 'openUpdate', 'openKeyView']); - const cacheStore = useCacheStore(); const pagination = usePagination(); const formModel = reactive({ @@ -202,16 +199,6 @@ }; fetchTableData(); - // 获取主机秘钥列表 - const fetchHostKeyList = async () => { - try { - const { data } = await getHostKeyList(); - cacheStore.set('hostKeys', data); - } catch (e) { - } - }; - fetchHostKeyList(); -