mirror of https://github.com/certd/certd
perf: 执行历史支持点击查看流水线详情
parent
e8b571590e
commit
89686399f9
|
@ -27,16 +27,7 @@ export const sysResources = [
|
||||||
permission: "sys:auth:user:view"
|
permission: "sys:auth:user:view"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "用户管理",
|
|
||||||
name: "UserManager",
|
|
||||||
path: "/sys/authority/user",
|
|
||||||
component: "/sys/authority/user/index.vue",
|
|
||||||
meta: {
|
|
||||||
icon: "ion:person-outline",
|
|
||||||
permission: "sys:auth:user:view"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "系统设置",
|
title: "系统设置",
|
||||||
name: "SysSettings",
|
name: "SysSettings",
|
||||||
|
@ -92,7 +83,7 @@ export const sysResources = [
|
||||||
const settingStore = useSettingStore();
|
const settingStore = useSettingStore();
|
||||||
return settingStore.isComm;
|
return settingStore.isComm;
|
||||||
},
|
},
|
||||||
icon: "ion:document-text-outline",
|
icon: "ion:menu",
|
||||||
permission: "sys:settings:view"
|
permission: "sys:settings:view"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -168,7 +159,17 @@ export const sysResources = [
|
||||||
icon: "ion:people-outline",
|
icon: "ion:people-outline",
|
||||||
permission: "sys:auth:role:view"
|
permission: "sys:auth:role:view"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
title: "用户管理",
|
||||||
|
name: "UserManager",
|
||||||
|
path: "/sys/authority/user",
|
||||||
|
component: "/sys/authority/user/index.vue",
|
||||||
|
meta: {
|
||||||
|
icon: "ion:person-outline",
|
||||||
|
permission: "sys:auth:user:view"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// title: "商业版设置",
|
// title: "商业版设置",
|
||||||
|
|
|
@ -128,7 +128,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||||
},
|
},
|
||||||
pipelineTitle: {
|
pipelineTitle: {
|
||||||
title: "流水线名称",
|
title: "流水线名称",
|
||||||
type: "link",
|
type: "text",
|
||||||
search: {
|
search: {
|
||||||
show: true,
|
show: true,
|
||||||
component: {
|
component: {
|
||||||
|
@ -136,7 +136,11 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
column: {
|
column: {
|
||||||
width: 300
|
width: 300,
|
||||||
|
cellRender: ({ row, value }) => {
|
||||||
|
debugger;
|
||||||
|
return <router-link to={{ path: "/certd/pipeline/detail", query: { id: row.pipelineId } }}>{value}</router-link>;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createTime: {
|
createTime: {
|
||||||
|
|
|
@ -15,6 +15,7 @@ import { useRoute } from "vue-router";
|
||||||
import { PipelineDetail, PipelineOptions, PluginGroups, RunHistory } from "./pipeline/type";
|
import { PipelineDetail, PipelineOptions, PluginGroups, RunHistory } from "./pipeline/type";
|
||||||
import { TourProps } from "ant-design-vue";
|
import { TourProps } from "ant-design-vue";
|
||||||
import { LocalStorage } from "/@/utils/util.storage";
|
import { LocalStorage } from "/@/utils/util.storage";
|
||||||
|
import { useUserStore } from "/@/store/modules/user";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "PipelineDetail"
|
name: "PipelineDetail"
|
||||||
|
@ -124,7 +125,11 @@ function useTour() {
|
||||||
|
|
||||||
const { tour, tourHandleOpen } = useTour();
|
const { tour, tourHandleOpen } = useTour();
|
||||||
|
|
||||||
|
const userStore = useUserStore();
|
||||||
async function onLoaded(pipeline: PipelineDetail) {
|
async function onLoaded(pipeline: PipelineDetail) {
|
||||||
|
if (pipeline.pipeline?.userId !== userStore.getUserInfo?.id) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const count = LocalStorage.get("pipeline-count") ?? 0;
|
const count = LocalStorage.get("pipeline-count") ?? 0;
|
||||||
if (count > 1) {
|
if (count > 1) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -22,18 +22,11 @@ typeorm:
|
||||||
default:
|
default:
|
||||||
database: './data/db-comm.sqlite'
|
database: './data/db-comm.sqlite'
|
||||||
|
|
||||||
#plus:
|
|
||||||
# server:
|
|
||||||
# baseUrls: ['https://api.ai.handsfree.work', 'https://api.ai.docmirror.cn']
|
|
||||||
#
|
#
|
||||||
#account:
|
#PLUS_SERVER_BASE_URL=http://127.0.0.1:11007
|
||||||
# server:
|
|
||||||
# baseUrl: 'https://ai.handsfree.work/subject'
|
|
||||||
|
|
||||||
|
|
||||||
plus:
|
|
||||||
server:
|
|
||||||
baseUrls: ['http://127.0.0.1:11007']
|
|
||||||
|
|
||||||
account:
|
account:
|
||||||
server:
|
server:
|
||||||
|
|
Loading…
Reference in New Issue