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([15],{1133:function(t,e,n){"use strict";e.__esModule=!0;var r=p(n(30)),o=n(123),i=p(n(1266)),a=p(n(701)),u=p(n(1268)),s=p(n(696)),c=p(n(848)),f=p(n(750)),l=p(n(697));function p(t){return t&&t.__esModule?t:{default:t}}e.default={name:"queue-index",data:function(){return{total:null,isLoading:!0,queueList:[],searchParams:{pageSize:10,pageNo:1,searchVal:""}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("security",["getQueueListP"]),{_onConditions:function(t){this.searchParams=r.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,n=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(r){return r(u.default,{on:{onUpdate:function(){e._debounceGET("false"),n.remove()},close:function(){n.remove()}},props:{item:t}})}})},_getList:function(t){var e=this;this.isLoading=!t,this.getQueueListP(this.searchParams).then(function(t){e.queueList=[],e.queueList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{$route:function(t){this.searchParams.pageNo=r.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}}},1134:function(t,e,n){"use strict";e.__esModule=!0;var r=n(123);e.default={name:"tenement-list",data:function(){return{list:[]}},props:{queueList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,r.mapActions)("security",["deleteQueue"]),{_closeDelete:function(t){this.$refs["poptip-"+t][0].doClose()},_delete:function(t,e){var n=this;this.deleteQueue({id: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){this.$emit("on-edit",t)}}),watch:{queueList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){this.list=this.queueList},mounted:function(){},components:{}}},1135:function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(30)),o=u(n(92)),i=u(n(223)),a=u(n(224));function u(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-tenement",data:function(){return{store:o.default,queue:"",queueName:""}},props:{item:Object},methods:{_ok:function(){var t=this;if(this._verification()){var e={queue:r.default.trim(this.queue),queueName:r.default.trim(this.queueName)};this.item&&(e.id=this.item.id);var n=function(e){t.$emit("onUpdate"),t.$message.success(e.msg),setTimeout(function(){t.$refs.popup.spinnerLoading=!1},800)},o=function(e){t.$message.error(e.msg||""),t.$refs.popup.spinnerLoading=!1};this.item?(this.$refs.popup.spinnerLoading=!0,this.store.dispatch("security/updateQueueQ",e).then(function(t){n(t)}).catch(function(t){o(t)})):this._verifyName(e).then(function(){t.$refs.popup.spinnerLoading=!0,t.store.dispatch("security/createQueueQ",e).then(function(t){n(t)}).catch(function(t){o(t)})}).catch(function(e){t.$message.error(e.msg||"")})}},_verification:function(){return this.queueName?!!this.queue||(this.$message.warning("请输入队列值"),!1):(this.$message.warning("Please enter name"),!1)},_verifyName:function(t){var e=this;return new Promise(function(n,r){e.store.dispatch("security/verifyQueueQ",t).then(function(t){n()}).catch(function(t){r(t)})})}},watch:{},created:function(){this.item&&(this.queueName=this.item.queueName,this.queue=this.item.queue)},mounted:function(){},components:{mPopup:i.default,mListBoxF:a.default}}},1266:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1134),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,function(){return r[t]})}(i);var a=n(1267),u=n(29)(o.a,a.a,!1,null,null,null);e.default=u.exports},1267:function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list-model
|
||
|
//# sourceMappingURL=15.9119d76.js.map
|