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
51 KiB
2 lines
51 KiB
6 years ago
|
webpackJsonp([16],{1078:function(t,e,r){"use strict";e.__esModule=!0;var n=p(r(30)),o=r(123),i=p(r(1157)),a=p(r(701)),s=p(r(1159)),u=p(r(696)),c=p(r(848)),f=p(r(750)),l=p(r(697));function p(t){return t&&t.__esModule?t:{default:t}}e.default={name:"projects-list",data:function(){return{total:null,projectsList:[],isLoading:!0,searchParams:{pageSize:10,pageNo:1,searchVal:""}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("projects",["getProjectsList"]),{_onConditions:function(t){this.searchParams=n.default.assign(this.searchParams,t),this.searchParams.pageNo=1},_page:function(t){this.searchParams.pageNo=t},_create:function(t){var e=this,r=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(n){return n(s.default,{on:{onUpdate:function(){e._debounceGET(),r.remove()}},props:{item:t}})}})},_onUpdate:function(){this._debounceGET()},_getList:function(t){var e=this;this.isLoading=!t,this.getProjectsList(this.searchParams).then(function(t){e.projectsList=[],e.projectsList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{$route:function(t){this.searchParams.pageNo=n.default.isEmpty(t.query)?1:t.query.pageNo}},created:function(){},mounted:function(){},components:{mListConstruction:l.default,mSpin:a.default,mConditions:f.default,mList:i.default,mCreateProject:s.default,mNoData:u.default}}},1079:function(t,e,r){"use strict";e.__esModule=!0;var n,o=r(123),i=r(227),a=(n=i)&&n.__esModule?n:{default:n},s=r(126);e.default={name:"projects-list",data:function(){return{list:[]}},props:{projectsList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,o.mapActions)("projects",["deleteProjects"]),(0,o.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 r=this;this.deleteProjects({projectId:t.id}).then(function(t){r.$refs["poptip-"+e][0].doClose(),r.list.splice(e,1),r.$message.success(t.msg)}).catch(function(t){r.$refs["poptip-"+e][0].doClose(),r.$message.error(t.msg||"")})},_edit:function(t){(0,s.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:{}}},1080:function(t,e,r){"use strict";e.__esModule=!0;var n=u(r(30)),o=u(r(36)),i=u(r(92)),a=u(r(223)),s=u(r(224));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"projects-create",data:function(){return{store:i.default,desc:"",projectName:""}},props:{item:Object},methods:{_ok:function(){var t=this;if(this._verification()){var e={projectName:n.default.trim(this.projectName),desc:n.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(""+o.default.$t("Please enter name")),!1)}},watch:{},created:function(){this.item&&(this.projectName=this.item.name,this.desc=this.item.desc)},mounted:function(){},components:{mPopup:a.default,mListBoxF:s.default}}},1157:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1079),o=r.n(n);for(var i in n)"default"!==i&&function(t){r.d(e,t,function(){return n[t]})}(i);var a=r(1158),s=r(29)(o.a,a.a,!1,null,null,null);e.default=s.exports},1158:function(t,e,r){"use strict";var n={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"list-model"},[r("div",{staticClass:"table-box"},[r("table",[r("tr",[r("th"
|
||
|
//# sourceMappingURL=16.648c64b.js.map
|