Commit ee732809 by xiaohai

/

parent 14eb946d
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vue-gic-member-group",[],t):"object"==typeof exports?exports["vue-gic-member-group"]=t():e["vue-gic-member-group"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=1)}([function(e,t,r){"use strict";t.a={name:"vue-gic-member-group",props:{defaltSelected:{type:Array,default:function(){return[]}},height:{type:Number,default:543},projectName:{type:String,default:"memberTag"}},data:function(){return{tableData:[],pageSize:20,currentPage:1,dataSearch:"",baseUrl:"",dataSearchSelected:"",selectedData:[],selectionToTransfer:[],selectionToRemove:[],countOfCoverTotal:0,totalPage:1}},directives:{loadmore:{bind:function(e,t){e.querySelector(".el-table__body-wrapper").addEventListener("scroll",function(){var e=1,r=this.scrollHeight-this.scrollTop===this.clientHeight&&this.scrollTop>e;this.scrollTop>e&&(e=this.scrollTop),this.scrollTop<e&&(e=this.scrollTop),r&&t.value()})}}},methods:{loadmore:function(){this.currentPage<this.totalPage&&(this.currentPage+=1,this.getGroupList())},getGroupList:function(){var e=this;e.axios.get(e.baseUrl+"/gic-member-tag-web/member-tag-group/findList.json?requestProject="+e.projectName+"&pageSize="+e.pageSize+"&pageNum="+e.currentPage+"&groupName="+e.dataSearch+"&effectiveStatus=1").then(function(t){if(1==t.data.errorCode)return e.tableData=e.tableData.concat(t.data.result.result),void(e.totalPage=t.data.result.totalPage);e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},searchEnterFun:function(){this.tableData=[],this.getGroupList()},clearSearch:function(e){this[e]="","dataSearch"==e&&this.getGroupList()},handleSelectionChange:function(e){this.selectionToTransfer=e},selectToTransfer:function(){if(this.selectionToTransfer.length<1)return this.$message.success({duration:1e3,message:"请选择分组!"}),!1;this.selectedData=this.uniqueByGroupId(this.selectedData.concat(this.selectionToTransfer)),this.getMemberCountByGroups(),this.$emit("handleDataTransferred",this.selectedData,this.selectionToTransfer),this.$refs.originTable.clearSelection()},uniqueByGroupId:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"memberTagGroupId",r=[e[0]],n=1;n<e.length;n++)if(void 0===t)-1==r.indexOf(e[n])&&r.push(e[n]);else{e:for(var o=!1,a=0;a<r.length;a++)if(e[n][t]==r[a][t]){o=!0;break e}o||r.push(e[n])}return r},handleSelectedSelectionChange:function(e){this.selectionToRemove=e},selectToRemove:function(){if(this.selectionToRemove.length<1)return this.$message.success({duration:1e3,message:"请选择分组!"}),!1;var e=this.selectedData,t=this.selectionToRemove,r=new Set(e),n=new Set(t);this.selectedData=e.concat(t).filter(function(e){return!r.has(e)||!n.has(e)}),this.getMemberCountByGroups(),this.$emit("handleDataLeft",this.selectedData,this.selectionToRemove),this.$refs.selectedTable.clearSelection()},getMemberCountByGroups:function(){var e=this,t=e.selectedData;if(t.length<1)return e.countOfCoverTotal=0,!1;var r=[];t.forEach(function(e){r.push(e.memberTagGroupId)});var n=r.join(",");e.axios.get(e.baseUrl+"/gic-member-tag-web/member-tag-member/findMemberListByGroupIds.json?requestProject="+e.projectName+"&memberTagGroupIds="+n+"&pageName=memberSign").then(function(t){1==t.data.errorCode&&(e.countOfCoverTotal=t.data.result.page.totalCount)})}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},formatUpdateFrequency:function(e,t){switch(e){case 1:return"每天一次";case 2:var r=["一","二","三","四","五","六","日"];return t?"每周"+r[t-1]:"每周一次";case 3:return t?"每月"+t+"号":"每月一次";default:return"--"}}},beforeMount:function(){var e=this,t=window.location.origin;"-1"!=t.indexOf("localhost")?e.baseUrl="http://gicdev.demogic.com":e.baseUrl=t},mounted:function(){this.getGroupList(),this.defaltSelected.length>0&&(this.selectedData=this.uniqueByGroupId(this.selectedData.concat(this.defaltSelected))),this.getMemberCountByGroups()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o={install:function(e,t){e.component(n.a.name,n.a)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),t.default=o},function(e,t,r){"use strict";function n(e){r(3)}var o=r(0),a=r(9),s=r(8),i=n,l=s(o.a,a.a,!1,i,null,null);t.a=l.exports},function(e,t,r){var n=r(4);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);r(6)("4b6e25d6",n,!0,{})},function(e,t,r){t=e.exports=r(5)(!1),t.push([e.i,".group-set-transfer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;background:#fff;padding:30px;box-sizing:border-box}.group-set-transfer .flex-1{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.group-set-transfer .w_100{width:100%}.group-set-transfer .m-b-26{margin-block-start:26px}.group-set-transfer .input-div{padding:20px 14px}.group-set-transfer>.table-container{height:100%;border:1px solid #dcdfe6;border-radius:4px}.group-set-transfer>.table-container .cover-count{height:42px;line-height:42px;text-align:center;border:none;color:#7e8c8d;font-size:14px}.group-set-transfer>.table-container .cover-count .count{color:#606266;margin:0 5px}.group-set-transfer .btn-box{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;width:80px;text-align:center}.group-set-transfer .btn-box .icon-container .transfer-icon{display:inline-block;width:43px;height:43px;line-height:44px;border-radius:100%;text-align:center;border:1px solid #dcdfe6;color:#dcdfe6;font-size:20px;cursor:pointer}.group-set-transfer .btn-box .icon-container .transfer-icon:hover{border:none;background:#409eff;color:#fff}.group-set-transfer .selected-list{width:356px;height:100%}",""])},function(e,t){function r(e,t){var r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var a=n(o);return[r].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([a]).join("\n")}return[r].join("\n")}function n(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(n[a]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),t.push(s))}},t}},function(e,t,r){function n(e){for(var t=0;t<e.length;t++){var r=e[t],n=u[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(a(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{for(var s=[],o=0;o<r.parts.length;o++)s.push(a(r.parts[o]));u[r.id]={id:r.id,refs:1,parts:s}}}}function o(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function a(e){var t,r,n=document.querySelector("style["+v+'~="'+e.id+'"]');if(n){if(h)return m;n.parentNode.removeChild(n)}if(b){var a=p++;n=f||(f=o()),t=s.bind(null,n,a,!1),r=s.bind(null,n,a,!0)}else n=o(),t=i.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}function s(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var a=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function i(e,t){var r=t.css,n=t.media,o=t.sourceMap;if(n&&e.setAttribute("media",n),g.ssrId&&e.setAttribute(v,t.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=r(7),u={},d=l&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,m=function(){},g=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,r,o){h=r,g=o||{};var a=c(e,t);return n(a),function(t){for(var r=[],o=0;o<a.length;o++){var s=a[o],i=u[s.id];i.refs--,r.push(i)}t?(a=c(e,t),n(a)):a=[];for(var o=0;o<r.length;o++){var i=r[o];if(0===i.refs){for(var l=0;l<i.parts.length;l++)i.parts[l]();delete u[i.id]}}}};var _=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var r=[],n={},o=0;o<t.length;o++){var a=t[o],s=a[0],i=a[1],l=a[2],c=a[3],u={id:e+":"+o,css:i,media:l,sourceMap:c};n[s]?n[s].parts.push(u):r.push(n[s]={id:s,parts:[u]})}return r}},function(e,t){e.exports=function(e,t,r,n,o,a){var s,i=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,i=e.default);var c="function"==typeof i?i.options:i;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId=o);var u;if(a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):n&&(u=n),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:i,options:c}}},function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"group-set-transfer"},[r("div",{staticClass:"flex-1 table-container"},[r("div",{staticClass:"input-div"},[r("el-input",{staticClass:"w_100",attrs:{placeholder:"请输入关键字搜索人群","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){e.clearSearch("dataSearch")}},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchEnterFun(t):null}},model:{value:e.dataSearch,callback:function(t){e.dataSearch=t},expression:"dataSearch"}})],1),e._v(" "),r("el-table",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.loadmore,expression:"loadmore"}],ref:"originTable",attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.height-72},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"分组名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover"}},[r("span",[e._v(e._s(t.row.describle))]),e._v(" "),r("a",{staticClass:"pointer",attrs:{slot:"reference",href:"/memberGroupDetail?memberTagGroupId="+t.row.memberTagGroupId},slot:"reference"},[e._v(e._s(t.row.groupName))])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"是否实时",width:"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.isRealTime?"实时":"非实时")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"最近更新时间",width:"200px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.latestUpdateTime))+"\n "),r("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.latestUpdateTime)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"更新频率",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.isRealTime?[e._v("\n "+e._s(e._f("formatUpdateFrequency")(t.row.updateType,t.row.updateDay))+"\n ")]:[e._v("\n --\n ")]]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"state",label:"状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.effectiveStatus?"有效":"失效")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"recentUpdateDate",label:"到期时间",width:"200px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.effectiveDate))+"\n "),r("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.effectiveDate)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("router-link",{staticClass:"edit-btn el-button--text p-r-20",attrs:{to:{path:"/memberGroupDetail",query:{memberTagGroupId:t.row.memberTagGroupId}}}},[e._v("详情")])]}}])})],1)],1),e._v(" "),r("div",{staticClass:"btn-box",style:"height:"+e.height+"px"},[r("div",{staticClass:"icon-container"},[r("span",{staticClass:"transfer-icon el-icon-arrow-right m-b-26",on:{click:e.selectToTransfer}}),e._v(" "),r("span",{staticClass:"transfer-icon el-icon-arrow-left",on:{click:e.selectToRemove}})])]),e._v(" "),r("div",{staticClass:"selected-list table-container"},[r("div",{staticClass:"input-div"},[r("el-input",{staticClass:"w_100",attrs:{placeholder:"请输入关键字搜索人群","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){e.clearSearch("dataSearchSelected")}},model:{value:e.dataSearchSelected,callback:function(t){e.dataSearchSelected=t},expression:"dataSearchSelected"}})],1),e._v(" "),r("el-table",{ref:"selectedTable",attrs:{data:e.selectedData.filter(function(t){return!e.dataSearchSelected||t.groupName.toLowerCase().includes(e.dataSearchSelected.toLowerCase())}),"tooltip-effect":"dark",height:e.height-114},on:{"selection-change":e.handleSelectedSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"分组名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[r("span",[e._v(e._s(t.row.describle))]),e._v(" "),r("a",{staticClass:"pointer",attrs:{slot:"reference",href:"/memberGroupDetail?memberTagGroupId="+t.row.memberTagGroupId},slot:"reference"},[e._v(e._s(t.row.groupName))])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"是否实时",width:"116px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.isRealTime?"实时":"非实时")+"\n ")]}}])})],1),e._v(" "),r("p",{staticClass:"cover-count"},[e._v("已选中"),r("span",{staticClass:"count"},[e._v(e._s(e.countOfCoverTotal))]),e._v("人")])],1)])},o=[],a={render:n,staticRenderFns:o};t.a=a}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vue-gic-member-group",[],t):"object"==typeof exports?exports["vue-gic-member-group"]=t():e["vue-gic-member-group"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=1)}([function(e,t,r){"use strict";t.a={name:"vue-gic-member-group",props:{defaltSelected:{type:Array,default:function(){return[]}},height:{type:Number,default:543},projectName:{type:String,default:"memberTag"}},data:function(){return{tableData:[],pageSize:20,currentPage:1,dataSearch:"",baseUrl:"",dataSearchSelected:"",selectedData:[],selectionToTransfer:[],selectionToRemove:[],countOfCoverTotal:0,totalPage:1}},directives:{loadmore:{bind:function(e,t){e.querySelector(".el-table__body-wrapper").addEventListener("scroll",function(){var e=1,r=this.scrollHeight-this.scrollTop===this.clientHeight&&this.scrollTop>e;this.scrollTop>e&&(e=this.scrollTop),this.scrollTop<e&&(e=this.scrollTop),r&&t.value()})}}},methods:{loadmore:function(){this.currentPage<this.totalPage&&(this.currentPage+=1,this.getGroupList())},getGroupList:function(){var e=this;e.axios.get(e.baseUrl+"/gic-member-tag-web/member-tag-group/findList.json?requestProject="+e.projectName+"&pageSize="+e.pageSize+"&pageNum="+e.currentPage+"&groupName="+e.dataSearch+"&effectiveStatus=1").then(function(t){if(1==t.data.errorCode)return e.tableData=e.tableData.concat(t.data.result.result),void(e.totalPage=t.data.result.totalPage);e.$message.error({duration:1e3,message:t.data.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},searchEnterFun:function(){this.tableData=[],this.getGroupList()},clearSearch:function(e){this[e]="","dataSearch"==e&&this.getGroupList()},handleSelectionChange:function(e){this.selectionToTransfer=e},selectToTransfer:function(){if(this.selectionToTransfer.length<1)return this.$message.error({duration:1e3,message:"请选择分组!"}),!1;this.selectedData=this.uniqueByGroupId(this.selectedData.concat(this.selectionToTransfer)),this.getMemberCountByGroups(),this.$emit("handleDataTransferred",this.selectedData,this.selectionToTransfer),this.$refs.originTable.clearSelection()},uniqueByGroupId:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"memberTagGroupId",r=[e[0]],n=1;n<e.length;n++)if(void 0===t)-1==r.indexOf(e[n])&&r.push(e[n]);else{e:for(var o=!1,a=0;a<r.length;a++)if(e[n][t]==r[a][t]){o=!0;break e}o||r.push(e[n])}return r},handleSelectedSelectionChange:function(e){this.selectionToRemove=e},selectToRemove:function(){if(this.selectionToRemove.length<1)return this.$message.error({duration:1e3,message:"请选择分组!"}),!1;var e=this.selectedData,t=this.selectionToRemove,r=new Set(e),n=new Set(t);this.selectedData=e.concat(t).filter(function(e){return!r.has(e)||!n.has(e)}),this.getMemberCountByGroups(),this.$emit("handleDataLeft",this.selectedData,this.selectionToRemove),this.$refs.selectedTable.clearSelection()},getMemberCountByGroups:function(){var e=this,t=e.selectedData;if(t.length<1)return e.countOfCoverTotal=0,!1;var r=[];t.forEach(function(e){r.push(e.memberTagGroupId)});var n=r.join(",");e.axios.get(e.baseUrl+"/gic-member-tag-web/member-tag-member/findMemberListByGroupIds.json?requestProject="+e.projectName+"&memberTagGroupIds="+n+"&pageName=memberSign").then(function(t){1==t.data.errorCode&&(e.countOfCoverTotal=t.data.result.page.totalCount)})}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},formatUpdateFrequency:function(e,t){switch(e){case 1:return"每天一次";case 2:var r=["一","二","三","四","五","六","日"];return t?"每周"+r[t-1]:"每周一次";case 3:return t?"每月"+t+"号":"每月一次";default:return"--"}}},beforeMount:function(){var e=this,t=window.location.origin;"-1"!=t.indexOf("localhost")?e.baseUrl="http://gicdev.demogic.com":e.baseUrl=t},mounted:function(){this.getGroupList(),this.defaltSelected.length>0&&(this.selectedData=this.uniqueByGroupId(this.selectedData.concat(this.defaltSelected))),this.getMemberCountByGroups()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),o={install:function(e,t){e.component(n.a.name,n.a)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),t.default=o},function(e,t,r){"use strict";function n(e){r(3)}var o=r(0),a=r(9),s=r(8),i=n,l=s(o.a,a.a,!1,i,null,null);t.a=l.exports},function(e,t,r){var n=r(4);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);r(6)("53652ac0",n,!0,{})},function(e,t,r){t=e.exports=r(5)(!1),t.push([e.i,".group-set-transfer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;background:#fff;padding:30px;box-sizing:border-box}.group-set-transfer .flex-1{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.group-set-transfer .w_100{width:100%}.group-set-transfer .m-b-26{margin-block-start:26px}.group-set-transfer .input-div{padding:20px 14px}.group-set-transfer>.table-container{height:100%;border:1px solid #dcdfe6;border-radius:4px}.group-set-transfer>.table-container .cover-count{height:42px;line-height:42px;text-align:center;border:none;color:#7e8c8d;font-size:14px}.group-set-transfer>.table-container .cover-count .count{color:#606266;margin:0 5px}.group-set-transfer .btn-box{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;width:80px;text-align:center}.group-set-transfer .btn-box .icon-container .transfer-icon{display:inline-block;width:43px;height:43px;line-height:44px;border-radius:100%;text-align:center;border:1px solid #dcdfe6;color:#dcdfe6;font-size:20px;cursor:pointer}.group-set-transfer .btn-box .icon-container .transfer-icon:hover{border:none;background:#409eff;color:#fff}.group-set-transfer .selected-list{width:356px;height:100%}",""])},function(e,t){function r(e,t){var r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var a=n(o);return[r].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([a]).join("\n")}return[r].join("\n")}function n(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(n[a]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),t.push(s))}},t}},function(e,t,r){function n(e){for(var t=0;t<e.length;t++){var r=e[t],n=u[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(a(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{for(var s=[],o=0;o<r.parts.length;o++)s.push(a(r.parts[o]));u[r.id]={id:r.id,refs:1,parts:s}}}}function o(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function a(e){var t,r,n=document.querySelector("style["+v+'~="'+e.id+'"]');if(n){if(h)return m;n.parentNode.removeChild(n)}if(b){var a=p++;n=f||(f=o()),t=s.bind(null,n,a,!1),r=s.bind(null,n,a,!0)}else n=o(),t=i.bind(null,n),r=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else r()}}function s(e,t,r,n){var o=r?"":n.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var a=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function i(e,t){var r=t.css,n=t.media,o=t.sourceMap;if(n&&e.setAttribute("media",n),g.ssrId&&e.setAttribute(v,t.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=r(7),u={},d=l&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,m=function(){},g=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,r,o){h=r,g=o||{};var a=c(e,t);return n(a),function(t){for(var r=[],o=0;o<a.length;o++){var s=a[o],i=u[s.id];i.refs--,r.push(i)}t?(a=c(e,t),n(a)):a=[];for(var o=0;o<r.length;o++){var i=r[o];if(0===i.refs){for(var l=0;l<i.parts.length;l++)i.parts[l]();delete u[i.id]}}}};var _=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var r=[],n={},o=0;o<t.length;o++){var a=t[o],s=a[0],i=a[1],l=a[2],c=a[3],u={id:e+":"+o,css:i,media:l,sourceMap:c};n[s]?n[s].parts.push(u):r.push(n[s]={id:s,parts:[u]})}return r}},function(e,t){e.exports=function(e,t,r,n,o,a){var s,i=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,i=e.default);var c="function"==typeof i?i.options:i;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId=o);var u;if(a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=u):n&&(u=n),u){var d=c.functional,f=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:i,options:c}}},function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"group-set-transfer"},[r("div",{staticClass:"flex-1 table-container"},[r("div",{staticClass:"input-div"},[r("el-input",{staticClass:"w_100",attrs:{placeholder:"请输入关键字搜索人群","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){e.clearSearch("dataSearch")}},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchEnterFun(t):null}},model:{value:e.dataSearch,callback:function(t){e.dataSearch=t},expression:"dataSearch"}})],1),e._v(" "),r("el-table",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.loadmore,expression:"loadmore"}],ref:"originTable",attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.height-72},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"分组名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover"}},[r("span",[e._v(e._s(t.row.describle))]),e._v(" "),r("a",{staticClass:"pointer",attrs:{slot:"reference",href:"/memberGroupDetail?memberTagGroupId="+t.row.memberTagGroupId},slot:"reference"},[e._v(e._s(t.row.groupName))])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"是否实时",width:"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.isRealTime?"实时":"非实时")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"最近更新时间",width:"200px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.latestUpdateTime))+"\n "),r("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.latestUpdateTime)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"更新频率",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.isRealTime?[e._v("\n "+e._s(e._f("formatUpdateFrequency")(t.row.updateType,t.row.updateDay))+"\n ")]:[e._v("\n --\n ")]]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"state",label:"状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.effectiveStatus?"有效":"失效")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"recentUpdateDate",label:"到期时间",width:"200px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.effectiveDate))+"\n "),r("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.effectiveDate)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("router-link",{staticClass:"edit-btn el-button--text p-r-20",attrs:{to:{path:"/memberGroupDetail",query:{memberTagGroupId:t.row.memberTagGroupId}}}},[e._v("详情")])]}}])})],1)],1),e._v(" "),r("div",{staticClass:"btn-box",style:"height:"+e.height+"px"},[r("div",{staticClass:"icon-container"},[r("span",{staticClass:"transfer-icon el-icon-arrow-right m-b-26",on:{click:e.selectToTransfer}}),e._v(" "),r("span",{staticClass:"transfer-icon el-icon-arrow-left",on:{click:e.selectToRemove}})])]),e._v(" "),r("div",{staticClass:"selected-list table-container"},[r("div",{staticClass:"input-div"},[r("el-input",{staticClass:"w_100",attrs:{placeholder:"请输入关键字搜索人群","prefix-icon":"el-icon-search",clearable:""},on:{clear:function(t){e.clearSearch("dataSearchSelected")}},model:{value:e.dataSearchSelected,callback:function(t){e.dataSearchSelected=t},expression:"dataSearchSelected"}})],1),e._v(" "),r("el-table",{ref:"selectedTable",attrs:{data:e.selectedData.filter(function(t){return!e.dataSearchSelected||t.groupName.toLowerCase().includes(e.dataSearchSelected.toLowerCase())}),"tooltip-effect":"dark",height:e.height-114},on:{"selection-change":e.handleSelectedSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"分组名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[r("span",[e._v(e._s(t.row.describle))]),e._v(" "),r("a",{staticClass:"pointer",attrs:{slot:"reference",href:"/memberGroupDetail?memberTagGroupId="+t.row.memberTagGroupId},slot:"reference"},[e._v(e._s(t.row.groupName))])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"是否实时",width:"116px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.isRealTime?"实时":"非实时")+"\n ")]}}])})],1),e._v(" "),r("p",{staticClass:"cover-count"},[e._v("已选中"),r("span",{staticClass:"count"},[e._v(e._s(e.countOfCoverTotal))]),e._v("人")])],1)])},o=[],a={render:n,staticRenderFns:o};t.a=a}])});
//# sourceMappingURL=vue-gic-member-group.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "@gic-test/vue-gic-member-group",
"description": "vue-gic-member-group Plugin",
"version": "1.0.20",
"version": "1.0.22",
"license": "MIT",
"private": false,
"author": "fairyly",
......
......@@ -268,7 +268,7 @@
selectToTransfer() {
if (this.selectionToTransfer.length < 1) {
this.$message.success({
this.$message.error({
duration: 1000,
message: '请选择分组!'
});
......@@ -316,7 +316,7 @@
selectToRemove() {
if (this.selectionToRemove.length < 1) {
this.$message.success({
this.$message.error({
duration: 1000,
message: '请选择分组!'
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment