🐛 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">
|
<div class="right-operate">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.method"
|
v-model="queryParams.method"
|
||||||
size="small"
|
|
||||||
width="300"
|
|
||||||
style="margin-right: 10px"
|
|
||||||
placeholder="触发方式"
|
|
||||||
clearable
|
clearable
|
||||||
|
placeholder="触发方式"
|
||||||
|
size="small"
|
||||||
|
style="margin-right: 10px"
|
||||||
|
width="300"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(value, keys) in triggerMethod"
|
v-for="(value, keys) in triggerMethod"
|
||||||
|
@ -29,15 +29,15 @@
|
||||||
|
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="time"
|
v-model="time"
|
||||||
size="small"
|
|
||||||
@change="queryTimeChange"
|
|
||||||
:clearable="false"
|
:clearable="false"
|
||||||
type="datetimerange"
|
|
||||||
:default-time="['00:00:00', '23:59:59']"
|
:default-time="['00:00:00', '23:59:59']"
|
||||||
range-separator="至"
|
|
||||||
start-placeholder="开始日期"
|
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
|
range-separator="至"
|
||||||
|
size="small"
|
||||||
|
start-placeholder="开始日期"
|
||||||
style="margin-right: 10px"
|
style="margin-right: 10px"
|
||||||
|
type="datetimerange"
|
||||||
|
@change="queryTimeChange"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
|
||||||
|
@ -51,49 +51,49 @@
|
||||||
:height="total > 0 ? '470px' : '510px'"
|
:height="total > 0 ? '470px' : '510px'"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="index"
|
|
||||||
label="序号"
|
|
||||||
align="center"
|
|
||||||
:index="
|
:index="
|
||||||
(idx) => {
|
(idx) => {
|
||||||
return idx + 1 + (queryParams.pageNum - 1) * queryParams.pageSize;
|
return idx + 1 + (queryParams.pageNum - 1) * queryParams.pageSize;
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
align="center"
|
||||||
|
label="序号"
|
||||||
|
type="index"
|
||||||
width="80px"
|
width="80px"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="触发方式"
|
|
||||||
width="150px"
|
|
||||||
align="center"
|
align="center"
|
||||||
|
label="触发方式"
|
||||||
prop="method"
|
prop="method"
|
||||||
|
width="150px"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<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]}}
|
{{ triggerMethod[scope.row.method]}}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="内容"
|
|
||||||
align="left"
|
align="left"
|
||||||
|
label="内容"
|
||||||
prop="content"
|
prop="content"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<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 }}
|
{{ scope.row.content }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="创建时间"
|
|
||||||
align="center"
|
align="center"
|
||||||
width="160px"
|
label="创建时间"
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
|
width="160px"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<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 }}
|
{{ scope.row.createTime }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
@ -102,9 +102,9 @@
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total > 0"
|
v-show="total > 0"
|
||||||
:total="total"
|
|
||||||
:page.sync="queryParams.pageNum"
|
|
||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:total="total"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -154,7 +154,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
newTime() {
|
newTime() {
|
||||||
const startTime = this.parseTime(new Date(), "{y}-{m}-{d} 00:00:00");
|
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.time = [startTime, endTime];
|
||||||
this.queryParams.startDate = startTime;
|
this.queryParams.startDate = startTime;
|
||||||
this.queryParams.endDate = endTime;
|
this.queryParams.endDate = endTime;
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<easy-cron
|
<easy-cron
|
||||||
:hideSecond="false"
|
|
||||||
:disabledSecond="false"
|
|
||||||
:disabled="false"
|
|
||||||
style="width: 100%;"
|
|
||||||
v-model="stateValue"
|
v-model="stateValue"
|
||||||
|
:disabled="false"
|
||||||
|
:disabledSecond="false"
|
||||||
:exeStartTime="exeStartTime"
|
:exeStartTime="exeStartTime"
|
||||||
|
:hideSecond="false"
|
||||||
|
style="width: 100%;"
|
||||||
></easy-cron>
|
></easy-cron>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -44,6 +44,9 @@ export default {
|
||||||
stateValue: ''
|
stateValue: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.stateValue = this.value || '* * * * * ? *';
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -213,7 +213,7 @@
|
||||||
<div>
|
<div>
|
||||||
<e-tag-card
|
<e-tag-card
|
||||||
v-for="(item, idx) in form.triggers"
|
v-for="(item, idx) in form.triggers"
|
||||||
:key="item.guid || getGuid()"
|
:key="item.guid "
|
||||||
style="margin-top: 5px"
|
style="margin-top: 5px"
|
||||||
type="info"
|
type="info"
|
||||||
>
|
>
|
||||||
|
@ -260,7 +260,7 @@
|
||||||
<div>
|
<div>
|
||||||
<e-tag-card
|
<e-tag-card
|
||||||
v-for="(item, idx) in form.actions"
|
v-for="(item, idx) in form.actions"
|
||||||
:key="item.guid || getGuid()"
|
:key="item.guid "
|
||||||
style="margin-top: 5px"
|
style="margin-top: 5px"
|
||||||
type="info"
|
type="info"
|
||||||
>
|
>
|
||||||
|
@ -431,6 +431,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleAddAction() {
|
handleAddAction() {
|
||||||
let obj = {
|
let obj = {
|
||||||
|
guid: this.getGuid(),
|
||||||
orderBy: this.form.actions.length + 1 || 1,
|
orderBy: this.form.actions.length + 1 || 1,
|
||||||
recordStatus: 0,
|
recordStatus: 0,
|
||||||
actionId: null,
|
actionId: null,
|
||||||
|
@ -446,6 +447,7 @@ export default {
|
||||||
handleAddTrigger() {
|
handleAddTrigger() {
|
||||||
let triggersPop = [...this.form.triggers].pop();
|
let triggersPop = [...this.form.triggers].pop();
|
||||||
let obj = {
|
let obj = {
|
||||||
|
guid: this.getGuid(),
|
||||||
orderBy: triggersPop ? triggersPop.orderBy + 1 : 1,
|
orderBy: triggersPop ? triggersPop.orderBy + 1 : 1,
|
||||||
method: "",
|
method: "",
|
||||||
conditions: [],
|
conditions: [],
|
||||||
|
|
Loading…
Reference in New Issue