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.
2 lines
100 KiB
2 lines
100 KiB
6 years ago
|
webpackJsonp([6],{1028:function(t,e,a){"use strict";e.__esModule=!0;var n=r(a(1115)),i=r(a(654)),s=r(a(650));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"definition-timing-index",components:{mList:n.default,mListConstruction:s.default,mSecondaryMenu:i.default}}},1029:function(t,e,a){"use strict";e.__esModule=!0;var n=c(a(28)),i=a(123);a(668);var s=c(a(646)),r=c(a(993)),o=c(a(663)),l=a(225);function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"list",data:function(){return{isLoading:!1,total:null,pageNo:1,pageSize:10,list:[]}},props:{},methods:Object.assign({},(0,i.mapActions)("dag",["getScheduleList","scheduleOffline","scheduleOnline","getReceiver"]),{_rtReleaseState:function(t){return n.default.filter(l.publishStatus,function(e){return e.code===t})[0].desc},_page:function(t){this.pageNo=t,this._getScheduleList()},_getScheduleList:function(t){var e=this;this.isLoading=!t,this.getScheduleList({processDefinitionId:this.$route.params.id,searchVal:"",pageNo:this.pageNo,pageSize:this.pageSize}).then(function(t){e.list=t.data.totalList,e.total=t.data.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})},_onConditions:function(t){this.searchVal=t.searchVal,this.pageNo=1,this._getScheduleList("false")},_online:function(t){var e=this;this.pageNo=1,this.scheduleOnline({id:t.id}).then(function(t){e.$message.success(t.msg),e._getScheduleList("false")}).catch(function(t){e.$message.error(t.msg||"")})},_offline:function(t){var e=this;this.pageNo=1,this.scheduleOffline({id:t.id}).then(function(t){e.$message.success(t.msg),e._getScheduleList("false")}).catch(function(t){e.$message.error(t.msg||"")})},_getReceiver:function(t){var e=this;return new Promise(function(a,n){e.getReceiver({processDefinitionId:t}).then(function(t){a({receivers:t.receivers&&t.receivers.split(",")||[],receiversCc:t.receiversCc&&t.receiversCc.split(",")||[]})})})},_editTiming:function(t){var e=this,a=this;this._getReceiver(t.processDefinitionId).then(function(n){var i=e.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(e){return e(r.default,{on:{onUpdate:function(){a.pageNo=1,a._getScheduleList("false"),i.remove()},close:function(){i.remove()}},props:{item:t,receiversD:n.receivers,receiversCcD:n.receiversCc}})}})})}}),watch:{},created:function(){this._getScheduleList()},mounted:function(){},components:{mSpin:s.default,mNoData:o.default}}},1115:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(1029),i=a.n(n);for(var s in n)"default"!==s&&function(t){a.d(e,t,function(){return n[t]})}(s);var r=a(1118);var o=function(t){a(1116)},l=a(27)(i.a,r.a,!1,o,null,null);e.default=l.exports},1116:function(t,e,a){var n=a(1117);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a(35)("3f413511",n,!0,{})},1117:function(t,e,a){(t.exports=a(34)(!1)).push([t.i,"",""])},1118:function(t,e,a){"use strict";var n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"conditions-box"}),t._v(" "),t.isLoading?t._e():a("div",{staticClass:"list-model"},[t.list.length?[a("div",{staticClass:"table-box"},[a("table",[a("tr",[a("th",[a("span",[t._v(t._s(t.$t("编号")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("流程名称")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("开始时间")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("结束时间")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("crontab")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("失败策略")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("状态")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("创建时间")))])]),t._v(" "),a("th",[a("span",[t._v(t._s(t.$t("更新时间")))])]),t._v(" "),a("th",{attrs:{width:"80"}},[a("span",[t._v(t._s(t.$t("操作")))])])]),t._v(" "),t._l(t.list,function(e,n){return a("tr",{key:e.id},[a("td",[a("span",[t._v(t._s(parseInt(1===t.pageNo?n+1:n+1+t.pageSize*(t.pageNo-1))))])]),t._v(" "),a("td",[a("span",[a("a",{attrs:{href:"javascript:"}},[t._v(t._s(e.processDefinit
|
||
|
//# sourceMappingURL=6.936a905.js.map
|