mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: pipeline utils 转移到basic
This commit is contained in:
+18
-16
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<tr v-if="cnameRecord" class="cname-record-info">
|
||||
<tbody v-if="cnameRecord" class="cname-record-info">
|
||||
<tr>
|
||||
<!-- <td class="domain">-->
|
||||
<!-- {{ props.domain }}-->
|
||||
<!-- </td>-->
|
||||
@@ -10,23 +11,24 @@
|
||||
<fs-copyable v-model="cnameRecord.recordValue"></fs-copyable>
|
||||
</td>
|
||||
<td class="status center flex-center">
|
||||
<fs-values-format v-model="cnameRecord.status" :dict="statusDict" />
|
||||
<fs-values-format v-model="cnameRecord.status" :dict="statusDict"/>
|
||||
<fs-icon icon="ion:refresh-outline" class="pointer" @click="doRefresh"></fs-icon>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { CnameRecord, GetByDomain } from "/@/components/plugins/cert/domains-verify-plan-editor/api";
|
||||
import { ref, watch } from "vue";
|
||||
import { dict } from "@fast-crud/fast-crud";
|
||||
import {CnameRecord, GetByDomain} from "/@/components/plugins/cert/domains-verify-plan-editor/api";
|
||||
import {ref, watch} from "vue";
|
||||
import {dict} from "@fast-crud/fast-crud";
|
||||
|
||||
const statusDict = dict({
|
||||
data: [
|
||||
{ label: "待设置CNAME", value: "cname", color: "warning" },
|
||||
{ label: "验证中", value: "validating", color: "primary" },
|
||||
{ label: "验证成功", value: "valid", color: "success" },
|
||||
{ label: "验证失败", value: "failed", color: "error" }
|
||||
{label: "待设置CNAME", value: "cname", color: "warning"},
|
||||
{label: "验证中", value: "validating", color: "primary"},
|
||||
{label: "验证成功", value: "valid", color: "success"},
|
||||
{label: "验证失败", value: "failed", color: "error"}
|
||||
]
|
||||
});
|
||||
|
||||
@@ -63,13 +65,13 @@ async function doRefresh() {
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.domain,
|
||||
async (value) => {
|
||||
await doRefresh();
|
||||
},
|
||||
{
|
||||
immediate: true
|
||||
}
|
||||
() => props.domain,
|
||||
async (value) => {
|
||||
await doRefresh();
|
||||
},
|
||||
{
|
||||
immediate: true
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
|
||||
+4
@@ -1,10 +1,14 @@
|
||||
<template>
|
||||
<table class="cname-verify-plan">
|
||||
<thead>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="width: 160px">主机记录</td>
|
||||
<td style="width: 250px">请设置CNAME记录</td>
|
||||
<td style="width: 120px" class="center">状态</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<template v-for="key in domains" :key="key">
|
||||
<cname-record-info :domain="key" @change="onRecordChange(key, $event)" />
|
||||
</template>
|
||||
|
||||
+4
@@ -7,11 +7,14 @@
|
||||
<fs-icon :icon="fullscreen ? 'material-symbols:fullscreen' : 'material-symbols:fullscreen-exit'" @click="fullscreen = !fullscreen"></fs-icon>
|
||||
</div>
|
||||
<table class="plan-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>域名</th>
|
||||
<th>验证方式</th>
|
||||
<th>验证计划</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(item, key) of planRef" :key="key" class="row">
|
||||
<td>{{ item.domain }}</td>
|
||||
<td>
|
||||
@@ -54,6 +57,7 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="error">
|
||||
{{ errorMessageRef }}
|
||||
|
||||
Reference in New Issue
Block a user