修改个人中心问题,添加便携按钮
这个提交包含在:
@@ -39,6 +39,7 @@
|
||||
"monaco-editor": "0.56.0",
|
||||
"nprogress": "0.2.0",
|
||||
"pinia": "4.0.2",
|
||||
"pinyin-pro": "3.29.5",
|
||||
"vue": "3.5.40",
|
||||
"vue-cropper": "1.1.4",
|
||||
"vue-i18n": "11.4.8",
|
||||
|
||||
+8
@@ -74,6 +74,9 @@ importers:
|
||||
pinia:
|
||||
specifier: 4.0.2
|
||||
version: 4.0.2(@vue/devtools-api@8.2.1)(typescript@6.0.3)(vue@3.5.40(typescript@6.0.3))
|
||||
pinyin-pro:
|
||||
specifier: 3.29.5
|
||||
version: 3.29.5
|
||||
vue:
|
||||
specifier: 3.5.40
|
||||
version: 3.5.40(typescript@6.0.3)
|
||||
@@ -2218,6 +2221,9 @@ packages:
|
||||
typescript:
|
||||
optional: true
|
||||
|
||||
pinyin-pro@3.29.5:
|
||||
resolution: {integrity: sha512-Fk5YoRmtdHqJWqAuzYVG/NzvzeCbaG+ZEwbY6Nbps3QAIrvQQEtcm49frcyCM8i2b5najnzPDtYqrHRYTTiuwQ==}
|
||||
|
||||
pkg-types@1.3.1:
|
||||
resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
|
||||
|
||||
@@ -4738,6 +4744,8 @@ snapshots:
|
||||
optionalDependencies:
|
||||
typescript: 6.0.3
|
||||
|
||||
pinyin-pro@3.29.5: {}
|
||||
|
||||
pkg-types@1.3.1:
|
||||
dependencies:
|
||||
confbox: 0.1.8
|
||||
|
||||
@@ -11,13 +11,30 @@
|
||||
<StarFilled v-if="favorite.saved" aria-hidden="true" />
|
||||
<Star v-else aria-hidden="true" />
|
||||
</button>
|
||||
</el-tooltip><FloatingNotice /></div>
|
||||
</el-tooltip><FloatingNotice />
|
||||
<el-dropdown trigger="click" placement="bottom-end" @command="handleUserCommand">
|
||||
<button class="page-heading__avatar" type="button" :aria-label="`${userStore.nickname || '用户'}:用户菜单`">
|
||||
<el-avatar :size="34" :src="userStore.avatar || defaultAvatar">
|
||||
<img :src="defaultAvatar" alt="用户头像" />
|
||||
</el-avatar>
|
||||
</button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="profile">个人中心</el-dropdown-item>
|
||||
<el-dropdown-item command="logout" divided>退出登录</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { navigationHeading } from '@/layout/navigation/groups';
|
||||
import { usePermissionStore } from '@/store/modules/permission';
|
||||
import { useUserStore } from '@/store/modules/user';
|
||||
import { ElMessageBox } from 'element-plus';
|
||||
import defaultAvatar from '@/assets/images/profile.jpg';
|
||||
import { inject, computed } from 'vue';
|
||||
import { Star, StarFilled } from '@element-plus/icons-vue';
|
||||
import { visualFavoriteKey } from '@/layout/visualFavorite';
|
||||
@@ -28,6 +45,20 @@ const favorite = computed(() => favorites?.current.value);
|
||||
const favoriteTip = computed(() => favorite.value?.loading ? '正在读取收藏状态' : favorite.value?.unavailable ? '收藏状态暂不可用,点击前往我的看板' : favorite.value?.saved ? '已收藏到我的看板' : '收藏到我的看板');
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const userStore = useUserStore();
|
||||
const handleUserCommand = async (command: string) => {
|
||||
if (command === 'profile') {
|
||||
await router.push('/user/profile');
|
||||
return;
|
||||
}
|
||||
if (command !== 'logout') return;
|
||||
try {
|
||||
await ElMessageBox.confirm('确定注销并退出系统吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' });
|
||||
} catch { return; }
|
||||
await userStore.logout();
|
||||
await router.replace({ path: '/login', query: { redirect: route.fullPath } });
|
||||
};
|
||||
const permissionStore = usePermissionStore();
|
||||
const heading = computed(() => {
|
||||
if (route.path === '/index') return ['首页'];
|
||||
@@ -40,6 +71,9 @@ const heading = computed(() => {
|
||||
<style scoped>
|
||||
.page-heading { box-sizing: border-box; display: flex; align-items: center; gap: 16px; height: var(--page-heading-height, 67px); padding: 8px 16px 0 22px; border-bottom: 1px solid var(--app-surface-border); background: var(--app-surface-bg); }
|
||||
.page-heading__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
|
||||
.page-heading__avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--app-surface-border); border-radius: 50%; background: var(--app-surface-bg); cursor: pointer; }
|
||||
.page-heading__avatar:hover { border-color: var(--el-color-primary); }
|
||||
.page-heading__avatar:focus-visible { outline: 2px solid var(--el-color-primary); outline-offset: 2px; }
|
||||
.page-heading__favorite { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--app-text-title); background: var(--app-surface-bg); border: 1px solid var(--app-surface-border); border-radius: 50%; box-shadow: var(--app-shadow-sm); cursor: pointer; }
|
||||
.page-heading__favorite svg { width: 20px; height: 20px; }
|
||||
.page-heading__favorite:hover { color: var(--el-color-primary); }
|
||||
|
||||
@@ -36,13 +36,7 @@
|
||||
</template>
|
||||
<sidebar-item v-else :item="root" :base-path="root.path" />
|
||||
</template>
|
||||
<router-link v-if="selectedGroup.key === 'settings'" to="/user/profile">
|
||||
<el-menu-item index="/user/profile"><outline-icon name="user" /><span class="menu-title">个人中心</span></el-menu-item>
|
||||
</router-link>
|
||||
</el-menu>
|
||||
<div v-if="selectedGroup.key === 'settings'" class="settings-actions">
|
||||
<button class="settings-action" type="button" @click="logout"><outline-icon name="logout" /><span>退出登录</span></button>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
</div>
|
||||
@@ -55,7 +49,6 @@ import { buildNavigationGroups, groupContainsPath, type NavigationGroup } from '
|
||||
import { useAppStore } from '@/store/modules/app';
|
||||
import { usePermissionStore } from '@/store/modules/permission';
|
||||
import { useSettingsStore } from '@/store/modules/settings';
|
||||
import { useUserStore } from '@/store/modules/user';
|
||||
import { getNormalPath } from '@/utils/aixun';
|
||||
import { isExternal } from '@/utils/validate';
|
||||
import Logo from './Logo.vue';
|
||||
@@ -73,11 +66,7 @@ const appStore = useAppStore();
|
||||
const settingsStore = useSettingsStore();
|
||||
const permissionStore = usePermissionStore();
|
||||
const sideTheme = computed(() => settingsStore.sideTheme);
|
||||
const groups = computed(() => {
|
||||
const result = buildNavigationGroups(filterAiRoutes(permissionStore.getSidebarRoutes(), aiEnabled.value));
|
||||
if (!result.some(group => group.key === 'settings')) result.push({ key: 'settings', title: '设置', icon: 'system', roots: [] });
|
||||
return result;
|
||||
});
|
||||
const groups = computed(() => buildNavigationGroups(filterAiRoutes(permissionStore.getSidebarRoutes(), aiEnabled.value)));
|
||||
const businessGroups = computed(() => groups.value.filter(group => group.key !== 'settings'));
|
||||
const settingsGroup = computed(() => groups.value.find(group => group.key === 'settings'));
|
||||
const selectedKey = ref('');
|
||||
@@ -85,13 +74,6 @@ const selectedGroup = computed(() => groups.value.find(group => group.key === se
|
||||
const activeMenu = computed(() => String(route.meta.activeMenu || route.path));
|
||||
const rail = ref<HTMLElement>();
|
||||
const menuStyle = computed(() => ({ '--el-menu-active-color': settingsStore.theme }));
|
||||
const logout = async () => {
|
||||
try {
|
||||
await ElMessageBox.confirm('确定注销并退出系统吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' });
|
||||
} catch { return; }
|
||||
await useUserStore().logout();
|
||||
await router.replace({ path: '/login', query: { redirect: route.fullPath } });
|
||||
};
|
||||
|
||||
// Operations retains its original root headings; unknown roots in settings do too.
|
||||
const flattenRoot = (key: string, root: RouteRecordRaw) =>
|
||||
@@ -182,11 +164,6 @@ watch([activeMenu, groups], async () => {
|
||||
.secondary-toggle .el-icon { font-size: 17px; }
|
||||
.secondary-scroll { flex: 1; min-height: 0; height: auto !important; }
|
||||
.secondary-scroll :deep(.el-menu) { border: 0; }
|
||||
.settings-actions { display: flex; flex-direction: column; gap: 4px; }
|
||||
.settings-action { display: flex !important; align-items: center; gap: 9px; min-height: 40px; width: 100%; padding: 9px 13px; border: 0; border-radius: 7px; background: transparent; color: var(--nav-text); font: inherit; font-size: 14px; line-height: 1.55; text-align: left; text-decoration: none; cursor: pointer; }
|
||||
.settings-action:hover { background: var(--nav-hover); }
|
||||
.settings-action:focus-visible { outline: 2px solid var(--el-color-primary); outline-offset: -2px; }
|
||||
.settings-action .svg-icon { width: 16px; height: 16px; flex: 0 0 16px; margin: 0 !important; fill: currentColor; }
|
||||
@media (max-width: 760px) {
|
||||
.secondary-rail { position: absolute; left: 76px; top: 0; bottom: 0; z-index: 2; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import { visibleMenuPaths } from './access';
|
||||
|
||||
describe('account-specific quick links', () => {
|
||||
it('includes permitted relative and absolute leaves but excludes hidden and external entries', () => {
|
||||
const routes = [{ path: '/monitor', children: [{ path: 'job' }] },
|
||||
{ path: '/quality', children: [{ path: '/quality-rule' }, { path: '/private', hidden: true }] },
|
||||
{ path: '/hidden', hidden: true, children: [{ path: '/secret' }] },
|
||||
{ path: 'https://example.com' }] as RouteRecordRaw[];
|
||||
expect([...visibleMenuPaths(routes)]).toEqual(['/monitor/job', '/quality-rule']);
|
||||
expect(visibleMenuPaths(routes).has('/asset-catalog')).toBe(false);
|
||||
});
|
||||
it('does not retain entries when switching to an account with no grants', () => {
|
||||
expect(visibleMenuPaths([{ path: '/asset-catalog' }] as RouteRecordRaw[]).has('/asset-catalog')).toBe(true);
|
||||
expect([...visibleMenuPaths([])]).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,18 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import { getNormalPath } from '@/utils/aixun';
|
||||
import { isExternal } from '@/utils/validate';
|
||||
|
||||
// Use exact permitted menu paths, not router.resolve (which also matches 404).
|
||||
export function visibleMenuPaths(routes: RouteRecordRaw[], base = ''): Set<string> {
|
||||
const paths = new Set<string>();
|
||||
for (const route of routes) {
|
||||
if (route.hidden || isExternal(route.path)) continue;
|
||||
const path = getNormalPath(route.path.startsWith('/') ? route.path : `${base}/${route.path}`);
|
||||
if (route.children?.length) {
|
||||
for (const child of visibleMenuPaths(route.children, path)) paths.add(child);
|
||||
} else {
|
||||
paths.add(path);
|
||||
}
|
||||
}
|
||||
return paths;
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import { getToken } from '@/utils/auth';
|
||||
import { isHandledRequestError, isRelogin } from '@/utils/request';
|
||||
import { isHttp, isPathMatch } from '@/utils/validate';
|
||||
import router from './router';
|
||||
import { addAuthorizedRoute } from '@/router/authorization';
|
||||
|
||||
const NProgress = ('default' in NProgressModule ? NProgressModule.default : NProgressModule) as typeof NProgressModule;
|
||||
|
||||
@@ -46,7 +47,7 @@ router.beforeEach(async (to, from) => {
|
||||
// 根据roles权限生成可访问的路由表
|
||||
accessRoutes.forEach(route => {
|
||||
if (!isHttp(route.path)) {
|
||||
router.addRoute(route); // 动态添加可访问路由表
|
||||
addAuthorizedRoute(router, route); // 动态添加可访问路由表
|
||||
}
|
||||
});
|
||||
// hack方法 确保addRoutes已完成
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import { afterEach, describe, expect, it } from 'vitest';
|
||||
import { createMemoryHistory, createRouter } from 'vue-router';
|
||||
import { addAuthorizedRoute, clearAuthorizedRoutes } from './authorization';
|
||||
|
||||
afterEach(clearAuthorizedRoutes);
|
||||
|
||||
describe('account route lifecycle', () => {
|
||||
it('removes old account pages and children while preserving public routes', () => {
|
||||
const router = createRouter({ history: createMemoryHistory(), routes: [
|
||||
{ path: '/login', name: 'Login', component: {} },
|
||||
{ path: '/user/profile', name: 'Profile', component: {} }
|
||||
] });
|
||||
addAuthorizedRoute(router, { path: '/admin', name: 'Admin', component: {}, children: [
|
||||
{ path: 'users', name: 'Users', component: {} }
|
||||
] });
|
||||
expect(router.hasRoute('Users')).toBe(true);
|
||||
clearAuthorizedRoutes();
|
||||
expect(router.hasRoute('Users')).toBe(false);
|
||||
expect(router.hasRoute('Admin')).toBe(false);
|
||||
expect(router.hasRoute('Login')).toBe(true);
|
||||
expect(router.hasRoute('Profile')).toBe(true);
|
||||
addAuthorizedRoute(router, { path: '/limited', name: 'Limited', component: {} });
|
||||
expect(router.hasRoute('Limited')).toBe(true);
|
||||
expect(router.hasRoute('Users')).toBe(false);
|
||||
clearAuthorizedRoutes();
|
||||
clearAuthorizedRoutes();
|
||||
expect(router.hasRoute('Limited')).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { Router, RouteRecordRaw } from 'vue-router';
|
||||
|
||||
const removers: Array<() => void> = [];
|
||||
|
||||
export function addAuthorizedRoute(router: Router, route: RouteRecordRaw): void {
|
||||
removers.push(router.addRoute(route));
|
||||
}
|
||||
|
||||
export function clearAuthorizedRoutes(): void {
|
||||
removers.splice(0).toReversed().forEach(remove => remove());
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import InnerLink from '@/layout/components/InnerLink/index.vue';
|
||||
import Layout from '@/layout/index.vue';
|
||||
import auth from '@/plugins/auth';
|
||||
import router, { constantRoutes, dynamicRoutes } from '@/router';
|
||||
import { addAuthorizedRoute, clearAuthorizedRoutes } from '@/router/authorization';
|
||||
import store from '@/store';
|
||||
import { createCustomNameComponent } from '@/utils/createCustomNameComponent';
|
||||
|
||||
@@ -53,6 +54,7 @@ export const usePermissionStore = defineStore('permission', () => {
|
||||
sidebarRouters.value = routes;
|
||||
};
|
||||
const generateRoutes = async (): Promise<RouteRecordRaw[]> => {
|
||||
resetRoutes();
|
||||
const res = await getRouters();
|
||||
const data = Array.isArray(res.data) ? res.data : [];
|
||||
const sdata = structuredClone(data);
|
||||
@@ -63,7 +65,7 @@ export const usePermissionStore = defineStore('permission', () => {
|
||||
const defaultRoutes = filterAsyncRouter(defaultData);
|
||||
const asyncRoutes = filterDynamicRoutes(dynamicRoutes);
|
||||
asyncRoutes.forEach(route => {
|
||||
router.addRoute(route);
|
||||
addAuthorizedRoute(router, route);
|
||||
});
|
||||
setRoutes(rewriteRoutes);
|
||||
setSidebarRouters(constantRoutes.concat(sidebarRoutes));
|
||||
@@ -74,6 +76,15 @@ export const usePermissionStore = defineStore('permission', () => {
|
||||
return rewriteRoutes;
|
||||
};
|
||||
|
||||
const resetRoutes = (): void => {
|
||||
clearAuthorizedRoutes();
|
||||
routes.value = [];
|
||||
addRoutes.value = [];
|
||||
defaultRoutes.value = [];
|
||||
topbarRouters.value = [];
|
||||
sidebarRouters.value = [];
|
||||
};
|
||||
|
||||
/**
|
||||
* 遍历后台传来的路由字符串,转换为组件对象
|
||||
* @param asyncRouterMap 后台传来的路由字符串
|
||||
@@ -132,6 +143,7 @@ export const usePermissionStore = defineStore('permission', () => {
|
||||
getTopbarRoutes,
|
||||
|
||||
setRoutes,
|
||||
resetRoutes,
|
||||
generateRoutes,
|
||||
setSidebarRouters
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@ import { getInfo as getUserInfo, login as loginApi, logout as logoutApi } from '
|
||||
import defAva from '@/assets/images/profile.jpg';
|
||||
import { getToken, removeToken, setToken } from '@/utils/auth';
|
||||
import { browserRecoveryStorage, synchronizeRecoveryIdentity } from '@/utils/biDraftRecovery';
|
||||
import { usePermissionStore } from '@/store/modules/permission';
|
||||
|
||||
export const useUserStore = defineStore('user', () => {
|
||||
const token = ref(getToken());
|
||||
@@ -52,10 +53,10 @@ export const useUserStore = defineStore('user', () => {
|
||||
if (data.roles && data.roles.length > 0) {
|
||||
// 验证返回的roles是否是一个非空数组
|
||||
roles.value = data.roles;
|
||||
permissions.value = data.permissions;
|
||||
} else {
|
||||
roles.value = ['ROLE_DEFAULT'];
|
||||
}
|
||||
permissions.value = data.permissions || [];
|
||||
name.value = user.userName;
|
||||
nickname.value = user.nickName;
|
||||
avatar.value = profile;
|
||||
@@ -71,11 +72,15 @@ export const useUserStore = defineStore('user', () => {
|
||||
const logout = async (): Promise<void> => {
|
||||
synchronizeRecoveryIdentity(browserRecoveryStorage());
|
||||
await logoutApi();
|
||||
usePermissionStore().resetRoutes();
|
||||
token.value = '';
|
||||
roles.value = [];
|
||||
permissions.value = [];
|
||||
userId.value = '';
|
||||
deptId.value = '';
|
||||
name.value = '';
|
||||
nickname.value = '';
|
||||
avatar.value = '';
|
||||
removeToken();
|
||||
};
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<article class="panel quick-panel">
|
||||
<header class="panel-header"><h2>我的常用</h2><span><img class="header-icon" :src="quickAllFunctionsImage" alt="" /> 全部功能</span></header>
|
||||
<div class="quick-grid">
|
||||
<button v-for="item in quickLinks" :key="item.label" type="button" class="quick-entry" @click="goTo(item.path)">
|
||||
<button v-for="item in authorizedQuickLinks" :key="item.label" type="button" class="quick-entry" @click="goTo(item.path)">
|
||||
<img :src="item.image" alt="" /><b>{{ item.label }}</b>
|
||||
</button>
|
||||
<button type="button" class="quick-entry add-entry"><img :src="quickAddImage" alt="" /><b>添加</b></button>
|
||||
@@ -147,6 +147,9 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Index" lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import { usePermissionStore } from '@/store/modules/permission';
|
||||
import { visibleMenuPaths } from '@/layout/navigation/access';
|
||||
import IssueFunnel from './home/IssueFunnel.vue';
|
||||
import flowArrowImage from '@/assets/homeImage/flow-arrow.png';
|
||||
import flowDataIngestionImage from '@/assets/homeImage/flow-data-ingestion.png';
|
||||
@@ -218,6 +221,11 @@ const quickLinks = [
|
||||
{ label: '定时任务', path: '/monitor/job', image: quickScheduledTaskImage }, { label: '资产目录', path: '/asset-catalog', image: quickAssetCatalogImage }, { label: '数据质量', path: '/data-profile', image: quickDataQualityImage },
|
||||
{ label: '数据服务', path: '/data-service', image: quickDataServiceImage }, { label: '标签管理', path: '/metadata-catalog', image: quickTagManagementImage }
|
||||
];
|
||||
const permissionStore = usePermissionStore();
|
||||
const authorizedQuickLinks = computed(() => {
|
||||
const paths = visibleMenuPaths(permissionStore.getSidebarRoutes());
|
||||
return quickLinks.filter(item => paths.has(item.path));
|
||||
});
|
||||
const healthMetrics = [
|
||||
{ label: '标准落标覆盖率', value: '92.6%' }, { label: '元数据完整率', value: '96.8%' }, { label: '质量规则覆盖率', value: '88.5%' },
|
||||
{ label: '安全分级覆盖率', value: '94.1%' }, { label: '资产编目完成率', value: '91.7%' }, { label: '问题闭环率', value: '94.1%' }
|
||||
|
||||
@@ -163,20 +163,20 @@
|
||||
<el-row :gutter="16">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="角色名称" prop="roleName">
|
||||
<el-input v-model="form.roleName" placeholder="请输入角色名称" />
|
||||
<el-input v-model="form.roleName" placeholder="请输入角色名称" maxlength="30" @input="syncRoleKey" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item prop="roleKey">
|
||||
<template #label>
|
||||
<span>
|
||||
<el-tooltip content="控制器中定义的权限字符,如:@SaCheckRole('admin')" placement="top">
|
||||
<el-tooltip content="新增时根据角色名称自动生成;已有角色的权限字符不会随名称修改。" placement="top">
|
||||
<el-icon><question-filled /></el-icon>
|
||||
</el-tooltip>
|
||||
权限字符
|
||||
</span>
|
||||
</template>
|
||||
<el-input v-model="form.roleKey" placeholder="请输入权限字符" />
|
||||
<el-input v-model="form.roleKey" :readonly="!form.roleId" :placeholder="form.roleId ? '请输入权限字符' : '根据角色名称自动填入'" maxlength="100" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -322,6 +322,7 @@
|
||||
|
||||
<script setup name="Role" lang="ts">
|
||||
import { useRouter } from 'vue-router';
|
||||
import { roleKeyFromName } from './roleKey';
|
||||
import { roleMenuTreeselect } from '@/api/system/menu';
|
||||
import { MenuTreeOption, RoleMenuButtonOption, RoleMenuTree } from '@/api/system/menu/types';
|
||||
import {
|
||||
@@ -794,6 +795,9 @@ const data = reactive<PageData<RoleForm, RoleQuery>>({
|
||||
}
|
||||
});
|
||||
const { form, queryParams, rules } = toRefs(data);
|
||||
const syncRoleKey = () => {
|
||||
if (!form.value.roleId) form.value.roleKey = roleKeyFromName(form.value.roleName);
|
||||
};
|
||||
const { ids, single, handleSelectionChange } = useTableSelection<RoleVO>(item => item.roleId);
|
||||
const { dialog, openDialog, closeDialog, setTitle } = useDialogState();
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { roleKeyFromName } from './roleKey';
|
||||
|
||||
describe('role key from name', () => {
|
||||
it('supports Chinese and English role names and clears empty input', () => {
|
||||
expect(roleKeyFromName(' 数据管理员 ')).toBe('role_shu_ju_guan_li_yuan');
|
||||
expect(roleKeyFromName('Data Reader')).toBe('role_data_reader');
|
||||
expect(roleKeyFromName(' ')).toBe('');
|
||||
});
|
||||
it('only emits ASCII identifiers for Chinese, mixed names and umlauts', () => {
|
||||
for (const name of ['普通用户', '数据API管理员', '女用户', '重庆管理员', '测试😀角色']) {
|
||||
expect(roleKeyFromName(name)).toMatch(/^role_[a-z0-9_-]+$/);
|
||||
}
|
||||
expect(roleKeyFromName('普通用户')).toBe('role_pu_tong_yong_hu');
|
||||
});
|
||||
it('never generates built-in privileged keys and handles symbol-only names deterministically', () => {
|
||||
expect(roleKeyFromName('superadmin')).toBe('role_superadmin');
|
||||
expect(roleKeyFromName('admin')).toBe('role_admin');
|
||||
expect(roleKeyFromName('***')).toMatch(/^role_[a-f0-9]{16}$/);
|
||||
expect(roleKeyFromName('***')).toBe(roleKeyFromName('***'));
|
||||
expect(roleKeyFromName('a'.repeat(150)).length).toBeLessThanOrEqual(100);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
import SHA256 from 'crypto-js/sha256';
|
||||
import { pinyin } from 'pinyin-pro';
|
||||
|
||||
export function roleKeyFromName(name: string): string {
|
||||
const normalized = name.trim().normalize('NFKC');
|
||||
if (!normalized) return '';
|
||||
const readable = pinyin(normalized, { toneType: 'none', nonZh: 'consecutive', v: true })
|
||||
.toLowerCase().replace(/[^a-z0-9_-]+/g, '_').replace(/^_+|_+$/g, '');
|
||||
// Keep generated roles separate from built-in admin/superadmin identifiers.
|
||||
return `role_${readable || SHA256(normalized).toString().slice(0, 16)}`.slice(0, 100);
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
# 双数据库适配交付(2026-12-01)
|
||||
|
||||
结果:**PASS_WITH_LIMITATION**。当前分支源码和六个后端 JAR 已完成达梦/MySQL 配置切换适配;没有切换现有应用、发布容器或迁移业务数据。线上达梦 Pack89 和人工业务验收为 **NOT_RUN**。
|
||||
结果:**PASS_WITH_LIMITATION**。当前分支源码和六个后端 JAR 已完成达梦/MySQL 配置切换适配;随后按用户“现在先切回 MySQL”请求,将本地六个服务切回原 MySQL 业务库。六服务健康、就绪及实际 MySQL 连接读回通过;线上达梦 Pack89 和人工业务验收为 **NOT_RUN**。以下适配实测记录描述切换前的测试,实际切换见末节。
|
||||
|
||||
## 修改和影响
|
||||
|
||||
@@ -45,4 +45,15 @@ SQL:`db/mysql/schema.sql`、`db/mysql/seed.sql`;达梦继续使用 `db/damen
|
||||
|
||||
## 使用与恢复
|
||||
|
||||
见[配置切换说明](达梦与MySQL配置切换.md)。首次使用需发布本次六服务 JAR 和 Nacos 模板;以后只改连接配置并统一重启即可切换,无需重新编译。目标库须先初始化,保留原数据需另行迁移。原库未被修改;恢复时改回原连接配置并重启。不要对既有库重复执行全新 schema/seed SQL。
|
||||
见[配置切换说明](达梦与MySQL配置切换.md)。首次使用需发布本次六服务 JAR 和对应 Nacos 数据库配置;以后只改连接配置并统一重启即可切换,无需重新编译。目标库须先初始化或补齐结构,跨库保留数据需另行迁移。不要对既有库重复执行全新 schema/seed SQL。
|
||||
|
||||
## 本地切回 MySQL(2026-12-01)
|
||||
|
||||
- 授权来源:用户“现在先切回 MySQL”。目标为原业务库 `aixun_datagov_system`,未使用双库测试库,未将达梦业务数据迁入。原 MySQL 数据保留。
|
||||
- 显式补齐迁移 158、159、248、278:新增 19 张表,补齐 2 个字段及 3 处可空性;278 执行时将 CLOB 转换为 MySQL LONGTEXT。迁移逐条记录 SUCCESS,没有重复初始化或重新导入种子。现有库共 643 张表,所需 638 张表及核心权限种子只读验证 PASS。
|
||||
- 私有 `.env.datagov` 已持久化 MySQL 的 `PLATFORM_DB_*` 配置,schema 留空;预检允许空环境变量值,但必需秘密仍独立校验。首次切换更新 Nacos 的 datasource、四业务服务、system、resource 共 7 个配置,去除固定 DM 驱动,保留其余现有设置。后续连接切换无需 Python 参与服务启动。
|
||||
- 六个服务使用既有已验证 JAR 构建并发布 `mysql-switch-20261201` 镜像,均通过 `deploy.sh --plan/--apply` 执行;发布记录位于 `script/datagov/deployment/releases/mysql-switch-20261201-*`。Integration 部署描述去除当前容器本就未设置的强制凭据加密开关,避免此次数据库切换改变无关运行配置。
|
||||
- 验证:六服务制品与配置读回 PASS,重启次数均为 0;经监控鉴权访问 health/readiness 均 HTTP 200、UP。MySQL 服务端进程表确认 System/Resource/Integration/DataOps/Governance/DataProduct 均有连接(检查时分别为 2/2/10/12/10/10)。启动顺序期间 Integration/DataOps 曾记录 Governance Dubbo 连接拒绝,所有服务启动完成后健康检查通过;具体跨服务业务调用仍 NOT_RUN。
|
||||
- 仅清理专属 Redis DB 11 中已确认的系统配置、字典、部门、客户端、OSS 配置缓存及旧登录会话,共 30 个键,删除后剩余 0;未清空 Redis、未删除业务任务。使用页面前需重新登录。
|
||||
- 恢复引用:`runtime/dev-private/mysql-switch-recovery/` 保存原环境配置、7 份 Nacos 配置、6 份容器配置及受修改的两张表备份;迁移状态见其中 `migrations.json`。这些文件含私密配置,不进入公开交付证据。发布记录保留旧镜像身份;恢复时先停止六服务、还原原配置并通过部署入口恢复原镜像,数据库结构默认保留前向迁移。
|
||||
- 检查命令:`with-platform-db-env.py --config runtime/dev-private/mysql-local.json -- verify-platform-db.py`(只读验证);六服务 `deploy.sh --plan/--apply`;带监控鉴权的 health/readiness;MySQL processlist 连接核对。前端无变更,无需构建。登录/RBAC、业务页面、采集终态和线上 Pack89 验收 **NOT_RUN**。
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# 角色权限字符自动填入
|
||||
|
||||
结果:PASS_WITH_LIMITATION。最终纯 ASCII 拼音版本源码、定向 lint、3 项单测、生产构建、部署读回和表单 Browser 验证 PASS;真实新增保存与角色鉴权终态 NOT_RUN。
|
||||
|
||||
最终发布 r2:`aixun-datagov/frontend:role-key-20261201-r2`,镜像 ID `sha256:3b54e57c041ca2ac817e0e2c4f489d69d2e17cafc3794608df52652bf5838faa`,构建 33.52s。局部 plan/apply、制品和 HTTP 入口读回、配置核验均 PASS。Browser 实测新增名称“普通用户”自动得到 `role_pu_tong_yong_hu`,取消未保存。最终计划/结果为 `script/datagov/deployment/releases/role-key-20261201-r2-frontend{,-result}.json`;直接恢复引用为下文首版 `role-key-20261201`。以下首版验证与发布信息仅作本次恢复依据,含中文的首版生成规则已由上述最终规则替代。
|
||||
|
||||
- 修改 `aixun-ui/src/views/system/role/index.vue`,新增 `roleKey.ts`、`roleKey.test.ts`(同目录)。新增角色名称输入时自动同步只读权限字符;清空名称同时清空字符。编辑已有角色不自动覆盖原字符,原手动维护能力保留。
|
||||
- 最终规则:中文转无声调拼音(ü 转 v),英文小写、分隔符转下划线,只允许 ASCII 字母、数字、下划线和连字符,统一 `role_` 前缀,最多 100 字符。例:数据管理员 → `role_shu_ju_guan_li_yuan`;普通用户 → `role_pu_tong_yong_hu`;Data Reader → `role_data_reader`。纯符号名称使用已有 crypto-js 的 SHA-256 截取值,不生成内置 admin/superadmin 字符。冲突继续由现有后端唯一性校验提示,不自动变更角色授权。
|
||||
- 按用户纠正新增固定依赖 pinyin-pro 3.29.5,package.json 与 pnpm-lock.yaml 同步。API 依据 https://pinyin-pro.cn/use/pinyin.html。现有 node_modules 来自 pnpm v11 store,固定 pnpm 10 安装时报 store 不一致,因此以 pnpm 10 --lockfile-only 更新清单,再仅安装该包的官方 npm tarball,校验 registry SHA-512;未重装其他依赖或执行安装脚本。新增中英混合、ü、多音字及符号只生成 ASCII 的测试,最终 3 项 PASS。
|
||||
- 检查:`./script/quality/check.sh --frontend src/views/system/role/index.vue src/views/system/role/roleKey.ts src/views/system/role/roleKey.test.ts` PASS。
|
||||
- 测试:固定 Node 24.19.0 / pnpm 10.34.5,`pnpm --dir aixun-ui exec vitest run src/views/system/role/roleKey.test.ts`,2 项 PASS。
|
||||
- 构建:`./script/quality/check.sh --frontend-build`,37.99s,PASS;存在大 chunk 提示,生成声明已核对。临时构建日志已清理。
|
||||
- Browser:新增弹窗输入“数据管理员”后权限字符为 `role_数据管理员`;清空后两项均空;编辑已有普通用户角色,改动名称草稿时原权限字符保持。全部取消,没有提交新增或编辑。
|
||||
- 部署:沿用本对话本地 Docker 部署授权,仅更新 frontend。标准镜像 `aixun-datagov/frontend:role-key-20261201`,ID `sha256:32efa6111fe69bf01c5d8d6399d825d2ee48223a61d6e4183f9bdf1f7d1e1c6e`。经 deploy.sh plan/apply 发布,制品读回 PASS,配置检查 PASS,HTTP 入口与当前 dist/index.html 一致。
|
||||
- 计划/结果:`script/datagov/deployment/releases/role-key-20261201-frontend.json`、`role-key-20261201-frontend-result.json`。
|
||||
- 恢复:保留 `aixun-datagov/frontend:account-menu-20261201`,镜像 ID `sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e`,需要时通过局部部署入口重新计划发布。无后端或数据库变更。
|
||||
@@ -0,0 +1,27 @@
|
||||
# 账号菜单权限修复
|
||||
|
||||
结果:PASS_WITH_LIMITATION。前端修复、7 项定向测试、lint、生产构建、本地 Docker 部署和制品读回 PASS。当前管理员页面抽查 PASS;真实普通账号切换、权限撤销后的重新登录及接口越权回归 NOT_RUN。
|
||||
|
||||
## 改动与范围
|
||||
|
||||
- `aixun-ui/src/views/index.vue`、`src/layout/navigation/access.ts`:首页快捷入口按后端返回的可见菜单叶子路径精确过滤;处理相对/绝对路径,隐藏菜单和外链不作为快捷入口授权。未匹配的旧链接不显示。
|
||||
- `aixun-ui/src/layout/components/Sidebar/index.vue`:删除无菜单时强制补出的设置分组;有授权设置菜单时正常显示。公共首页、我的看板、个人中心保持公共路由。
|
||||
- `aixun-ui/src/router/authorization.ts`、`src/permission.ts`、`src/store/modules/permission.ts`:统一记录动态路由移除回调,注销和重新生成菜单时清理已授权路由及菜单 store,保留公共路由。
|
||||
- `aixun-ui/src/store/modules/user.ts`:注销后清理菜单路由、昵称及头像;用户信息读取时总是更新权限数组,避免空角色分支遗留权限。
|
||||
- 测试:`src/layout/navigation/access.test.ts`、`src/router/authorization.test.ts`。未修改后端、角色授权、账号数据、数据库或接口鉴权。
|
||||
|
||||
## 验证
|
||||
|
||||
- `./script/quality/check.sh --frontend` 显式指定上述受影响源码与测试。初次发现数组 reverse lint 错误,修正为 toReversed 后定向复检 PASS。
|
||||
- 固定 Node 24.19.0 / pnpm 10.34.5;`pnpm --dir aixun-ui exec vitest run src/layout/navigation/access.test.ts src/layout/navigation/groups.test.ts src/router/authorization.test.ts`:3 文件、7 测试 PASS。最终路由代码修正后单独重跑 authorization.test.ts,1 测试 PASS。
|
||||
- `./script/quality/check.sh --frontend-build`:PASS,36.09s;存在大 chunk 提示。自动生成声明已核对。
|
||||
- Browser:刷新当前 admin 页面正常;进入首页后显示授权匹配的 6 个快捷入口,原固定列表中未匹配菜单的定时任务、数据服务链接不再显示。未注销当前用户,未创建或改变账号来模拟权限。
|
||||
|
||||
## 本地部署与恢复
|
||||
|
||||
沿用本对话本地 Docker 部署授权,仅发布 frontend。标准 Dockerfile 构建 `aixun-datagov/frontend:account-menu-20261201`,经 `deploy.sh --plan ... --artifact aixun-ui/dist`、`deploy.sh --apply frontend account-menu-20261201` 完成。
|
||||
|
||||
- 当前镜像:`sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e`。
|
||||
- 制品读回 PASS;发布后 `--check-config frontend` PASS;HTTP 入口与 dist/index.html 逐字节一致。
|
||||
- 计划及结果:`script/datagov/deployment/releases/account-menu-20261201-frontend.json` 与 `account-menu-20261201-frontend-result.json`。
|
||||
- 恢复镜像:`aixun-datagov/frontend:avatar-menu-20261201-r2`,ID `sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b`。需要恢复时使用局部部署入口重新计划发布;无数据库迁移。临时构建日志已删除。
|
||||
@@ -0,0 +1,17 @@
|
||||
# 页头用户头像菜单
|
||||
|
||||
结果:PASS_WITH_LIMITATION。源码、生产构建、本地 Docker 前端部署及制品读回 PASS;已在浏览器确认设置侧栏入口移除、头像下拉菜单保留。实际退出及完整人工功能验收 NOT_RUN。
|
||||
|
||||
最终修订 r2:按用户截图移除设置侧栏的“个人中心”“退出登录”。修改 `aixun-ui/src/layout/components/Sidebar/index.vue`,同时删除仅供这两个入口使用的注销函数、store 导入及样式。保留页头头像菜单及个人中心路由。定向 lint 和生产构建 PASS(36.92s,存在大 chunk 提示);生成组件声明已核对。沿用本对话本地 Docker 部署授权,发布 `aixun-datagov/frontend:avatar-menu-20261201-r2`,镜像 ID `sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b`,制品和 HTTP 入口读回、配置检查 PASS。计划/结果为 `script/datagov/deployment/releases/avatar-menu-20261201-r2-frontend{,-result}.json`;直接恢复版本为 `avatar-menu-20261201`(镜像 ID 见下文)。Browser 刷新后打开设置侧栏,仅保留管理菜单;点击右上角头像仍显示个人中心和退出登录。未执行实际注销。
|
||||
|
||||
- 需求:在消息按钮右侧添加用户头像,点击展开“个人中心”“退出登录”。
|
||||
- 修改:`aixun-ui/src/layout/components/PageHeading.vue`。公共页头新增 36px 圆形头像按钮,读取用户 store 头像,无头像或加载失败使用默认头像;使用 Element Plus 点击下拉,支持键盘聚焦。个人中心进入 `/user/profile`,退出复用现有确认框、store 注销和登录跳转。
|
||||
- 影响:所有使用公共页头的页面;个人中心更新头像后同步显示。不改后端、权限和路由契约。
|
||||
- 检查:`./script/quality/check.sh --frontend src/layout/components/PageHeading.vue`,退出码 0(PASS)。
|
||||
- 构建:`./script/quality/check.sh --frontend-build`,Node 24.19.0 / pnpm 10.34.5,退出码 0(PASS);输出 `aixun-ui/dist`。已核对生成声明包含 ElAvatar、ElDropdown、ElDropdownItem、ElDropdownMenu,自动导入声明正常。
|
||||
- 待人工验证:头像显示、点击/键盘展开、个人中心跳转、修改头像同步、退出取消/确认、窄屏布局。
|
||||
- 本地部署授权:用户后续明确请求“在本地 docker 上部署一下”。仅更新 frontend。
|
||||
- 部署:标准 frontend.Dockerfile 构建镜像 `aixun-datagov/frontend:avatar-menu-20261201`;通过 `deploy.sh --plan frontend avatar-menu-20261201 ... --artifact aixun-ui/dist` 及 `deploy.sh --apply frontend avatar-menu-20261201` 发布。镜像 ID `sha256:fe564a1769918f154ca7fba2c8aca26d7507eec0bf0bfab380432bababde181b`。
|
||||
- 运行核验:制品读回 PASS;发布后配置检查 PASS;容器 running;`http://localhost:28000/` 返回 200 且入口内容与本地构建逐字节一致。上述结果不代替功能验收。
|
||||
- 部署计划与结果:`script/datagov/deployment/releases/avatar-menu-20261201-frontend.json`、同目录 `avatar-menu-20261201-frontend-result.json`。
|
||||
- 恢复:旧镜像 `sha256:6548c7064e6243df6fd9d465fe4efa33005f512314da956fe50038ca8cdb2346` 保留作为运行恢复引用;需恢复时按同一局部部署入口重新生成计划并发布。源码恢复为移除 PageHeading.vue 本次头像模板、处理函数和样式后重新构建。
|
||||
@@ -43,7 +43,7 @@
|
||||
"mounts": [],
|
||||
"container": "aixun-datagov-system",
|
||||
"initialImageId": "sha256:51cc508e90d343ec33ca43bbf3027041995df9f53c99f9247daca7ce3038b2bd",
|
||||
"runtimeModelSha256": "5860d7c86820452c05d3d221ba1efccc47640371b00d5df9e82dce22a1a42503",
|
||||
"runtimeModelSha256": "7026b33e54611f3c0974634e983affc57cc764b93b7a5da95c6ecd7c55c7f628",
|
||||
"stableModelSha256": "c0c23e755e96389cca09497a839e7b23878807c734af04ec269e6cd978ab7c21"
|
||||
},
|
||||
"resource": {
|
||||
@@ -63,7 +63,7 @@
|
||||
],
|
||||
"container": "aixun-datagov-resource",
|
||||
"initialImageId": "sha256:bcc8a5d1551d0c0f96502eed4dff8cb6fd7867480d587d940003522429a12729",
|
||||
"runtimeModelSha256": "e605935ef21613dd2bce1e380aec853fe2e41dc7c8bacc96c1f41ca2816f72f5",
|
||||
"runtimeModelSha256": "717ac43be8942f9b4fbd09136413edb21134d5605e11100ef25d0a8625d2f814",
|
||||
"stableModelSha256": "8c0b6035dbcb2a4093a387491855d578f1575d5df88852ea538604d86b761bd3"
|
||||
},
|
||||
"integration": {
|
||||
@@ -99,7 +99,7 @@
|
||||
],
|
||||
"container": "aixun-datagov-integration",
|
||||
"initialImageId": "sha256:553d05e2da41ef9b90029c771bf3f44fcc99dfa52dd1705c5f90ed5213b70db7",
|
||||
"runtimeModelSha256": "7b7f69679ac992174d1d46cf6f78325f930d7d49d567553a58347465b5c30ad2",
|
||||
"runtimeModelSha256": "a710f328919e09ca86936c1602aba365003ff409f3f5fd7b9adf1e2d821847db",
|
||||
"stableModelSha256": "af4efb84a9dda8b0c16974347a77b7841dca2d7b0a7760350b443e67c979195a"
|
||||
},
|
||||
"dataops": {
|
||||
@@ -112,7 +112,7 @@
|
||||
"mounts": [],
|
||||
"container": "aixun-datagov-dataops",
|
||||
"initialImageId": "sha256:7359df0d2ef67feeca94263696565de0edef8f18dae2ae49e10bcfcc9e098afb",
|
||||
"runtimeModelSha256": "5de1a10daca27657f2099fcc6b0bd4de8ce27e45dbc701c1d51328fa5497931f",
|
||||
"runtimeModelSha256": "043ccb83af9f0eb5454a2e4c26b0dea59c974d6efb0783553898fdf25869687a",
|
||||
"stableModelSha256": "facbc2f5201c0c58982200640160917254d183f79d46770c98d7d633213c8a43"
|
||||
},
|
||||
"governance": {
|
||||
@@ -125,7 +125,7 @@
|
||||
"mounts": [],
|
||||
"container": "aixun-datagov-governance",
|
||||
"initialImageId": "sha256:03b84a618107d9246569e9c733f04903bb7787a156ddd3246c20526d51a105ab",
|
||||
"runtimeModelSha256": "b9384ca577d90f850cf644e6f878cfce4b69a3fe9aff304387232cb830508f69",
|
||||
"runtimeModelSha256": "cc98ad66e8db890eb1d615390a2059801dceb3b0d006b018414c262f42db0446",
|
||||
"stableModelSha256": "5f6e16dd3194b4ad718c952eda64d8f844e7bf255da00bb29d27fe7b12932357"
|
||||
},
|
||||
"dataproduct": {
|
||||
@@ -138,7 +138,7 @@
|
||||
"mounts": [],
|
||||
"container": "aixun-datagov-dataproduct",
|
||||
"initialImageId": "sha256:67e459cef0cb972da8442eb5d9e433fb8e4f989882677db0b16fb422f4443dcf",
|
||||
"runtimeModelSha256": "03856f1a393605ec5ef4aa3c5286e32b71889d86188d1211366cdf1a853fa9d9",
|
||||
"runtimeModelSha256": "83c10d4159eaaa08c4e1ff0b732c4d4f3702b82bf50d118807e36757f391c9f5",
|
||||
"stableModelSha256": "424127c705f8735eb227946f0015502ce526071f8526d0354b6cfdccf299d82f"
|
||||
},
|
||||
"frontend": {
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
"AIXUN_DATAGOV_M2_SOURCE_USER=aixun_m2_ingestion",
|
||||
"AIXUN_DATAGOV_MANAGED_CREDENTIAL_ROOT=/run/secrets/aixun-datagov",
|
||||
"AIXUN_DATAGOV_SECRET_ROOT=/run/secrets/aixun-datagov",
|
||||
"DATAGOV_MANAGED_CREDENTIALS_REQUIRE_ENCRYPTION=true",
|
||||
"DATAGOV_FILE_INGESTION_ROOT=/var/lib/aixun-datagov/ingestion",
|
||||
"JAVA_OPTS=-Xms96m -Xmx384m -XX:MaxMetaspaceSize=224m -XX:MaxDirectMemorySize=96m -XX:ReservedCodeCacheSize=64m -Xss512k -DDUBBO_IP_TO_REGISTRY=integration",
|
||||
"DM_HOST=${DM_HOST:-}",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "0a5c448f8bdabb1a2d62f7f9d70d8f644cb49aef2a932c12d60b4c8226c3cae2",
|
||||
"imageId": "sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e",
|
||||
"authorizedBy": "\u7528\u6237\u8981\u6c42\u4fee\u590d\u8d26\u53f7\u83dc\u5355\u6743\u9650\uff0c\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743",
|
||||
"startedAt": 1796114039.358634
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "e3eb27ad136a85fe7f7e43a4f809aeadfda584e02782e71573a42f6cadca15fe",
|
||||
"imageId": "sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "account-menu-20261201",
|
||||
"imageTag": "aixun-datagov/frontend:account-menu-20261201",
|
||||
"imageId": "sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e",
|
||||
"artifactSha256": "df0c91de64aff9d24f4fc85de3295f5aaaadd9e005bc0dbb39258b611e9a1a32",
|
||||
"sourceContainerId": "0a5c448f8bdabb1a2d62f7f9d70d8f644cb49aef2a932c12d60b4c8226c3cae2",
|
||||
"sourceImageId": "sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b",
|
||||
"sourceImageTag": "sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b",
|
||||
"sourceStateSha256": "8aee9c188246c4876657debc6dcae72e43998bdff14e73192befd7c3fc90ea2e",
|
||||
"modelSha256": "42621af47f12680aacbc1299e8e56ab1263d9af26c7547b5acab1a4c40028e9c",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "d94b134820754e23ab50792d73ff6a725c3f178401b103e278032dd836651e47",
|
||||
"imageId": "sha256:fe564a1769918f154ca7fba2c8aca26d7507eec0bf0bfab380432bababde181b",
|
||||
"authorizedBy": "\u7528\u6237\u672c\u6b21\u8bf7\u6c42\uff1a\u5728\u672c\u5730 docker \u4e0a\u90e8\u7f72\u4e00\u4e0b\uff08\u9875\u5934\u7528\u6237\u5934\u50cf\u83dc\u5355\uff09",
|
||||
"startedAt": 1796113206.329053
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "971415f1372585d214c7a87a86072053c82d43f8e8e4d74684b092b81242929d",
|
||||
"imageId": "sha256:fe564a1769918f154ca7fba2c8aca26d7507eec0bf0bfab380432bababde181b",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:6548c7064e6243df6fd9d465fe4efa33005f512314da956fe50038ca8cdb2346"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "avatar-menu-20261201",
|
||||
"imageTag": "aixun-datagov/frontend:avatar-menu-20261201",
|
||||
"imageId": "sha256:fe564a1769918f154ca7fba2c8aca26d7507eec0bf0bfab380432bababde181b",
|
||||
"artifactSha256": "37cb3621a6ade857a68273b7b90654dbfad1de414693212cc8d601312cc41f21",
|
||||
"sourceContainerId": "d94b134820754e23ab50792d73ff6a725c3f178401b103e278032dd836651e47",
|
||||
"sourceImageId": "sha256:6548c7064e6243df6fd9d465fe4efa33005f512314da956fe50038ca8cdb2346",
|
||||
"sourceImageTag": "sha256:6548c7064e6243df6fd9d465fe4efa33005f512314da956fe50038ca8cdb2346",
|
||||
"sourceStateSha256": "b777966ff096e51156ac7d2a6e015bf94c13bf104afbe51dc7a6810422aff06e",
|
||||
"modelSha256": "c886fd9089cb793923f3b5b55a9e4e1c63663b77fd2733281bc78ac88bf254af",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "971415f1372585d214c7a87a86072053c82d43f8e8e4d74684b092b81242929d",
|
||||
"imageId": "sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b",
|
||||
"authorizedBy": "\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743\uff0c\u6309\u7528\u6237\u622a\u56fe\u79fb\u9664\u4fa7\u680f\u4e24\u4e2a\u91cd\u590d\u5165\u53e3",
|
||||
"startedAt": 1796113513.424166
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "0a5c448f8bdabb1a2d62f7f9d70d8f644cb49aef2a932c12d60b4c8226c3cae2",
|
||||
"imageId": "sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:fe564a1769918f154ca7fba2c8aca26d7507eec0bf0bfab380432bababde181b"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "avatar-menu-20261201-r2",
|
||||
"imageTag": "aixun-datagov/frontend:avatar-menu-20261201-r2",
|
||||
"imageId": "sha256:2afb05bef3848d31729b1d7b61e8630e203274d4805a63e916931cf9160bd27b",
|
||||
"artifactSha256": "bfe7e15dc46d813fb395cf3b7006a360b31b44181ebd0377a5113ff27834fd5d",
|
||||
"sourceContainerId": "971415f1372585d214c7a87a86072053c82d43f8e8e4d74684b092b81242929d",
|
||||
"sourceImageId": "sha256:fe564a1769918f154ca7fba2c8aca26d7507eec0bf0bfab380432bababde181b",
|
||||
"sourceImageTag": "sha256:fe564a1769918f154ca7fba2c8aca26d7507eec0bf0bfab380432bababde181b",
|
||||
"sourceStateSha256": "1369b891f4849c40f796e911be375e2cf991966da2d032bbbb6aa366f52e5700",
|
||||
"modelSha256": "9b0ed4f58d32593e25e08071f67c43c859c0703efff4fcbd00bf816a93df5be0",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "927d4885bbbe76ab83a35fb9c060a988ca0b4604b4dee535a8c137060da1e0b0",
|
||||
"imageId": "sha256:682d385d7159db96ec5370a7f1b7a57fee96999a90878da787254ebeca5c1b9a",
|
||||
"authorizedBy": "\u7528\u6237\u5f53\u524d\u8bf7\u6c42\uff1a\u73b0\u5728\u5148\u5207\u56de MySQL",
|
||||
"startedAt": 1796111064.7429729
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"service": "dataops",
|
||||
"containerId": "ab375a9e94314bd1eb89fe3ac4eddffc10fe42a48fc3696abf099ff58378d959",
|
||||
"imageId": "sha256:682d385d7159db96ec5370a7f1b7a57fee96999a90878da787254ebeca5c1b9a",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:850fdfd7e8b196019326d581c6e8c12515fd6353253464ee0d769a0389717bf8",
|
||||
"configurationChangeVerified": true
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "dataops",
|
||||
"release": "mysql-switch-20261201",
|
||||
"imageTag": "aixun-datagov/dataops:mysql-switch-20261201",
|
||||
"imageId": "sha256:682d385d7159db96ec5370a7f1b7a57fee96999a90878da787254ebeca5c1b9a",
|
||||
"artifactSha256": "999efdc204a0ee23c1c2309bc5d0b9e63e16b509675024c1d81edeb65d05f90d",
|
||||
"sourceContainerId": "927d4885bbbe76ab83a35fb9c060a988ca0b4604b4dee535a8c137060da1e0b0",
|
||||
"sourceImageId": "sha256:850fdfd7e8b196019326d581c6e8c12515fd6353253464ee0d769a0389717bf8",
|
||||
"sourceImageTag": "sha256:850fdfd7e8b196019326d581c6e8c12515fd6353253464ee0d769a0389717bf8",
|
||||
"sourceStateSha256": "9efdc855fc6231bbcecdb135b93ce64a2a21861bd24dac3e6f7cf94b0b74cdc5",
|
||||
"modelSha256": "d76b4aefa2db3c7600d6e07ee048637780b3507f196c4594852a101663118938",
|
||||
"identitySha256": "68b340373dcc194a7483f67243b47b9d9612f151d7fce5c41d3c0af220018be6",
|
||||
"configurationChange": {
|
||||
"note": "\u7528\u6237\u8981\u6c42\u5207\u56de\u539f MySQL \u4e1a\u52a1\u5e93\uff1b\u66f4\u65b0\u53cc\u5e93\u9002\u914d\u5236\u54c1\u53ca\u6570\u636e\u5e93\u73af\u5883\u53d8\u91cf\uff0c\u4fdd\u7559\u5176\u4ed6\u8fd0\u884c\u914d\u7f6e",
|
||||
"environmentKeys": [
|
||||
"DM_HOST",
|
||||
"DM_PASSWORD",
|
||||
"DM_SCHEMA",
|
||||
"DM_USERNAME",
|
||||
"PLATFORM_DB_PASSWORD",
|
||||
"PLATFORM_DB_SCHEMA",
|
||||
"PLATFORM_DB_URL",
|
||||
"PLATFORM_DB_USERNAME"
|
||||
],
|
||||
"launchFields": [],
|
||||
"restartPolicyChanged": false,
|
||||
"previousModelSha256": "5de1a10daca27657f2099fcc6b0bd4de8ce27e45dbc701c1d51328fa5497931f",
|
||||
"desiredModelSha256": "043ccb83af9f0eb5454a2e4c26b0dea59c974d6efb0783553898fdf25869687a"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "e89b0b789620669416e7d0f25d42b49bea34c5a0520a82b884d476ab8361f1f4",
|
||||
"imageId": "sha256:9584b119f6ebcf4c692d3f3de90d37fbec46714c62458bf0db2291fa9bbbee3b",
|
||||
"authorizedBy": "\u7528\u6237\u5f53\u524d\u8bf7\u6c42\uff1a\u73b0\u5728\u5148\u5207\u56de MySQL",
|
||||
"startedAt": 1796111078.559811
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"service": "dataproduct",
|
||||
"containerId": "4ebbf4c5d7c58e2d7c6b35f990bce40cd6435ebb1430cbe24154a965cb66457b",
|
||||
"imageId": "sha256:9584b119f6ebcf4c692d3f3de90d37fbec46714c62458bf0db2291fa9bbbee3b",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:8ba1d5ddf150338dee3db1c58da9beedf9288a526939c3b8abc19e57dbac47f7",
|
||||
"configurationChangeVerified": true
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "dataproduct",
|
||||
"release": "mysql-switch-20261201",
|
||||
"imageTag": "aixun-datagov/dataproduct:mysql-switch-20261201",
|
||||
"imageId": "sha256:9584b119f6ebcf4c692d3f3de90d37fbec46714c62458bf0db2291fa9bbbee3b",
|
||||
"artifactSha256": "a4c1829f7380a2f9508fd8a1f75c99ea333474faacf70f5bad9bf4b48212df1d",
|
||||
"sourceContainerId": "e89b0b789620669416e7d0f25d42b49bea34c5a0520a82b884d476ab8361f1f4",
|
||||
"sourceImageId": "sha256:8ba1d5ddf150338dee3db1c58da9beedf9288a526939c3b8abc19e57dbac47f7",
|
||||
"sourceImageTag": "sha256:8ba1d5ddf150338dee3db1c58da9beedf9288a526939c3b8abc19e57dbac47f7",
|
||||
"sourceStateSha256": "1f2f0a6835e97c379804212a4bc06fb4b3aab28015caea028653e6f0516fec2b",
|
||||
"modelSha256": "7a4986a5135b274b1c109f2f1ea959c30d47235934930d8647c77e654ea77b95",
|
||||
"identitySha256": "395ba2e4cbe3ac16b8051cd43b1627a38f196270b533a9dab029bf797cf48c83",
|
||||
"configurationChange": {
|
||||
"note": "\u7528\u6237\u8981\u6c42\u5207\u56de\u539f MySQL \u4e1a\u52a1\u5e93\uff1b\u66f4\u65b0\u53cc\u5e93\u9002\u914d\u5236\u54c1\u53ca\u6570\u636e\u5e93\u73af\u5883\u53d8\u91cf\uff0c\u4fdd\u7559\u5176\u4ed6\u8fd0\u884c\u914d\u7f6e",
|
||||
"environmentKeys": [
|
||||
"DM_HOST",
|
||||
"DM_PASSWORD",
|
||||
"DM_SCHEMA",
|
||||
"DM_USERNAME",
|
||||
"PLATFORM_DB_PASSWORD",
|
||||
"PLATFORM_DB_SCHEMA",
|
||||
"PLATFORM_DB_URL",
|
||||
"PLATFORM_DB_USERNAME"
|
||||
],
|
||||
"launchFields": [],
|
||||
"restartPolicyChanged": false,
|
||||
"previousModelSha256": "03856f1a393605ec5ef4aa3c5286e32b71889d86188d1211366cdf1a853fa9d9",
|
||||
"desiredModelSha256": "83c10d4159eaaa08c4e1ff0b732c4d4f3702b82bf50d118807e36757f391c9f5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "7783d3f717dd12c53f60de6af1675893b42e830c7728f071510fcf6e2c3e5ce5",
|
||||
"imageId": "sha256:8bfbfd46cf51985b619ae9e1aec3baaa5575312b718724c4b1c60ffbae3a7e36",
|
||||
"authorizedBy": "\u7528\u6237\u5f53\u524d\u8bf7\u6c42\uff1a\u73b0\u5728\u5148\u5207\u56de MySQL",
|
||||
"startedAt": 1796111071.5878148
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"service": "governance",
|
||||
"containerId": "151f5c2b7f3dfb241d34b97fa05d17df08923ce90b635bf4b14f58bb884785cf",
|
||||
"imageId": "sha256:8bfbfd46cf51985b619ae9e1aec3baaa5575312b718724c4b1c60ffbae3a7e36",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:5e9ab4f5b6b4d80b0ff8d242026b0304982e01838eb1946bb93a5477c9ab77dc",
|
||||
"configurationChangeVerified": true
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "governance",
|
||||
"release": "mysql-switch-20261201",
|
||||
"imageTag": "aixun-datagov/governance:mysql-switch-20261201",
|
||||
"imageId": "sha256:8bfbfd46cf51985b619ae9e1aec3baaa5575312b718724c4b1c60ffbae3a7e36",
|
||||
"artifactSha256": "bb421f5494458bb713ab442884ed1739aec6e86ab05d1203e515dfa1c6e8e0cf",
|
||||
"sourceContainerId": "7783d3f717dd12c53f60de6af1675893b42e830c7728f071510fcf6e2c3e5ce5",
|
||||
"sourceImageId": "sha256:5e9ab4f5b6b4d80b0ff8d242026b0304982e01838eb1946bb93a5477c9ab77dc",
|
||||
"sourceImageTag": "sha256:5e9ab4f5b6b4d80b0ff8d242026b0304982e01838eb1946bb93a5477c9ab77dc",
|
||||
"sourceStateSha256": "9c5cddc55d1dac026c584ac423570f7a28c55c7f59371c7372e76de871556dc0",
|
||||
"modelSha256": "c8c34ca96e8a268bd0bc6c78460f9c4fd7146db6dcb37e636d44258ca6784c70",
|
||||
"identitySha256": "9020b158459710564e9d52c9998d388d6d2af13dca7f1eb56ab6f7f55740ce6f",
|
||||
"configurationChange": {
|
||||
"note": "\u7528\u6237\u8981\u6c42\u5207\u56de\u539f MySQL \u4e1a\u52a1\u5e93\uff1b\u66f4\u65b0\u53cc\u5e93\u9002\u914d\u5236\u54c1\u53ca\u6570\u636e\u5e93\u73af\u5883\u53d8\u91cf\uff0c\u4fdd\u7559\u5176\u4ed6\u8fd0\u884c\u914d\u7f6e",
|
||||
"environmentKeys": [
|
||||
"DM_HOST",
|
||||
"DM_PASSWORD",
|
||||
"DM_SCHEMA",
|
||||
"DM_USERNAME",
|
||||
"PLATFORM_DB_PASSWORD",
|
||||
"PLATFORM_DB_SCHEMA",
|
||||
"PLATFORM_DB_URL",
|
||||
"PLATFORM_DB_USERNAME"
|
||||
],
|
||||
"launchFields": [],
|
||||
"restartPolicyChanged": false,
|
||||
"previousModelSha256": "b9384ca577d90f850cf644e6f878cfce4b69a3fe9aff304387232cb830508f69",
|
||||
"desiredModelSha256": "cc98ad66e8db890eb1d615390a2059801dceb3b0d006b018414c262f42db0446"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "e7fd30ca27c17f7a85937e21a0194e475e3d907a4bc0c27016edee4d0081e44f",
|
||||
"imageId": "sha256:74b3581e5b5724f092db2bf4f27c55885104456857cc429c29bfbf51de50f316",
|
||||
"authorizedBy": "\u7528\u6237\u5f53\u524d\u8bf7\u6c42\uff1a\u73b0\u5728\u5148\u5207\u56de MySQL",
|
||||
"startedAt": 1796111056.106407
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"service": "integration",
|
||||
"containerId": "13f44e0a41fabbf3121cd9636f8175f8077e7169936ff9daa35e00203a56954c",
|
||||
"imageId": "sha256:74b3581e5b5724f092db2bf4f27c55885104456857cc429c29bfbf51de50f316",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:ea0da8d56aaa0ea6ee5b74178651c37aa29232f992da3bb962cdf43709cc9018",
|
||||
"configurationChangeVerified": true
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "integration",
|
||||
"release": "mysql-switch-20261201",
|
||||
"imageTag": "aixun-datagov/integration:mysql-switch-20261201",
|
||||
"imageId": "sha256:74b3581e5b5724f092db2bf4f27c55885104456857cc429c29bfbf51de50f316",
|
||||
"artifactSha256": "2b25b73280fb00b30aa94f458cdc1b4e93055269ec09ddb9600be8e02c916f51",
|
||||
"sourceContainerId": "e7fd30ca27c17f7a85937e21a0194e475e3d907a4bc0c27016edee4d0081e44f",
|
||||
"sourceImageId": "sha256:ea0da8d56aaa0ea6ee5b74178651c37aa29232f992da3bb962cdf43709cc9018",
|
||||
"sourceImageTag": "sha256:ea0da8d56aaa0ea6ee5b74178651c37aa29232f992da3bb962cdf43709cc9018",
|
||||
"sourceStateSha256": "61ac2366fbd1ff6eb4f6649c048453e7acc886fe637f6c9f69ac64565b21b534",
|
||||
"modelSha256": "dc54bfd44d313bed352973b8c460caed307d3ed4fa6a4e648a665ca6240309ac",
|
||||
"identitySha256": "25a4bfa600eebd19af4af28c6dfcbe70474e80ab0ce825edb287d5f9b4036fc7",
|
||||
"configurationChange": {
|
||||
"note": "\u7528\u6237\u8981\u6c42\u5207\u56de\u539f MySQL \u4e1a\u52a1\u5e93\uff1b\u66f4\u65b0\u53cc\u5e93\u9002\u914d\u5236\u54c1\u53ca\u6570\u636e\u5e93\u73af\u5883\u53d8\u91cf\uff0c\u4fdd\u7559\u5176\u4ed6\u8fd0\u884c\u914d\u7f6e",
|
||||
"environmentKeys": [
|
||||
"DM_HOST",
|
||||
"DM_PASSWORD",
|
||||
"DM_SCHEMA",
|
||||
"DM_USERNAME",
|
||||
"PLATFORM_DB_PASSWORD",
|
||||
"PLATFORM_DB_SCHEMA",
|
||||
"PLATFORM_DB_URL",
|
||||
"PLATFORM_DB_USERNAME"
|
||||
],
|
||||
"launchFields": [],
|
||||
"restartPolicyChanged": false,
|
||||
"previousModelSha256": "7b7f69679ac992174d1d46cf6f78325f930d7d49d567553a58347465b5c30ad2",
|
||||
"desiredModelSha256": "a710f328919e09ca86936c1602aba365003ff409f3f5fd7b9adf1e2d821847db"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "8f20517339ad030a965685f6e0cf7dc0d9c410fe8a46cbdfdb0953ec1fbf167d",
|
||||
"imageId": "sha256:72752efe2f5f5d06a96187e3d3d67ecc9a17e9cf572bff798e13d39188c16a66",
|
||||
"authorizedBy": "\u7528\u6237\u5f53\u524d\u8bf7\u6c42\uff1a\u73b0\u5728\u5148\u5207\u56de MySQL",
|
||||
"startedAt": 1796111049.8930619
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"service": "resource",
|
||||
"containerId": "d81ed10f6a35ae4744faad80b93332e003fa68a3a268ff21bab345b20af731d8",
|
||||
"imageId": "sha256:72752efe2f5f5d06a96187e3d3d67ecc9a17e9cf572bff798e13d39188c16a66",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:9e30b4a7b076f3341c46a37f73ea958ab180398804cefa04c1edef8a5ee613ef",
|
||||
"configurationChangeVerified": true
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "resource",
|
||||
"release": "mysql-switch-20261201",
|
||||
"imageTag": "aixun-datagov/resource:mysql-switch-20261201",
|
||||
"imageId": "sha256:72752efe2f5f5d06a96187e3d3d67ecc9a17e9cf572bff798e13d39188c16a66",
|
||||
"artifactSha256": "3ede7f275294e84c085722f962eb00463cb78ccde36a81c7bf9a32b54fa2b82b",
|
||||
"sourceContainerId": "8f20517339ad030a965685f6e0cf7dc0d9c410fe8a46cbdfdb0953ec1fbf167d",
|
||||
"sourceImageId": "sha256:9e30b4a7b076f3341c46a37f73ea958ab180398804cefa04c1edef8a5ee613ef",
|
||||
"sourceImageTag": "sha256:9e30b4a7b076f3341c46a37f73ea958ab180398804cefa04c1edef8a5ee613ef",
|
||||
"sourceStateSha256": "ab3dfb008dd3043b0faeea849743f5c132fb38a6b95c00307035038373757f6a",
|
||||
"modelSha256": "811bdddd9a628ab723296981622fe7897d63eb428493aac53e9ec3d42db1e375",
|
||||
"identitySha256": "9f9e19206c31ff5ded5fa26b1ea736c922ca9b03f11d087bdbbf9b22ba8e1952",
|
||||
"configurationChange": {
|
||||
"note": "\u7528\u6237\u8981\u6c42\u5207\u56de\u539f MySQL \u4e1a\u52a1\u5e93\uff1b\u66f4\u65b0\u53cc\u5e93\u9002\u914d\u5236\u54c1\u53ca\u6570\u636e\u5e93\u73af\u5883\u53d8\u91cf\uff0c\u4fdd\u7559\u5176\u4ed6\u8fd0\u884c\u914d\u7f6e",
|
||||
"environmentKeys": [
|
||||
"DM_HOST",
|
||||
"DM_PASSWORD",
|
||||
"DM_SCHEMA",
|
||||
"DM_USERNAME",
|
||||
"PLATFORM_DB_PASSWORD",
|
||||
"PLATFORM_DB_SCHEMA",
|
||||
"PLATFORM_DB_URL",
|
||||
"PLATFORM_DB_USERNAME"
|
||||
],
|
||||
"launchFields": [],
|
||||
"restartPolicyChanged": false,
|
||||
"previousModelSha256": "e605935ef21613dd2bce1e380aec853fe2e41dc7c8bacc96c1f41ca2816f72f5",
|
||||
"desiredModelSha256": "717ac43be8942f9b4fbd09136413edb21134d5605e11100ef25d0a8625d2f814"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "a6a3a8c645ebcb0de2e7152d0567419348527ae0fcbf67476212a1f261c7a1af",
|
||||
"imageId": "sha256:fb0060acad9d763d109aca82f3b4e2a9fb9e51b2d219e060647221f2b6c05652",
|
||||
"authorizedBy": "\u7528\u6237\u5f53\u524d\u8bf7\u6c42\uff1a\u73b0\u5728\u5148\u5207\u56de MySQL",
|
||||
"startedAt": 1796111044.831778
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"service": "system",
|
||||
"containerId": "c276ff4fd1fd472d93059fbb9427de06384b26731352ea6a016a9bf10f9f52df",
|
||||
"imageId": "sha256:fb0060acad9d763d109aca82f3b4e2a9fb9e51b2d219e060647221f2b6c05652",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:4d9edf4b64fc72620a8943fdef4b6adc973dbe62e9ead40fe8fbd6b20d28d184",
|
||||
"configurationChangeVerified": true
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "system",
|
||||
"release": "mysql-switch-20261201",
|
||||
"imageTag": "aixun-datagov/system:mysql-switch-20261201",
|
||||
"imageId": "sha256:fb0060acad9d763d109aca82f3b4e2a9fb9e51b2d219e060647221f2b6c05652",
|
||||
"artifactSha256": "27516c00871d3495cfa0d928eeaa8ec844a7ce5f97003282fb2d74f529459b93",
|
||||
"sourceContainerId": "a6a3a8c645ebcb0de2e7152d0567419348527ae0fcbf67476212a1f261c7a1af",
|
||||
"sourceImageId": "sha256:4d9edf4b64fc72620a8943fdef4b6adc973dbe62e9ead40fe8fbd6b20d28d184",
|
||||
"sourceImageTag": "sha256:4d9edf4b64fc72620a8943fdef4b6adc973dbe62e9ead40fe8fbd6b20d28d184",
|
||||
"sourceStateSha256": "0339cfc1bc786df8d3639f0a41dd37c8e8152a090e94e54213eb22102fe5c91b",
|
||||
"modelSha256": "b0b7e7199de97c045335150f7716d7f9764dacf0fdd16dc92280da1af8fd8d72",
|
||||
"identitySha256": "6faa9de3a29511f632109992d6aee9e3c8cf41e21556c570ea63efa54439e8de",
|
||||
"configurationChange": {
|
||||
"note": "\u7528\u6237\u8981\u6c42\u5207\u56de\u539f MySQL \u4e1a\u52a1\u5e93\uff1b\u66f4\u65b0\u53cc\u5e93\u9002\u914d\u5236\u54c1\u53ca\u6570\u636e\u5e93\u73af\u5883\u53d8\u91cf\uff0c\u4fdd\u7559\u5176\u4ed6\u8fd0\u884c\u914d\u7f6e",
|
||||
"environmentKeys": [
|
||||
"DM_HOST",
|
||||
"DM_PASSWORD",
|
||||
"DM_SCHEMA",
|
||||
"DM_USERNAME",
|
||||
"PLATFORM_DB_PASSWORD",
|
||||
"PLATFORM_DB_SCHEMA",
|
||||
"PLATFORM_DB_URL",
|
||||
"PLATFORM_DB_USERNAME"
|
||||
],
|
||||
"launchFields": [],
|
||||
"restartPolicyChanged": false,
|
||||
"previousModelSha256": "5860d7c86820452c05d3d221ba1efccc47640371b00d5df9e82dce22a1a42503",
|
||||
"desiredModelSha256": "7026b33e54611f3c0974634e983affc57cc764b93b7a5da95c6ecd7c55c7f628"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "e3eb27ad136a85fe7f7e43a4f809aeadfda584e02782e71573a42f6cadca15fe",
|
||||
"imageId": "sha256:32efa6111fe69bf01c5d8d6399d825d2ee48223a61d6e4183f9bdf1f7d1e1c6e",
|
||||
"authorizedBy": "\u7528\u6237\u8981\u6c42\u89d2\u8272\u540d\u79f0\u81ea\u52a8\u586b\u5165\u6743\u9650\u5b57\u7b26\uff0c\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743",
|
||||
"startedAt": 1796114835.120342
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "c173f9c383c853b71bae22e42da6ec3f68218fba095f47b137e9ec20b6876548",
|
||||
"imageId": "sha256:32efa6111fe69bf01c5d8d6399d825d2ee48223a61d6e4183f9bdf1f7d1e1c6e",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "role-key-20261201",
|
||||
"imageTag": "aixun-datagov/frontend:role-key-20261201",
|
||||
"imageId": "sha256:32efa6111fe69bf01c5d8d6399d825d2ee48223a61d6e4183f9bdf1f7d1e1c6e",
|
||||
"artifactSha256": "22cf9650dd32da1518e9972bfac1647f0db15b6ac38e9f0a71e7bbd58499d46b",
|
||||
"sourceContainerId": "e3eb27ad136a85fe7f7e43a4f809aeadfda584e02782e71573a42f6cadca15fe",
|
||||
"sourceImageId": "sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e",
|
||||
"sourceImageTag": "sha256:11fe2081e38e58d7139bfd8ae0a67648b99b388317fc5883d006eb8b4e5ebf9e",
|
||||
"sourceStateSha256": "1020d85833353684086848c504c425007b3e165d366f21148d42eca3ac54b7cc",
|
||||
"modelSha256": "a2732d6ba9f03b77dc3c18fa1e02d4657ed9afb2c79e1033fef76274b57b479a",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sourceContainerId": "c173f9c383c853b71bae22e42da6ec3f68218fba095f47b137e9ec20b6876548",
|
||||
"imageId": "sha256:3b54e57c041ca2ac817e0e2c4f489d69d2e17cafc3794608df52652bf5838faa",
|
||||
"authorizedBy": "\u7528\u6237\u7ea0\u6b63\u6743\u9650\u5b57\u7b26\u987b\u82f1\u6587\uff0c\u6cbf\u7528\u672c\u5bf9\u8bdd\u672c\u5730Docker\u90e8\u7f72\u6388\u6743",
|
||||
"startedAt": 1796115112.772653
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"service": "frontend",
|
||||
"containerId": "de8d0128ed8fe404e8475b0b8afa98ac3df7bd18d3b08a19ceb1b353bc59ceba",
|
||||
"imageId": "sha256:3b54e57c041ca2ac817e0e2c4f489d69d2e17cafc3794608df52652bf5838faa",
|
||||
"status": "DEPLOYED_FUNCTIONAL_UAT_NOT_RUN",
|
||||
"artifactReadback": "PASS",
|
||||
"applicationReadiness": "NOT_RUN",
|
||||
"recoveryImageId": "sha256:32efa6111fe69bf01c5d8d6399d825d2ee48223a61d6e4183f9bdf1f7d1e1c6e"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 1,
|
||||
"service": "frontend",
|
||||
"release": "role-key-20261201-r2",
|
||||
"imageTag": "aixun-datagov/frontend:role-key-20261201-r2",
|
||||
"imageId": "sha256:3b54e57c041ca2ac817e0e2c4f489d69d2e17cafc3794608df52652bf5838faa",
|
||||
"artifactSha256": "de9dcbc932fbedf21882ef588de4d39a166a9eaf5e687722c84211d56da978dd",
|
||||
"sourceContainerId": "c173f9c383c853b71bae22e42da6ec3f68218fba095f47b137e9ec20b6876548",
|
||||
"sourceImageId": "sha256:32efa6111fe69bf01c5d8d6399d825d2ee48223a61d6e4183f9bdf1f7d1e1c6e",
|
||||
"sourceImageTag": "sha256:32efa6111fe69bf01c5d8d6399d825d2ee48223a61d6e4183f9bdf1f7d1e1c6e",
|
||||
"sourceStateSha256": "1177fc70cadd7eedf33c0115c92bffa82ef2d8dfb2ba69c497496e884006973f",
|
||||
"modelSha256": "62a07e54e2008aa2a9119ccc04bb176d2f488b49224a86ec642f238d03fa9971",
|
||||
"identitySha256": "d0c9630a8fcfc59276ca59df8adcf0043ee76a2c5f5ca0eb6745651a651c1f9f",
|
||||
"artifactPath": "/opt/aixun-datagov/frontend-current"
|
||||
}
|
||||
@@ -35,7 +35,7 @@ docker info >/dev/null 2>&1 || fail "Docker is unavailable"
|
||||
env_mode="$(stat -f '%Lp' "${ENV_FILE}")"
|
||||
[[ "${env_mode}" == "600" ]] || fail ".env.datagov must have mode 0600"
|
||||
|
||||
if rg -q -v '^(#.*|[A-Z0-9_]+=[A-Za-z0-9+/_=:.-]+|[[:space:]]*)$' "${ENV_FILE}"; then
|
||||
if rg -q -v '^(#.*|[A-Z0-9_]+=[A-Za-z0-9+/_=:.-]*|[[:space:]]*)$' "${ENV_FILE}"; then
|
||||
fail ".env.datagov contains unsupported syntax"
|
||||
fi
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户