mirror of
https://github.com/certd/certd.git
synced 2026-05-15 20:47:31 +08:00
perf: 增加警告,修复一些样式错乱问题
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
+16
-13
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user