From f22707cc667d94c44f753fe5f842a64e4f5c1ad8 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Wed, 31 Jan 2024 17:33:54 +0800
Subject: [PATCH] 提交改成保存

---
 src/views/resource/distapch.vue |  224 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 112 insertions(+), 112 deletions(-)

diff --git a/src/views/resource/distapch.vue b/src/views/resource/distapch.vue
index 5b7f8a8..a7ab315 100644
--- a/src/views/resource/distapch.vue
+++ b/src/views/resource/distapch.vue
@@ -1,5 +1,5 @@
 <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"
@@ -31,9 +31,9 @@
             </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>
 
 
@@ -45,20 +45,20 @@
 
 
 
-        
+
         <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>
@@ -69,7 +69,7 @@
 import func from "@/util/func"
 import vueCron from 'vue-cron'
 export default {
-    components:{
+    components: {
         vueCron
     },
     data () {
@@ -78,7 +78,7 @@
             query: {},
             loading: true,
             box: false,
-            cronPopover:false,
+            cronPopover: false,
             page: {
                 pageSize: 10,
                 currentPage: 1,
@@ -224,101 +224,101 @@
                         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: [],
@@ -326,7 +326,7 @@
                 code: '',
             },
             debugOption: {
-                submitText: "提交",
+                submitText: "保存",
                 column: [
                     {
                         label: "资源编号",
@@ -388,8 +388,8 @@
     },
     methods: {
 
-        changeCron(val){
-             console.log("===>",val);
+        changeCron (val) {
+            console.log("===>", val)
         },
 
         rowSave (row, done, loading) {
@@ -531,9 +531,9 @@
                 this.selectionClear()
             })
         },
-        handlerClick(){
+        handlerClick () {
             console.log("111")
-            this.cronPopover = true;
+            this.cronPopover = true
         }
     }
 }

--
Gitblit v1.9.3