(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-071bde08"],{"24dd":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"138px"}},[a("el-form-item",{attrs:{label:"执行器AppName",prop:"appname"}},[a("el-input",{attrs:{placeholder:"请输入执行器AppName",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.appname,callback:function(t){e.$set(e.queryParams,"appname",t)},expression:"queryParams.appname"}})],1),a("el-form-item",{attrs:{label:"执行器名称",prop:"title"}},[a("el-input",{attrs:{placeholder:"请输入执行器名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.title,callback:function(t){e.$set(e.queryParams,"title",t)},expression:"queryParams.title"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["job:group:add"],expression:"['job:group:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["job:group:edit"],expression:"['job:group:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["job:group:remove"],expression:"['job:group:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),a("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.groupList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),a("el-table-column",{attrs:{label:"执行器AppName",align:"center",prop:"appname"}}),a("el-table-column",{attrs:{label:"执行器名称",align:"center",prop:"title"}}),a("el-table-column",{attrs:{label:"执行器地址类型",align:"center",prop:"addressType"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("dict-tag",{attrs:{options:e.dict.type.sys_job_address_type,value:t.row.addressType}})]}}])}),a("el-table-column",{attrs:{label:"执行器地址列表",align:"center",prop:"addressList"}}),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["job:group:edit"],expression:"['job:group:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return e.handleUpdate(t.row)}}},[e._v("修改")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["job:group:remove"],expression:"['job:group:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"140px"}},[a("el-form-item",{attrs:{label:"执行器AppName",prop:"appname"}},[a("el-input",{attrs:{placeholder:"请输入执行器AppName"},model:{value:e.form.appname,callback:function(t){e.$set(e.form,"appname",t)},expression:"form.appname"}})],1),a("el-form-item",{attrs:{label:"执行器名称",prop:"title"}},[a("el-input",{attrs:{placeholder:"请输入执行器名称"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),a("el-form-item",{attrs:{label:"执行器地址类型",prop:"addressType"}},[a("el-radio",{attrs:{label:0},model:{value:e.form.addressType,callback:function(t){e.$set(e.form,"addressType",t)},expression:"form.addressType"}},[e._v("自动注册")]),a("el-radio",{attrs:{label:1},model:{value:e.form.addressType,callback:function(t){e.$set(e.form,"addressType",t)},expression:"form.addressType"}},[e._v("手动录入")])],1),a("el-form-item",{attrs:{label:"执行器地址列表",prop:"addressList"}},[a("el-input",{attrs:{type:"textarea",placeholder:"执行器地址列表,多地址逗号分隔"},model:{value:e.form.addressList,callback:function(t){e.$set(e.form,"addressList",t)},expression:"form.addressList"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},n=[],i=a("5530"),l=(a("d81d"),a("6e0b")),o=a("2da1"),s={name:"Group",dicts:["sys_job_address_type"],data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,groupList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,appName:null,title:null,addressType:null,addressList:null,tenantId:null},form:{},rules:{appname:[{required:!0,message:"执行器AppName不能为空",trigger:"blur"}],title:[{required:!0,message:"执行器名称不能为空",trigger:"blur"}],addressType:[{required:!0,message:"请选择执行器地址类型",trigger:"change"}]}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(l["e"])(this.queryParams).then((function(t){e.groupList=t.data,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:null,appName:null,title:null,addressType:null,addressList:null,updateTime:null,tenantId:null},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加执行器信息"},handleUpdate:function(e){var t=this;this.reset();var a=e.id||this.ids;Object(l["c"])(a).then((function(e){t.form=e.data,t.open=!0,t.title="修改执行器信息"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?Object(l["f"])(e.form).then((function(t){e.$modal.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(l["a"])(e.form).then((function(t){e.$modal.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$modal.confirm("是否确认删除当前定时任务分组数据项?").then((function(){return Object(l["b"])(a)})).then((function(){t.getList(),t.$modal.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("job/group/export",Object(i["a"])({},this.queryParams),"定时任务分组_".concat(Object(o["f"])((new Date).getTime(),"{y}-{m}-{d}"),".xlsx"))}}},u=s,d=a("2877"),c=Object(d["a"])(u,r,n,!1,null,null,null);t["default"]=c.exports},"6e0b":function(e,t,a){"use strict";a.d(t,"e",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return l})),a.d(t,"f",(function(){return o})),a.d(t,"b",(function(){return s})),a.d(t,"d",(function(){return u}));var r=a("b775");function n(e){return Object(r["a"])({url:"/job/group/list",method:"get",params:e})}function i(e){return Object(r["a"])({url:"/job/group/"+e,method:"get"})}function l(e){return Object(r["a"])({url:"/job/group/add",method:"post",data:e})}function o(e){return Object(r["a"])({url:"/job/group/edit",method:"put",data:e})}function s(e){return Object(r["a"])({url:"/job/group/"+e,method:"delete"})}function u(e){return Object(r["a"])({url:"/job/group/getSelectAll",method:"get",params:e})}}}]);