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
57 KiB
2 lines
57 KiB
6 years ago
|
webpackJsonp([9],{1016:function(t,e,r){"use strict";e.__esModule=!0;var n=a(r(30)),o=a(r(223)),i=a(r(224));function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"transfer",data:function(){return{sourceList:this.sourceListPrs,targetList:this.targetListPrs,cacheSourceList:this.sourceListPrs,cacheTargetList:this.targetListPrs,searchSourceVal:"",searchTargetVal:""}},props:{sourceListPrs:Array,targetListPrs:Array,type:Object},methods:{_ok:function(){var t=this;this.$refs.popup.spinnerLoading=!0,setTimeout(function(){t.$refs.popup.spinnerLoading=!1,t.$emit("onUpdate",n.default.map(t.targetList,function(t){return t.id}).join(","))},800)},_sourceQuery:function(){var t=this;this.sourceList=this.sourceList.filter(function(e){return e.name.indexOf(t.searchSourceVal)>-1})},_targetQuery:function(){var t=this;this.targetList=this.targetList.filter(function(e){return e.name.indexOf(t.searchTargetVal)>-1})},_ckSource:function(t){this.targetList=this.cacheTargetList,this.targetList.unshift(t),this.searchTargetVal="";var e=n.default.findIndex(this.sourceList,function(e){return t.id===e.id});this.sourceList.splice(e,1);var r=n.default.findIndex(this.cacheSourceList,function(e){return t.id===e.id});-1!==r&&this.cacheSourceList.splice(r,1)},_ckTarget:function(t){this.sourceList=this.cacheSourceList,this.sourceList.unshift(t),this.searchSourceVal="";var e=n.default.findIndex(this.targetList,function(e){return t.id===e.id});this.targetList.splice(e,1);var r=n.default.findIndex(this.cacheTargetList,function(e){return t.id===e.id});-1!==r&&this.cacheTargetList.splice(r,1)}},watch:{searchSourceVal:function(t){t?this._sourceQuery():this.sourceList=n.default.cloneDeep(this.cacheSourceList)},searchTargetVal:function(t){t?this._targetQuery():this.targetList=n.default.cloneDeep(this.cacheTargetList)}},components:{mPopup:o.default,mListBoxF:i.default}}},1058:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1016),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(1061);var s=function(t){r(1059)},u=r(29)(o.a,a.a,!1,s,null,null);e.default=u.exports},1059:function(t,e,r){var n=r(1060);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);r(35)("3fb14ac5",n,!0,{})},1060:function(t,e,r){(t.exports=r(34)(!1)).push([t.i,".transfer-model{padding:0 20px}.transfer-model .select-list-box{width:220px;float:left;border:1px solid #dcdee2;border-radius:3px}.transfer-model .select-list-box .tf-header{height:36px;line-height:36px;background:#f9fafc;position:relative;border-bottom:1px solid #dcdee2;margin-bottom:8px}.transfer-model .select-list-box .tf-header .title{position:absolute;left:8px;top:0}.transfer-model .select-list-box .tf-header .count{position:absolute;right:8px;top:0;font-size:12px}.transfer-model .select-list-box .tf-search{background:#fff;padding:8px}.transfer-model .select-list-box .tf-search .fa-search{color:#999}.transfer-model .select-list-box .tf-content{height:280px}.transfer-model .select-list-box .tf-content ul li{height:28px;line-height:28px;cursor:pointer}.transfer-model .select-list-box .tf-content ul li span{padding-left:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:210px;display:inline-block}.transfer-model .select-list-box .tf-content ul li:hover{background:#f6faff}.transfer-model .select-oper-box{width:20px;float:left}",""])},1061:function(t,e,r){"use strict";var n={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("m-popup",{ref:"popup",attrs:{"ok-text":t.$t("Submit"),nameText:t.type.name+t.$t("Authorize")},on:{ok:t._ok}},[r("template",{slot:"content"},[r("div",{staticClass:"clearfix transfer-model"},[r("div",{staticClass:"select-list-box"},[r("div",{staticClass:"tf-header"},[r("div",{staticClass:"title"},[t._v(t._s(t.type.name)+t._s(t.$t("List")))]),t._v(" "),r("div",{staticClass:"count"},[t._v("("+t._s(t.cacheSourceList.length)+")")])]),t._v(" "),r("div",{staticClass:"scrollbar tf-content"},[r("ul",t._l(t.sourceList,function(e,n){return r("li",{key:e.id,on:{click:function(r){retu
|
||
|
//# sourceMappingURL=9.a5a7679.js.map
|