Commit 91f946d8 by member

修改部分问题

parent add172a2
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.7ed7cede0583cd064d7a93e69ad60449.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.07.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.07.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script type=text/javascript src=./static/js/manifest.726173e3112721146b58.js></script><script type=text/javascript src=./static/js/vendor.49a9dbbf5fde827ac896.js></script><script type=text/javascript src=./static/js/app.bb2c7fc49d0824098d6e.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.87b4ba03269d3ead9cb4ea900e65a237.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.07.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.07.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script type=text/javascript src=./static/js/manifest.5e18f816ef3d31f5feb3.js></script><script type=text/javascript src=./static/js/vendor.c30398db3b176e06f763.js></script><script type=text/javascript src=./static/js/app.eeffc5bcfce48e99fac8.js></script></body></html>
\ 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.
......@@ -41,3 +41,7 @@
transform: rotate(-90deg);
color: #c0c4cc;
}
.light-active {
color: #1890ff;
}
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.
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([11],{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
webpackJsonp([12],{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
webpackJsonp([14],{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([15],{BWbR:function(t,e){},"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("BWbR")},"data-v-c7474496",null);e.default=u.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.
webpackJsonp([18],{"/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
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
webpackJsonp([19],{YoRm:function(t,e){},iHP3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("lRwf"),a=n.n(s),i=n("zL8q"),l=n("CUHN");a.a.component(i.CollapseTransition.name,i.CollapseTransition);var c={name:"tag-type",components:{SecondTag:l.default},props:{tagList:Object},data:function(){return{list:{},typeName:"",editData:[],expends:"收起"}},computed:{iconLight:function(){return"手工标签"===this.list.name?"icon-tag-light":""}},methods:{handleChangeExpends:function(){this.expends="收起"===this.expends?"展开":"收起"},handleFirstTag:function(){this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(t){this.list=t}}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list"},["手工标签"!==t.list.name?n("span",{staticClass:"expends-txt",on:{click:t.handleChangeExpends}},[t._v(t._s(t.expends)+" ")]):t._e(),t._v(" "),n("el-collapseTransition",[n("div",{directives:[{name:"show",rawName:"v-show",value:"收起"===t.expends,expression:"expends === '收起'"}],staticClass:"first-tag"},[n("div",[n("i",{staticClass:"iconfont menu-icon",class:[t.list.icon,t.iconLight]}),t._v(" "),n("span",{staticClass:"tag-name",class:[t.iconLight],on:{click:t.handleFirstTag}},[t._v(t._s(t.list.name))])]),t._v(" "),n("div",{staticClass:"second-tag"},t._l(t.list.children,function(e,s){return n("second-tag",{key:s,attrs:{list:e,"tag-name":t.list.name}})}))])])],1)},staticRenderFns:[]};var d=n("VU/8")(c,o,!1,function(t){n("YoRm")},"data-v-697da39a",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([20],{"01RI":function(t,e){},iHP3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("lRwf"),a=n.n(s),i=n("zL8q"),l=n("CUHN");a.a.component(i.CollapseTransition.name,i.CollapseTransition);var c={name:"tag-type",components:{SecondTag:l.default},props:{tagList:Object},data:function(){return{list:{},typeName:"",editData:[],expends:"收起"}},computed:{iconLight:function(){return"手工标签"===this.list.name?"icon-tag-light":""}},methods:{handleChangeExpends:function(){this.expends="收起"===this.expends?"展开":"收起"},handleFirstTag:function(){this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(t){this.list=t}}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list"},["手工标签"!==t.list.name?n("span",{staticClass:"expends-txt",on:{click:t.handleChangeExpends}},[t._v(t._s(t.expends)+" ")]):t._e(),t._v(" "),n("div",{staticClass:"first-tag"},[n("div",[n("i",{staticClass:"iconfont menu-icon",class:[t.list.icon,t.iconLight]}),t._v(" "),n("span",{staticClass:"tag-name",class:[t.iconLight],on:{click:t.handleFirstTag}},[t._v(t._s(t.list.name))])]),t._v(" "),n("el-collapseTransition",[n("div",{directives:[{name:"show",rawName:"v-show",value:"收起"===t.expends,expression:"expends === '收起'"}],staticClass:"second-tag"},t._l(t.list.children,function(e,s){return n("second-tag",{key:s,attrs:{list:e,"tag-name":t.list.name}})}),1)])],1)])},staticRenderFns:[]};var d=n("VU/8")(c,o,!1,function(t){n("01RI")},"data-v-70d69669",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([22],{QzTp:function(e,t){},q0vu:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),o=a.n(r),l=a("3Xzz"),s=a("vcge"),i=a("Mk6G"),u=a("3E4D"),n=a("PI0u"),c=a("P9l9"),m={name:"memberGroupEdit",data:function(){var e=this;return{ruleForm:{memberTagGroupId:"",selectedTags:[[]],tagsGroupRelation:[],newTagVal:"",groupName:"",groupNameLength:0,effectiveDateTmp:"",describle:"",describleLength:0,isActive:0,updateType:"",updateDay:"",effectiveStatus:1},activeTagsGroupIndex:0,pickerOptions:{disabledDate:function(e){var t=(new Date).getTime()+31536e6;return e.getTime()<Date.now()-864e5||e.getTime()>t}},rules:{selectedTag:[{type:"array",required:!0,message:"请选择标签",trigger:"blur"}],groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"}],effectiveDateTmp:[{required:!0,message:"请选择分组过期时间",trigger:"change"}],updateType:[{validator:function(t,a,r){console.log(a),0==e.ruleForm.isActive&&""==a?r(new Error("请选择更新频率")):r()},trigger:"blur"}],updateDay:[{validator:function(t,a,r){console.log(a,e.ruleForm),0!=e.ruleForm.isActive||"1"==e.ruleForm.updateType&&""!=e.ruleForm.updateType||""!=a?r():(console.log(a,e.ruleForm),r(new Error("请选择更新频率")))},trigger:"change"}]},rateData:[{label:"每日一次",options:[]},{label:"每周一次",options:["周一","周二","周三","周四","周五","周六","周日"]},{label:"每月一次",options:["1号","2号","3号","4号","5号","6号","7号","8号","9号","10号","11号","12号","13号","14号","15号","16号","17号","18号","19号","20号","21号","22号","23号","24号","25号","26号","27号","28号"]}]}},computed:{navpath:function(){var e=this.$route.query.memberTagGroupId;return[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员标签",path:""},{name:"会员分组",path:"/memberGroupList"},{name:e?"会员分组编辑":"新增会员分组",path:""}]}},methods:{changeRoute:function(e){this.$router.push(e)},addTags:function(e){console.log("添加标签,标签组的索引是"+this.activeTagsGroupIndex)},editTags:function(e){console.log("编辑标签,标签组的索引是"+e.tagsGroupIndex+",标签的索引是"+e.tagsIndex)},toInput:function(e,t){var a="";switch(t){case"groupName":a=i.a.getCharVal(e.target.value,10).trim(),this.ruleForm.groupNameLength=i.a.getZhLen(a);break;case"describle":a=i.a.getByteVal(e.target.value,200).trim(),this.ruleForm.describleLength=i.a.getByteLen(a)}},checkRealTime:function(){if(this.selectedTagData.length){var e=this.selectedTagData.map(function(e){return parseInt(e.isActive)});return console.log("已选标签实时/非实时:",e),e.includes(0)?this.ruleForm.isActive=0:this.ruleForm.isActive=1,console.log(this.ruleForm),!1}this.ruleForm.isActive=0},confirmSave:Object(n.a)(function(){var e=this;e.$refs.ruleForm.validate(function(t){t&&e.postSave()})},500),confirmSavePost:function(e){},postSave:function(){var e=this,t=this.ruleForm,a={memberTagGroupId:t.memberTagGroupId,groupName:t.groupName,isRealTime:t.isActive,describle:t.describle,updateType:t.updateType,updateDay:t.updateDay,effectiveStatus:t.effectiveStatus,json:o()(t.selectedTags),effectiveDateTmp:t.effectiveDateTmp.split(" ")[0]+" 23:59:59"},r=e.ruleForm.memberTagGroupId?"/member-tag-group/update.json":"/member-tag-group/add.json";Object(c.b)(r,a).then(function(t){1==t.data.errorCode&&(u.a.showmsg("编辑成功","success"),e.changeRoute("/memberGroupList"))}).catch(function(e){console.log(e)})},getGroupData:function(){var e=this;Object(c.b)("/member-tag-group/findOneDetial.json",{memberTagGroupId:this.ruleForm.memberTagGroupId}).then(function(t){var a=t.data;if(1==a.errorCode){var r=a.result.tagGroupDto;r&&(e.ruleForm.groupName=r.groupName,e.ruleForm.isActive=r.isRealTime,e.ruleForm.effectiveStatus=r.effectiveStatus,e.ruleForm.describle=r.describle,e.ruleForm.effectiveDateTmp=r.effectiveDate,e.ruleForm.updateType=r.updateType?Number(r.updateType):"",e.ruleForm.updateDay=r.updateDay?Number(r.updateDay):"",e.ruleForm.groupNameLength=i.a.getZhLen(e.ruleForm.groupName),e.ruleForm.describleLength=i.a.getByteLen(e.ruleForm.describle));var l=Array.isArray(a.result.tagValueDtoList)?a.result.tagValueDtoList:[];e.ruleForm.selectedTags=l.map(function(e){return e.map(function(e){if("[object Object]"===Object.prototype.toString.call(e)){var t=JSON.parse(e.tagParams);e.newTagVal=t.selectedVal?o()(t.selectedVal):""}return e})}),e.ruleForm.selectedTags=e.ruleForm.selectedTags.filter(function(e){return e.length>0})}}).catch(function(e){console.log(e)})}},mounted:function(){var e=sessionStorage.getItem("selectTempTag"),t=this.$route.query.memberTagGroupId;if(e&&(this.ruleForm.selectedTags=JSON.parse(e),sessionStorage.removeItem("selectTempTag")),t)this.ruleForm.memberTagGroupId=t,this.getGroupData();else{var a=new Date((new Date).getTime()+31536e6),r=a.getFullYear()+"-",o=(a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1)+"-",l=(a.getDate()<10?"0"+a.getDate():a.getDate())+" ";this.ruleForm.effectiveDateTmp=r+o+l+"23:59:59"}},components:{navCrumb:l.a,tagsGroupList:s.default}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"memberGroupEdit-wrap__body"},[a("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"selectedTag"}},[a("div",{staticClass:"m-l-60"},[e._v("\n 已选标签\n "),a("span",{staticClass:"color-c0c4cc font-14"},[e._v("(同一个输入框内标签关系为且)")])]),e._v(" "),a("tags-group-list",{attrs:{selectedTagsData:e.ruleForm.selectedTags,tagsGroupRelation:e.ruleForm.tagsGroupRelation,activeTagsGroupIndex:e.activeTagsGroupIndex,showAddMenu:!0},on:{"update:activeTagsGroupIndex":function(t){e.activeTagsGroupIndex=t},addTags:e.addTags,editTags:e.editTags}})],1),e._v(" "),a("el-form-item",{staticClass:"w-220",attrs:{label:"",prop:"groupName"}},[a("div",[e._v("分组名称")]),e._v(" "),a("el-input",{staticClass:"w-220",nativeOn:{input:function(t){var a;a=t,e.toInput(a,"groupName")}},model:{value:e.ruleForm.groupName,callback:function(t){e.$set(e.ruleForm,"groupName",t)},expression:"ruleForm.groupName"}}),e._v(" "),a("label",{staticClass:"input-label"},[e._v(e._s(e.ruleForm.groupNameLength)+"/10")])],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"effectiveDateTmp"}},[a("div",[e._v("分组有效期")]),e._v(" "),a("el-date-picker",{attrs:{type:"date",editable:!1,format:"yyyyMMdd","value-format":"yyyy-MM-dd HH:mm:ss","default-time":"23:59:59","picker-options":e.pickerOptions},model:{value:e.ruleForm.effectiveDateTmp,callback:function(t){e.$set(e.ruleForm,"effectiveDateTmp",t)},expression:"ruleForm.effectiveDateTmp"}}),e._v(" "),a("div",{staticClass:"form-tip-text"},[a("label",[e._v("*分组有效期需早于所用标签的最早有效期,且最长不超过365天")])])],1),e._v(" "),a("el-form-item",{staticClass:"w-548",attrs:{label:"",prop:"describle"}},[a("div",[e._v("分组描述")]),e._v(" "),a("el-input",{staticClass:"w-548",staticStyle:{height:"96px"},attrs:{type:"textarea"},nativeOn:{input:function(t){var a;a=t,e.toInput(a,"describle")}},model:{value:e.ruleForm.describle,callback:function(t){e.$set(e.ruleForm,"describle",t)},expression:"ruleForm.describle"}}),e._v(" "),[a("label",{staticClass:"input-label textarea-label"},[e._v(e._s(e.ruleForm.describleLength)+"/200")])]],2),e._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:0==e.ruleForm.isActive,expression:"ruleForm.isActive == 0"}],attrs:{label:"",prop:"updateDay"}},[a("div",[e._v("更新频率")]),e._v(" "),a("el-select",{staticClass:"w-200",attrs:{placeholder:"请选择"},on:{change:function(t){e.ruleForm.updateDay=""}},model:{value:e.ruleForm.updateType,callback:function(t){e.$set(e.ruleForm,"updateType",t)},expression:"ruleForm.updateType"}},e._l(e.rateData,function(e,t){return a("el-option",{key:e.label,attrs:{label:e.label,value:t+1}})})),e._v(" "),a("el-select",{directives:[{name:"show",rawName:"v-show",value:1!=e.ruleForm.updateType,expression:"ruleForm.updateType != 1"}],staticClass:"w-200 p-l-8",attrs:{placeholder:"请选择"},model:{value:e.ruleForm.updateDay,callback:function(t){e.$set(e.ruleForm,"updateDay",t)},expression:"ruleForm.updateDay"}},e._l(e.rateData[e.ruleForm.updateType?e.ruleForm.updateType-1:0].options,function(e,t){return a("el-option",{key:e,attrs:{label:e,value:t+1}})})),e._v(" "),a("div",{staticClass:"form-tip-text"},[a("label",[e._v("*更新时间预计选择日期的凌晨0点至6点")])])],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){t.stopPropagation(),e.confirmSave(t)}}},[e._v("保存")]),e._v(" "),a("el-button",[a("router-link",{attrs:{to:"/memberGroupList"}},[e._v("返回")])],1)],1)],1)],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(m,p,!1,function(e){a("QzTp")},"data-v-32a3adc4",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([23],{"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){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 d=i("VU/8")(u,m,!1,function(t){i("I1mE")},null,null);e.default=d.exports},I1mE:function(t,e){}});
\ No newline at end of file
webpackJsonp([23],{"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("I1mE")},null,null);e.default=d.exports},I1mE:function(t,e){}});
\ No newline at end of file
webpackJsonp([29],{"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([29],{"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([7],{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],{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){return 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],{"/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([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){return 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([9],{"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
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,f){for(var o,d,b,i=0,u=[];i<a.length;i++)d=a[i],n[d]&&u.push(n[d][0]),n[d]=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++)b=r(r.s=f[i]);return b};var a={},n={33: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:"9301449ab4e07b738389",1:"eccd8c3c3d12ce4a6d73",2:"dd4fd4366dbfaac0e52c",3:"f9256d0f6e760a07f3d0",4:"da54212fe5f99784ce38",5:"e53d4ec06170e1ebfcbb",6:"aa7a32a60f2ca84fefa2",7:"11d704f96b8824a0a375",8:"b32919421979dd83644e",9:"232b87e90b169329ded8",10:"921af27f26a9d92cd622",11:"01620b31a8fa316c37cb",12:"ff49b3face62ef7aef5f",13:"109c66b4d5044a2c65ce",14:"0550dbc2c960c90c548f",15:"d3bc927a69a035e8f788",16:"a75aeea0cbeabe55b8a6",17:"de3efb98ab1af91a17c7",18:"34b693a8bcc1f192dc0f",19:"308e228686726571bdcf",20:"e27a8a52d3c50f45712e",21:"6ddaf764c36ea996789e",22:"e691b7683bf65fb112e7",23:"113ed2bdef919e3f8c31",24:"c9d5d98023a48e77bcbd",25:"6934db3f920c52113f90",26:"f7bcd73f7165acb2f64d",27:"2c48b10d124016d57c0b",28:"3493abb67f82d7dbc1cb",29:"85349d1f36348906697c",32:"a9aaa6e5d01423c1a780"}[e]+".js";var o=setTimeout(d,12e4);function d(){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=d,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
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,o){for(var d,f,b,i=0,u=[];i<c.length;i++)f=c[i],n[f]&&u.push(n[f][0]),n[f]=0;for(d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d]);for(a&&a(c,t,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=r(r.s=o[i]);return b};var c={},n={33:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var t=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,r.nc&&o.setAttribute("nonce",r.nc),o.src=r.p+"static/js/"+e+"."+{0:"3b71e4e30c7c90050ee8",1:"1a66f3452cb905b67755",2:"27d1674790786759964d",3:"8089183f50359d0d4406",4:"c46895883cbec3004a2d",5:"89fabda9668b0038f514",6:"31eb51419dea97959645",7:"f169140cbd6ad9f5611c",8:"fe61efcd1ccfc3412252",9:"ea583eedf0e8e01807bd",10:"f0730ab3ea2cc610aab4",11:"30616cbddf45a69084f1",12:"28c5bfe92e6eda494b2e",13:"a1393075eba1cc2eb1c4",14:"5cbcfe224ed2e517d4a0",15:"1372a8bae0d31bb31ac2",16:"faa7d103dc77e96d3467",17:"b697006b3a9d8f6b13ee",18:"9022ea0326694df97cda",19:"937e59cba96d6effcb53",20:"9f65507ba697d00f55ee",21:"daa385254c75a64d5ef0",22:"0a49d0bd1aaf97ee9705",23:"24cd9b4a91da0814be19",24:"c9d5d98023a48e77bcbd",25:"6934db3f920c52113f90",26:"3aca132c47a1220d1d2f",27:"2c48b10d124016d57c0b",28:"3493abb67f82d7dbc1cb",29:"93394f129023c3e6e8fb",32:"a9aaa6e5d01423c1a780"}[e]+".js";var d=setTimeout(f,12e4);function f(){o.onerror=o.onload=null,clearTimeout(d);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return o.onerror=o.onload=f,t.appendChild(o),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -13,12 +13,9 @@
"version": "conventional-changelog -p angular -i changelog.md -s -r 0 && git add changelog.md"
},
"dependencies": {
"@riophae/vue-treeselect": "0.0.29",
"@tinymce/tinymce-vue": "^1.0.8",
"element-ui": "^2.3.9",
"file-saver": "^1.3.8",
"tinymce": "^4.8.3",
"vant": "^1.6.13",
"vue": "^2.5.2",
"vue-clipboard2": "^0.2.0",
"vue-loader": "^13.7.3",
......@@ -26,8 +23,11 @@
"xlsx": "^0.13.5"
},
"devDependencies": {
"@riophae/vue-treeselect": "0.0.29",
"@tinymce/tinymce-vue": "^1.0.8",
"@antv/data-set": "^0.8.9",
"@antv/g2": "^3.1.0",
"@gic-test/vue-gic-datepicker": "^1.3.8",
"autoprefixer": "^7.1.2",
"axios": "^0.18.0",
"babel-core": "^6.22.1",
......
......@@ -333,9 +333,7 @@
<el-radio v-model="parent.radio" label="2">相对时段</el-radio>
<!-- 固定时段 -->
<div class="m-t-18 w-438 p-20 border-box bg-f3f6f9" v-if="parent.radio == 1">
<!-- @change="changeGicSelectValue(pindex, key, ind)" -->
<gic-select :dateval.sync="parent.monthDayRange"></gic-select>
<!-- <vue-gic-datepicker
<vue-gic-datepicker
v-model="parent.monthDayRange"
type="daterange"
:editable="false"
......@@ -345,7 +343,7 @@
format="MMdd"
value-format="MMdd"
>
</vue-gic-datepicker> -->
</vue-gic-datepicker>
</div>
<!-- 相对时段 -->
<div class="relative-range m-t-18 border-box" v-if="parent.radio != 1">
......@@ -549,7 +547,7 @@
<script>
import qs from 'qs';
import tagDetails from '@/components/tagDetail/mixin/index';
import GicSelect from './birth-select';
// import GicSelect from './birth-select';
import { getTagType, findWidget, findOndJson } from '@/request/tagConfig';
// 两个数字区间 numRange [0, 1]
......@@ -796,7 +794,7 @@ export default {
},
components: {
GicSelect
// GicSelect
},
watch: {
......@@ -819,7 +817,6 @@ export default {
return item[templateCodeKeyWords[index]];
},
getTemplateData() {
console.log(this.templateData);
return this.templateData.map(el => ({
...el,
templateValue: this.transformConfigvalue(el)
......
......@@ -13,7 +13,7 @@ import * as types from './store/types';
import '../theme/index.css';
import '../static/css/index.less';
import '../static/font/iconfont.css';
// import vueGicDatepicker from '@gic-test/vue-gic-datepicker';
import vueGicDatepicker from '@gic-test/vue-gic-datepicker';
/* import vueGicHeader from '@gic-test/vue-gic-header';
import vueGicAsideMenu from '@gic-test/vue-gic-aside-menu';
......@@ -30,7 +30,7 @@ Vue.use(vueAreaAb);
Vue.use(vueGicAsideMenu);
Vue.use(vueGicHeader); */
// Vue.use(vueGicDatepicker);
Vue.use(vueGicDatepicker);
Vue.config.devtools = true;
// Vue.config.productionTip = true;
// Vue.use(ElementUI, { size: 'large' });
......
......@@ -8,7 +8,8 @@ export default new Vuex.Store({
user: {},
token: null,
title: '',
show: false
show: false,
tagRealName: ''
},
mutations: {
[types.LOGIN]: (state, data) => {
......@@ -24,6 +25,9 @@ export default new Vuex.Store({
},
[types.SHOW]: (state, data) => {
state.show = data;
},
modiftTagName(state, data) {
state.tagRealName = data;
}
}
});
......@@ -10,7 +10,7 @@
<div class="main-tag">
<div class="tag-list">
<div class="search-box"></div>
<p class="user-info">我的用户</p>
<p class="user-info" @click="allTagList">我的用户</p>
<div class="list-box">
<TagType v-for="(list, i) in tagList" :key="i" :tag-list="list" @handleFristTag="handleFristTag"> </TagType>
</div>
......@@ -58,7 +58,7 @@
<tags-group-list :selectedTagsData="selectedTags" :tagsGroupRelation="tagsGroupRelation" @addTags="addTags" @editTags="editTags" :activeTagsGroupIndex.sync="activeTagsGroupIndex" />
<div class="form-item">
<label for="">分组名称</label>
<el-input v-model="tagConfig.groupName" :maxlength="10" style="width: 200px;"></el-input>
<el-input v-model="tagConfig.groupName" :maxlength="10" style="width: 200px;" placeholder="请输入内容"></el-input>
<span class="groupName-txt">{{ tagConfig.groupName.length }}/10</span>
</div>
<div class="form-item">
......@@ -67,7 +67,7 @@
</div>
<div class="form-item">
<label for="">分组描述</label>
<el-input type="textarea" v-model="tagConfig.textarea" :maxlength="200" style="width: 400px;"></el-input>
<el-input type="textarea" v-model="tagConfig.textarea" :maxlength="200" style="width: 400px;" placeholder="请输入内容"></el-input>
<span class="textarea-txt">{{ tagConfig.textarea.length }}/200</span>
</div>
<div class="form-item">
......@@ -211,13 +211,17 @@ export default {
},
methods: {
allTagList() {
this.loadMemberTagList({});
this.tagName = '全部标签';
this.$store.commit('modiftTagName', '全部标签');
},
checkRealTime() {
let arr = this.selectedTags.reduce((curr, el) => {
return curr.concat(el);
}, []);
let newActiveArr = arr.map(el => el.isActive);
console.log(newActiveArr);
this.tagConfig.isRealTime = newActiveArr.indexOf(0) > -1 ? 0 : 1;
},
createNewGroup() {
......@@ -252,17 +256,18 @@ export default {
returnTagData(list) {
// 把添加的标签数据加到显示组件中 activeTagsGroupIndex
// 判断是否已经存在于当前二维数组里面
let middleList = this.selectedTags.reduce((curr, el) => {
return curr.concat(el);
}, []);
this.selectedTags = JSON.parse(JSON.stringify(list));
// let middleList = this.selectedTags.reduce((curr, el) => {
// return curr.concat(el);
// }, []);
let index = middleList.findIndex(el => el.tagId === list.tagId);
// 不存在这个元素
if (index < 0) {
this.selectedTags[this.activeTagsGroupIndex].push(list);
} else {
// 否则就是修改
}
// let index = middleList.findIndex(el => el.tagId === list.tagId);
// // 不存在这个元素
// if (index < 0) {
// this.selectedTags[this.activeTagsGroupIndex].push(list);
// } else {
// // 否则就是修改
// }
},
editTags() {
//
......@@ -302,7 +307,7 @@ export default {
this.total = 0;
}
} catch (e) {
console.log(e);
// console.log(e);
}
},
......@@ -310,13 +315,13 @@ export default {
handleSizeChange(val) {
this.pageSize = val;
this.pageNum = 1;
this.loadMemberTagList({});
const param = this.JudgeIsHandTag();
this.loadMemberTagList(param);
},
// 当前页码改变
handleCurrentChange(val) {
this.pageNum = val;
const param = this.JudgeIsHandTag();
console.log(param);
this.loadMemberTagList(param);
},
/**
......@@ -332,7 +337,6 @@ export default {
type: this.middleWareVariable.type == 1 ? 1 : 0
};
}
console.log(param);
return param;
},
......@@ -341,6 +345,8 @@ export default {
this.loadMemberTagList({
searchName: this.memberTag
});
// this.tagName = '全部标签';
// this.handTag = null;
},
// 一级标签
handleFristTag(list) {
......@@ -362,6 +368,7 @@ export default {
},
changeTagTitle(name) {
this.tagName = name || '全部标签';
this.$store.commit('modiftTagName', this.tagName);
},
saveTagLevelGroupId(list) {
if (list.handTag == 1) {
......@@ -400,6 +407,7 @@ export default {
id: hangObj.id
});
this.tagName = hangObj.name;
this.$store.commit('modiftTagName', this.tagName);
this.handTag = true;
} else {
this.loadMemberTagList({
......@@ -472,11 +480,12 @@ export default {
overflow-y: auto;
flex: 0 0 470px;
padding: 23px 0 0 25px;
height: 580px;
// height: 580px;
border-right: 1px solid #ebeef5;
.user-info {
font-size: 16px;
color: #909399;
cursor: pointer;
}
}
.tag-all {
......@@ -491,9 +500,8 @@ export default {
font-weight: bold;
}
.page-box {
position: absolute;
bottom: 10px;
right: 20px;
float: right;
margin: 20px;
}
.add-newtag {
float: right;
......
<template>
<div class="second">
<span class="name" :class="{ 'manual-name': tagName === '手工标签' }" @click="handleSecondtag"> {{ tagList.name }} </span>
<i class="arrow-line" v-if="tagName !== '手工标签'">></i>
<span class="name" :class="{ 'manual-name': tagName === '手工标签', 'light-active': tagList.name === tagRealName }" @click="handleSecondtag"> {{ tagList.name }} </span>
<i class="arrow-line iconfont icon-next-" v-if="tagName !== '手工标签'"></i>
<el-popover placement="bottom" width="30" trigger="click">
<li class="more" @click="addNewType">新增子分类</li>
<li class="more" @click="handleEditType">编辑子分类</li>
<i slot="reference" class="el-icon-more icon-tag" v-if="tagName === '手工标签'"></i>
</el-popover>
<div class="third-list" :class="{ 'manual-tag': tagName === '手工标签' }">
<span v-if="tagName === '手工标签'" class="arrow"> > </span>
<span v-for="(item, i) in tagList.children" :key="i" class="tag-item" @click="handleThirdTag(item)">
<!-- <i class="iconfont icon-next-" v-if="tagName === '手工标签'"></i> -->
<span v-for="(item, i) in tagList.children" :key="i" :class="{ 'light-active': item.name === tagRealName }" class="tag-item" @click="handleThirdTag(item)">
{{ item.name }}
</span>
</div>
......@@ -51,6 +51,7 @@
<script>
import Emitter from '@/mixins/emitter';
import { mapState } from 'vuex';
import { newHandTag, thirdHandTagList, deleteThirdTag, editThirdTag } from '@/request/api';
export default {
......@@ -73,6 +74,7 @@ export default {
editVisiable: false,
editText: '编辑',
typeName: '',
currentIndex: -1,
newName: '' // 新增子分类
};
},
......@@ -86,6 +88,10 @@ export default {
}
},
computed: {
...mapState(['tagRealName'])
},
methods: {
// 新增子分类
addNewType() {
......@@ -235,7 +241,7 @@ export default {
/**
* 处理三级标签
*/
handleThirdTag(list) {
handleThirdTag(list, i) {
this.dispatch('member-tag', 'handle-third-tag', list);
}
},
......@@ -251,10 +257,12 @@ export default {
position: relative;
line-height: 26px;
.name {
position: relative;
top: 1px;
float: left;
width: 70px;
text-align: right;
line-height: 26px;
}
.light-active {
color: #1890ff;
}
.manual-name {
display: block;
......@@ -274,6 +282,12 @@ export default {
font-size: 14px;
color: #606266;
}
.light-active {
color: #1890ff;
}
.icon-next- {
font-size: 30px;
}
}
.manual-tag {
margin-left: 25px;
......@@ -283,9 +297,9 @@ export default {
}
.arrow-line {
float: left;
width: 20px;
text-align: center;
line-height: 26px;
position: relative;
top: 2px;
font-size: 30px;
}
.icon-tag {
position: absolute;
......
......@@ -2,12 +2,12 @@
<!-- 具体标签 -->
<div class="tag-some-list">
<div>
<el-table :data="tableData" height="460">
<el-table :data="tableData">
<el-table-column label="标签名称" prop="tagName">
<template slot-scope="scope">
<span class="tag-name">{{ scope.row.tagName }}</span>
<el-tooltip class="item" effect="dark" content="添加标签" placement="bottom">
<i class="el-icon-plus icon-tag-name" :class="{ 'el-icon-refresh': scope.row.refersh }" @click="addTag(scope.row)"></i>
<el-tooltip class="item" effect="dark" :content="scope.row.refersh ? '更新标签' : '添加标签'" placement="bottom">
<i class="iconfont icon-jia icon-tag-name" :class="{ 'icon-shoudonggengxin': scope.row.refersh }" @click="addTag(scope.row)"></i>
</el-tooltip>
</template>
</el-table-column>
......@@ -30,26 +30,12 @@
</el-table>
</div>
<el-dialog title="添加标签" :visible.sync="dialogVisible" width="540" :before-close="handleClose" :append-to-body="true">
<!-- <el-dialog title="添加标签" :visible.sync="dialogVisible" width="540" :before-close="handleClose" :append-to-body="true">
<div class="dialog-box">
<p class="tag-name">{{ tagData.tagName }}</p>
<p class="tag-desc">根据会员信息扩展字段统计而来</p>
<p class="tag-desc">标签值设置</p>
<!-- 所有标签的配置项 -->
<tag-config-options v-if="optionFlag" :tagId="tagId" ref="tagConfig"> </tag-config-options>
<!-- <div class="tag-value">
<p>标签值设置</p>
<div class="tag-area"></div>
<p>时间范围</p>
<div class="time-area">
<el-select v-model="value" placeholder="请选择">
<el-option v-for="item in TimeOptions" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select>
</div>
</div> -->
<div class="tag-mode">
<p>营销方式</p>
<tag-mode></tag-mode>
......@@ -59,14 +45,16 @@
<el-button @click="handleClose">取 消</el-button>
<el-button type="primary" @click="confirmOptions">确 定</el-button>
</span>
</el-dialog>
</el-dialog> -->
<edit-tag :showEditTagPop.sync="showEditTagPop" :tagData="tagData" :title="editPopType === 'add' ? '添加标签' : '编辑标签'" @returnTagData="returnTagData"></edit-tag>
</div>
</template>
<script>
import TagMode from '@/components/tag/tag-mode';
// import TagMode from '@/components/tag/tag-mode';
import tagDetails from '@/components/tagDetail/mixin/index';
import TagConfigOptions from '@/components/tag/tag-config-options';
// import TagConfigOptions from '@/components/tag/tag-config-options';
import EditTag from '../memberGroup/edit-tag';
import { delThirdHandTag } from '@/request/api';
export default {
......@@ -75,8 +63,9 @@ export default {
mixins: [tagDetails],
components: {
TagMode,
TagConfigOptions
// TagMode,
// TagConfigOptions,
EditTag
},
props: {
......@@ -101,23 +90,39 @@ export default {
dialogData: {},
TimeOptions: [],
optionFlag: false,
showEditTagPop: false,
tagData: {}, // 单个数据
editPopType: 'add',
templateData: [],
tagId: '',
postTemplateData: {
selectedVal: [],
template: []
},
tagData: {
tagId: '',
tagName: '',
tagDescribe: '',
isActive: 0, // 是否实时
inputSearch: '' // 输入搜索
}
activeTagsGroupIndex: 0,
selectedTags: [[]]
// tagData: {
// tagId: '',
// tagName: '',
// tagDescribe: '',
// isActive: 0, // 是否实时
// inputSearch: '' // 输入搜索
// }
};
},
methods: {
returnTagData(data) {
switch (this.editPopType) {
case 'add':
this.selectedTags[this.activeTagsGroupIndex].push(data);
break;
case 'edit':
this.selectedTags[this.activeTagsGroupIndex][this.activeTagIndex] = { ...data };
break;
}
this.$emit('returnTagData', this.selectedTags);
},
handleClose() {
this.dialogVisible = false;
this.optionFlag = false;
......@@ -130,7 +135,7 @@ export default {
if (list.tagId) {
this.optionFlag = true;
this.tagId = list.tagId;
this.dialogVisible = !this.dialogVisible;
this.showEditTagPop = true;
}
},
editHandTag(list) {
......@@ -207,7 +212,6 @@ export default {
<style lang="scss" scoped>
.tag-some-list {
height: 510px;
margin: 0 20px;
overflow-y: auto;
.tag-name {
......
<template>
<div class="list">
<span class="expends-txt" @click="handleChangeExpends" v-if="list.name !== '手工标签'">{{ expends }} </span>
<el-collapseTransition>
<div class="first-tag" v-show="expends === '收起'">
<div>
<i :class="[list.icon, iconLight]" class="iconfont menu-icon"></i>
<span class="tag-name" :class="[iconLight]" @click="handleFirstTag">{{ list.name }}</span>
</div>
<div class="second-tag">
<div class="first-tag">
<div>
<i :class="[list.icon, iconLight]" class="iconfont menu-icon"></i>
<span class="tag-name" :class="[iconLight]" @click="handleFirstTag">{{ list.name }}</span>
</div>
<el-collapseTransition>
<div class="second-tag" v-show="expends === '收起'">
<second-tag :list="item" :tag-name="list.name" v-for="(item, i) in list.children" :key="i"></second-tag>
</div>
</div>
</el-collapseTransition>
</el-collapseTransition>
</div>
</div>
</template>
......
......@@ -41,3 +41,5 @@
transform: rotate(-90deg);
color: #c0c4cc;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
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