(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d0728830"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"13c2":function(e,t,n){"use strict";n("9394")},"397c":function(e,t,n){"use strict";var r=n("7a23"),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},o=c,a=n("b3f0");function u(e){for(var t=1;t0?1==t.table.page?t.dataSource=e.data.concat(t.dataSource):t.dataSource=t.dataSource.concat(e.data):(L["a"].message("未查询到数据"),t.showLoadingMore=!1)}))},onLoadMore:function(){t.loadingMore=!0,t.table.page+=1,n.getloginfo(t.table.page)},firstPage:function(){t.table.page=1,t.dataSource=[],n.getloginfo()},timeFormat:function(e){return K()(e).format("YYYY-MM-DD HH:mm:ss")}};return Object(r["C"])((function(){n.getloginfo()})),Object(O["a"])(Object(O["a"])({},Object(r["S"])(t)),n)}});z.render=T;var Y=z,H=Object(r["p"])({components:{PlusCircleOutlined:m["a"],RedoOutlined:p["a"],info:U,record:Y,DownOutlined:g["a"]},name:"Task",setup:function(){var e=Object(r["J"])({table:{search:{state:!1,vm:{projectId:""}},loading:!1,selectedRowKeys:[],data:[]},form:{visible:!1,revisible:!1,key:Object},columns:[{title:"项目名称",dataIndex:"projectName",key:"projectName",width:200,ellipsis:!0},{title:"作业名称",dataIndex:"name",key:"name",width:200,ellipsis:!0},{title:"分组",dataIndex:"groupName",key:"groupName",width:120},{title:"最后执行时间",dataIndex:"executeTime",key:"executeTime",width:200,slots:{customRender:"time"}},{title:"间隔",dataIndex:"cron",key:"cron",width:120},{title:"状态",dataIndex:"state",key:"state",width:100,slots:{customRender:"state"}},{title:"请求方式",dataIndex:"requsetMode",key:"requsetMode",width:100,slots:{customRender:"requsetMode"}},{title:"apiUrl",dataIndex:"apiUrl",key:"apiUrl",width:300,ellipsis:!0},{title:"描述",dataIndex:"remark",key:"remark",width:300,ellipsis:!0},{title:"操作",key:"action",width:100,slots:{customRender:"action"}}],dataSource:[],projectSource:[],stateBool:!0,timer:void 0,visible:!1}),t={onSelectChange:function(t){e.table.selectedRowKeys=t},warning:function(){this.$message.warning("你还没有选中任务")},error:function(){this.$message.error("不合理的非法请求")},findProjectList:function(){e.loading=!0,S["a"].findList("Project").finally((function(){e.loading=!1})).then((function(t){e.projectSource=t.data}))},findList:function(){e.table.loading=!0,S["a"].findList("Tasks",e.table.search.vm.projectId).then((function(t){e.dataSource=t.data,e.table.loading=!1}))},deleteList:function(e){L["a"].confirm("确定删除",(function(){S["a"].deleteList("Tasks",e).then((function(e){1==e.code&&(L["a"].message("删除成功!","成功"),t.findList())}))}))},run:function(){var n=e.table.selectedRowKeys;if(0==n.length)return L["a"].message("请选择要操作的数据!");for(var r=!1,c=function(t){var c=n[t],o=e.dataSource.filter((function(e){return e.id==c}))[0];if(1==o.state)return r=!0,"break"},o=0;o=0};return Object(r["C"])((function(){t.findList(),t.findProjectList(),e.timer=setInterval((function(){t.findList()}),6e4)})),Object(r["z"])((function(){clearInterval(e.timer)})),Object(O["a"])(Object(O["a"])({filterOption:c,handleChange:n},t),Object(r["S"])(e))}});n("13c2");H.render=j,H.__scopeId="data-v-87d1d1f4";t["default"]=H}}]); //# sourceMappingURL=chunk-d0728830.2f3bb341.js.map