🐛 fix(compiler): 解决场景控制cron回显bug、编辑场景弹窗刷新bug、调整指令历史默认查询时间为23.59.59
This commit is contained in:
parent
41d2b792ca
commit
ae692ce7bf
|
@ -13,11 +13,11 @@
|
|||
<div class="right-operate">
|
||||
<el-select
|
||||
v-model="queryParams.method"
|
||||
size="small"
|
||||
width="300"
|
||||
style="margin-right: 10px"
|
||||
placeholder="触发方式"
|
||||
clearable
|
||||
placeholder="触发方式"
|
||||
size="small"
|
||||
style="margin-right: 10px"
|
||||
width="300"
|
||||
>
|
||||
<el-option
|
||||
v-for="(value, keys) in triggerMethod"
|
||||
|
@ -29,15 +29,15 @@
|
|||
|
||||
<el-date-picker
|
||||
v-model="time"
|
||||
size="small"
|
||||
@change="queryTimeChange"
|
||||
:clearable="false"
|
||||
type="datetimerange"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
range-separator="至"
|
||||
size="small"
|
||||
start-placeholder="开始日期"
|
||||
style="margin-right: 10px"
|
||||
type="datetimerange"
|
||||
@change="queryTimeChange"
|
||||
>
|
||||
</el-date-picker>
|
||||
|
||||
|
@ -51,49 +51,49 @@
|
|||
:height="total > 0 ? '470px' : '510px'"
|
||||
>
|
||||
<el-table-column
|
||||
type="index"
|
||||
label="序号"
|
||||
align="center"
|
||||
:index="
|
||||
(idx) => {
|
||||
return idx + 1 + (queryParams.pageNum - 1) * queryParams.pageSize;
|
||||
}
|
||||
"
|
||||
align="center"
|
||||
label="序号"
|
||||
type="index"
|
||||
width="80px"
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="触发方式"
|
||||
width="150px"
|
||||
align="center"
|
||||
label="触发方式"
|
||||
prop="method"
|
||||
width="150px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span class="lay-table-textarea" :title="scope.row.method">
|
||||
<span :title="scope.row.method" class="lay-table-textarea">
|
||||
{{ triggerMethod[scope.row.method]}}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="内容"
|
||||
align="left"
|
||||
label="内容"
|
||||
prop="content"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span class="lay-table-textarea" :title="scope.row.content">
|
||||
<span :title="scope.row.content" class="lay-table-textarea">
|
||||
{{ scope.row.content }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="创建时间"
|
||||
align="center"
|
||||
width="160px"
|
||||
label="创建时间"
|
||||
prop="createTime"
|
||||
width="160px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span class="lay-table-textarea" :title="scope.row.createTime">
|
||||
<span :title="scope.row.createTime" class="lay-table-textarea">
|
||||
{{ scope.row.createTime }}
|
||||
</span>
|
||||
</template>
|
||||
|
@ -102,9 +102,9 @@
|
|||
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:total="total"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
|
@ -154,7 +154,7 @@ export default {
|
|||
methods: {
|
||||
newTime() {
|
||||
const startTime = this.parseTime(new Date(), "{y}-{m}-{d} 00:00:00");
|
||||
const endTime = this.parseTime(new Date(), "{y}-{m}-{d} {h}:{i}:{s}");
|
||||
const endTime = this.parseTime(new Date(), "{y}-{m}-{d} 23:59:59");
|
||||
this.time = [startTime, endTime];
|
||||
this.queryParams.startDate = startTime;
|
||||
this.queryParams.endDate = endTime;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<template>
|
||||
<div>
|
||||
<easy-cron
|
||||
:hideSecond="false"
|
||||
:disabledSecond="false"
|
||||
:disabled="false"
|
||||
style="width: 100%;"
|
||||
v-model="stateValue"
|
||||
:disabled="false"
|
||||
:disabledSecond="false"
|
||||
:exeStartTime="exeStartTime"
|
||||
:hideSecond="false"
|
||||
style="width: 100%;"
|
||||
></easy-cron>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -44,6 +44,9 @@ export default {
|
|||
stateValue: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.stateValue = this.value || '* * * * * ? *';
|
||||
},
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
|
@ -213,7 +213,7 @@
|
|||
<div>
|
||||
<e-tag-card
|
||||
v-for="(item, idx) in form.triggers"
|
||||
:key="item.guid || getGuid()"
|
||||
:key="item.guid "
|
||||
style="margin-top: 5px"
|
||||
type="info"
|
||||
>
|
||||
|
@ -260,7 +260,7 @@
|
|||
<div>
|
||||
<e-tag-card
|
||||
v-for="(item, idx) in form.actions"
|
||||
:key="item.guid || getGuid()"
|
||||
:key="item.guid "
|
||||
style="margin-top: 5px"
|
||||
type="info"
|
||||
>
|
||||
|
@ -431,6 +431,7 @@ export default {
|
|||
},
|
||||
handleAddAction() {
|
||||
let obj = {
|
||||
guid: this.getGuid(),
|
||||
orderBy: this.form.actions.length + 1 || 1,
|
||||
recordStatus: 0,
|
||||
actionId: null,
|
||||
|
@ -446,6 +447,7 @@ export default {
|
|||
handleAddTrigger() {
|
||||
let triggersPop = [...this.form.triggers].pop();
|
||||
let obj = {
|
||||
guid: this.getGuid(),
|
||||
orderBy: triggersPop ? triggersPop.orderBy + 1 : 1,
|
||||
method: "",
|
||||
conditions: [],
|
||||
|
|
Loading…
Reference in New Issue