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([12],{1136:function(t,e,r){"use strict";e.__esModule=!0;var n=p(r(30)),o=r(123),i=p(r(1271)),a=p(r(701)),u=p(r(1273)),s=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:"worker-groups-index",data:function(){return{total:null,isLoading:!1,workerGroupList:[],searchParams:{pageSize:10,pageNo:1,searchVal:""}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("security",["getWorkerGroups"]),{_onConditions:function(t){this.searchParams=n.default.assign(this.searchParams,t),this.searchParams.pageNo=1},_page:function(t){this.searchParams.pageNo=t},_onEdit:function(t){this._create(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(u.default,{on:{onUpdate:function(){e._debounceGET("false"),r.remove()},close:function(){r.remove()}},props:{item:t}})}})},_getList:function(t){var e=this;this.isLoading=!t,this.getWorkerGroups(this.searchParams).then(function(t){e.workerGroupList=[],e.workerGroupList=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:{mList:i.default,mListConstruction:l.default,mConditions:f.default,mSpin:a.default,mNoData:s.default}}},1137:function(t,e,r){"use strict";e.__esModule=!0;var n=r(123);e.default={name:"user-list",data:function(){return{list:[]}},props:{workerGroupList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,n.mapActions)("security",["deleteWorkerGroups"]),{_closeDelete:function(t){this.$refs["poptip-delete-"+t][0].doClose()},_delete:function(t,e){var r=this;this.deleteWorkerGroups({id:t.id}).then(function(t){r.$refs["poptip-delete-"+e][0].doClose(),r.list.splice(e,1),r.$message.success(t.msg)}).catch(function(t){r.$refs["poptip-delete-"+e][0].doClose(),r.$message.error(t.msg||"")})},_edit:function(t){this.$emit("on-edit",t)}}),watch:{workerGroupList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){this.list=this.workerGroupList},mounted:function(){},components:{}}},1138:function(t,e,r){"use strict";e.__esModule=!0;var n=u(r(36)),o=u(r(92)),i=u(r(223)),a=u(r(224));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-warning",data:function(){return{store:o.default,id:0,name:"",ipList:""}},props:{item:Object},methods:{_ok:function(){this._verification()&&this._submit()},_verification:function(){return this.name?!!this.ipList||(this.$message.warning("IP地址不能为空"),!1):(this.$message.warning(""+n.default.$t("Please enter group name")),!1)},_submit:function(){var t=this,e={id:this.id,name:this.name,ipList:this.ipList};this.item&&(e.id=this.item.id),this.$refs.popup.spinnerLoading=!0,this.store.dispatch("security/saveWorkerGroups",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})}},watch:{},created:function(){this.item&&(this.id=this.item.id,this.name=this.item.name,this.ipList=this.item.ipList)},mounted:function(){},components:{mPopup:i.default,mListBoxF:a.default}}},1271:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1137),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(1272),u=r(29)(o.a,a.a,!1,null,null,null);e.default=u.exports},1272: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",[r("span",[t._v(t._s(t.$t("#")))])]),t._v(" "),r("th",[r("span",[t._v(t._s(t.$t("Group")))])]),t._v(" "),t._m(0),t._v(" "),r("th",[r("span",[t._v(t._s(t.$t("Create Time")))])]),t._v(" "),r("th",[r("span",[t._v(t._s(t.$t("Update Time")))])]),t._v(" ")
|
||
|
//# sourceMappingURL=12.b6fb265.js.map
|