You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
9.6 KiB
1 lines
9.6 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0094b0b8"],{"1a86":function(e,t,a){"use strict";t.a={data:function(){return{isSearch:!1,total:null}},created:function(){},methods:{handleSizeChange:function(e){this.queryInfo.pageSize=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.initTable()},searchClick:function(){this.isSearch=!this.isSearch}}}},"765b":function(e,t,a){"use strict";var n=a("ae9e");a.n(n).a},ae9e:function(e,t,a){},c2eb:function(e,t,a){"use strict";a.r(t);a("7db0"),a("a15b"),a("d81d"),a("96cf");var n=a("1da1"),r=a("1a86"),o=a("284b"),l=function(e){return Object(o.a)({url:"manager/concur/log/tInterfaceLog/delete?ids=".concat(e),method:"DELETE"})},i={data:function(){return{dialogTitle:"",queryInfo:{name:"",runState:"",runMesg:"",orderBy:"",pageNo:1,pageSize:10},from:{user:"",region:""},tableData:[],isShowDialog:!1,formDialog:{id:"",interfaceName:"",runState:"",sendMesg:"",runMesg:"",operType:"",isRollBack:"",runBatch:"",interfaceFlag:""},formLabelWidth:"120px",total:0,ids:""}},mixins:[r.a],components:{},computed:{},mounted:function(){this.initTable()},methods:{initTable:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n=e.queryInfo,Object(o.a)({url:"manager/concur/log/tInterfaceLog/list",method:"GET",params:n});case 2:a=t.sent,e.tableData=a.result.data,e.total=a.result.pagination.total;case 6:case"end":return t.stop()}var n}),t)})))()},queryByConditions:function(){this.initTable(this.queryInfo)},reset:function(){this.$refs.queryForm.resetFields()},selectionChangeHandle:function(e){var t=e.map((function(e){return e.id})).join(",");this.ids=t},batchDeleteHandle:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e.ids);case 2:200==(a=t.sent).code?(e.$message.success(a.msg),e.initTable(e.queryInfo)):e.$message.success("删除失败");case 4:case"end":return t.stop()}}),t)})))()},clickHandle:function(e){var t=this;if("add"==e)this.formDialog={id:"",interfaceName:"",runState:"",sendMesg:"",runMesg:"",operType:"",isRollBack:"",runBatch:"",interfaceFlag:""},this.dialogTitle="添加任务日志";else{if(this.dialogTitle="修改任务日志",""==this.ids)return void this.$message.warning("请选择一个任务");var a=this.tableData.find((function(e){return e.id==t.ids}));for(var n in this.formDialog)for(var r in a)n==r&&(this.formDialog[n]=a[r])}this.isShowDialog=!this.isShowDialog},saveLogHandle:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n=e.formDialog,Object(o.a)({url:"manager/concur/log/tInterfaceLog/save",method:"POST",params:n});case 2:200==(a=t.sent).code?(e.$message.success(a.msg),e.initTable(e.queryInfo)):e.$message.warning("保存失败!"),e.isShowDialog=!1;case 5:case"end":return t.stop()}var n}),t)})))()},deleteHandle:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,l(e);case 2:200==(n=a.sent).code?(t.$message.success(n.msg),t.initTable(t.queryInfo)):t.$message.warning("删除失败!");case 4:case"end":return a.stop()}}),a)})))()},editHandle:function(e){for(var t in this.formDialog)for(var a in e)t==a&&(this.formDialog[t]=e[a]);this.isShowDialog=!0}}},s=(a("765b"),a("2877")),c=Object(s.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wrapper"},[a("div",{staticClass:"top",staticStyle:{"padding-bottom":"20px"}},[a("el-form",{ref:"queryForm",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.queryInfo}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{placeholder:"接口名称"},model:{value:e.queryInfo.name,callback:function(t){e.$set(e.queryInfo,"name",t)},expression:"queryInfo.name"}})],1),a("el-form-item",{attrs:{prop:"runState"}},[a("el-input",{attrs:{placeholder:"运行状态"},model:{value:e.queryInfo.runState,callback:function(t){e.$set(e.queryInfo,"runState",t)},expression:"queryInfo.runState"}})],1),a("el-form-item",{attrs:{prop:"runMesg"}},[a("el-input",{attrs:{placeholder:"运行信息"},model:{value:e.queryInfo.runMesg,callback:function(t){e.$set(e.queryInfo,"runMesg",t)},expression:"queryInfo.runMesg"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.queryByConditions}},[e._v("查询")]),a("el-button",{attrs:{size:"mini"},on:{click:e.reset}},[e._v("重置")])],1)],1)],1),a("div",{staticClass:"buttons"},[a("el-button",{attrs:{type:"danger",plain:"",icon:"el-icon-delete"},on:{click:e.batchDeleteHandle}},[e._v("删除")])],1),a("div",{staticStyle:{"margin-top":"15px"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"default-sort":{prop:"createDate",order:"descending"},border:""},on:{"selection-change":e.selectionChangeHandle}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"运行信息:"}},[a("span",[e._v(e._s(t.row.runMesg))])])],1)]}}])}),a("el-table-column",{attrs:{prop:"interfaceName",label:"接口名称",width:"180",align:"center"}}),a("el-table-column",{attrs:{label:"运行状态",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(1==n.runState?"错误":"成功"))])]}}])}),a("el-table-column",{attrs:{label:"完成时间",align:"center",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(new Date(n.createDate).toLocaleString()))])]}}])}),a("el-table-column",{attrs:{prop:"remarks",label:"备注信息",align:"center"}}),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-link",{attrs:{type:"primary",icon:"el-icon-edit",underline:!1},on:{click:function(t){return e.editHandle(n)}}},[e._v("查看 ")]),a("el-link",{attrs:{type:"primary",icon:"el-icon-delete",underline:!1},on:{click:function(t){return e.deleteHandle(n.id)}}},[e._v("删除 ")])]}}])})],1)],1),a("div",{staticClass:"m-top-4"},[a("el-pagination",{attrs:{background:"","current-page":e.queryInfo.pageNo,"page-size":e.queryInfo.pageSize,"page-sizes":[10,20,30,50],layout:" prev, pager, next,total, sizes, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.queryInfo,"pageNo",t)},"update:current-page":function(t){return e.$set(e.queryInfo,"pageNo",t)}}})],1),a("el-dialog",{attrs:{title:e.dialogTitle,visible:e.isShowDialog,width:"55%"},on:{"update:visible":function(t){e.isShowDialog=t}}},[a("el-form",{attrs:{inline:!0,model:e.formDialog}},[a("el-form-item",{attrs:{label:"接口名称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写接口名称"},model:{value:e.formDialog.interfaceName,callback:function(t){e.$set(e.formDialog,"interfaceName",t)},expression:"formDialog.interfaceName"}})],1),a("el-form-item",{attrs:{label:"运行状态","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写发送状态"},model:{value:e.formDialog.runState,callback:function(t){e.$set(e.formDialog,"runState",t)},expression:"formDialog.runState"}})],1),a("el-form-item",{attrs:{label:"发送内容","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写发送状态"},model:{value:e.formDialog.sendMesg,callback:function(t){e.$set(e.formDialog,"sendMesg",t)},expression:"formDialog.sendMesg"}})],1),a("el-form-item",{attrs:{label:"运行信息","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写运行信息"},model:{value:e.formDialog.runMesg,callback:function(t){e.$set(e.formDialog,"runMesg",t)},expression:"formDialog.runMesg"}})],1),a("el-form-item",{attrs:{label:"操作类型","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写操作类型"},model:{value:e.formDialog.operType,callback:function(t){e.$set(e.formDialog,"operType",t)},expression:"formDialog.operType"}})],1),a("el-form-item",{attrs:{label:"是否可回滚(0:否 1:是)","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写发送状态"},model:{value:e.formDialog.isRollBack,callback:function(t){e.$set(e.formDialog,"isRollBack",t)},expression:"formDialog.isRollBack"}})],1),a("el-form-item",{attrs:{label:"运行批次","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写运行批次"},model:{value:e.formDialog.runBatch,callback:function(t){e.$set(e.formDialog,"runBatch",t)},expression:"formDialog.runBatch"}})],1),a("el-form-item",{attrs:{label:"接口标志","label-width":e.formLabelWidth}},[a("el-input",{attrs:{autocomplete:"off",placeholder:"请填写发接口标志"},model:{value:e.formDialog.interfaceFlag,callback:function(t){e.$set(e.formDialog,"interfaceFlag",t)},expression:"formDialog.interfaceFlag"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.isShowDialog=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.saveLogHandle}},[e._v("确 定")])],1)],1)],1)}),[],!1,null,"421406fb",null);t.default=c.exports}}]);
|