This commit is contained in:
icssoa 2023-05-15 14:32:12 +08:00
commit 00468cdc20
3 changed files with 18 additions and 16 deletions

View File

@ -1,5 +1,6 @@
<template>
<cl-dialog width="1000px" :title="title" v-model="visible">
<div>
<cl-dialog width="1000px" :title="title" append-to-body v-model="visible">
<cl-editor
:name="`cl-editor-${name}`"
:ref="setRefs('editor')"
@ -13,6 +14,7 @@
<el-button type="success" @click="toCopy">复制</el-button>
</template>
</cl-dialog>
</div>
</template>
<script lang="ts" name="cl-editor-preview" setup>

View File

@ -19,7 +19,7 @@
</p>
<p class="row">
<span>定时规则</span>
<span>{{ item.taskType == 1 ? `间隔${item.every}秒执行` : item.cron }}</span>
<span>{{ item.taskType == 1 ? `间隔${item._every}秒执行` : item.cron }}</span>
</p>
<div class="status">
@ -106,7 +106,7 @@ function refresh() {
service.task.info.page({ size: 100, page: 1 }).then((res) => {
list.value = res.list.map((e) => {
if (e.every) {
e.every /= 1000;
e._every = parseInt(String(e.every / 1000));
}
return e;

View File

@ -15,7 +15,7 @@
</cl-filter>
<cl-flex1 />
<!-- 关键字搜索 -->
<cl-search-key placeholder="请输入昵称、手机号" />
<cl-search-key placeholder="搜索昵称、手机号" />
</cl-row>
<cl-row>