| | |
| | | <template> |
| | | <basic-container v-if="false"> |
| | | <basic-container v-if="false"> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" :permission="permissionList" |
| | | v-model="form" ref="crud" @row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel" |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | |
| | | </template> |
| | | |
| | | <template slot-scope="{type,disabled}" slot="cronForm"> |
| | | <el-input placeholder="请选择cron"> |
| | | <el-button slot="append" icon="el-icon-s-tools" @click="handlerClick()"></el-button> |
| | | </el-input> |
| | | <el-input placeholder="请选择cron"> |
| | | <el-button slot="append" icon="el-icon-s-tools" @click="handlerClick()"></el-button> |
| | | </el-input> |
| | | </template> |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <el-dialog title="Cron" append-to-body :visible.sync="cronPopover" width="550px"> |
| | | <!-- <el-popover v-model="cronPopover"> --> |
| | | <!-- <el-popover v-model="cronPopover"> --> |
| | | |
| | | <!-- <div> 测试 </div> --> |
| | | <vueCron @change="changeCron" @close="cronPopover=false" i18n="cn"/> |
| | | <!-- <el-input |
| | | <vueCron @change="changeCron" @close="cronPopover = false" i18n="cn" /> |
| | | <!-- <el-input |
| | | slot="reference" |
| | | v-model="ruleForm.execTime" |
| | | placeholder="定时策略" |
| | | @click="cronPopover=true" |
| | | /> --> |
| | | <!-- </el-popover> --> |
| | | </el-dialog> |
| | | <!-- </el-popover> --> |
| | | </el-dialog> |
| | | |
| | | </basic-container> |
| | | </template> |
| | |
| | | import func from "@/util/func" |
| | | import vueCron from 'vue-cron' |
| | | export default { |
| | | components:{ |
| | | components: { |
| | | vueCron |
| | | }, |
| | | data () { |
| | |
| | | query: {}, |
| | | loading: true, |
| | | box: false, |
| | | cronPopover:false, |
| | | cronPopover: false, |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | |
| | | display: false |
| | | }, |
| | | ], |
| | | group:[ |
| | | { |
| | | label: '基础配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '执行器', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '任务描述', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '负责人', |
| | | prop: '', |
| | | |
| | | }, |
| | | { |
| | | label: '报警邮件', |
| | | prop: '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '调度配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '调度类型', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: 'Cron', |
| | | prop: 'cron', |
| | | formslot:true, |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '任务配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '运行模式', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: 'JobHandler', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '任务参数', |
| | | prop: '', |
| | | type: 'textarea', |
| | | span:24 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '高级配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '调度类型', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '子任务ID', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '调度类型', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '任务参数', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '任务超时时间', |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: '失败重试次数', |
| | | prop: '', |
| | | } |
| | | ] |
| | | }, |
| | | group: [ |
| | | { |
| | | label: '基础配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '执行器', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '任务描述', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '负责人', |
| | | prop: '', |
| | | |
| | | }, |
| | | { |
| | | label: '报警邮件', |
| | | prop: '' |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '调度配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '调度类型', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: 'Cron', |
| | | prop: 'cron', |
| | | formslot: true, |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '任务配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '运行模式', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: 'JobHandler', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '任务参数', |
| | | prop: '', |
| | | type: 'textarea', |
| | | span: 24 |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: '高级配置', |
| | | prop: 'jbxx', |
| | | column: [ |
| | | { |
| | | label: '调度类型', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '子任务ID', |
| | | prop: '' |
| | | }, |
| | | { |
| | | label: '调度类型', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '任务参数', |
| | | prop: '', |
| | | type: 'select', |
| | | }, |
| | | { |
| | | label: '任务超时时间', |
| | | prop: '', |
| | | }, |
| | | { |
| | | label: '失败重试次数', |
| | | prop: '', |
| | | } |
| | | ] |
| | | }, |
| | | ] |
| | | }, |
| | | data: [], |
| | |
| | | code: '', |
| | | }, |
| | | debugOption: { |
| | | submitText: "提交", |
| | | submitText: "保存", |
| | | column: [ |
| | | { |
| | | label: "资源编号", |
| | |
| | | }, |
| | | methods: { |
| | | |
| | | changeCron(val){ |
| | | console.log("===>",val); |
| | | changeCron (val) { |
| | | console.log("===>", val) |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | |
| | | this.selectionClear() |
| | | }) |
| | | }, |
| | | handlerClick(){ |
| | | handlerClick () { |
| | | console.log("111") |
| | | this.cronPopover = true; |
| | | this.cronPopover = true |
| | | } |
| | | } |
| | | } |