Commit e0810844 by Kyle_Li
parents 44858e4a ff0a1ca0
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.f316ee18d54228024c84577007cffc3f.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.30.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.95.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.13.js></script><script type=text/javascript src=./static/js/manifest.9c6a6ddd5d09b5c2c391.js></script><script type=text/javascript src=./static/js/vendor.0f3101bbd902a62a341f.js></script><script type=text/javascript src=./static/js/app.e65aecd48d5decc618c0.js></script></body></html>
\ No newline at end of file
<<<<<<< HEAD
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.f316ee18d54228024c84577007cffc3f.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.30.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.51.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.95.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.13.js></script><script type=text/javascript src=./static/js/manifest.9c6a6ddd5d09b5c2c391.js></script><script type=text/javascript src=./static/js/vendor.0f3101bbd902a62a341f.js></script><script type=text/javascript src=./static/js/app.e65aecd48d5decc618c0.js></script></body></html>
=======
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.f05053e18170d845f8f4280b2c0ca1a1.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.35.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.55.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/selector.1.1.95.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-excel.2.0.13.js></script><script type=text/javascript src=./static/js/manifest.95e8dcdff7d649b71234.js></script><script type=text/javascript src=./static/js/vendor.4aa38b9b9bf3652c83db.js></script><script type=text/javascript src=./static/js/app.874fe4e33ce7ce37428d.js></script></body></html>
>>>>>>> ff0a1ca0c8978ec238590a893997259d378625a0
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{"4KSJ":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("MOmO"),s=a.n(i),r={name:"page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/myTagLib"}):this.$router.go(-1)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"errPage-container"},[a("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("返回")]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("你没有权限去该页面!")]),t._v(" "),a("h2"),t._v(" "),a("h6"),t._v(" "),a("ul",{staticClass:"list-unstyled"})]),t._v(" "),a("el-col",{attrs:{span:12}},[a("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),a("el-dialog",{attrs:{title:"随便看",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},staticRenderFns:[]};var l=a("VU/8")(r,n,!1,function(t){a("6Zu3")},"data-v-0992e8d7",null);e.default=l.exports},"6Zu3":function(t,e){},MOmO:function(t,e,a){t.exports=a.p+"static/img/401.089007e.gif"}});
\ No newline at end of file
webpackJsonp([12],{T6dS:function(t,e){},YPWR:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("5reh"),i={name:"App",data:function(){return{projectName:"member-tag",contentHeight:"0px",collapseFlag:!1,leftModulesName:"会员标签"}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{},mounted:function(){this.$store.commit(o.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"index"}},[e("vue-gic-header",{attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)},staticRenderFns:[]};var s=n("VU/8")(i,a,!1,function(t){n("T6dS")},null,null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([13],{YPWR:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("5reh"),i={name:"App",data:function(){return{projectName:"member-tag",contentHeight:"0px",collapseFlag:!1,leftModulesName:"会员标签"}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{},mounted:function(){this.$store.commit(o.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"index"}},[e("vue-gic-header",{attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)},staticRenderFns:[]};var s=n("VU/8")(i,a,!1,function(t){n("ZyYn")},null,null);e.default=s.exports},ZyYn:function(t,e){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([15],{"G/on":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("3Xzz"),n=a("5QTb"),s=(a("Mk6G"),a("3E4D")),o=a("Ch4/"),i=(a("PI0u"),a("P9l9")),l={name:"platformTagList",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"平台标签库",path:"/platformTagLib"},{name:"平台标签列表",path:""}],tagLibName:"platformTag",tagSearch:"",tagTableData:[],selTagTableData:[],currentPage:1,pageSize:20,total:0,currentGroupId:0}},methods:{toAddMyTagLib:function(t,e){var a={};if("mult"===t){if(!this.selTagTableData.length)return this.$message.error({message:"请选择标签"}),!1;a.tagIds=[],this.selTagTableData.forEach(function(t,e){a.tagIds.push(t.tagId)}),a.tagIds=a.tagIds.join(","),this.addByTagId("addByTagIds",a)}else a.tagId=e,this.addByTagId("addByTagId",a)},addByTagId:function(t,e){var a=this;Object(i.a)("/enterpriseMemberTag/"+t,e).then(function(t){var e=t.data;if(1==e.errorCode)return s.a.showmsg("添加成功","success"),void a.getTagList();o.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},searchEnterFun:function(t){this.currentPage=1,this.getTagList()},clearSearch:function(){this.currentPage=1,this.getTagList()},handleSelectChange:function(t){this.selTagTableData=t},handleSizeChange:function(t){this.pageSize=t,this.getTagList()},handleCurrentChange:function(t){this.currentPage=t,this.$route.fullPath.includes("?")&&this.$router.push(this.$route.path+"?tagLevelGroupId="+this.$route.query.tagLevelGroupId+"&currentPage="+t),this.getTagList()},getTagList:function(t){var e=this,a={tagName:e.tagSearch,tagLevelGroupId:e.currentGroupId,pageNum:e.currentPage,pageSize:e.pageSize};Object(i.a)("/memberTag/platformTagPageList",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tagTableData=a.result.result,void(e.total=a.result.totalCount);o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUrlParams:function(){this.tagSearch=this.$route.query.searchName?this.$route.query.searchName:"",this.currentGroupId=this.$route.query.tagLevelGroupId?this.$route.query.tagLevelGroupId:0,this.currentPage=this.$route.query.currentPage?parseInt(this.$route.query.currentPage):1,this.getTagList()}},watch:{$route:{handler:function(t,e){this.getUrlParams()},deep:!0}},mounted:function(){this.getUrlParams()},components:{navCrumb:r.a,tagCategory:n.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"platformTagList-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"common-wrap__cateTags"},[a("tag-category",{attrs:{tagLibName:t.tagLibName}})],1),t._v(" "),a("div",{staticClass:"common-wrap__opt"},[a("el-input",{staticClass:"w-184",attrs:{placeholder:"搜索标签","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchEnterFun(e)}},model:{value:t.tagSearch,callback:function(e){t.tagSearch=e},expression:"tagSearch"}}),t._v(" "),a("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(e){return t.toAddMyTagLib("mult")}}},[t._v("添加至我的标签库")])],1),t._v(" "),a("div",{staticClass:"common-wrap__table m-t-20"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tagTableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectChange}},[a("el-table-column",{attrs:{type:"selection"}}),t._v(" "),a("el-table-column",{attrs:{prop:"tagName",label:"标签名称","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"tagDescribe",label:"标签描述","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"是否实时"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isActive?"实时":"非实时")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{staticClass:"edit-btn el-button--text",attrs:{to:{path:"/platformTagDetail",query:{tagId:e.row.tagId,addFlag:e.row.isAdd,form:"notMyTag",navSign:"platformTag"}}}},[t._v("详情")]),t._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{type:"text",size:"small",disabled:1==e.row.isAdd},on:{click:function(a){return t.toAddMyTagLib("single",e.row.tagId)}}},[t._v("\n "+t._s(1==e.row.isAdd?"已":"")+"添加至我的标签库\n ")])]}}])})],1)],1),t._v(" "),0!=t.tagTableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var u=a("VU/8")(l,c,!1,function(t){a("KnjC")},"data-v-ca198d88",null);e.default=u.exports},KnjC:function(t,e){}});
\ No newline at end of file
webpackJsonp([16],{BWbR:function(t,a){},"G/on":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("3Xzz"),n=e("5QTb"),s=(e("Mk6G"),e("3E4D")),o=e("Ch4/"),i=(e("PI0u"),e("P9l9")),l={name:"platformTagList",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"平台标签库",path:"/platformTagLib"},{name:"平台标签列表",path:""}],tagLibName:"platformTag",tagSearch:"",tagTableData:[],selTagTableData:[],currentPage:1,pageSize:20,total:0,currentGroupId:0}},methods:{toAddMyTagLib:function(t,a){var e={};if("mult"===t){if(!this.selTagTableData.length)return this.$message.error({message:"请选择标签"}),!1;e.tagIds=[],this.selTagTableData.forEach(function(t,a){e.tagIds.push(t.tagId)}),e.tagIds=e.tagIds.join(","),this.addByTagId("addByTagIds",e)}else e.tagId=a,this.addByTagId("addByTagId",e)},addByTagId:function(t,a){var e=this;Object(i.a)("/enterpriseMemberTag/"+t,a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("添加成功","success"),void e.getTagList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},searchEnterFun:function(t){this.currentPage=1,this.getTagList()},clearSearch:function(){this.currentPage=1,this.getTagList()},handleSelectChange:function(t){this.selTagTableData=t},handleSizeChange:function(t){this.pageSize=t,this.getTagList()},handleCurrentChange:function(t){this.currentPage=t,this.$route.fullPath.includes("?")&&this.$router.push(this.$route.path+"?tagLevelGroupId="+this.$route.query.tagLevelGroupId+"&currentPage="+t),this.getTagList()},getTagList:function(t){var a=this,e={tagName:a.tagSearch,tagLevelGroupId:a.currentGroupId,pageNum:a.currentPage,pageSize:a.pageSize};Object(i.a)("/memberTag/platformTagPageList",e).then(function(t){var e=t.data;if(1==e.errorCode)return a.tagTableData=e.result.result,void(a.total=e.result.totalCount);o.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getUrlParams:function(){this.tagSearch=this.$route.query.searchName?this.$route.query.searchName:"",this.currentGroupId=this.$route.query.tagLevelGroupId?this.$route.query.tagLevelGroupId:0,this.currentPage=this.$route.query.currentPage?parseInt(this.$route.query.currentPage):1,this.getTagList()}},watch:{$route:{handler:function(t,a){this.getUrlParams()},deep:!0}},mounted:function(){this.getUrlParams()},components:{navCrumb:r.a,tagCategory:n.a}},c={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"platformTagList-wrap common-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"common-wrap__cateTags"},[e("tag-category",{attrs:{tagLibName:t.tagLibName}})],1),t._v(" "),e("div",{staticClass:"common-wrap__opt"},[e("el-input",{staticClass:"w-184",attrs:{placeholder:"搜索标签","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(a){if(!("button"in a)&&t._k(a.keyCode,"enter",13,a.key))return null;t.searchEnterFun(a)}},model:{value:t.tagSearch,callback:function(a){t.tagSearch=a},expression:"tagSearch"}}),t._v(" "),e("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:function(a){t.toAddMyTagLib("mult")}}},[t._v("添加至我的标签库")])],1),t._v(" "),e("div",{staticClass:"common-wrap__table m-t-20"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tagTableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectChange}},[e("el-table-column",{attrs:{type:"selection"}}),t._v(" "),e("el-table-column",{attrs:{prop:"tagName",label:"标签名称","show-overflow-tooltip":""}}),t._v(" "),e("el-table-column",{attrs:{prop:"tagDescribe",label:"标签描述","show-overflow-tooltip":""}}),t._v(" "),e("el-table-column",{attrs:{label:"是否实时"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(1==a.row.isActive?"实时":"非实时")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("router-link",{staticClass:"edit-btn el-button--text",attrs:{to:{path:"/platformTagDetail",query:{tagId:a.row.tagId,addFlag:a.row.isAdd,form:"notMyTag",navSign:"platformTag"}}}},[t._v("详情")]),t._v(" "),e("el-button",{staticClass:"p-l-10",attrs:{type:"text",size:"small",disabled:1==a.row.isAdd},on:{click:function(e){t.toAddMyTagLib("single",a.row.tagId)}}},[t._v("\n "+t._s(1==a.row.isAdd?"已":"")+"添加至我的标签库\n ")])]}}])})],1)],1),t._v(" "),0!=t.tagTableData.length?e("div",{staticClass:"block common-wrap__page text-right"},[e("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])]),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var g=e("VU/8")(l,c,!1,function(t){e("BWbR")},"data-v-c7474496",null);a.default=g.exports}});
\ No newline at end of file
webpackJsonp([17],{QGGn:function(t,a){},twLH:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"myTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("QGGn")},"data-v-b4282ac4",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([18],{EHeP:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"myTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("EzMi")},"data-v-ab1a3bf4",null);a.default=s.exports},EzMi:function(t,a){}});
\ No newline at end of file
webpackJsonp([18],{cdLm:function(t,a){},q490:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"manualTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"手工标签库",path:""}],tagCategory:"manualTagList"}},methods:{},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"manualTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("cdLm")},"data-v-8b9dc1fa",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([24],{"G+6N":function(t,e){},Gy5W:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("5reh"),i={name:"App",data:function(){return{projectName:"member-tag",contentHeight:"0px",collapseFlag:!1,leftModulesName:"会员标签"}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.$store.commit(o.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},s={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"index"}},[e("vue-gic-header",{attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)},staticRenderFns:[]};var a=n("VU/8")(i,s,!1,function(t){n("G+6N")},null,null);e.default=a.exports}});
\ No newline at end of file
webpackJsonp([19],{"/aiX":function(t,e){},Gy5W:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("5reh"),o={name:"App",data:function(){return{projectName:"member-tag",contentHeight:"0px",collapseFlag:!1,leftModulesName:"会员标签"}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.$store.commit(n.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"index"}},[e("vue-gic-header",{attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)},staticRenderFns:[]};var s=i("VU/8")(o,a,!1,function(t){i("/aiX")},null,null);e.default=s.exports}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([20],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):!!t.hasOwnProperty("response")&&(401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"HAZZYS",password:"EA48576F30BE1669971699C09AD05C94",eid:"ff8080816494494b0164a76b553a00e5"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff8080816494494b0164a76b553a00e5"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var f=i("VU/8")(u,m,!1,function(t){i("i8uS")},null,null);e.default=f.exports},i8uS:function(t,e){}});
\ No newline at end of file
webpackJsonp([21],{SJ7l:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("Dd8w"),a=s.n(i),n=s("lRwf"),o=s.n(n),r=s("zL8q"),l=s("2CGT");o.a.component(r.CollapseTransition.name,r.CollapseTransition);var c={name:"group-list",data:function(){return{lists:[],addGroupDialog:!1,expendTxt:"收起",expendTxtTag:"收起",groupName:"",title:"新增分组名称",currentIndex:-1,currentTagIndex:0,active:!1,Taglists:[],classTagName:"tag-name",hasLevel:!1,currentLevelIndex:-2,groupLists:[]}},computed:{expendClass:function(){return"展开"!=this.expendTxt?"is-caret":""},expendTagClass:function(){return"展开"!=this.expendTxtTag?"is-caret":""}},methods:{handleChangeLevel:function(e,t){this.currentLevelIndex=e,this.$emit("second-list",{list:t,isTag:!0})},_getTagLists:function(){var e=this;Object(l.l)({requestProject:"gic-member-tag-web"}).then(function(t){1===t.errorCode&&(e.groupLists=t.result,console.log(e.groupLists))})},handleChangeTag:function(e,t){this.active=!1,this.classTagName="tag-name active-name",this.currentTagIndex=e,this.$emit("second-list",{list:t,isTag:!0})},handleNoEditClassifyName:function(){this.lists=this.lists.map(function(e){return a()({},e,{edit:!1})})},handleChangeIndex:function(e,t){this.classTagName="tag-name",this.active=!1,this.currentIndex=e,this.$emit("second-list",t)},editGroupName:function(e){if(e.edit)this.modifyName(e);else{if(!this.operatorName(e))return;e.edit=!0}},deleteGroupName:function(e){var t=this;if(this.operatorName(e))return e.edit?(e.edit=!1,void this.getMemberGroupList()):void this.$confirm("删除分组名称,包括该分组下的内容,确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.excludeName(e)}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},excludeName:function(e){var t=this,s={requestProject:"gic-member-tag-web",memberTagGroupClassifyId:e.memberTagGroupClassifyId};Object(l.p)(s).then(function(e){1==e.errorCode&&(t.getMemberGroupList(),t.$message({type:"success",message:"删除成功!"}))})},modifyName:function(e){var t=this;if(e.classifyName){var s={requestProject:"gic-member-tag-web",classifyName:e.classifyName,memberTagGroupClassifyId:e.memberTagGroupClassifyId};Object(l.r)(s).then(function(s){1==s.errorCode&&(e.edit=!1,t.getMemberGroupList(),t.$message({type:"success",message:"修改成功",duration:2e3}))})}else this.$message({message:"分组名称不能为空!",type:"warning",duration:2e3})},operatorName:function(e){return"0"!=e.memberTagGroupClassifyId||(this.$message({message:e.classifyName+"的不能操作",type:"warning",duration:2e3}),!1)},handleGroupDialog:function(){var e=this;if(this.groupName){var t={requestProject:"gic-member-tag-web",classifyName:this.groupName};Object(l.r)(t).then(function(t){1==t.errorCode&&(e.getMemberGroupList(),e.groupName="",e.addGroupDialog=!1,e.$message({type:"success",message:"添加成功"}))})}else this.$message({type:"warning",message:"分组名称不能为空"})},getMemberGroupList:function(){var e=this;Object(l.q)({requestProject:"gic-member-tag-web"}).then(function(t){1===t.errorCode&&(console.log(t.result),e.lists=t.result.map(function(e){return a()({},e,{edit:!1})}))})},handleExpend:function(){this.currentIndex=-1,this.currentLevelIndex=-2,this.expendTxt="展开"===this.expendTxt?"收起":"展开",this.$emit("second-list","all")},handleExpendTag:function(){this.currentLevelIndex=-1,this.currentIndex=-2,this.expendTxtTag="展开"===this.expendTxtTag?"收起":"展开",this.$emit("second-list","allLevel")},_hasLevelFeature:function(){var e=this;Object(l.o)().then(function(t){1===t.errorCode&&(e.hasLevel=t.result)})}},beforeMount:function(){this.getMemberGroupList(),this._getTagLists(),this._hasLevelFeature()}},u={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"group-list"},[s("div",{staticClass:"member-group",class:{"light-group":-1===e.currentIndex},on:{click:e.handleExpend}},[s("i",{staticClass:"icon-list el-icon-caret-right icon-transform",class:e.expendClass}),e._v("\n 我的会员分组\n "),s("i",{staticClass:"el-icon-plus icon-right icon-list",on:{click:function(t){e.addGroupDialog=!0}}})]),e._v(" "),s("el-collapseTransition",[s("ul",{directives:[{name:"show",rawName:"v-show",value:"展开"==e.expendTxt,expression:"expendTxt == '展开'"}],staticClass:"lists"},e._l(e.lists,function(t,i){return s("li",{key:i,class:["member-list",{"active-li":i==e.currentIndex}],on:{click:function(s){e.handleChangeIndex(i,t)}}},[s("span",{directives:[{name:"show",rawName:"v-show",value:!t.edit,expression:"!list.edit"}],staticClass:"name-txt",attrs:{title:t.classifyName}},[e._v(e._s(t.classifyName))]),e._v(" "),s("el-input",{directives:[{name:"show",rawName:"v-show",value:t.edit,expression:"list.edit"}],staticStyle:{width:"100px"},attrs:{size:"mini",maxLength:"10"},nativeOn:{keyup:function(s){if(!("button"in s)&&e._k(s.keyCode,"enter",13,s.key))return null;e.modifyName(t)}},model:{value:t.classifyName,callback:function(s){e.$set(t,"classifyName",s)},expression:"list.classifyName"}}),e._v(" "),"未分类"!==t.classifyName?s("div",{staticClass:"oper-area"},[s("i",{staticClass:"iconfont icon-list-oper",class:[t.edit?"icon-dagou":"icon-bianji1"],on:{click:function(s){s.stopPropagation(),e.editGroupName(t)}}}),e._v(" "),s("i",{staticClass:"iconfont icon-list-oper",class:[t.edit?"icon-guanbi1":"icon-guanbi"],on:{click:function(s){e.deleteGroupName(t)}}})]):e._e()],1)}))]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.hasLevel,expression:"hasLevel"}],class:["member-group",{"active-item":-1==e.currentLevelIndex}],on:{click:e.handleExpendTag}},[s("i",{staticClass:"icon-list el-icon-caret-right icon-transform",class:e.expendTagClass}),e._v("\n 金字塔会员分层\n ")]),e._v(" "),s("el-collapseTransition",[s("ul",{directives:[{name:"show",rawName:"v-show",value:"展开"==e.expendTxtTag,expression:"expendTxtTag == '展开'"}],staticClass:"lists"},e._l(e.groupLists,function(t,i){return s("li",{key:i,class:["member-list",{"active-li":i==e.currentLevelIndex}],on:{click:function(s){e.handleChangeLevel(i,t)}}},[e._v("\n "+e._s(t.aliasName)+"\n ")])}))]),e._v(" "),s("el-dialog",{attrs:{title:e.title,visible:e.addGroupDialog,width:"320px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addGroupDialog=t}}},[s("div",[e._v("\n 分组名称:\n "),s("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入分组名称",maxlength:8,clearable:""},model:{value:e.groupName,callback:function(t){e.groupName=t},expression:"groupName"}})],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.addGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupDialog}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var d=s("VU/8")(c,u,!1,function(e){s("o/nY")},"data-v-71092459",null);t.default=d.exports},"o/nY":function(e,t){}});
\ No newline at end of file
webpackJsonp([23],{Dwwd:function(t,e){},iHP3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Dd8w"),n=a.n(s),i=a("lRwf"),l=a.n(i),c=a("zL8q"),o=a("CUHN"),d=a("SJI6");l.a.component(c.CollapseTransition.name,c.CollapseTransition);var r={name:"tag-type",components:{SecondTag:o.default},props:{tagList:Object},data:function(){return{list:{},typeName:"",editData:[],expends:"收起"}},computed:n()({},Object(d.mapState)(["tagRealName"])),methods:{handleChangeExpends:function(){this.expends="收起"===this.expends?"展开":"收起"},handleFirstTag:function(){localStorage.setItem("jumpTag",""),this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(t){this.list=t}}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("span",{staticClass:"expends-txt",on:{click:t.handleChangeExpends}},[t._v(t._s(t.expends)+" ")]),t._v(" "),a("div",{staticClass:"first-tag"},[a("div",[a("i",{staticClass:"iconfont menu-icon",class:[t.list.icon,{"icon-tag-light":t.list.name===t.tagRealName}]}),t._v(" "),a("span",{staticClass:"tag-name",class:{"icon-tag-light":t.list.name===t.tagRealName},on:{click:t.handleFirstTag}},[t._v(t._s(t.list.name))])]),t._v(" "),a("el-collapseTransition",[a("div",{directives:[{name:"show",rawName:"v-show",value:"收起"===t.expends,expression:"expends === '收起'"}],staticClass:"second-tag"},t._l(t.list.children,function(e,s){return a("second-tag",{key:s,attrs:{list:e,"tag-name":t.list.name}})}),1)])],1)])},staticRenderFns:[]};var m=a("VU/8")(r,p,!1,function(t){a("Dwwd")},"data-v-4c518050",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([24],{GXzu:function(t,e){},iHP3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Dd8w"),n=a.n(s),i=a("lRwf"),l=a.n(i),c=a("zL8q"),o=a("CUHN"),d=a("SJI6");l.a.component(c.CollapseTransition.name,c.CollapseTransition);var r={name:"tag-type",components:{SecondTag:o.default},props:{tagList:Object},data:function(){return{list:{},typeName:"",editData:[],expends:"收起"}},computed:n()({},Object(d.mapState)(["tagRealName"])),methods:{handleChangeExpends:function(){this.expends="收起"===this.expends?"展开":"收起"},handleFirstTag:function(){localStorage.setItem("jumpTag",""),this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(t){this.list=t}}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("span",{staticClass:"expends-txt",on:{click:t.handleChangeExpends}},[t._v(t._s(t.expends)+" ")]),t._v(" "),a("div",{staticClass:"first-tag"},[a("div",[a("i",{staticClass:"iconfont menu-icon",class:[t.list.icon,{"icon-tag-light":t.list.name===t.tagRealName}]}),t._v(" "),a("span",{staticClass:"tag-name",class:{"icon-tag-light":t.list.name===t.tagRealName},on:{click:t.handleFirstTag}},[t._v(t._s(t.list.name))])]),t._v(" "),a("el-collapseTransition",[a("div",{directives:[{name:"show",rawName:"v-show",value:"收起"===t.expends,expression:"expends === '收起'"}],staticClass:"second-tag"},t._l(t.list.children,function(e,s){return a("second-tag",{key:s,attrs:{list:e,"tag-name":t.list.name}})}))])],1)])},staticRenderFns:[]};var m=a("VU/8")(r,p,!1,function(t){a("GXzu")},"data-v-4c518050",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([27],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):!!t.hasOwnProperty("response")&&(401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){return e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("r8O8")},null,null);e.default=d.exports},r8O8:function(t,e){}});
\ No newline at end of file
webpackJsonp([28],{SJ7l:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("Dd8w"),a=i.n(s),n=i("lRwf"),o=i.n(n),r=i("zL8q"),c=i("2CGT");o.a.component(r.CollapseTransition.name,r.CollapseTransition);var l={name:"group-list",data:function(){return{lists:[],addGroupDialog:!1,expendTxt:"展开",groupName:"",title:"新增分组名称",currentIndex:0,active:!1}},computed:{expendClass:function(){return"展开"!=this.expendTxt?"is-caret":""}},methods:{handleNoEditClassifyName:function(){this.lists=this.lists.map(function(e){return a()({},e,{edit:!1})})},handleChangeIndex:function(e,t){this.active=!1,this.currentIndex=e,this.$emit("second-list",t)},editGroupName:function(e){if(e.edit)this.modifyName(e);else{if(!this.operatorName(e))return;e.edit=!0}},deleteGroupName:function(e){var t=this;if(this.operatorName(e))return e.edit?(e.edit=!1,void this.getMemberGroupList()):void this.$confirm("删除分组名称,包括该分组下的内容,确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.excludeName(e)}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},excludeName:function(e){var t=this,i={requestProject:"gic-member-tag-web",memberTagGroupClassifyId:e.memberTagGroupClassifyId};Object(c.l)(i).then(function(e){1==e.errorCode&&(t.getMemberGroupList(),t.$message({type:"success",message:"删除成功!"}))})},modifyName:function(e){var t=this;if(e.classifyName){var i={requestProject:"gic-member-tag-web",classifyName:e.classifyName,memberTagGroupClassifyId:e.memberTagGroupClassifyId};Object(c.n)(i).then(function(i){1==i.errorCode&&(e.edit=!1,t.getMemberGroupList(),t.$message({type:"success",message:"修改成功",duration:2e3}))})}else this.$message({message:"分组名称不能为空!",type:"warning",duration:2e3})},operatorName:function(e){return"0"!=e.memberTagGroupClassifyId||(this.$message({message:e.classifyName+"的不能操作",type:"warning",duration:2e3}),!1)},handleGroupDialog:function(){var e=this;if(this.groupName){var t={requestProject:"gic-member-tag-web",classifyName:this.groupName};Object(c.n)(t).then(function(t){1==t.errorCode&&(e.getMemberGroupList(),e.groupName="",e.addGroupDialog=!1,e.$message({type:"success",message:"添加成功"}))})}else this.$message({type:"warning",message:"分组名称不能为空"})},getMemberGroupList:function(){var e=this;Object(c.m)({requestProject:"gic-member-tag-web"}).then(function(t){1===t.errorCode&&(e.lists=t.result.map(function(e){return a()({},e,{edit:!1})}))})},handleExpend:function(){this.expendTxt="展开"===this.expendTxt?"收起":"展开"}},beforeMount:function(){this.getMemberGroupList()}},u={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"group-list"},[i("div",{staticClass:"member-group"},[i("i",{staticClass:"icon-list el-icon-caret-top icon-transform",class:e.expendClass,on:{click:e.handleExpend}}),e._v("\n 我的会员分组\n "),i("i",{staticClass:"el-icon-plus icon-right icon-list",on:{click:function(t){e.addGroupDialog=!0}}})]),e._v(" "),i("el-collapseTransition",[i("ul",{directives:[{name:"show",rawName:"v-show",value:"展开"==e.expendTxt,expression:"expendTxt == '展开'"}],staticClass:"lists"},e._l(e.lists,function(t,s){return i("li",{key:s,class:["member-list",{"active-li":s==e.currentIndex}],on:{click:function(i){return e.handleChangeIndex(s,t)}}},[i("span",{directives:[{name:"show",rawName:"v-show",value:!t.edit,expression:"!list.edit"}],staticClass:"name-txt",attrs:{title:t.classifyName}},[e._v(e._s(t.classifyName))]),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.edit,expression:"list.edit"}],staticStyle:{width:"100px"},attrs:{size:"mini",maxLength:"10"},nativeOn:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.modifyName(t)}},model:{value:t.classifyName,callback:function(i){e.$set(t,"classifyName",i)},expression:"list.classifyName"}}),e._v(" "),"未分类"!==t.classifyName?i("div",{staticClass:"oper-area"},[i("i",{staticClass:"iconfont icon-list-oper",class:[t.edit?"icon-dagou":"icon-bianji1"],on:{click:function(i){return i.stopPropagation(),e.editGroupName(t)}}}),e._v(" "),i("i",{staticClass:"iconfont icon-list-oper",class:[t.edit?"icon-guanbi1":"icon-guanbi"],on:{click:function(i){return e.deleteGroupName(t)}}})]):e._e()],1)}),0)]),e._v(" "),i("el-dialog",{attrs:{title:e.title,visible:e.addGroupDialog,width:"320px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addGroupDialog=t}}},[i("div",[e._v("\n 分组名称:\n "),i("el-input",{staticStyle:{width:"200px"},attrs:{placeholder:"请输入分组名称",maxlength:8,clearable:""},model:{value:e.groupName,callback:function(t){e.groupName=t},expression:"groupName"}})],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.addGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupDialog}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var d=i("VU/8")(l,u,!1,function(e){i("ZjqM")},"data-v-0141d494",null);t.default=d.exports},ZjqM:function(e,t){}});
\ No newline at end of file
webpackJsonp([28],{"3pKj":function(t,a){},q490:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"manualTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"手工标签库",path:""}],tagCategory:"manualTagList"}},methods:{},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"manualTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("3pKj")},"data-v-190fc065",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([19],{Ec66:function(t,a){},puJc:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),r=n("BdFv"),i=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"platformTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"平台标签库",path:""}],tagCategory:"platformTagList"}},methods:{},mounted:function(){},components:{navCrumb:e.a,tagLib:r.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"platformTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(i,o,!1,function(t){n("Ec66")},"data-v-7c26f866",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([29],{J3vB:function(t,a){},puJc:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),r=e("BdFv"),i=(e("Mk6G"),e("3E4D"),e("Ch4/"),e("PI0u"),e("P9l9"),{name:"platformTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"平台标签库",path:""}],tagCategory:"platformTagList"}},methods:{},mounted:function(){},components:{navCrumb:n.a,tagLib:r.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"platformTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=e("VU/8")(i,o,!1,function(t){e("J3vB")},"data-v-0eb00465",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([29],{tKpj:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([30],{tKpj:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([30],{"9ZvA":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={name:"recommend-table",props:{data:Array},data:function(){return{tableData:[]}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}}},methods:{createMemberGroup:function(e){console.log(e)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"查看详情",type:"expand",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"分组名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"describle",label:"分组描述"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.createMemberGroup(t)}}},[e._v("创建会员分组")])]}}])})],1)},staticRenderFns:[]},r=a("VU/8")(l,n,!1,null,null,null);t.default=r.exports}});
\ No newline at end of file
webpackJsonp([31],{"9ZvA":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={name:"recommend-table",props:{data:Array},data:function(){return{tableData:[]}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}}},methods:{createMemberGroup:function(e){console.log(e)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"查看详情",type:"expand",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{prop:"groupName",label:"分组名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"describle",label:"分组描述"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.createMemberGroup(t)}}},[e._v("创建会员分组")])]}}])})],1)},staticRenderFns:[]},r=a("VU/8")(l,n,!1,null,null,null);t.default=r.exports}});
\ No newline at end of file
webpackJsonp([8],{CRUn:function(t,e){},Minx:function(t,e,n){t.exports=n.p+"static/img/error_404.bf58747.svg"},PRsh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("Minx"),i=n.n(s),a={name:"page404",data:function(){return{img_404:i.a}},methods:{changeRoute:function(t){this.$router.push(t)}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[n("div",{staticClass:"wscn-http404"},[n("div",{staticClass:"pic-404"},[n("img",{staticClass:"pic-404__parent",attrs:{src:t.img_404,alt:"404"}})]),t._v(" "),n("div",{staticClass:"bullshit"},[n("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),n("a",{staticClass:"bullshit__return-home",on:{click:function(e){t.changeRoute("/myTagLib")}}},[t._v("返回首页")])])])])},staticRenderFns:[]};var r=n("VU/8")(a,c,!1,function(t){n("CRUn")},"data-v-74f4fd53",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([8],{"4KSJ":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("MOmO"),s=e.n(i),r={name:"page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/myTagLib"}):this.$router.go(-1)}}},n={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"errPage-container"},[e("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("返回")]),t._v(" "),e("el-row",[e("el-col",{attrs:{span:12}},[e("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("你没有权限去该页面!")]),t._v(" "),e("h2"),t._v(" "),e("h6"),t._v(" "),e("ul",{staticClass:"list-unstyled"})]),t._v(" "),e("el-col",{attrs:{span:12}},[e("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),t._v(" "),e("el-dialog",{attrs:{title:"随便看",visible:t.dialogVisible},on:{"update:visible":function(a){t.dialogVisible=a}}},[e("img",{staticClass:"pan-img",attrs:{src:t.ewizardClap}})])],1)},staticRenderFns:[]};var l=e("VU/8")(r,n,!1,function(t){e("haRM")},"data-v-467a86a2",null);a.default=l.exports},MOmO:function(t,a,e){t.exports=e.p+"static/img/401.089007e.gif"},haRM:function(t,a){}});
\ No newline at end of file
webpackJsonp([9],{Dppx:function(t,e){},Minx:function(t,e,s){t.exports=s.p+"static/img/error_404.bf58747.svg"},PRsh:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=s("Minx"),i=s.n(n),a={name:"page404",data:function(){return{img_404:i.a}},methods:{changeRoute:function(t){this.$router.push(t)}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:t.img_404,alt:"404"}})]),t._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),s("a",{staticClass:"bullshit__return-home",on:{click:function(e){return t.changeRoute("/myTagLib")}}},[t._v("返回首页")])])])])},staticRenderFns:[]};var r=s("VU/8")(a,c,!1,function(t){s("Dppx")},"data-v-4598eca6",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([7],{"/HCr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2X9c"),i=s.n(a),n={name:"page500",data:function(){return{img_500:i.a}},methods:{changeRoute:function(t){this.$router.push(t)}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:t.img_500,alt:"500"}})]),t._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),s("a",{staticClass:"bullshit__return-home",on:{click:function(e){return t.changeRoute("/myTagLib")}}},[t._v("返回首页")])])])])},staticRenderFns:[]};var r=s("VU/8")(n,c,!1,function(t){s("9kz2")},"data-v-489b9d36",null);e.default=r.exports},"2X9c":function(t,e,s){t.exports=s.p+"static/img/error_500.ed0cba4.svg"},"9kz2":function(t,e){}});
\ No newline at end of file
webpackJsonp([9],{"/HCr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("2X9c"),i=s.n(a),n={name:"page500",data:function(){return{img_500:i.a}},methods:{changeRoute:function(t){this.$router.push(t)}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:t.img_500,alt:"500"}})]),t._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),t._v(" "),s("a",{staticClass:"bullshit__return-home",on:{click:function(e){t.changeRoute("/myTagLib")}}},[t._v("返回首页")])])])])},staticRenderFns:[]};var r=s("VU/8")(n,c,!1,function(t){s("LhQf")},"data-v-0de81010",null);e.default=r.exports},"2X9c":function(t,e,s){t.exports=s.p+"static/img/error_500.ed0cba4.svg"},LhQf:function(t,e){}});
\ No newline at end of file
webpackJsonp([33],{0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5reh":function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return o}),a.d(t,"d",function(){return r}),a.d(t,"c",function(){return i});var n="login",o="logout",r="title",i="show"},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Vna/")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},GjDF:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("//Fk"),o=a.n(n),r=a("hKoQ"),i=a.n(r),u=a("Dd8w"),m=a.n(u),l=a("SJI6"),c=a.n(l),s={name:"App",data:function(){return{}},computed:m()({},Object(l.mapState)(["uniqueId"])),created:function(){this.baseUrl=window.location.origin.indexOf("localhost")>-1?"http://gicdev.demogic.com":window.location.origin,this._getUserInfo(),this.changeTab()},methods:{laout:function(){this.axios.get(this.baseUrl+"/api-auth/do-logout?requestProject=gic-member-tag-web")},_getUserInfo:function(){var e=this;this.axios.get(this.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;""===e.uniqueId&&e.$store.commit("changeUniqueId",a)}})},changeTab:function(){var e=this;document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&e.axios.get(e.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;e.uniqueId!==a&&e.$confirm("当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请退出重新登录!","登录账号变更提示",{confirmButtonText:"退出重新登录",cancelButtonText:"刷新页面",type:"error"}).then(function(){e.laout(),window.location.reload()}).catch(function(){e.laout(),window.location.reload()})}})})}}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var g,d=a("VU/8")(s,p,!1,function(e){a("GjDF")},null,null).exports,f=a("pRNm"),b=a.n(f),v=a("5tgt"),T=a.n(v),h=function(e){a.e(1).then(a.bind(null,"EE2z")).then(function(t){e(t)})},G=[{path:"/",name:"index",redirect:"member-tag",component:T()("index","index"),children:[{path:"/member-tag",name:"会员标签",component:T()("platformTag","member-tag"),meta:{title:"会员标签"}},{path:"/platformTagList",component:T()("platformTag","platformTagList"),name:"平台标签列表",meta:{title:"会员标签-平台标签列表"}},{path:"/platformTagDetail",component:T()("platformTag","platformTagDetail"),name:"平台标签详情",meta:{title:"会员标签-平台标签详情"}},{path:"/manualTagLib",component:T()("manualTag","manualTagLib"),name:"手工标签库",meta:{title:"会员标签-手工标签库"}},{path:"/manualTagList",component:T()("manualTag","manualTagList"),name:"手工标签列表",meta:{title:"会员标签-手工标签列表"}},{path:"/manualTagValueEdit",component:T()("manualTag","manual-tag-value-edit"),name:"标签值设置",meta:{title:"会员标签-标签值设置"}},{path:"/manualTagDetail",component:T()("manualTag","manualTagDetail"),name:"手工标签详情",meta:{title:"会员标签-手工标签详情"}},{path:"/myTagLib",component:T()("myTag","myTagLib"),name:"会员标签",meta:{title:"会员标签"}},{path:"/myTagList",component:T()("myTag","myTagList"),name:"我的标签库列表",meta:{title:"会员标签-我的标签库列表"}},{path:"/myTagDetail",component:T()("myTag","myTagDetail"),name:"标签详情",meta:{title:"会员标签-标签详情"}}]},{path:"/memberGroupList",name:"memberGroupListIndex",redirect:"memberGroupList",component:T()("memberGroup","index"),children:[{path:"/memberGroupList",component:T()("memberGroup","memberGroupList"),name:"会员分组",meta:{title:"会员标签-会员分组"}},{path:"/memberGroupDetail",component:T()("memberGroup","memberGroupDetail"),name:"分组详情",meta:{title:"会员标签-分组详情"}},{path:"/memberLevelDetail",component:T()("memberGroup","memberLevelDetail"),name:"分层详情",meta:{title:"会员标签-分层详情"}},{path:"/memberGroupEdit",component:T()("memberGroup","memberGroupEdit"),name:"编辑分组",meta:{title:"会员标签-编辑分组"}}]},{path:"/403",name:"无权访问",component:h},{path:"/404",name:"error404",component:h},{path:"/500",name:"error500",component:h},{path:"*",redirect:"/404",hidden:!0}],w=new b.a({routes:G,scrollBehavior:function(){return{y:0}}}),L=a("zL8q"),x=a("Rf8U"),y=a.n(x),q=a("mtWM"),D=a.n(q),P=a("bOdI"),k=a.n(P),V=a("lRwf"),j=a.n(V),I=a("5reh");j.a.use(c.a);var E=new c.a.Store({state:{user:{},token:null,title:"",show:!1,tagRealName:"",uniqueId:""},mutations:(g={},k()(g,I.a,function(e,t){sessionStorage.token=t,e.token=t}),k()(g,I.b,function(e){sessionStorage.removeItem("token"),e.token=null}),k()(g,I.d,function(e,t){e.title=t}),k()(g,I.c,function(e,t){e.show=t}),k()(g,"modiftTagName",function(e,t){e.tagRealName=t}),k()(g,"changeUniqueId",function(e,t){e.uniqueId=t||""}),g)}),U=(a("Xcu2"),a("4qCZ"),a("uKUT"),a("GqmT")),R=a.n(U);i.a.polyfill(),Vue.use(R.a),Vue.config.devtools=!0,Vue.use(y.a,D.a),Vue.axios.defaults.withCredentials=!0,Vue.axios.interceptors.request.use(function(e){return e},function(e){return o.a.reject(e)}),Vue.axios.interceptors.response.use(function(e){return 200==e.status&&e.data.errorCode,e},function(e){if(e.response)switch(e.response.status){case 401:window.location.href=window.location.origin+"/gic-web/#/";case 500:L.Message.error("服务器500")}return o.a.reject(e.response.data)}),new Vue({el:"#app",router:w,store:E,components:{App:d},template:"<App/>"})},SJI6:function(e,t){e.exports=Vuex},"Vna/":function(e,t,a){var n={"./errorPage/401.vue":["4KSJ",10],"./errorPage/403.vue":["aM+6",7],"./errorPage/404.vue":["PRsh",8],"./errorPage/500.vue":["/HCr",9],"./errorPage/index.vue":["EE2z",1],"./index/index.vue":["YPWR",13],"./linktools/linktools.vue":["Lc2x",0,23],"./linktools/linktoolsold.vue":["/8lq",0,14],"./linktools/linktoolspage.vue":["HLON",0,17],"./login/login.vue":["6Qob",0,20],"./manualTag/manual-tag-value-edit.vue":["umZJ",0,2],"./manualTag/manualTagDetail.vue":["Tl/4",0,15],"./manualTag/manualTagEdit.vue":["308P",0,27],"./manualTag/manualTagLib.vue":["q490",0,28],"./manualTag/manualTagList.vue":["f0o3",0,22],"./memberGroup/edit-tag.vue":["jkVl",0],"./memberGroup/group-list.vue":["SJ7l",0,21],"./memberGroup/index.vue":["Gy5W",19],"./memberGroup/memberGroupDetail.vue":["+/ey",0,4],"./memberGroup/memberGroupEdit.vue":["q0vu",0,12],"./memberGroup/memberGroupList.vue":["oVck",0,5],"./memberGroup/memberLevelDetail.vue":["Y4Pr",0,6],"./memberGroup/recommend-table.vue":["9ZvA",31],"./memberGroup/tags-group-list.vue":["vcge",0],"./memberGroup/tags-group.vue":["wx1P",0],"./platformTag/add-tag.vue":["tKpj",30],"./platformTag/member-tag.vue":["bytj",0,3],"./platformTag/myTag/myTagDetail.vue":["cm2p",0,26],"./platformTag/myTag/myTagLib.vue":["EHeP",0,18],"./platformTag/myTag/myTagList.vue":["C8bH",0,25],"./platformTag/platformTagDetail.vue":["KN59",0,11],"./platformTag/platformTagLib.vue":["puJc",0,29],"./platformTag/platformTagList.vue":["G/on",0,16],"./platformTag/second-tag.vue":["CUHN",0],"./platformTag/tag-container.vue":["Gndl",0],"./platformTag/tag-type.vue":["iHP3",0,24]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Vna/",e.exports=o},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([32],{0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5reh":function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return o}),a.d(t,"d",function(){return r}),a.d(t,"c",function(){return i});var n="login",o="logout",r="title",i="show"},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Vna/")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},GjDF:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("//Fk"),o=a.n(n),r=a("hKoQ"),i=a.n(r),u=a("Dd8w"),m=a.n(u),l=a("SJI6"),s=a.n(l),c={name:"App",data:function(){return{}},computed:m()({},Object(l.mapState)(["uniqueId"])),created:function(){this.baseUrl=window.location.origin.indexOf("localhost")>-1?"http://gicdev.demogic.com":window.location.origin,this._getUserInfo(),this.changeTab()},methods:{laout:function(){this.axios.get(this.baseUrl+"/api-auth/do-logout?requestProject=gic-member-tag-web")},_getUserInfo:function(){var e=this;this.axios.get(this.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;""===e.uniqueId&&e.$store.commit("changeUniqueId",a)}})},changeTab:function(){var e=this;document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&e.axios.get(e.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;e.uniqueId!==a&&e.$confirm("当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请退出重新登录!","登录账号变更提示",{confirmButtonText:"退出重新登录",cancelButtonText:"刷新页面",type:"error"}).then(function(){e.laout(),window.location.reload()}).catch(function(){e.laout(),window.location.reload()})}})})}}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var g,d=a("VU/8")(c,p,!1,function(e){a("GjDF")},null,null).exports,f=a("pRNm"),b=a.n(f),h=a("5tgt"),v=a.n(h),T=function(e){a.e(1).then(a.bind(null,"EE2z")).then(function(t){e(t)})},w=[{path:"/",name:"index",redirect:"member-tag",component:v()("index","index"),children:[{path:"/member-tag",name:"会员标签",component:v()("platformTag","member-tag"),meta:{title:"会员标签"}},{path:"/platformTagList",component:v()("platformTag","platformTagList"),name:"平台标签列表",meta:{title:"会员标签-平台标签列表"}},{path:"/platformTagDetail",component:v()("platformTag","platformTagDetail"),name:"平台标签详情",meta:{title:"会员标签-平台标签详情"}},{path:"/manualTagLib",component:v()("manualTag","manualTagLib"),name:"手工标签库",meta:{title:"会员标签-手工标签库"}},{path:"/manualTagList",component:v()("manualTag","manualTagList"),name:"手工标签列表",meta:{title:"会员标签-手工标签列表"}},{path:"/manualTagValueEdit",component:v()("manualTag","manual-tag-value-edit"),name:"标签值设置",meta:{title:"会员标签-标签值设置"}},{path:"/manualTagDetail",component:v()("manualTag","manualTagDetail"),name:"手工标签详情",meta:{title:"会员标签-手工标签详情"}},{path:"/myTagLib",component:v()("myTag","myTagLib"),name:"会员标签",meta:{title:"会员标签"}},{path:"/myTagList",component:v()("myTag","myTagList"),name:"我的标签库列表",meta:{title:"会员标签-我的标签库列表"}},{path:"/myTagDetail",component:v()("myTag","myTagDetail"),name:"标签详情",meta:{title:"会员标签-标签详情"}}]},{path:"/memberGroupList",name:"memberGroupListIndex",redirect:"memberGroupList",component:v()("memberGroup","index"),children:[{path:"/memberGroupList",component:v()("memberGroup","memberGroupList"),name:"会员分组",meta:{title:"会员标签-会员分组"}},{path:"/memberGroupDetail",component:v()("memberGroup","memberGroupDetail"),name:"分组详情",meta:{title:"会员标签-分组详情"}},{path:"/memberGroupEdit",component:v()("memberGroup","memberGroupEdit"),name:"编辑分组",meta:{title:"会员标签-编辑分组"}}]},{path:"/403",name:"无权访问",component:T},{path:"/404",name:"error404",component:T},{path:"/500",name:"error500",component:T},{path:"*",redirect:"/404",hidden:!0}],G=new b.a({routes:w,scrollBehavior:function(){return{y:0}}}),x=a("zL8q"),y=a("Rf8U"),L=a.n(y),q=a("mtWM"),j=a.n(q),k=a("bOdI"),V=a.n(k),I=a("lRwf"),P=a.n(I),D=a("5reh");P.a.use(s.a);var U=new s.a.Store({state:{user:{},token:null,title:"",show:!1,tagRealName:"",uniqueId:""},mutations:(g={},V()(g,D.a,function(e,t){sessionStorage.token=t,e.token=t}),V()(g,D.b,function(e){sessionStorage.removeItem("token"),e.token=null}),V()(g,D.d,function(e,t){e.title=t}),V()(g,D.c,function(e,t){e.show=t}),V()(g,"modiftTagName",function(e,t){e.tagRealName=t}),V()(g,"changeUniqueId",function(e,t){e.uniqueId=t||""}),g)}),E=(a("Xcu2"),a("4qCZ"),a("uKUT"),a("GqmT")),N=a.n(E);i.a.polyfill(),Vue.use(N.a),Vue.config.devtools=!0,Vue.use(L.a,j.a),Vue.axios.defaults.withCredentials=!0,Vue.axios.interceptors.request.use(function(e){return e},function(e){return o.a.reject(e)}),Vue.axios.interceptors.response.use(function(e){return 200==e.status&&e.data.errorCode,e},function(e){if(e.response)switch(e.response.status){case 401:window.location.href=window.location.origin+"/gic-web/#/";case 500:x.Message.error("服务器500")}return o.a.reject(e.response.data)}),new Vue({el:"#app",router:G,store:U,components:{App:d},template:"<App/>"})},SJI6:function(e,t){e.exports=Vuex},"Vna/":function(e,t,a){var n={"./errorPage/401.vue":["4KSJ",8],"./errorPage/403.vue":["aM+6",6],"./errorPage/404.vue":["PRsh",9],"./errorPage/500.vue":["/HCr",7],"./errorPage/index.vue":["EE2z",1],"./index/index.vue":["YPWR",12],"./linktools/linktools.vue":["Lc2x",0,20],"./linktools/linktoolsold.vue":["/8lq",0,16],"./linktools/linktoolspage.vue":["HLON",0,25],"./login/login.vue":["6Qob",0,27],"./manualTag/manual-tag-value-edit.vue":["umZJ",0,2],"./manualTag/manualTagDetail.vue":["Tl/4",0,14],"./manualTag/manualTagEdit.vue":["308P",0,26],"./manualTag/manualTagLib.vue":["q490",0,18],"./manualTag/manualTagList.vue":["f0o3",0,21],"./memberGroup/edit-tag.vue":["jkVl",0],"./memberGroup/group-list.vue":["SJ7l",0,28],"./memberGroup/index.vue":["Gy5W",24],"./memberGroup/memberGroupDetail.vue":["+/ey",0,5],"./memberGroup/memberGroupEdit.vue":["q0vu",0,11],"./memberGroup/memberGroupList.vue":["oVck",0,4],"./memberGroup/recommend-table.vue":["9ZvA",30],"./memberGroup/tags-group-list.vue":["vcge",0],"./memberGroup/tags-group.vue":["wx1P",0],"./myTag/myTagDetail.vue":["ijla",0,13],"./myTag/myTagLib.vue":["twLH",0,17],"./myTag/myTagList.vue":["NJTp",0,22],"./platformTag/add-tag.vue":["tKpj",29],"./platformTag/member-tag.vue":["bytj",0,3],"./platformTag/platformTagDetail.vue":["KN59",0,10],"./platformTag/platformTagLib.vue":["puJc",0,19],"./platformTag/platformTagList.vue":["G/on",0,15],"./platformTag/second-tag.vue":["CUHN",0],"./platformTag/tag-container.vue":["Gndl",0],"./platformTag/tag-type.vue":["iHP3",0,23]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Vna/",e.exports=o},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,f){for(var o,b,d,i=0,u=[];i<a.length;i++)b=a[i],n[b]&&u.push(n[b][0]),n[b]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(c&&c(a,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)d=r(r.s=f[i]);return d};var a={},n={34:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"78b447d5e0679fc9216a",1:"1a66f3452cb905b67755",2:"1e821bca0bf41785011d",3:"6d47633c055d15efc02c",4:"76c2c1a5d7c12ba68fc8",5:"8d932affff1c7e086979",6:"245e8fc8e7be2823799e",7:"463c410b570dea893bef",8:"00c99a671866c96c95b7",9:"d6e86c55d9ed30932539",10:"921af27f26a9d92cd622",11:"7696c743e78e8fa58ee3",12:"b9471a24276d301a1e38",13:"4cbb12cbf7a9b8c30ba8",14:"012b850d5f8cb0572383",15:"3917aa09ec184a6ec064",16:"8b5816be3cf77b0756a0",17:"b43a253e53779917cbec",18:"16936cf5d39aeb5c8313",19:"308e228686726571bdcf",20:"41af8655086750d6262e",21:"938961d07778dc041c56",22:"1f5fb7a3cf35a2d10b33",23:"5cd622ab4c1b1afa3f6f",24:"babff488cb202e2e3303",25:"75fb7d5b168203653102",26:"b708c6b0a0da9bd559cf",27:"a91f14144ead01b55416",28:"7e8ce9ee59e705c91770",29:"14583ddcefc3b8dbbad1",30:"6a5ee2a1c27c5a16c485",31:"4581161a7b4779f896f3"}[e]+".js";var o=setTimeout(b,12e4);function b(){f.onerror=f.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=b,t.appendChild(f),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -20,9 +20,9 @@
<script src="//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js"></script>
<script src="//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js"></script>
<!-- 公共组件引用 cdn -->
<script src="//web-1251519181.file.myqcloud.com/components/header.2.0.30.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/header.2.0.35.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/store-new.2.0.51.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/store-new.2.0.55.js"></script>
<!-- <script src="//web-1251519181.file.myqcloud.com/components/datepicker.2.0.00.js"></script> -->
<script src="//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.11.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js"></script>
......
......@@ -4,6 +4,7 @@ import qs from 'qs';
import { Message } from 'element-ui';
Vue.axios.defaults.timeout = 15000;
let local = window.location.origin;
if (local.indexOf('localhost') != -1) {
local = 'http://gicdev.demogic.com';
......@@ -83,27 +84,6 @@ export const postRequest = (url, params) => {
method: 'post',
url: `${local}/gic-member-tag-web${url}`,
data: qs.stringify(params),
// params: params,
// paramsSerializer: function(params) {
// return QS.stringify(params, {arrayFormat: 'brackets'})
// },
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// console.log(data)
// data = JSON.stringify(data)
// return data;
// }],
// transformRequest: [
// function (data) { // 解决传递数组变成对象的问题
// Object.keys(data).forEach((key) => {
// if ((typeof data[key]) === 'object') {
// data[key] = JSON.stringify(data[key]) // 这里必须使用内置JSON对象转换
// }
// })
// data = qs.stringify(data) // 这里必须使用qs库进行转换
// return data
// }
// ],
headers: { 'content-type': 'application/x-www-form-urlencoded' } //multipart/form-data{"token": token}
});
};
......@@ -115,28 +95,6 @@ export const postJsonRequest = (url, params) => {
url: `${local}/gic-member-tag-web${url}`,
data: '{}',
params: params,
// paramsSerializer: function(params) {
// return QS.stringify(params, {arrayFormat: 'brackets'})
// },
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// console.log(data)
// data = JSON.stringify(data)
// return data;
// }],
// transformRequest: [
// function (data) { // 解决传递数组变成对象的问题
// Object.keys(data).forEach((key) => {
// if ((typeof data[key]) === 'object') {
// data[key] = JSON.stringify(data[key]) // 这里必须使用内置JSON对象转换
// }
// })
// data = qs.stringify(data) // 这里必须使用qs库进行转换
// return data
// }
// ],
// withCredentials: true,
// credentials: 'same-origin',
headers: { 'Content-Type': 'application/json;charset=UTF-8' } //multipart/form-data{"token": token}
});
};
......@@ -173,27 +131,6 @@ export const postForm = (url, params) => {
method: 'post',
url: `${local}/gic-member-tag-web${url}`,
data: params,
// params: params,
// paramsSerializer: function(params) {
// return QS.stringify(params, {arrayFormat: 'brackets'})
// },
// transformRequest: [function (data) {
// // Do whatever you want to transform the data
// console.log(data)
// data = JSON.stringify(data)
// return data;
// }],
// transformRequest: [
// function (data) { // 解决传递数组变成对象的问题
// Object.keys(data).forEach((key) => {
// if ((typeof data[key]) === 'object') {
// data[key] = JSON.stringify(data[key]) // 这里必须使用内置JSON对象转换
// }
// })
// data = qs.stringify(data) // 这里必须使用qs库进行转换
// return data
// }
// ],
headers: {'Content-Type': 'multipart/form-data'} //'content-type': 'application/x-www-form-urlencoded'multipart/form-data{"token": token}
headers: {'Content-Type': 'multipart/form-data'}
});
};
<template>
<!-- 标签模板配置 -->
<div class="tag-config">
<div class="tag-config" v-if="showTag">
<div v-for="(parent, pindex) in templateData" :key="pindex">
<!-- 1.选项控件 -->
<template v-if="parent.templateCode == 'tag001'">
......@@ -444,8 +444,8 @@
start-placeholder="开始时间"
end-placeholder="结束时间"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['000000', '235959']">
:default-time="['00:00:00', '23:59:59']"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</div>
<!-- 相对时段 -->
......@@ -514,6 +514,7 @@
start-placeholder="开始时间"
end-placeholder="结束时间"
format="yyyy-MM-dd"
:default-time="['00:00:00', '23:59:59']"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</div>
......@@ -646,6 +647,20 @@
</vue-gic-card>
</div>
<!-- 会员分层 tag021 -->
<template v-if="parent.templateCode == 'tag021'">
<div class="m-b-20" :key="'tag021' + pindex">
<div class="checkboxOption-wrap__body__checkAll border-box tag-mode">
<el-checkbox :indeterminate="parent.isIndeterminate" v-model="parent.checkAll" @change="handleCheckAllChange($event, parent)">全选</el-checkbox>
</div>
<div class="checkboxOption-wrap__body__options border-box tag-options">
<el-checkbox-group v-model="parent.checkeditems" @change="handleCheckedCitiesChange">
<el-checkbox v-for="(item, index) in parent.options" :label="item.memberTagGradeId" :key="item.memberTagGradeId + index">{{item.aliasName}}</el-checkbox>
</el-checkbox-group>
</div>
</div>
</template>
<!-- 嵌入商品选择器 -->
<div v-if="parent.templateCode == 'com022'">
<vue-gic-goods-selector ref="selector" @changelist="changelist"></vue-gic-goods-selector>
......@@ -687,11 +702,11 @@ export default {
components: {
VueGicCard
// vueGicGoodsSelector
},
data() {
return {
showTag: true,
select: {
expends: true
},
......@@ -890,6 +905,15 @@ export default {
timeSelect: '1', // 最近/之后
timeInput: ''
},
// 会员分层
tag021: {
checkeditems: [],
isIndeterminate: false,
checkAll: false,
options: [],
compute: 'in'
},
// 商品选择器
com022: {
selectList: [],
......@@ -961,7 +985,7 @@ export default {
},
handleCheckedCitiesChange(value) {
this.templateData.forEach(item => {
if (item.templateCode == 'tag001' || item.templateCode == 'tag013') {
if (item.templateCode == 'tag001' || item.templateCode == 'tag013' || item.templateCode == 'tag021') {
let checkedCount = value.length;
item.checkAll = checkedCount === item.options.length;
item.isIndeterminate = checkedCount > 0 && checkedCount < item.options.length;
......@@ -1129,7 +1153,16 @@ export default {
} else {
this.templateData.push(this[data.templateCode]);
}
/**
* 会员分层
*/
if (data.templateCode == 'tag021') {
this.axios.get(`${this.baseUrl}/gic-member-tag-web/memberTagGrade/gradeList?requestProject=gic-member-tag-web`).then(res => {
if (res.data.errorCode === 1) {
this.templateData[0].options = res.data.result;
}
});
}
/**
* 这里处理编辑回显数据
......@@ -1158,11 +1191,11 @@ export default {
asyncTemplateList() {
let tagValue = JSON.parse(this.templateDataList.tagValue);
// let tagParams = JSON.parse(this.templateDataList.tagParams);
let value = null;
let checkedCount = null;
for (let tem of this.templateData) {
console.log(this.templateData);
switch (tem.templateCode) {
case 'tag013':
value = tagValue.val[0].data.value.split(' ');
......@@ -1337,15 +1370,13 @@ export default {
* 将tagValue 替代模板数据的v-model
*/
replaceTemplateValue() {
// 回显数据
let tagValue = JSON.parse(this.templateDataList.tagValue);
let tagParams = JSON.parse(this.templateDataList.tagParams);
let value = null;
let selectVal = null;
let checkedCount = null;
// console.log(this.templateDataList);
// console.log(this.templateDataList.templateCode);
// console.log(this.templateData);
console.log(this.templateData, 'asdsadsad');
// compute 是计算属性的区间值 value是选中的值
for(let i = 0; i < this.templateDataList.templateCode.length; i++) {
......@@ -1379,6 +1410,7 @@ export default {
// 组合 属于和多选框
case 'tag001':
console.log(this.templateData, 'asdsadsad');
value = tagValue.val[0].data.value.split(' ');
for (let i = 0; i < this.templateData.length; i++) {
if (this.templateData[i].templateCode === 'tag001') {
......@@ -1391,10 +1423,10 @@ export default {
break;
case 'tag013':
console.log(this.templateData);
value = tagValue.val[0].data.value.split(' ');
for (let i = 0; i < this.templateData.length; i++) {
if (this.templateData[i].templateCode === 'tag013') {
console.log(this.templateData[i].checkeditems);
this.templateData[i].checkeditems = value;
}
}
......@@ -1402,6 +1434,19 @@ export default {
this.templateData[i].checkAll = checkedCount == this.templateData[i].options.length;
this.templateData[i].isIndeterminate = checkedCount > 0 && checkedCount < this.templateData[i].options.length;
break;
case 'tag021':
value = tagValue.val[0].data.value.split(' ');
for (let i = 0; i < this.templateData.length; i++) {
if (this.templateData[i].templateCode === 'tag021') {
this.templateData[i].checkeditems = value;
}
}
checkedCount = this.templateData[i].checkeditems.length;
this.templateData[i].checkAll = checkedCount == this.templateData[i].options.length;
this.templateData[i].isIndeterminate = checkedCount > 0 && checkedCount < this.templateData[i].options.length;
break;
// 属于不属于 从newTagVal里面比较
case 'tag002':
if (tagParams.template[0].selectTwo) {
......@@ -1454,7 +1499,6 @@ export default {
for (let i = 0; i < this.templateData.length; i++) {
if (this.templateData[i].templateCode === 'tag008') {
// 这里有多个value
console.log(tagValue.val[0].data.value);
value = tagValue.val[0].data.value.split(' ');
selectVal = tagParams.selectedVal[1].split(',');
selectVal.forEach((el, inx) => {
......@@ -1466,7 +1510,6 @@ export default {
});
}
});
console.log(this.templateData[i].addSelectTags);
}
}
break;
......@@ -1627,7 +1670,6 @@ export default {
case 'com022':
for (let i = 0; i < tagParams.template.length; i++) {
if (tagParams.template[i].templateCode == 'com022') {
console.log(tagParams.template[i].conditionsList);
this.$refs.selector[0].conditions = JSON.parse(JSON.stringify(tagParams.template[i].conditionsList));
}
}
......@@ -1669,6 +1711,18 @@ export default {
}
}
break;
// case 'tag021':
// value = tagValue.val[0].data.value.split(' ');
// for (let i = 0; i < this.templateData.length; i++) {
// if (this.templateData[i].templateCode === 'tag021') {
// this.templateData[i].checkeditems = value;
// }
// }
// checkedCount = this.templateData[i].checkeditems.length;
// this.templateData[i].checkAll = checkedCount == this.templateData[i].options.length;
// this.templateData[i].isIndeterminate = checkedCount > 0 && checkedCount < this.templateData[i].options.length;
// break;
}
}
},
......
......@@ -159,6 +159,14 @@ export default {
options: [
]
},
// 会员分层
tag021: {
checkeditems: [],
isIndeterminate: false,
checkAll: false,
options: [],
compute: 'in'
},
// 时间属性-固定时段/相对时段 年月日-年月日+最近+之后
tag014: {
......@@ -424,6 +432,23 @@ export default {
returnFlag = false;
}
}
if (code === 'tag021' && that.templateData.length === 1) {
tagValue.val[0].data.compute = that.templateData[0].compute;
const checkeditems = this.templateData[0].checkeditems.map(el => el);
this.templateData[0].options.forEach((ele, index) =>{
if (checkeditems.indexOf(ele.memberTagGradeId) != -1) {
this.postTemplateData.selectedVal.push(ele.aliasName);
itemArr.push(ele.memberTagGradeId);
}
});
this.templateData[0].checkeditems = itemArr;
tagValue.val[0].data.value = itemArr.join(' ');
if (!itemArr.length) {
returnFlag = false;
}
}
/**
* 商品选择必选
*/
......@@ -1043,9 +1068,6 @@ export default {
};
console.log(sendObj);
this.$emit('returnTagData', sendObj);
// }
// 更新暂存架
// that.$emit('updateTemp');
}
})
.catch(function(error) {
......@@ -1060,7 +1082,11 @@ export default {
if (val) {
item.checkeditems = [];
item.options.forEach(function(el, index) {
item.checkeditems.push(el.key);
if (item.templateCode === 'tag021') {
item.checkeditems.push(el.memberTagGradeId);
} else {
item.checkeditems.push(el.key);
}
});
} else {
item.checkeditems = [];
......@@ -1270,11 +1296,6 @@ export default {
}
item.searchOptions.forEach(function(ele, index) {
if (!!tagsMap && tagsMap.indexOf(ele.value) != -1) {
// that.$message.error({
// duration: 1000,
// message: "输入值已存在"
// })
// that.tagData.searchModel = [];
return false;
}
if (item.searchModel.indexOf(ele.key) != -1) {
......@@ -1653,16 +1674,6 @@ export default {
}
}, 200);
// 获取已存数据
// that
// .getExistData(that.tagData.tagId)
// .then(item => {
// that.templateData = item;
// })
// .catch(function(error) {
// console.log(error);
// });
if (resData.result.templateCode === 'tag009' || resData.result.templateCode === 'tag010') {
that.searchFlag = true;
}
......@@ -1718,9 +1729,7 @@ export default {
let selectVal = null;
let checkedCount = null;
console.log(this.templateDataList);
// console.log(this.templateDataList.templateCode);
// console.log(this.templateData);
console.log(this.templateDataList, 'asdsd');
// compute 是计算属性的区间值 value是选中的值
for(let i = 0; i < this.templateDataList.templateCode.length; i++) {
......@@ -1769,6 +1778,7 @@ export default {
break;
case 'tag013':
console.log(this.templateData, 'asdsad')
value = tagValue.val[0].data.value.split(' ');
for (let i = 0; i < this.templateData.length; i++) {
if (this.templateData[i].templateCode === 'tag013') {
......@@ -2144,12 +2154,7 @@ export default {
that.tagData.tagDescribe = resData.result.tagDescribe;
that.tagData.isActive = resData.result.isActive;
that.tagData.tagType = resData.result.tagType;
// 获取 columnKey
// if (!!resData.result.columnKey) {currentComputeType
that.currentKey = resData.result.columnKey;
// }else {
// that.currentKey = resData.result.tagId;
// }
let templateObj = resData.result.template;
if (!!templateObj) {
that.checkTagTemplate(templateObj.templateContent);
......
......@@ -3,3 +3,20 @@ const host = window.location.origin;
export const baseUrl = host.indexOf('localhost') > '-1' ? 'http://gicdev.demogic.com' : host;
export const ERR_OK = 0;
export const aliasNames = [
{ name: '核心活跃', title: '会员近一年,消费次数≥3次,消费总额≥3倍商户去年会员平均客单价且消费休眠天数为0-90天'},
{ name: '潜力活跃', title: '除核心会员、普通会员、未消费会员之外的其他会员且消费休眠天数为0-90天' },
{ name: '普通活跃', title: '会员历史累计消费,消费次数等于1且消费休眠天数为0-90天' },
{ name: '核心休眠', title: '会员近一年,消费次数≥3次,消费总额≥3倍商户去年会员平均客单价且消费休眠天数为91-180天'},
{ name: '潜力休眠', title: '除核心会员、普通会员、未消费会员之外的其他会员且消费休眠天数为91-180天' },
{ name: '普通休眠', title: '会员历史累计消费,消费次数等于1且消费休眠天数为91-180天' },
{ name: '核心沉睡', title: '会员近一年,消费次数≥3次,消费总额≥3倍商户近一年会员平均客单价且消费休眠天数为181-366天'},
{ name: '潜力沉睡', title: '除核心会员、普通会员、未消费会员之外的其他会员且消费休眠天数为181-366天' },
{ name: '普通沉睡', title: '会员历史累计消费,消费次数等于1且消费休眠天数为181-366天' },
{ name: '核心流失', title: '会员近一年,消费次数≥3次,消费总额≥3倍商户去年会员平均客单价且消费休眠天数>366天'},
{ name: '潜力流失', title: '除核心会员、普通会员、未消费会员之外的其他会员且消费休眠天数>366天' },
{ name: '普通流失', title: '会员历史累计消费,消费次数等于1且消费休眠天数>366天' },
{ name: '有微信未消费会员', title: '会员历史累计消费,消费次数等于0' },
{ name: '有手机号未消费会员', title: '会员历史累计消费,消费次数等于0' }
];
......@@ -67,6 +67,14 @@ export const memberGroupList = params =>
params: params
});
// 会员分层
export const getTagLists = (params) =>
request({
url: '/memberTagGrade/gradeList',
method: 'get',
params: params
});
// 会员分组分类 新增 编辑 memberTagGroupClassifyId 新增不需要,编辑需要
export const memberGroupModify = params =>
request({
......@@ -165,3 +173,56 @@ export const getIsAllowAdd = params =>
...params
}
});
// 会员分层刷新
export const updateGradeTag = params =>
request({
url: '/memberTagGrade/updateGradeCountBatch',
method: 'get',
params: {
requestProject: 'gic-member-tag-web',
...params
}
});
// 会员分层列表
export const findMemberList = param =>
request({
url: '/memberTagGrade/findMemberList',
method: 'get',
params: {
requestProject: 'gic-member-tag-web',
...param
}
});
// 是否开启会员分层
export const hasLevelFeature = () =>
request({
url: '/memberTagGrade/ensure',
method: 'get',
params: {
requestProject: 'gic-member-tag-web',
}
});
// 非实时分组数量
export const groupCount = () =>
request({
url: '/member-tag-group/group-count',
method: 'get',
params: {
requestProject: 'gic-member-tag-web',
}
});
// 分层具体分组信息
export const gradeList = (params = {}) =>
request({
url: '/memberTagGrade/gradeGroupList',
method: 'get',
params: {
requestProject: 'gic-member-tag-web',
...params
}
});
......@@ -28,4 +28,4 @@ export const getCityTree = params =>
url: '/api-plug/dict-district-tree',
method: 'post',
params
});
});
\ No newline at end of file
// import Vue from 'vue';
import Router from 'vue-router';
import _import from './_import.js';
// Vue.use(Router);
/* const error403 = r => {
import('view/errorPage/403.vue').then(module => {
r(module);
});
};
const error404 = r => {
import('view/errorPage/404.vue').then(module => {
r(module);
});
};
const error500 = r => {
import('view/errorPage/500.vue').then(module => {
r(module);
});
}; */
const errorPage = r => {
import('view/errorPage/index.vue').then(module => {
r(module);
......@@ -142,6 +124,14 @@ export const constantRouterMap = [
}
},
{
path: '/memberLevelDetail',
component: _import('memberGroup', 'memberLevelDetail'),
name: '分层详情',
meta: {
title: '会员标签-分层详情'
}
},
{
path: '/memberGroupEdit',
component: _import('memberGroup', 'memberGroupEdit'),
name: '编辑分组',
......
......@@ -42,9 +42,9 @@ export default {
redirect: this.$route.query.redirect,
token: '',
form: {
loginName: 'damogic',
password: '1',
eid: 'ff808081593917d90159398ec6340012'
loginName: 'HAZZYS',
password: 'EA48576F30BE1669971699C09AD05C94',
eid: 'ff8080816494494b0164a76b553a00e5'
}
};
},
......@@ -73,7 +73,7 @@ export default {
qs.stringify({
loginName: this.form.loginName,
password: this.form.password,
eid: 'ff808081593917d90159398ec6340012'
eid: 'ff8080816494494b0164a76b553a00e5'
})
)
.then(res => {
......
......@@ -34,6 +34,9 @@
<span :class="['download-failed-btn', {disabled: scope.row.status === 5}]" @click="downloadErrorData(scope.row)">点击下载</span>
失败会员清单
</span>
<span v-show="scope.row.errorCount > 0 || scope.row.successCount > 0">
成功{{scope.row.successCount}}条,失败{{scope.row.errorCount}}
</span>
</span>
<!-- 删除中的状态 -->
......@@ -577,6 +580,7 @@ export default {
this.tagValTableData[tagItemIndex].errorCount = result.needError;
// 重置百分比为0
this.tagValTableData[tagItemIndex].percent = 0;
this.getValueData();
}
break;
default:
......@@ -632,12 +636,9 @@ export default {
// 导出 excel 模板
downloadExcelTemp() {
const tHeader = ['手机号', '卡号'];
const data = [
['17098078224', 'jhdm2018071315'],
['13100000055', 'jhdm20180608000000003']
];
export_json_to_excel(tHeader, data, '导入 excel 模板');
let origin = window.location.origin;
origin = origin.indexOf('localhost') >= 0 ? 'http://http://gicdev.demogic.com/' : origin;
window.location.href = `${origin}/gic-member-tag-web/memberTag/member-import-template-download?requestProject=gic-member-tag-web`;
},
// 获取三级分类列表
......
<template>
<div class="group-list">
<div class="member-group">
<i class="icon-list el-icon-caret-top icon-transform" :class="expendClass" @click="handleExpend"></i>
<div class="member-group" :class="{'light-group': currentIndex === -1}" @click="handleExpend">
<i class="icon-list el-icon-caret-right icon-transform" :class="expendClass"></i>
我的会员分组
<i class="el-icon-plus icon-right icon-list" @click="addGroupDialog = true"></i>
</div>
......@@ -19,9 +19,18 @@
</ul>
</el-collapseTransition>
<!-- <div class="recommend-list" :class="{ 'recommend-active': active }" @click="getRecommendList">
推荐会员分组
</div> -->
<div :class="['member-group', { 'active-item': currentLevelIndex == -1 }]" v-show="hasLevel" @click="handleExpendTag">
<i class="icon-list el-icon-caret-right icon-transform" :class="expendTagClass"></i>
金字塔会员分层
</div>
<el-collapseTransition>
<ul class="lists" v-show="expendTxtTag == '展开'">
<li v-for="(list, i) in groupLists" :key="i" :class="['member-list', { 'active-li': i == currentLevelIndex }]" @click="handleChangeLevel(i, list)">
{{ list.aliasName }}
</li>
</ul>
</el-collapseTransition>
<el-dialog :title="title" :visible.sync="addGroupDialog" width="320px" top="30vh" :close-on-click-modal="false">
<div>
......@@ -39,7 +48,7 @@
<script>
import Vue from 'vue';
import { CollapseTransition } from 'element-ui';
import { memberGroupList, memberGroupModify, memberGroupDelete } from '@/request/api';
import { memberGroupList, memberGroupModify, memberGroupDelete, hasLevelFeature, getTagLists } from '@/request/api';
Vue.component(CollapseTransition.name, CollapseTransition);
......@@ -50,11 +59,19 @@ export default {
return {
lists: [],
addGroupDialog: false,
expendTxt: '展开',
expendTxt: '收起',
expendTxtTag: '收起',
groupName: '',
title: '新增分组名称',
currentIndex: 0,
active: false
currentIndex: -1,
currentTagIndex: 0,
active: false,
Taglists: [],
classTagName: 'tag-name',
// 是否分层
hasLevel: false,
currentLevelIndex: -2,
groupLists: []
};
},
......@@ -65,10 +82,38 @@ export default {
} else {
return '';
}
},
expendTagClass() {
if (this.expendTxtTag != '展开') {
return 'is-caret';
} else {
return '';
}
}
},
methods: {
// 处理分层
handleChangeLevel(i, list) {
this.currentLevelIndex = i;
this.$emit('second-list', { list: list, isTag: true });
},
// 分层
_getTagLists() {
getTagLists({ requestProject: 'gic-member-tag-web' }).then(res => {
if (res.errorCode === 1) {
this.groupLists = res.result;
console.log(this.groupLists);
}
});
},
handleChangeTag(i, list) {
this.active = false;
this.classTagName = 'tag-name active-name'
this.currentTagIndex = i;
// 第二级的分组数据
this.$emit('second-list', { list: list, isTag: true });
},
// 如果编辑二级会员分组分类 但是没有编辑有切换到其他的分类
handleNoEditClassifyName() {
this.lists = this.lists.map(el => ({
......@@ -77,6 +122,7 @@ export default {
}));
},
handleChangeIndex(i, list) {
this.classTagName = 'tag-name';
this.active = false;
this.currentIndex = i;
// 第二级的分组数据
......@@ -214,6 +260,7 @@ export default {
requestProject: 'gic-member-tag-web'
}).then(res => {
if (res.errorCode === 1) {
console.log(res.result);
this.lists = res.result.map(el => ({
...el,
edit: false
......@@ -223,21 +270,30 @@ export default {
},
// 收起
handleExpend() {
this.currentIndex = -1;
this.currentLevelIndex = -2;
this.expendTxt = this.expendTxt === '展开' ? '收起' : '展开';
this.$emit('second-list', 'all');
},
handleExpendTag() {
this.currentLevelIndex = -1;
this.currentIndex = -2;
this.expendTxtTag = this.expendTxtTag === '展开' ? '收起' : '展开';
this.$emit('second-list', 'allLevel');
},
// getRecommendList() {
// let editFlag = this.lists.some(el => el.edit);
// if (editFlag) {
// this.handleNoEditClassifyName();
// }
// this.active = true;
// this.currentIndex = -1;
// this.$emit('getRecommend');
// }
//
_hasLevelFeature() {
hasLevelFeature().then(res => {
if (res.errorCode === 1) {
this.hasLevel = res.result;
}
});
}
},
beforeMount() {
this.getMemberGroupList();
this._getTagLists();
this._hasLevelFeature();
}
};
</script>
......@@ -276,6 +332,22 @@ export default {
color: #303133;
}
}
.tag-name {
display: inline-block;
vertical-align: middle;
color: #303133;
margin-left: 19px;
font-weight: bold;
}
.active-name {
color: #1890ff;
}
.active-li {
color: #1890ff;
}
}
.light-group, .active-item {
color: #1890ff;
}
.member-list {
height: 32px;
......@@ -323,7 +395,7 @@ export default {
}
.icon-transform {
transition: transform 0.3s;
transform: rotate(180deg);
transform: rotate(90deg);
&.is-caret {
transform: rotate(0deg);
}
......
......@@ -14,17 +14,9 @@
</div>
<div class="memberGroupDetail-wrap__head">
<span class="tag-selected-title">筛选标签</span>
<!-- <div class="inline-block tag-cell-wrap flex-1">-->
<!-- <template v-for="(item, index) in selectedTagData">-->
<!-- <span v-if="index != 0" class="p-lr-18" :key="index">并且</span>-->
<!-- <span class="tag-cell inline-block border-box color-606266" :key="index + item.tagValueId">-->
<!-- <span>{{ item.tagName }}</span>-->
<!-- <span v-if="item.tagParams">【选择:{{ item.tagParams.selectedVal.join(',') }}</span>-->
<!-- </span>-->
<!-- </template>-->
<selected-tags-list :tagsList="selectedTagData" />
<!-- </div>-->
</div>
<div class="memberGroupDetail-wrap__table">
<el-table v-loading="loading" @sort-change="sortChange" :data="memberGroupDetailData" style="width: 100%">
<div v-for="item in selectedFields" :key="item.code">
......@@ -531,7 +523,7 @@ export default {
},
/**
* 获取分组详情 系统异常????
* 获取分组详情
*/
getGroupDetail(list) {
const that = this;
......
......@@ -94,6 +94,7 @@
v-model="ruleForm.updateType"
placeholder="请选择"
@change="ruleForm.updateDay = ''"
:disabled="ruleForm.isActive == 0"
>
<el-option
v-for="(item, index) in rateData"
......@@ -117,12 +118,16 @@
</el-select>
</el-form-item>
<el-form-item label :class="{'m-l-60': ruleForm.selectedTags.length > 1}">
<el-tooltip class="item" effect="dark" content="您商户的非实时分组数量已达到上限" placement="top-start" v-if="isAllowAdd && ruleForm.isActive == 0">
<div class="tips-count" style="color: red;margin-bottom: 15px;" v-show="ruleForm.isActive == 0 && realCount.totalCount <= realCount.currCount">
您的非实时会员分组数量已达上限{{realCount.totalCount}},建议您删除或失效部分非实时会员分组!
</div>
<el-tooltip class="item" effect="dark" :disabled="ruleForm.isActive == 0 && realCount.totalCount <= realCount.currCount" content="您商户的非实时分组数量已达到上限" placement="top-start" v-if="isAllowAdd && ruleForm.isActive == 0">
<el-button type="primary" style="color: #c0c4cc;cursor: not-allowed;background-image: none;background-color: #F5F7FA;border-color: #DCDFE6;">{{$route.query.memberTagGroupId ? '保存': '创建会员分组'}}</el-button>
</el-tooltip>
<el-button
v-else
type="primary"
:disabled="ruleForm.isActive == 0 && realCount.totalCount <= realCount.currCount"
@click.stop="confirmSavePost"
>{{$route.query.memberTagGroupId ? '保存': '创建会员分组'}}</el-button>
<el-button>
......@@ -199,7 +204,7 @@ import tagsGroupList from './tags-group-list.vue';
import showMsg from '@/common/js/showmsg';
import { postRequest } from '@/api/api';
import { getMemberTagCount } from '@/request/memberGroup.js';
import { getMemberTagList, memberGroupList, getIsAllowAdd } from '@/request/api.js';
import { getMemberTagList, memberGroupList, getIsAllowAdd, groupCount } from '@/request/api.js';
export default {
name: 'memberGroupEdit',
......@@ -222,6 +227,7 @@ export default {
}
};
return {
realCount: {},
templateCode: '',
// 编辑数据
ruleForm: {
......@@ -255,7 +261,7 @@ export default {
// 非实时需要根据标签判断
isActive: 0,
// 更新频率类型 1=每日一次 2=每周一次 3=每月一次
updateType: '',
updateType: 1,
// 更新日期
// 每日更新一次,无更新日期
// 每周更新一次,更新日期1到7对应周一到周日
......@@ -402,6 +408,13 @@ export default {
}
},
methods: {
_groupCount() {
groupCount().then(res => {
if (res.errorCode == 1) {
this.realCount = res.result;
}
})
},
/**
* 路由跳转
*/
......@@ -618,8 +631,10 @@ export default {
this.ruleForm.effectiveStatus = tagGroupDto.effectiveStatus;
this.ruleForm.describle = tagGroupDto.describle;
this.ruleForm.effectiveDateTmp = tagGroupDto.effectiveDate;
this.ruleForm.updateType = !!tagGroupDto.updateType ? Number(tagGroupDto.updateType) : '';
this.ruleForm.updateDay = !!tagGroupDto.updateDay ? Number(tagGroupDto.updateDay) : '';
// this.ruleForm.updateType = !!tagGroupDto.updateType ? Number(tagGroupDto.updateType) : '';
// this.ruleForm.updateDay = !!tagGroupDto.updateDay ? Number(tagGroupDto.updateDay) : '';
this.ruleForm.updateType = 1;
this.ruleForm.updateDay = '';
}
let tagValueDtoList = Array.isArray(resData.result.tagValueDtoList) ? resData.result.tagValueDtoList : [];
......@@ -695,6 +710,7 @@ export default {
this.getTagsGroupList();
this.getMemberGroupList();
this.getIsAllowAdd();
this._groupCount();
},
components: {
navCrumb,
......
......@@ -105,18 +105,21 @@
</div>
<div class="form-item" v-show="tagConfig.isRealTime == 0" :class="{ 'margin-60': marginSixty }">
<label for="">更新频率<span class="desc-labeltxt">(更新时间预计选择日期的0点至9点)</span></label>
<el-select class="w-200" v-model="tagConfig.updateType" placeholder="请选择">
<el-select class="w-200" v-model="tagConfig.updateType" placeholder="请选择" :disabled="tagConfig.isRealTime == 0">
<el-option v-for="(item, index) in rateData" :key="item.label" :label="item.label" :value="index + 1"></el-option>
</el-select>
<el-select class="w-200 p-l-8" v-model="tagConfig.updateDay" v-show="tagConfig.updateType != 1" placeholder="请选择">
<el-option v-for="(item, index) in rateData[tagConfig.updateType ? tagConfig.updateType - 1 : 0].options" :key="item" :label="item" :value="index + 1"></el-option>
</el-select>
</div>
<p class="tips-count" v-show="tagConfig.isRealTime == 0 && realCount.totalCount <= realCount.currCount">
您的非实时会员分组数量已达上限{{realCount.totalCount}},建议您删除或失效部分非实时会员分组!
</p>
</div>
</div>
<div class="fixed-btn">
<el-button type="primary" @click="createNewGroup">创建会员分组</el-button>
<!-- 当前人数大于总人数 -->
<el-button type="primary" @click="createNewGroup" :disabled="tagConfig.isRealTime == 0 && realCount.totalCount <= realCount.currCount">创建会员分组</el-button>
</div>
</div>
<edit-tag :showEditTagPop.sync="showEditTagPop" :tagData="tagData" :title="editPopType === 'add' ? '添加标签' : '更新标签'" @returnTagData="returnTagData" @refersh="refersh"></edit-tag>
......@@ -132,7 +135,7 @@ import TagsGroupList from '../memberGroup/tags-group-list';
import TagType from './tag-type';
import TagContainer from './tag-container';
import ManualTagEdit from '../manualTag/manualTagEdit';
import { getMemberTag, getMemberTagList, addNewGroup, memberGroupList } from '@/request/api';
import { getMemberTag, getMemberTagList, addNewGroup, memberGroupList, groupCount } from '@/request/api';
import EditTag from '../memberGroup/edit-tag';
import { mapState } from 'vuex';
......@@ -154,6 +157,7 @@ export default {
data() {
return {
realCount: Object.create(null),
margin60: false,
refershList: {},
tagConfig: {
......@@ -286,6 +290,13 @@ export default {
},
methods: {
_groupCount() {
groupCount().then(res => {
if (res.errorCode == 1) {
this.realCount = res.result;
}
})
},
// 设置默认的分组有效期
defaultDate() {
let date = new Date(new Date().getTime() + 365 * 24 * 3600 * 1000);
......@@ -587,6 +598,7 @@ export default {
},
beforeMount() {
this._groupCount();
// 一二三级都需要一个变量来保存自己的信息 在切换页码和数量的时候也要传参数过去
this.middleWareVariable = {};
/**
......@@ -609,7 +621,7 @@ export default {
memberTagGroupClassifyId: '0',
isRealTime: '',
textarea: '',
updateType: '',
updateType: 1,
updateDay: '',
date: ''
};
......@@ -873,6 +885,10 @@ export default {
background-color: #fff;
box-shadow: 3px 0px 12px 2px rgba(220, 223, 230, 0.75);
}
.tips-count {
font-size: 12px;
color: red;
}
}
.group-transtion-list {
transition: all .3s ease-in;
......
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