mirror of https://github.com/certd/certd
perf: 增加警告,修复一些样式错乱问题
parent
7e483e6091
commit
fd54c2ffac
|
@ -65,7 +65,6 @@ function install(app: App, options: any = {}) {
|
|||
view: { type: "link", text: null, icon: "ion:eye-outline" },
|
||||
copy: { show: true, type: "link", text: null, icon: "ion:copy-outline" },
|
||||
edit: { type: "link", text: null, icon: "ion:create-outline" },
|
||||
copy: {show:true,type: "link", text: null, icon: "ion:copy-outline"},
|
||||
remove: { type: "link", style: { color: "red" }, text: null, icon: "ion:trash-outline" }
|
||||
},
|
||||
dropdown: {
|
||||
|
@ -126,16 +125,17 @@ function install(app: App, options: any = {}) {
|
|||
}
|
||||
},
|
||||
columns: {
|
||||
createdAt: {
|
||||
title: "创建时间",
|
||||
type: "datetime",
|
||||
form: {
|
||||
show: false
|
||||
},
|
||||
column: {
|
||||
order: 1000
|
||||
}
|
||||
}
|
||||
// createdAt: {
|
||||
// title: "创建时间",
|
||||
// type: "datetime",
|
||||
// form: {
|
||||
// show: false
|
||||
// },
|
||||
// column: {
|
||||
// show: false,
|
||||
// order: 1000
|
||||
// }
|
||||
// }
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -65,7 +65,9 @@ h1, h2, h3, h4, h5, h6 {
|
|||
.mt-10{
|
||||
margin-top:10px;
|
||||
}
|
||||
|
||||
.mb-10{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.m-10{
|
||||
margin:10px;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<a-drawer v-model:open="stepDrawerVisible" placement="right" :closable="true" width="600px" @after-open-change="stepDrawerOnAfterVisibleChange">
|
||||
<template #title>
|
||||
编辑任务
|
||||
编辑步骤
|
||||
<a-button v-if="editMode" @click="stepDelete()">
|
||||
<template #icon><DeleteOutlined /></template>
|
||||
</a-button>
|
||||
|
|
|
@ -71,11 +71,11 @@ import _ from "lodash-es";
|
|||
import { nanoid } from "nanoid";
|
||||
import PiStepForm from "../step-form/index.vue";
|
||||
import { message, Modal } from "ant-design-vue";
|
||||
import {CopyOutlined} from "@ant-design/icons-vue";
|
||||
import { CopyOutlined } from "@ant-design/icons-vue";
|
||||
|
||||
export default {
|
||||
name: "PiTaskForm",
|
||||
components: {CopyOutlined, PiStepForm },
|
||||
components: { CopyOutlined, PiStepForm },
|
||||
props: {
|
||||
editMode: {
|
||||
type: Boolean,
|
||||
|
@ -88,7 +88,7 @@ export default {
|
|||
const stepFormRef: Ref<any> = ref(null);
|
||||
const currentStepIndex = ref(0);
|
||||
provide("currentStepIndex", currentStepIndex);
|
||||
const stepAdd = (task: any,stepDef:any) => {
|
||||
const stepAdd = (task: any, stepDef: any) => {
|
||||
currentStepIndex.value = task.steps.length;
|
||||
stepFormRef.value.stepAdd((type: any, value: any) => {
|
||||
if (type === "save") {
|
||||
|
@ -97,14 +97,14 @@ export default {
|
|||
task.title = value.title;
|
||||
}
|
||||
}
|
||||
},stepDef);
|
||||
}, stepDef);
|
||||
};
|
||||
|
||||
const stepCopy = (task: any, step: any, stepIndex: any) => {
|
||||
step = _.cloneDeep(step)
|
||||
step.id = nanoid()
|
||||
step.title = step.title +"_copy"
|
||||
stepAdd(task,step)
|
||||
step = _.cloneDeep(step);
|
||||
step.id = nanoid();
|
||||
step.title = step.title + "_copy";
|
||||
stepAdd(task, step);
|
||||
};
|
||||
const stepEdit = (task: any, step: any, stepIndex: any) => {
|
||||
currentStepIndex.value = stepIndex;
|
||||
|
@ -135,7 +135,7 @@ export default {
|
|||
});
|
||||
};
|
||||
|
||||
return { stepAdd, stepEdit,stepCopy, stepDelete, stepFormRef };
|
||||
return { stepAdd, stepEdit, stepCopy, stepDelete, stepFormRef };
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -177,10 +177,10 @@ export default {
|
|||
taskDrawerShow();
|
||||
};
|
||||
|
||||
const taskAdd = (emit: any,taskMerge:any) => {
|
||||
const taskAdd = (emit: any, taskMerge: any) => {
|
||||
mode.value = "add";
|
||||
const blankTask = { id: nanoid(), title: "新任务", steps: [], status: null }
|
||||
const task: any = _.merge(blankTask,taskMerge) ;
|
||||
const blankTask = { id: nanoid(), title: "新任务", steps: [], status: null };
|
||||
const task: any = _.merge(blankTask, taskMerge);
|
||||
taskOpen(task, emit);
|
||||
};
|
||||
|
||||
|
@ -234,7 +234,7 @@ export default {
|
|||
taskSave,
|
||||
taskDelete,
|
||||
rules,
|
||||
blankFn,
|
||||
blankFn
|
||||
};
|
||||
}
|
||||
return {
|
||||
|
@ -252,5 +252,8 @@ export default {
|
|||
.steps {
|
||||
margin: 0 50px 0 50px;
|
||||
}
|
||||
.ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-title {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -4,16 +4,16 @@
|
|||
<div class="title-line">Certd v{{ version }}</div>
|
||||
</div>
|
||||
<p class="d2-page-cover__sub-title">让你的证书永不过期</p>
|
||||
<div class="warnning">
|
||||
<a-alert description="证书和授权信息为敏感信息,不要使用来历不明的在线CertD服务,请务必私有化部署使用,认准官方版本发布渠道【github、gitee】" type="warning" show-icon />
|
||||
</div>
|
||||
<div class="content">
|
||||
<img src="/images/preview.png" class="preview_img" />
|
||||
</div>
|
||||
<div class="footer_box">
|
||||
<div class="left"></div>
|
||||
<div class="right">
|
||||
<div>如果觉得好用,请不要吝啬你的star哟!</div>
|
||||
<a href="https://gitee.com/certd/certd" target="_blank"><img src="https://gitee.com/certd/certd/badge/star.svg?theme=dark" alt="star" /></a>
|
||||
<a href="https://github.com/certd/certd" target="_blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/certd/certd?logo=github" /></a>
|
||||
</div>
|
||||
<div>如果觉得好用,请不要吝啬你的star哟!</div>
|
||||
<a href="https://gitee.com/certd/certd" target="_blank"><img src="https://gitee.com/certd/certd/badge/star.svg?theme=dark" alt="star" /></a>
|
||||
<a href="https://github.com/certd/certd" target="_blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/certd/certd?logo=github" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue