分布式调度框架。
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
24 KiB

webpackJsonp([24],{1017:function(t,e,n){"use strict";e.__esModule=!0;var s=n(123),i=l(n(650)),r=l(n(670)),a=l(n(1092)),o=l(n(1094)),c=l(n(646)),u=l(n(663));function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"projects-list",data:function(){return{pageSize:10,pageNo:1,total:null,searchVal:"",projectsList:[],isLoading:!0}},props:{},methods:Object.assign({},(0,s.mapActions)("projects",["getProjectsList"]),{_onConditions:function(t){this.searchVal=t.searchVal,this.pageNo=1,this._getProjectsList()},_create:function(t){var e=this,n=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(s){return s(o.default,{on:{onUpdate:function(){e._getProjectsList(),n.remove()}},props:{item:t}})}})},_onUpdate:function(){this._getProjectsList()},_page:function(t){this.pageNo=t,this._getProjectsList()},_getProjectsList:function(t){var e=this;this.isLoading=!t,this.getProjectsList({pageSize:this.pageSize,pageNo:this.pageNo,searchVal:this.searchVal}).then(function(t){e.projectsList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{},created:function(){},mounted:function(){this._getProjectsList()},components:{mListConstruction:i.default,mSpin:c.default,mConditions:r.default,mList:a.default,mCreateProject:o.default,mNoData:u.default}}},1018:function(t,e,n){"use strict";e.__esModule=!0,n(668);var s,i=n(123),r=n(226),a=(s=r)&&s.__esModule?s:{default:s},o=n(125);e.default={name:"projects-list",data:function(){return{list:[]}},props:{projectsList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,i.mapActions)("projects",["deleteProjects"]),(0,i.mapMutations)("dag",["setProjectName"]),{_switchProjects:function(t){this.setProjectName(t.name),a.default.setItem("projectName",""+t.name),a.default.setItem("projectId",""+t.id),this.$router.push({path:"/projects/index"})},_closeDelete:function(t){this.$refs["poptip-"+t][0].doClose()},_delete:function(t,e){var n=this;this.deleteProjects({projectId:t.id}).then(function(t){n.$refs["poptip-"+e][0].doClose(),n.list.splice(e,1),n.$message.success(t.msg)}).catch(function(t){n.$refs["poptip-"+e][0].doClose(),n.$message.error(t.msg||"")})},_edit:function(t){(0,o.findComponentDownward)(this.$root,"projects-list")._create(t)}}),watch:{projectsList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){},mounted:function(){this.list=this.projectsList},components:{}}},1019:function(t,e,n){"use strict";e.__esModule=!0;var s=c(n(28)),i=c(n(36)),r=c(n(91)),a=c(n(223)),o=c(n(224));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"projects-create",data:function(){return{store:r.default,desc:"",projectName:""}},props:{item:Object},methods:{_ok:function(){var t=this;if(this._verification()){var e={projectName:s.default.trim(this.projectName),desc:s.default.trim(this.desc)};this.item&&(e.projectId=this.item.id),this.$refs.popup.spinnerLoading=!0,this.store.dispatch("projects/"+(this.item?"updateProjects":"createProjects"),e).then(function(e){t.$emit("onUpdate"),t.$message.success(e.msg),setTimeout(function(){t.$refs.popup.spinnerLoading=!1},800)}).catch(function(e){t.$message.error(e.msg||""),t.$refs.popup.spinnerLoading=!1})}},_verification:function(){return!!this.projectName||(this.$message.warning(""+i.default.$t("请输入名称")),!1)}},watch:{},created:function(){this.item&&(this.projectName=this.item.name,this.desc=this.item.desc)},mounted:function(){},components:{mPopup:a.default,mListBoxF:o.default}}},1092:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1018),i=n.n(s);for(var r in s)"default"!==r&&function(t){n.d(e,t,function(){return s[t]})}(r);var a=n(1093),o=n(27)(i.a,a.a,!1,null,null,null);e.default=o.exports},1093:function(t,e,n){"use strict";var s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list-model"},[n("div",{staticClass:"table-box"},[n("table",[n("tr",[n("th",[n("span",[t._v(t._s(t.$t("编号")))])]),t._v(" "),n("th",[n("span",[t._v
//# sourceMappingURL=24.daa7654.js.map