Commit f3fbf637 by 无尘

fix: 修改生日区间和标签详情

parent 6f0c86bb
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.2590761f53bdba23b0657fe567567ba4.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.6d8ed6f78c558c076fa0.js></script><script type=text/javascript src=./static/js/vendor.99a96729502701aa94b2.js></script><script type=text/javascript src=./static/js/app.dba9673e6bb49ce5598e.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.ebd54364693df206eb4af0f8dca16f74.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.94f1610e195811e8722b.js></script><script type=text/javascript src=./static/js/vendor.aa70dd4e12e8d0e94a46.js></script><script type=text/javascript src=./static/js/app.3be38719d0e255c45bb1.js></script></body></html>
\ No newline at end of file \ 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.
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([12],{Gy5W:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("bOdI"),a=o.n(n),i=o("5reh"),s={name:"App",data:function(){var t;return t={projectName:"member-tag",contentHeight:"0px",collapseFlag:!1},a()(t,"collapseFlag",!1),a()(t,"leftModulesName","会员标签"),t},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},mounted:function(){this.$store.commit(i.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},l={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 c=o("VU/8")(s,l,!1,function(t){o("xHqn")},null,null);e.default=c.exports},xHqn:function(t,e){}}); webpackJsonp([10],{Gy5W:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o("bOdI"),a=o.n(n),i=o("5reh"),s={name:"App",data:function(){var t;return t={projectName:"member-tag",contentHeight:"0px",collapseFlag:!1},a()(t,"collapseFlag",!1),a()(t,"leftModulesName","会员标签"),t},methods:{toRouterView:function(t){console.log(t),this.$router.push({path:t.path})},collapseTag:function(t){console.log(t),this.collapseFlag=t}},mounted:function(){this.$store.commit(i.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},l={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 c=o("VU/8")(s,l,!1,function(t){o("mHC+")},null,null);e.default=c.exports},"mHC+":function(t,e){}});
//# sourceMappingURL=12.b58666146e6799371e48.js.map //# sourceMappingURL=10.81ad33b734993a58acdb.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([13],{YPWR:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("bOdI"),n=o.n(a),s=o("5reh"),l={name:"App",data:function(){var e;return e={projectName:"member-tag",contentHeight:"0px",collapseFlag:!1},n()(e,"collapseFlag",!1),n()(e,"leftModulesName","会员标签"),e},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},watch:{$route:{handler:function(e,t){console.log("获取当前路由:",e,t),this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.$store.commit(s.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"index"}},[o("vue-gic-header",{attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:e.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[o("vue-gic-aside-menu",{ref:"asideMenu",attrs:{projectName:e.projectName,leftModulesName:e.leftModulesName,collapseFlag:e.collapseFlag}})],1),e._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])],1)},staticRenderFns:[]};var c=o("VU/8")(l,i,!1,function(e){o("pMoW")},null,null);t.default=c.exports},pMoW:function(e,t){}}); webpackJsonp([12],{YPWR:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("bOdI"),n=o.n(a),s=o("5reh"),l={name:"App",data:function(){var e;return e={projectName:"member-tag",contentHeight:"0px",collapseFlag:!1},n()(e,"collapseFlag",!1),n()(e,"leftModulesName","会员标签"),e},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},watch:{$route:{handler:function(e,t){console.log("获取当前路由:",e,t),this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.$store.commit(s.d,"达摩GIC"),document.title=this.$store.state.title,this.pathName=window.location.hash.split("/")[1],console.log("pathname:",this.pathName,this.$route.path),this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},components:{}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"index"}},[o("vue-gic-header",{attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),o("div",{staticClass:"content",attrs:{id:"content"}},[o("div",{staticClass:"content-body",style:{height:e.contentHeight}},[o("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[o("vue-gic-aside-menu",{ref:"asideMenu",attrs:{projectName:e.projectName,leftModulesName:e.leftModulesName,collapseFlag:e.collapseFlag}})],1),e._v(" "),o("transition",{attrs:{name:"fade",mode:"out-in"}},[o("router-view")],1)],1)])],1)},staticRenderFns:[]};var c=o("VU/8")(l,i,!1,function(e){o("pMoW")},null,null);t.default=c.exports},pMoW:function(e,t){}});
//# sourceMappingURL=13.dddf9ee584dd5f50ca84.js.map //# sourceMappingURL=12.1807e60bc4ee83595e64.js.map
\ No newline at end of file \ 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([14],{JV2l:function(t,e){},NJTp:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("3Xzz"),n=a("5QTb"),o=a("M2/U"),i=a("3fED"),s=(a("Mk6G"),a("3E4D")),l=a("Ch4/"),u=a("PI0u"),c=a("P9l9"),g={name:"myTagList",data:function(){return{navpath:[{name:"首页",path:window.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:"/myTagLib"},{name:"我的标签列表",path:""}],showTagDetail:!1,tagShortDetailId:"",fromFlag:"myTag",tagLibName:"myTag",tagSearch:"",tagTableData:[],currentPage:1,pageSize:20,total:0,currentGroupId:0}},methods:{changeRoute:function(t){this.$router.push(t)},handleShowTag:function(){this.showTagDetail=!0},handleHideTag:function(t){this.showTagDetail=!1},toManualTagLib:function(){this.changeRoute("/manualTagList")},toPlatformTagLib:function(){this.changeRoute("/platformTagList")},searchEnterFun:Object(u.a)(function(t){this.currentPage=1,this.getTagList()},500),clearSearch:function(){this.currentPage=1,this.getTagList()},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(){var t=this,e={tagName:t.tagSearch,tagLevelGroupId:t.currentGroupId,pageNum:t.currentPage,pageSize:t.pageSize};Object(c.a)("/enterpriseMemberTag/pageList",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.result&&a.result.result.length?(a.result.result.forEach(function(t,e){t.popVisible=!1}),t.tagTableData=a.result.result):(t.tagTableData=[],t.$message.error({duration:1e3,message:"未找到数据"})),void(t.total=a.result.totalCount);l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},addTemporary:function(t){this.tagShortDetailId=t,this.showTagDetail=!0,this.$refs.tagTemp.hideTagList()},cancelDelTag:function(t,e){e.popVisible=!1},toDelTag:function(t,e){var a=this;a.$confirm("确认要删除此标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postToDelTag(t,e)}).catch(function(){})},postToDelTag:function(t,e){var a=this,r={enterpriseMemberTagId:e.enterpriseMemberTagId};Object(c.a)("/enterpriseMemberTag/del",r).then(function(e){var r=e.data;if(1==r.errorCode)return s.a.showmsg("删除成功","success"),a.tagTableData.splice(t,1),void a.$refs.tagTemp.getTagList();l.a.errorMsg(r)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},showShortDetail:function(t){this.showTagDetail=!0,this.tagShortDetailId=t},updateTemp:function(){this.$refs.tagTemp.getTagList(),this.$refs.tagTemp.showTagList()},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,tagShortDetail:i.a,tagCategory:n.a,tagTemporary:o.a}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"myTagList-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"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(a=e,t.searchEnterFun(a)):null;var a}},model:{value:t.tagSearch,callback:function(e){t.tagSearch=e},expression:"tagSearch"}})],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"}},[a("el-table-column",{attrs:{label:"标签名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"pointer name-hover",on:{click:function(a){t.addTemporary(e.row.tagId)}}},[t._v(t._s(e.row.tagName))])]}}])}),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:"/myTagDetail",query:{tagId:e.row.tagId}}}},[t._v("详情")]),t._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{type:"text",size:"small"},on:{click:function(a){t.addTemporary(e.row.tagId)}}},[t._v("添加至暂存架")]),t._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(a){t.toDelTag(e.$index,e.row)}},slot:"reference"},[t._v("\n 删除\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"),t._v(" "),a("tagShortDetail",{attrs:{fromFlag:t.fromFlag,tagShortId:t.tagShortDetailId,showTagDetail:t.showTagDetail},on:{"update:tagShortId":function(e){t.tagShortDetailId=e},hideTag:t.handleHideTag,updateTemp:t.updateTemp}}),t._v(" "),a("tag-temporary",{ref:"tagTemp",on:{showShortDetail:t.showShortDetail}})],1)},staticRenderFns:[]};var p=a("VU/8")(g,h,!1,function(t){a("JV2l")},"data-v-63ce4bf0",null);e.default=p.exports}});
//# sourceMappingURL=14.88db6edd5cb87f6e5747.js.map
\ No newline at end of file
webpackJsonp([14],{"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:(a.Message.error(t),!1)}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,"Enter"))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("OWNH")},null,null);e.default=d.exports},OWNH:function(t,e){}}); webpackJsonp([15],{"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:(a.Message.error(t),!1)}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,"Enter"))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("OWNH")},null,null);e.default=d.exports},OWNH:function(t,e){}});
//# sourceMappingURL=14.c4695f2a34ee0c60de49.js.map //# sourceMappingURL=15.9f61f06d1572f1265cc0.js.map
\ No newline at end of file \ No newline at end of file
webpackJsonp([17],{"G/on":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("3Xzz"),n=a("5QTb"),o=(a("Mk6G"),a("3E4D")),s=a("Ch4/"),i=(a("PI0u"),a("P9l9")),l={name:"platformTagList",data:function(){return{navpath:[{name:"首页",path:window.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 o.a.showmsg("添加成功","success"),void a.getTagList();s.a.errorMsg(e)}).catch(function(t){console.log(t),a.$message.error({duration:1e3,message:t.message})})},searchEnterFun:function(t){console.log(t),this.currentPage=1,this.getTagList()},clearSearch:function(){this.currentPage=1,this.getTagList()},handleSelectChange:function(t){console.log(t),this.selTagTableData=t},handleSizeChange:function(t){console.log("每页 "+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);s.a.errorMsg(a)}).catch(function(t){console.log(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}},beforeMount:function(){},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"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},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){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){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 g=a("VU/8")(l,c,!1,function(t){a("b5nK")},"data-v-51d54d6e",null);e.default=g.exports},b5nK:function(t,e){}});
//# sourceMappingURL=17.3b699a348620d2e8bee1.js.map
\ No newline at end of file
webpackJsonp([18],{"7zpu":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.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}},u={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"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchEnterFun(e):null}},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){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){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 c=a("VU/8")(l,u,!1,function(t){a("7zpu")},"data-v-4b07e43e",null);e.default=c.exports}});
//# sourceMappingURL=18.f7fb0936b3722ba45420.js.map
\ No newline at end of file
webpackJsonp([18],{eNXc:function(t,a){},twLH:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("BdFv"),r=(e("Mk6G"),e("3E4D"),e("Ch4/"),e("PI0u"),e("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:window.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:n.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=e("VU/8")(r,o,!1,function(t){e("eNXc")},"data-v-4763dd3a",null);a.default=s.exports}}); webpackJsonp([19],{eNXc:function(t,a){},twLH:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("BdFv"),r=(e("Mk6G"),e("3E4D"),e("Ch4/"),e("PI0u"),e("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:window.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:n.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=e("VU/8")(r,o,!1,function(t){e("eNXc")},"data-v-4763dd3a",null);a.default=s.exports}});
//# sourceMappingURL=18.06907d0bef47715b672d.js.map //# sourceMappingURL=19.c64b53861326d1f5df43.js.map
\ No newline at end of file \ 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([22],{"3PJM":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.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("3PJM")},"data-v-2cbababa",null);a.default=s.exports}});
//# sourceMappingURL=22.6fa2e5eec68626176108.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/view/platformTag/platformTagLib.vue","webpack:///./src/view/platformTag/platformTagLib.vue?5b05","webpack:///./src/view/platformTag/platformTagLib.vue"],"names":["platformTagLib","name","data","navpath","path","window","origin","relocation","tagCategory","methods","mounted","components","navCrumb","nav","tagLib","platformTag_platformTagLib","render","_h","this","$createElement","_c","_self","staticClass","attrs","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"yJA2DAA,sDACAC,KAAA,iBACAC,KAFA,WAGA,OAEAC,UAEAF,KAAA,KACAG,KAAAC,OAAAC,OAAA,0BACAC,YAAA,IAGAN,KAAA,OACAG,KAAA,KAGAH,KAAA,OACAG,KAAA,KAGAH,KAAA,QACAG,KAAA,KAIAI,YAAA,oBAGAC,WAGAC,QA/BA,aAkCAC,YACAC,SAAAC,EAAA,EACAC,SAAA,KC5FAC,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAA0BC,EAAvCF,KAAuCG,MAAAD,IAAAH,EAAwB,OAAAG,EAAA,OAAiBE,YAAA,oCAA8CF,EAAA,aAAkBG,OAAOpB,QAAvJe,KAAuJf,WAAvJe,KAA8KM,GAAA,KAAAJ,EAAA,OAAwBE,YAAA,kBAA4BF,EAAA,OAAYE,YAAA,cAAwBF,EAAA,WAAgBG,OAAOf,YAA7RU,KAA6RV,gBAA+B,KAA5TU,KAA4TM,GAAA,KAAAJ,EAAA,uBAErUK,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACA5B,EACAe,GATA,EAVA,SAAAc,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/22.6fa2e5eec68626176108.js","sourcesContent":["<template>\r\n <div class=\"platformTagLib-wrap common-wrap\">\r\n <nav-crumb :navpath=\"navpath\"></nav-crumb>\r\n <div class=\"right-content\">\r\n <div class=\"right-box\">\r\n <!-- <div class=\"platformTagLib-wrap__opt common-wrap__opt\">\r\n <el-input\r\n class=\"w-184\"\r\n placeholder=\"请输入标签\"\r\n prefix-icon=\"el-icon-search\"\r\n v-model=\"platformTagSearch\"\r\n @keyup.enter.native=\"searchEnterFun\">\r\n </el-input>\r\n <el-button type=\"primary\" @click=\"toAddMyTagLib\" class=\"fr\">添加至我的标签库</el-button>\r\n </div>\r\n\r\n <div class=\"platformTagLib-wrap__libFields common-libFields flex\" >\r\n <template v-for=\"(item,pindex) in libDatas\">\r\n <div class=\"platformTagLib-wrap__lib__cell common-lib__cell flex-1\" :key=\"pindex\">\r\n <div class=\"platformTagLib-wrap__cell__head border-box common-lib__cell__head\">\r\n <a :href=\"'#/platformTagList?test='+item.id\" class=\"block\"><i :class=\"['iconfont','common-lib__cell__icon',item.icon]\"></i><span class=\"platformTagLib-wrap__cell__name common-lib__cell__name\">{{item.name}}</span><span class=\"common-lib__icon__right fr\"><i class=\"el-icon-arrow-right\"></i></span>\r\n </a>\r\n </div>\r\n <div class=\"platformTagLib-wrap__cell__body border-box common-lib__cell__body\">\r\n <template v-for=\"(itemTwo,cindex) in item.children\">\r\n <div class=\"platformTagLib-wrap__cell__fieldRow border-box common-lib__cell__fieldRow\" :key=\"cindex\">\r\n <div class=\"platformTagLib-wrap__cell__fieldChild inline-block common-lib__cell__fieldChild\"> <a :href=\"'#/platformTagList?test='+itemTwo.id\" class=\"inline-block common-lib__cell__name\">{{itemTwo.name}}</a>\r\n <i class=\"el-icon-arrow-right\"></i>\r\n </div>\r\n <div class=\"platformTagLib-wrap__cell__fieldLastChild inline-block common-lib__cell__fieldLastChild\">\r\n <template v-for=\"(itemThree,lindex) in itemTwo.children\">\r\n <a :href=\"'#/platformTagList?test='+itemThree.id\" class=\"platformTagLib-wrap__cell__fieldName inline-block common-lib__cell__fieldName\">{{itemThree.name}}</a>\r\n </template>\r\n\r\n </div>\r\n </div>\r\n </template>\r\n </div>\r\n <div class=\"platformTagLib-wrap__cell__radio common-lib__cell__radio\">\r\n <el-radio v-model=\"libRadio\" :label=\"item.id\" name=\"\"> </el-radio>\r\n </div>\r\n </div>\r\n </template>\r\n </div> -->\r\n <tag-lib :tagCategory=\"tagCategory\"></tag-lib>\r\n\r\n </div>\r\n </div>\r\n <vue-gic-footer></vue-gic-footer>\r\n </div>\r\n</template>\r\n<script>\r\n import navCrumb from '@/components/nav/nav.vue';\r\n import tagLib from '@/components/tagLib.vue';\r\n import strLength from '@/common/js/strlen';\r\n import showMsg from '@/common/js/showmsg';\r\n import errMsg from '@/common/js/error';\r\n import { _debounce } from \"@/common/js/public\";\r\n import { getRequest, postRequest, postJson, postForm } from '@/api/api';\r\n export default {\r\n name: \"platformTagLib\",\r\n data() {\r\n return {\r\n // 面包屑参数\r\n navpath: [\r\n {\r\n name: '首页',\r\n path: `${window.origin}/report/#/memberSummary`,\r\n relocation: true\r\n },\r\n {\r\n name: '会员管理',\r\n path: ''\r\n },\r\n {\r\n name: '会员标签',\r\n path: ''\r\n },\r\n {\r\n name: '平台标签库',\r\n path: ''\r\n }\r\n ],\r\n\r\n tagCategory: 'platformTagList', // 当前标签类别\r\n }\r\n },\r\n methods: {\r\n\r\n },\r\n mounted() {\r\n\r\n },\r\n components: {\r\n navCrumb,\r\n tagLib\r\n }\r\n }\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n .platformTagLib-wrap {\r\n\r\n &__opt {\r\n\r\n }\r\n\r\n &__libFields {\r\n\r\n }\r\n\r\n &__lib__cell {\r\n\r\n }\r\n\r\n &__cell {\r\n\r\n &__head {\r\n\r\n }\r\n\r\n &__name {\r\n\r\n }\r\n &__icon {\r\n\r\n }\r\n\r\n &__body {\r\n\r\n }\r\n\r\n &__fieldRow {\r\n\r\n }\r\n\r\n &__fieldChild {\r\n\r\n\r\n }\r\n\r\n &__fieldLastChild {\r\n\r\n }\r\n\r\n &__fieldName {\r\n\r\n }\r\n\r\n &__radio {\r\n\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/view/platformTag/platformTagLib.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"platformTagLib-wrap common-wrap\"},[_c('nav-crumb',{attrs:{\"navpath\":_vm.navpath}}),_vm._v(\" \"),_c('div',{staticClass:\"right-content\"},[_c('div',{staticClass:\"right-box\"},[_c('tag-lib',{attrs:{\"tagCategory\":_vm.tagCategory}})],1)]),_vm._v(\" \"),_c('vue-gic-footer')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2cbababa\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/view/platformTag/platformTagLib.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2cbababa\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./platformTagLib.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./platformTagLib.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./platformTagLib.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2cbababa\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./platformTagLib.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2cbababa\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/view/platformTag/platformTagLib.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([24],{W5O5: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.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("W5O5")},"data-v-00fd2862",null);a.default=s.exports}});
//# sourceMappingURL=24.140fd1dc0d9dc2e621a1.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/view/platformTag/platformTagLib.vue","webpack:///./src/view/platformTag/platformTagLib.vue?e702","webpack:///./src/view/platformTag/platformTagLib.vue"],"names":["platformTagLib","name","data","navpath","path","window","origin","relocation","tagCategory","methods","mounted","components","navCrumb","nav","tagLib","platformTag_platformTagLib","render","_h","this","$createElement","_c","_self","staticClass","attrs","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"uJAmBAA,sDACAC,KAAA,iBACAC,KAFA,WAGA,OAEAC,UAEAF,KAAA,KACAG,KAAAC,OAAAC,OAAA,0BACAC,YAAA,IAGAN,KAAA,OACAG,KAAA,KAGAH,KAAA,OACAG,KAAA,KAGAH,KAAA,QACAG,KAAA,KAGAI,YAAA,oBAGAC,WAGAC,QA9BA,aAiCAC,YACAC,SAAAC,EAAA,EACAC,SAAA,KCnDAC,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAA0BC,EAAvCF,KAAuCG,MAAAD,IAAAH,EAAwB,OAAAG,EAAA,OAAiBE,YAAA,oCAA8CF,EAAA,aAAkBG,OAAOpB,QAAvJe,KAAuJf,WAAvJe,KAA8KM,GAAA,KAAAJ,EAAA,OAAwBE,YAAA,kBAA4BF,EAAA,OAAYE,YAAA,cAAwBF,EAAA,WAAgBG,OAAOf,YAA7RU,KAA6RV,gBAA+B,KAA5TU,KAA4TM,GAAA,KAAAJ,EAAA,uBAErUK,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACA5B,EACAe,GATA,EAVA,SAAAc,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/24.140fd1dc0d9dc2e621a1.js","sourcesContent":["<template>\n <div class=\"platformTagLib-wrap common-wrap\">\n <nav-crumb :navpath=\"navpath\"></nav-crumb>\n <div class=\"right-content\">\n <div class=\"right-box\">\n <tag-lib :tagCategory=\"tagCategory\"></tag-lib>\n </div>\n </div>\n <vue-gic-footer></vue-gic-footer>\n </div>\n</template>\n<script>\n import navCrumb from '@/components/nav/nav.vue';\n import tagLib from '@/components/tagLib.vue';\n import strLength from '@/common/js/strlen';\n import showMsg from '@/common/js/showmsg';\n import errMsg from '@/common/js/error';\n import { _debounce } from \"@/common/js/public\";\n import { getRequest, postRequest, postJson, postForm } from '@/api/api';\n export default {\n name: \"platformTagLib\",\n data() {\n return {\n // 面包屑参数\n navpath: [\n {\n name: '首页',\n path: `${window.origin}/report/#/memberSummary`,\n relocation: true\n },\n {\n name: '会员管理',\n path: ''\n },\n {\n name: '会员标签',\n path: ''\n },\n {\n name: '平台标签库',\n path: ''\n }\n ],\n tagCategory: 'platformTagList', // 当前标签类别\n }\n },\n methods: {\n\n },\n mounted() {\n\n },\n components: {\n navCrumb,\n tagLib\n }\n }\n</script>\n<style lang=\"scss\" scoped>\n .platformTagLib-wrap {\n\n &__opt {\n\n }\n\n &__libFields {\n\n }\n\n &__lib__cell {\n\n }\n\n &__cell {\n\n &__head {\n\n }\n\n &__name {\n\n }\n &__icon {\n\n }\n\n &__body {\n\n }\n\n &__fieldRow {\n\n }\n\n &__fieldChild {\n\n\n }\n\n &__fieldLastChild {\n\n }\n\n &__fieldName {\n\n }\n\n &__radio {\n\n }\n }\n\n\n }\n\n</style>\n\n\n\n// WEBPACK FOOTER //\n// src/view/platformTag/platformTagLib.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"platformTagLib-wrap common-wrap\"},[_c('nav-crumb',{attrs:{\"navpath\":_vm.navpath}}),_vm._v(\" \"),_c('div',{staticClass:\"right-content\"},[_c('div',{staticClass:\"right-box\"},[_c('tag-lib',{attrs:{\"tagCategory\":_vm.tagCategory}})],1)]),_vm._v(\" \"),_c('vue-gic-footer')],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-00fd2862\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/view/platformTag/platformTagLib.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-00fd2862\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!sass-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./platformTagLib.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./platformTagLib.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./platformTagLib.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-00fd2862\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./platformTagLib.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-00fd2862\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/view/platformTag/platformTagLib.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([24],{"5R/C":function(t,e){},NJTp:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("3Xzz"),o=a("5QTb"),n=a("M2/U"),s=a("3fED"),i=(a("Mk6G"),a("3E4D")),l=a("Ch4/"),g=a("PI0u"),c=a("P9l9"),u={name:"myTagList",data:function(){return{navpath:[{name:"首页",path:window.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:"/myTagLib"},{name:"我的标签列表",path:""}],showTagDetail:!1,tagShortDetailId:"",fromFlag:"myTag",tagLibName:"myTag",tagSearch:"",tagTableData:[],currentPage:1,pageSize:20,total:0,currentGroupId:0}},methods:{changeRoute:function(t){this.$router.push(t)},handleShowTag:function(){this.showTagDetail=!0},handleHideTag:function(t){this.showTagDetail=!1},toManualTagLib:function(){this.changeRoute("/manualTagList")},toPlatformTagLib:function(){this.changeRoute("/platformTagList")},searchEnterFun:Object(g.a)(function(t){console.log(t),this.currentPage=1,this.getTagList()},500),clearSearch:function(){this.currentPage=1,this.getTagList()},handleSizeChange:function(t){console.log("每页 "+t+" 条"),this.pageSize=t,this.getTagList()},handleCurrentChange:function(t){console.log("当前页: "+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(){var t=this,e={tagName:t.tagSearch,tagLevelGroupId:t.currentGroupId,pageNum:t.currentPage,pageSize:t.pageSize};Object(c.a)("/enterpriseMemberTag/pageList",e).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.result&&a.result.result.length?(a.result.result.forEach(function(t,e){t.popVisible=!1}),t.tagTableData=a.result.result):(t.tagTableData=[],t.$message.error({duration:1e3,message:"未找到数据"})),void(t.total=a.result.totalCount);l.a.errorMsg(a)}).catch(function(e){console.log(e),t.$message.error({duration:1e3,message:e.message})})},addTemporary:function(t){console.log(t),this.tagShortDetailId=t,this.showTagDetail=!0,this.$refs.tagTemp.hideTagList()},cancelDelTag:function(t,e){e.popVisible=!1},toDelTag:function(t,e){var a=this;a.$confirm("确认要删除此标签吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postToDelTag(t,e)}).catch(function(){})},postToDelTag:function(t,e){var a=this,r={enterpriseMemberTagId:e.enterpriseMemberTagId};Object(c.a)("/enterpriseMemberTag/del",r).then(function(e){var r=e.data;if(1==r.errorCode)return i.a.showmsg("删除成功","success"),a.tagTableData.splice(t,1),void a.$refs.tagTemp.getTagList();l.a.errorMsg(r)}).catch(function(t){console.log(t),a.$message.error({duration:1e3,message:t.message})})},showShortDetail:function(t){this.showTagDetail=!0,this.tagShortDetailId=t},updateTemp:function(){this.$refs.tagTemp.getTagList(),this.$refs.tagTemp.showTagList()},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,tagShortDetail:s.a,tagCategory:o.a,tagTemporary:n.a}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"myTagList-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"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?(a=e,t.searchEnterFun(a)):null;var a}},model:{value:t.tagSearch,callback:function(e){t.tagSearch=e},expression:"tagSearch"}})],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"}},[a("el-table-column",{attrs:{label:"标签名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"pointer name-hover",on:{click:function(a){t.addTemporary(e.row.tagId)}}},[t._v(t._s(e.row.tagName))])]}}])}),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:"/myTagDetail",query:{tagId:e.row.tagId}}}},[t._v("详情")]),t._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{type:"text",size:"small"},on:{click:function(a){t.addTemporary(e.row.tagId)}}},[t._v("添加至暂存架")]),t._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(a){t.toDelTag(e.$index,e.row)}},slot:"reference"},[t._v("\n 删除\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"),t._v(" "),a("tagShortDetail",{attrs:{fromFlag:t.fromFlag,tagShortId:t.tagShortDetailId,showTagDetail:t.showTagDetail},on:{"update:tagShortId":function(e){t.tagShortDetailId=e},hideTag:t.handleHideTag,updateTemp:t.updateTemp}}),t._v(" "),a("tag-temporary",{ref:"tagTemp",on:{showShortDetail:t.showShortDetail}})],1)},staticRenderFns:[]};var p=a("VU/8")(u,h,!1,function(t){a("5R/C")},"data-v-01f09e76",null);e.default=p.exports}});
//# sourceMappingURL=24.cdb5e3206ba2908345d1.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var d,f,b,i=0,u=[];i<r.length;i++)f=r[i],t[f]&&u.push(t[f][0]),t[f]=0;for(d in o)Object.prototype.hasOwnProperty.call(o,d)&&(e[d]=o[d]);for(n&&n(r,o,a);u.length;)u.shift()();if(a)for(i=0;i<a.length;i++)b=c(c.s=a[i]);return b};var r={},t={28:0};function c(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,c){n=t[e]=[r,c]});n[2]=r;var o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,c.nc&&a.setAttribute("nonce",c.nc),a.src=c.p+"static/js/"+e+"."+{0:"17d5e20c8f34f4a9c3cd",1:"d1b66d4bf3d45b2621dd",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"6c23e6d10619f4b09182",6:"94ac359e4e964b2a0ba8",7:"3615b0b783b679e846e1",8:"b011da43d5a969ab60a4",9:"48de66bae77e31e7abb0",10:"1ef01392428bbd88763d",11:"9cde2c61360fd3c888a5",12:"b58666146e6799371e48",13:"dddf9ee584dd5f50ca84",14:"c4695f2a34ee0c60de49",15:"62cb7450622bdc1f1abb",16:"2f5942e91ee9b162d882",17:"3b699a348620d2e8bee1",18:"06907d0bef47715b672d",19:"6e489edb6989f1f243db",20:"8a1928a90d48212dcc7c",21:"e3813bcee57ead7d7cc6",22:"6fa2e5eec68626176108",23:"012fa9b9212b0d170c6d",24:"cdb5e3206ba2908345d1",27:"02b5e0be03d9340bd130"}[e]+".js";var d=setTimeout(f,12e4);function f(){a.onerror=a.onload=null,clearTimeout(d);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=f,o.appendChild(a),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.6d8ed6f78c558c076fa0.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var f,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=c(c.s=o[i]);return b};var r={},t={28:0};function c(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,c){n=t[e]=[r,c]});n[2]=r;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,c.nc&&o.setAttribute("nonce",c.nc),o.src=c.p+"static/js/"+e+"."+{0:"7e9c1df6817742ca7424",1:"d1b66d4bf3d45b2621dd",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"ebe6e0cacbb2f02ab669",6:"8404bf285ebf6d747079",7:"f4707d897e032128f9f9",8:"b011da43d5a969ab60a4",9:"48de66bae77e31e7abb0",10:"81ad33b734993a58acdb",11:"9cde2c61360fd3c888a5",12:"1807e60bc4ee83595e64",13:"392f618adcea9a481a64",14:"88db6edd5cb87f6e5747",15:"9f61f06d1572f1265cc0",16:"477513682c50d7d8583c",17:"83e469d672229c638715",18:"f7fb0936b3722ba45420",19:"c64b53861326d1f5df43",20:"f58ebe21766738997aa6",21:"4829f09a632ccaf0daae",22:"28fc8f2d91738ee402f9",23:"012fa9b9212b0d170c6d",24:"140fd1dc0d9dc2e621a1",27:"02b5e0be03d9340bd130"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,a.appendChild(o),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.94f1610e195811e8722b.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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.
...@@ -157,9 +157,9 @@ ...@@ -157,9 +157,9 @@
} }
}, },
"@gic-test/vue-gic-store-new": { "@gic-test/vue-gic-store-new": {
"version": "1.2.4", "version": "1.2.8",
"resolved": "http://www.gicdev.com:7001/@gic-test/vue-gic-store-new/download/@gic-test/vue-gic-store-new-1.2.4.tgz", "resolved": "http://www.gicdev.com:7001/@gic-test/vue-gic-store-new/download/@gic-test/vue-gic-store-new-1.2.8.tgz",
"integrity": "sha1-IMbuv4FaJt2zzjxxYJVc3FovVSs=", "integrity": "sha1-q1SPdRMg/vIo3tRrxEiE0HrRpcE=",
"requires": { "requires": {
"axios": "^0.18.0", "axios": "^0.18.0",
"qs": "^6.5.2", "qs": "^6.5.2",
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"@gic-test/vue-gic-footer": "^1.0.10", "@gic-test/vue-gic-footer": "^1.0.10",
"@gic-test/vue-gic-header": "^1.3.35", "@gic-test/vue-gic-header": "^1.3.35",
"@gic-test/vue-gic-img-preview": "^1.0.12", "@gic-test/vue-gic-img-preview": "^1.0.12",
"@gic-test/vue-gic-store-new": "^1.2.4", "@gic-test/vue-gic-store-new": "^1.2.8",
"@riophae/vue-treeselect": "0.0.29", "@riophae/vue-treeselect": "0.0.29",
"@tinymce/tinymce-vue": "^1.0.8", "@tinymce/tinymce-vue": "^1.0.8",
"element-ui": "^2.3.9", "element-ui": "^2.3.9",
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
</div> </div>
<i slot="reference" class="el-icon-more"></i> <i slot="reference" class="el-icon-more"></i>
</el-popover> </el-popover>
</div> </div>
</div> </div>
</template> </template>
...@@ -46,49 +44,14 @@ ...@@ -46,49 +44,14 @@
// 当前标签库名 // 当前标签库名
tagLibName: { tagLibName: {
type: String type: String
}, }
// 当前标签库 id
// tagCateId: {
// type: String
// },
}, },
data() { data() {
return { return {
// 子分类数据 // 子分类数据
tagLevelGroupId: '', tagLevelGroupId: '',
currentTagDatas: [ currentTagDatas: [],
// { childTagDatas: [],
// tagLevelGroupId: 1,
// levelName: '基本信息',
// },
// {
// tagLevelGroupId: 2,
// levelName: '地理信息',
// },
],
childTagDatas: [
// {
// tagLevelGroupId: 1,
// levelName: '其他一',
// count: 12
// },
// {
// tagLevelGroupId: 2,
// levelName: '其他二',
// count: 12
// },
// {
// tagLevelGroupId: 1,
// levelName: '其他一',
// count: 12
// },
// {
// tagLevelGroupId: 2,
// levelName: '其他二',
// count: 12
// },
],
} }
}, },
methods: { methods: {
...@@ -100,24 +63,17 @@ ...@@ -100,24 +63,17 @@
const para = { const para = {
tagLevelGroupId: that.tagLevelGroupId tagLevelGroupId: that.tagLevelGroupId
} }
postRequest(url,para) postRequest(url,para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) const resData = res.data;
const resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// showMsg.showmsg('成功','success')
that.currentTagDatas = resData.result.currentNode; // 当前分类数据 that.currentTagDatas = resData.result.currentNode; // 当前分类数据
that.childTagDatas = resData.result.dataList; // 子类数据 that.childTagDatas = resData.result.dataList; // 子类数据
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -129,18 +85,18 @@ ...@@ -129,18 +85,18 @@
* 根据当前传递参数判断获取不同的分类数据 * 根据当前传递参数判断获取不同的分类数据
*/ */
checkGetData(tagLibName) { checkGetData(tagLibName) {
const that = this const that = this;
// 平台 // 平台
if (tagLibName == 'platformTag') { if (tagLibName == 'platformTag') {
that.getCateData('/memberTag/platformTagLevel') that.getCateData('/memberTag/platformTagLevel');
} }
// 手工 // 手工
if (tagLibName == 'manualTag') { if (tagLibName == 'manualTag') {
that.getCateData('/memberTag/handTagLevel') that.getCateData('/memberTag/handTagLevel');
} }
// 我的 // 我的
if (tagLibName == 'myTag') { if (tagLibName == 'myTag') {
that.getCateData('/enterpriseMemberTag/enterpriseTagLevel') that.getCateData('/enterpriseMemberTag/enterpriseTagLevel');
} }
}, },
...@@ -151,34 +107,25 @@ ...@@ -151,34 +107,25 @@
const that = this const that = this
that.checkGetData(that.tagLibName); that.checkGetData(that.tagLibName);
} }
}, },
watch:{ watch:{
// tagCateId: function(newData,oldData) {
// this.tagLevelGroupId = newData
// this.checkGetData(this.tagLibName)
// }
$route: { $route: {
handler: function(val, oldVal){ handler: function(val, oldVal){
console.log("获取当前路由:",val);
const that = this const that = this
// 获取标签库传递过来的分类 id // 获取标签库传递过来的分类 id
that.tagLevelGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0; that.tagLevelGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0;
that.checkGetData(that.tagLibName) that.checkGetData(that.tagLibName);
}, },
// 深度观察监听 // 深度观察监听
deep: true deep: true
}, },
}, },
mounted() { mounted() {
const that = this const that = this;
console.log(that.tagLibName)
// 获取当前类别 id // 获取当前类别 id
// that.tagLevelGroupId = that.tagCateId; // that.tagLevelGroupId = that.tagCateId;
that.tagLevelGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0; that.tagLevelGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0;
that.checkGetData(that.tagLibName);
that.checkGetData(that.tagLibName)
}, },
components: { components: {
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
</div> </div>
<i slot="reference" class="el-icon-more"></i> <i slot="reference" class="el-icon-more"></i>
</el-popover> </el-popover>
</div> </div>
</div> </div>
</div> </div>
...@@ -57,30 +56,8 @@ ...@@ -57,30 +56,8 @@
data() { data() {
return { return {
// 子分类数据 // 子分类数据
currentTagDatas: [ currentTagDatas: [],
// { childTagDatas: [],
// tagLevelGroupId: 1,
// levelName: '基本信息',
// },
// {
// tagLevelGroupId: 2,
// levelName: '地理信息',
// },
],
childTagDatas: [
// {
// tagLevelGroupId: 1,
// levelName: '其他一',
// count: 12
// },
// {
// tagLevelGroupId: 2,
// levelName: '其他二',
// count: 12
// },
],
} }
}, },
methods: { methods: {
...@@ -88,38 +65,31 @@ ...@@ -88,38 +65,31 @@
* 点击分类 * 点击分类
*/ */
toRequestData(id) { toRequestData(id) {
var that = this const that = this;
console.log(id) that.getCateData(id);
that.getCateData(id)
}, },
/** /**
* 获取当前分类数据 * 获取当前分类数据
*/ */
getCateData(id) { getCateData(id) {
const that = this const that = this;
const para = { const para = {
tagLevelGroupId: id tagLevelGroupId: id
} }
postRequest('/enterpriseMemberTag/enterpriseTagLevel',para) postRequest('/enterpriseMemberTag/enterpriseTagLevel',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) const resData = res.data;
const resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// showMsg.showmsg('成功','success')
that.currentTagDatas = resData.result.currentNode; // 当前分类数据 that.currentTagDatas = resData.result.currentNode; // 当前分类数据
that.childTagDatas = resData.result.dataList; // 子类数据 that.childTagDatas = resData.result.dataList; // 子类数据
that.$emit('changeId',id) that.$emit('changeId',id)
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -132,9 +102,8 @@ ...@@ -132,9 +102,8 @@
}, },
mounted() { mounted() {
var that = this var that = this;
console.log(that.tagLibName) that.getCateData(0);
that.getCateData(0)
}, },
components: { components: {
......
.relative-range {
width: 500px;
height: 191px;
padding: 19px;
background: #F3F6F9;
}
.checkboxOption-wrap__head__title {
line-height: 32px;
height: 32px;
font-size: 18px;
color: #303133;
font-weight: bold;
}
.label-unit {
font-size: 14px;
color: #606266;
}
.realtime-span {
margin-left: 4px;
padding: 3px 4px;
font-size: 12px;
color: #fff;
border-radius: 4px;
background: #1890ff;
line-height: 32px;
vertical-align: top;
}
.label-tip {
display: inline-block;
vertical-align: middle;
padding-left: 14px;
font-size: 13px;
color: #909399;
}
.el-select-dropdown__item.selected:hover {
background-color: #f5f7fa;
}
.w-438 {
width: 438px;
}
.w-526 {
width: 526px;
}
.h-80 {
height: 80px;
}
.border-t-e4e7ed {
border-bottom: 1px solid #e4e7ed;
}
.fixed-date-picker {
padding: 20px;
}
.bg-f3f6f9 {
background: #F3F6F9;
}
.el-button--default.el-button--text {
color: #606266;
padding: 8px 15px;
}
.checkboxOption-wrap__body .el-checkbox-group {
max-height: 330px;
overflow-y: auto;
}
.add-tags-wrap {
width: 380px;
height: 110px;
padding: 0 8px;
overflow-y: auto;
white-space: pre-wrap;
border: 1px solid #DCDFE6;
border-radius: 4px;
.el-tag {
margin-top: 8px;
margin-right: 8px;
/*background: none;
background-color: none;
border: none;
font-size: 14px;
color: #606266;
.el-tag__close {
width: 14px;
height: 14px;
line-height: 14px;
font-size: 12px;
color: #fff;
background: #DCDFE6;
}*/
}
}
.el-checkbox-group .el-checkbox {
margin-right: 16px;
}
.el-checkbox + .el-checkbox {
margin-left: 0;
}
.add-search-select {
.el-select {
line-height: 32px;
span {
-webkit-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
}
}
}
.all-select-options {
.el-checkbox {
margin-right: 16px;
line-height: 32px;
&+.el-checkbox {
margin-left: 0;
}
}
}
.slected-opyions {
.el-tag {
margin-top: 8px;
margin-right: 8px;
/*background: none;
background-color: none;
border: none;
font-size: 14px;
color: #606266;
.el-tag__close {
width: 14px;
height: 14px;
line-height: 14px;
font-size: 12px;
color: #fff;
background: #DCDFE6;
}*/
}
&.city-slected-opyions {
font-size: 0;
max-height: 380px;
overflow-y: auto;
.el-tag {
margin: 0 10px 10px 0;
/*background: #F4F4F5;
border: 1px solid rgba(233,233,235,1);
font-size: 12px;
color: #909399;*/
.el-tag__close {
/*width: 14px;
height: 14px;
line-height: 14px;
font-size: 12px;
color: #fff;
background: #DCDFE6;*/
}
}
}
}
.city-checkbox {
position: relative;
height: 50px;
line-height: 50px;
padding: 0 8px;
&.city-checkbox-all {
background: #F1F3F7;
}
}
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
<!-- <el-button v-if="tagCategory == 'myTagList'" type="primary" @click="changeRoute('/manualTagLib')" class="fr">前往手工标签库</el-button> <!-- <el-button v-if="tagCategory == 'myTagList'" type="primary" @click="changeRoute('/manualTagLib')" class="fr">前往手工标签库</el-button>
<el-button v-if="tagCategory == 'myTagList'" type="primary" @click="changeRoute('/platformTagLib')" class="fr m-r-8">前往平台标签库</el-button> --> <el-button v-if="tagCategory == 'myTagList'" type="primary" @click="changeRoute('/platformTagLib')" class="fr m-r-8">前往平台标签库</el-button> -->
</div> </div>
<div class="common-libFields flex" > <div class="common-libFields flex" >
<template v-for="(item,pindex) in libDatas"> <template v-for="(item,pindex) in libDatas">
<div :class="['common-lib__cell','flex-1',item.id == libRadio? 'border-primary-color':'']" :key="pindex" @click.stop="selectTag(item.id)"> <div :class="['common-lib__cell','flex-1',item.id == libRadio? 'border-primary-color':'']" :key="pindex" @click.stop="selectTag(item.id)">
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
<template v-for="(itemThree,lindex) in itemTwo.children"> <template v-for="(itemThree,lindex) in itemTwo.children">
<a :href="'#/'+tagCategory+'?tagLevelGroupId='+itemThree.id" class="inline-block common-lib__cell__fieldName">{{itemThree.name}}</a> <a :href="'#/'+tagCategory+'?tagLevelGroupId='+itemThree.id" class="inline-block common-lib__cell__fieldName">{{itemThree.name}}</a>
</template> </template>
</div> </div>
</div> </div>
</template> </template>
...@@ -83,144 +81,7 @@ ...@@ -83,144 +81,7 @@
libRadio: '', //单选的参数 libRadio: '', //单选的参数
// 标签库数据 // 标签库数据
libDatas: [ libDatas: []
// {
// id: 1,
// name: '基本信息',
// icon: 'icon-jibenxinxi',
// children: [
// {
// id: 11,
// name: '人口信息',
// children: [
// {
// id: 111,
// name: "人口属性",
// },
// ]
// },
// {
// id: 12,
// name: '地理信息',
// children: [
// {
// id: 121,
// name: "城市"
// }
// ]
// }
// ]
// },
// {
// id: 2,
// name: '消费行为',
// icon: 'icon-record-actice',
// children: [
// {
// id: 11,
// name: '人口信息',
// children: [
// {
// id: 111,
// name: "人口属性",
// }
// ]
// },
// {
// id: 12,
// name: '地理信息',
// children: [
// {
// id: 121,
// name: "城市"
// }
// ]
// }
// ]
// },
// {
// id: 3,
// name: '用户轨迹',
// icon: 'icon-guijijiansuo',
// children: [
// {
// id: 11,
// name: '人口信息',
// children: [
// {
// id: 111,
// name: "人口属性",
// }
// ]
// },
// {
// id: 12,
// name: '地理信息',
// children: [
// {
// id: 121,
// name: "城市"
// }
// ]
// }
// ]
// },
// {
// id: 4,
// name: '用户轨迹',
// icon: 'icon-guijijiansuo',
// children: [
// {
// id: 11,
// name: '人口信息',
// children: [
// {
// id: 111,
// name: "人口属性",
// }
// ]
// },
// {
// id: 12,
// name: '地理信息',
// children: [
// {
// id: 121,
// name: "城市"
// }
// ]
// }
// ]
// },
// {
// id: 5,
// name: '用户轨迹',
// icon: 'icon-guijijiansuo',
// children: [
// {
// id: 11,
// name: '人口信息',
// children: [
// {
// id: 111,
// name: "人口属性",
// }
// ]
// },
// {
// id: 12,
// name: '地理信息',
// children: [
// {
// id: 121,
// name: "城市"
// }
// ]
// }
// ]
// }
]
} }
}, },
methods: { methods: {
...@@ -244,9 +105,7 @@ ...@@ -244,9 +105,7 @@
* 添加到我的标签库 * 添加到我的标签库
*/ */
toAddMyTagLib() { toAddMyTagLib() {
const that = this const that = this;
console.log('已选:',that.libRadio)
if (!that.libRadio) { if (!that.libRadio) {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -257,22 +116,16 @@ ...@@ -257,22 +116,16 @@
const para = { const para = {
tagLevelGroupId: that.libRadio tagLevelGroupId: that.libRadio
} }
getRequest('/enterpriseMemberTag/addByLevelGroupId',para) getRequest('/enterpriseMemberTag/addByLevelGroupId',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) const resData = res.data;
const resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('添加成功','success') showMsg.showmsg('添加成功','success')
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -284,20 +137,19 @@ ...@@ -284,20 +137,19 @@
* 搜索标签清空 * 搜索标签清空
*/ */
clearSearch() { clearSearch() {
const that = this const that = this;
}, },
/** /**
* 搜索标签 * 搜索标签
*/ */
searchEnterFun(e) { searchEnterFun(e) {
const that = this const that = this;
console.log(e) let searchVal = String(e.target.value).trim();
let searchVal = String(e.target.value).trim()
if (!searchVal) { if (!searchVal) {
return false; return false;
} }
window.location.href=`${window.location.origin}/member-tag/#/${that.tagCategory}?searchName=${searchVal}` window.location.href = `${window.location.origin}/member-tag/#/${that.tagCategory}?searchName=${searchVal}`;
}, },
/** /**
...@@ -311,51 +163,39 @@ ...@@ -311,51 +163,39 @@
* 获取标签库数据 * 获取标签库数据
*/ */
getTagLib(url) { getTagLib(url) {
const that = this const that = this;
const para = { const para = {};
}
getRequest(url,para) getRequest(url,para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data;
const resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// showMsg.showmsg('保存成功','success')
that.libDatas = resData.result; that.libDatas = resData.result;
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
}) })
}); });
} }
}, },
watch:{ watch:{
}, },
mounted() { mounted() {
const that = this const that = this;
console.log(that.tagCategory)
if (that.tagCategory == 'platformTagList') { if (that.tagCategory == 'platformTagList') {
that.getTagLib('/memberTag/platformHomePage') that.getTagLib('/memberTag/platformHomePage');
} }
if (that.tagCategory == 'manualTagList') { if (that.tagCategory == 'manualTagList') {
that.getTagLib('/memberTag/handHomePage') that.getTagLib('/memberTag/handHomePage');
} }
if (that.tagCategory == 'myTagList') { if (that.tagCategory == 'myTagList') {
that.getTagLib('/enterpriseMemberTag/homePage') that.getTagLib('/enterpriseMemberTag/homePage');
} }
}, },
components: { components: {
......
...@@ -78,14 +78,7 @@ ...@@ -78,14 +78,7 @@
// tagName: "123", // tagName: "123",
// newTagVal: '描述描述,最多200字,一行显示50字,默认显示一行', // newTagVal: '描述描述,最多200字,一行显示50字,默认显示一行',
// isActive: 1 // isActive: 1
// }, // }
// {
// tagId: 1,
// tagName: "123",
// newTagVal: '描述描述,最多200字,一行显示50字,默认显示一行',
// isActive: 1
// },
] ]
} }
}, },
...@@ -101,17 +94,17 @@ ...@@ -101,17 +94,17 @@
* 显示隐藏暂存架标签列表 * 显示隐藏暂存架标签列表
*/ */
toggleTagList() { toggleTagList() {
const that = this const that = this;
that.toggleTagListFlag = !!that.toggleTagListFlag? false: true; that.toggleTagListFlag = !!that.toggleTagListFlag? false: true;
}, },
hideTagList() { hideTagList() {
const that = this const that = this;
that.toggleTagListFlag = false; that.toggleTagListFlag = false;
}, },
showTagList() { showTagList() {
const that = this const that = this;
that.toggleTagListFlag = true; that.toggleTagListFlag = true;
}, },
...@@ -119,8 +112,7 @@ ...@@ -119,8 +112,7 @@
* 表格---多选 * 表格---多选
*/ */
handleSelectChange(val) { handleSelectChange(val) {
const that = this const that = this;
// console.log(val);
setTimeout(function(){ setTimeout(function(){
that.selectTag = val; that.selectTag = val;
},10) },10)
...@@ -131,57 +123,46 @@ ...@@ -131,57 +123,46 @@
* 表格---全选 * 表格---全选
*/ */
handleSelectAll(val) { handleSelectAll(val) {
const that = this const that = this;
// console.log(val);
setTimeout(function(){ setTimeout(function(){
that.selectTag = val; that.selectTag = val;
},10) },10)
let status = 1 let status = 1;
if (!!val && !!val.length) { if (!!val && !!val.length) {
status = 1; status = 1;
}else { }else {
status = 0; status = 0;
} }
that.postSelectAll(status); that.postSelectAll(status);
}, },
/** /**
* 表格---全选 选择状态 api * 表格---全选 选择状态 api
*/ */
postSelectAll(status) { postSelectAll(status) {
const that = this const that = this;
const para = { const para = {
batchSelect: status batchSelect: status
} }
postRequest('/member-tag-value/updateByBatch.json',para) postRequest('/member-tag-value/updateByBatch.json',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data;
var resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// showMsg.showmsg('删除成功','success')
if (!!status) { if (!!status) {
that.tagListData.forEach(function(ele,index){ that.tagListData.forEach(function(ele,index){
ele.selectStatus = 1 ele.selectStatus = 1;
}) })
}else { }else {
that.tagListData.forEach(function(ele,index){ that.tagListData.forEach(function(ele,index){
ele.selectStatus = 0 ele.selectStatus = 0;
}) })
} }
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -193,30 +174,22 @@ ...@@ -193,30 +174,22 @@
* 表格选择状态------api * 表格选择状态------api
*/ */
postSelect(row,status) { postSelect(row,status) {
const that = this const that = this;
const para = { const para = {
tagValueId: row.tagValueId, tagValueId: row.tagValueId,
tagValue: row.tagValue, tagValue: row.tagValue,
tagParams: row.tagParams, tagParams: row.tagParams,
selectStatus: status selectStatus: status
} }
postRequest('/member-tag-value/update.json',para) postRequest('/member-tag-value/update.json',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode)
var resData = res.data var resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// showMsg.showmsg('删除成功','success')
return; return;
} }
errMsg.errorMsg(resData) errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -228,8 +201,7 @@ ...@@ -228,8 +201,7 @@
* 表格---单选 * 表格---单选
*/ */
handleSelectRow(val,row) { handleSelectRow(val,row) {
const that = this const that = this;
// console.log(val,row);
setTimeout(function(){ setTimeout(function(){
that.selectTag = val; that.selectTag = val;
},10) },10)
...@@ -242,44 +214,36 @@ ...@@ -242,44 +214,36 @@
status = 0; status = 0;
} }
} }
that.postSelect(row,status) that.postSelect(row,status);
}, },
/** /**
* 表格---删除 * 表格---删除
*/ */
toDelTag(id,index) { toDelTag(id,index) {
const that = this const that = this;
console.log(id,index) that.delTag(id,index);
that.delTag(id,index)
}, },
/** /**
* 表格---删除 API * 表格---删除 API
*/ */
delTag(id,index) { delTag(id,index) {
const that = this const that = this;
const para = { const para = {
tagValueId: id, tagValueId: id
} }
getRequest('/member-tag-value/delete.json',para) getRequest('/member-tag-value/delete.json',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data;
var resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
that.tagListData.splice(index,1) that.tagListData.splice(index,1);
showMsg.showmsg('删除成功','success') showMsg.showmsg('删除成功','success');
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -291,19 +255,17 @@ ...@@ -291,19 +255,17 @@
* 点击标签名,收起暂存架,显示标签详情缩略版 * 点击标签名,收起暂存架,显示标签详情缩略版
*/ */
showTagShort(row) { showTagShort(row) {
const that = this const that = this;
// that.toggleTagListFlag = false; that.$emit('showShortDetail',row.tagId);
that.$emit('showShortDetail',row.tagId)
}, },
/** /**
* 跳转会员分组 * 跳转会员分组
*/ */
toMemberGroupEdit() { toMemberGroupEdit() {
const that = this const that = this;
if (!!that.selectTag.length) { if (!!that.selectTag.length) {
sessionStorage.setItem('selectTempTag',JSON.stringify(that.selectTag)) sessionStorage.setItem('selectTempTag',JSON.stringify(that.selectTag));
// that.changeRoute('/memberGroupEdit')
window.open(`${window.origin}/member-tag/#/memberGroupEdit`); window.open(`${window.origin}/member-tag/#/memberGroupEdit`);
}else { }else {
that.$message.error({ that.$message.error({
...@@ -317,66 +279,49 @@ ...@@ -317,66 +279,49 @@
* 获取暂存架列表 API * 获取暂存架列表 API
*/ */
getTagList() { getTagList() {
const that = this const that = this;
const para = { const para = {};
}
getRequest('/member-tag-value/findList.json',para) getRequest('/member-tag-value/findList.json',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data;
let resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// showMsg.showmsg('保存成功','success') let dataVal = JSON.parse(JSON.stringify(resData.result));
let dataVal = JSON.parse(JSON.stringify(resData.result))
dataVal.forEach(function(ele,index){ dataVal.forEach(function(ele,index){
let newTagVal = JSON.parse(ele.tagParams);
let newTagVal = JSON.parse(ele.tagParams)
if (newTagVal.selectedVal != '') { if (newTagVal.selectedVal != '') {
// console.log(newTagVal.selectedVal)
ele.newTagVal = JSON.stringify(newTagVal.selectedVal).replace(/"/g, ''); ele.newTagVal = JSON.stringify(newTagVal.selectedVal).replace(/"/g, '');
}else{ }else{
ele.newTagVal = '' ele.newTagVal = '';
} }
}) })
// console.log(dataVal) that.tagListData = dataVal;
that.tagListData = dataVal
setTimeout(function(){ setTimeout(function(){
if (!!that.tagListData) { if (!!that.tagListData) {
that.tagListData.forEach(row => { that.tagListData.forEach(row => {
if (parseInt(row.selectStatus) == 1) { if (parseInt(row.selectStatus) == 1) {
that.$refs.tempTableMult.toggleRowSelection(row,true); that.$refs.tempTableMult.toggleRowSelection(row,true);
} }
}); });
} }
},100) },100)
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
}) })
}); });
} }
}, },
watch:{ watch:{
}, },
mounted() { mounted() {
const that = this const that = this;
console.log() that.getTagList();
that.getTagList()
}, },
components: { components: {
......
...@@ -19,10 +19,8 @@ ...@@ -19,10 +19,8 @@
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import XLSX from 'xlsx' import XLSX from 'xlsx';
import strLength from '@/common/js/strlen'; import strLength from '@/common/js/strlen';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
...@@ -71,72 +69,62 @@ export default { ...@@ -71,72 +69,62 @@ export default {
this.excelData.header = header; this.excelData.header = header;
this.excelData.results = results; this.excelData.results = results;
this.excelData.name = fileName; this.excelData.name = fileName;
console.log(this.useIndex)
this.$emit('on-selected-file', this.excelData); this.$emit('on-selected-file', this.excelData);
this.$emit('selectIndex', this.useIndex); this.$emit('selectIndex', this.useIndex);
}, },
handleDrop(e) { handleDrop(e) {
e.stopPropagation() e.stopPropagation();
e.preventDefault() e.preventDefault();
const files = e.dataTransfer.files const files = e.dataTransfer.files;
if (files.length !== 1) { if (files.length !== 1) {
this.$message.error('Only support uploading one file!') this.$message.error('Only support uploading one file!');
return return;
} }
const itemFile = files[0] // only use files[0] const itemFile = files[0];// only use files[0]
this.readerData(itemFile) this.readerData(itemFile);
e.stopPropagation() e.stopPropagation();
e.preventDefault() e.preventDefault();
}, },
handleDragover(e) { handleDragover(e) {
e.stopPropagation() e.stopPropagation();
e.preventDefault() e.preventDefault();
e.dataTransfer.dropEffect = 'copy' e.dataTransfer.dropEffect = 'copy';
}, },
handleUpload() { handleUpload() {
var that = this const that = this;
console.log(11111)
console.log(that.excelBodyData);
// if (!!that.excelHeader&&!!that.excelHeader.length) { // if (!!that.excelHeader&&!!that.excelHeader.length) {
if (that.excelBodyData.length > 0) { if (that.excelBodyData.length > 0) {
that.$confirm('目前操作没有结束,点击其他导入现有数据不会保存,\n 确认要离开吗?', '提示', { that.$confirm('目前操作没有结束,点击其他导入现有数据不会保存,\n 确认要离开吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
}).then(() => { }).then(() => {
// 先清空原有数据 // 先清空原有数据
that.$emit('clearOldData',that.currentIndex) that.$emit('clearOldData',that.currentIndex);
document.getElementsByClassName('excel-upload-input')[that.useIndex].click() document.getElementsByClassName('excel-upload-input')[that.useIndex].click();
}).catch(() => { }).catch(() => {
}); });
return false; return false;
} }
document.getElementsByClassName('excel-upload-input')[that.useIndex].click();
document.getElementsByClassName('excel-upload-input')[that.useIndex].click()
}, },
handkeFileChange(e) { handkeFileChange(e) {
const files = e.target.files const files = e.target.files;
const itemFile = files[0] // only use files[0] const itemFile = files[0]; // only use files[0]
if (!itemFile) return if (!itemFile) { return; }
console.log(itemFile.name) this.readerData(itemFile);
this.readerData(itemFile) this.$refs['excel-upload-input'+this.currentIndex].value = null; // fix can't select the same excel
this.$refs['excel-upload-input'+this.currentIndex].value = null // fix can't select the same excel
}, },
readerData(itemFile) { readerData(itemFile) {
var that = this; const that = this;
console.log(itemFile.name) let fileName = itemFile.name;
var fileName = itemFile.name; const reader = new FileReader();
const reader = new FileReader()
reader.onload = e => { reader.onload = e => {
const data = e.target.result const data = e.target.result;
const fixedData = this.fixdata(data) const fixedData = this.fixdata(data);
const workbook = XLSX.read(btoa(fixedData), { type: 'base64' });
const workbook = XLSX.read(btoa(fixedData), { type: 'base64' }) const firstSheetName = workbook.SheetNames[0];
const firstSheetName = workbook.SheetNames[0] const worksheet = workbook.Sheets[firstSheetName];
const worksheet = workbook.Sheets[firstSheetName]
// console.log(Object.keys(worksheet).indexOf('!ref'),typeof(worksheet))
if (Object.keys(worksheet).indexOf('!ref') == -1) { if (Object.keys(worksheet).indexOf('!ref') == -1) {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -144,9 +132,8 @@ export default { ...@@ -144,9 +132,8 @@ export default {
}) })
return false; return false;
} }
const header = this.get_header_row(worksheet) const header = this.get_header_row(worksheet);
const results = XLSX.utils.sheet_to_json(worksheet) const results = XLSX.utils.sheet_to_json(worksheet);
if (results.length>5000) { if (results.length>5000) {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -154,69 +141,59 @@ export default { ...@@ -154,69 +141,59 @@ export default {
}) })
return false; return false;
} }
this.generateDate({ header, results, fileName }) this.generateDate({ header, results, fileName });
} }
reader.readAsArrayBuffer(itemFile) reader.readAsArrayBuffer(itemFile);
}, },
fixdata(data) { fixdata(data) {
let o = '' let o = '';
let l = 0 let l = 0;
const w = 10240 const w = 10240;
for (; l < data.byteLength / w; ++l) o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w, l * w + w))) for (; l < data.byteLength / w; ++l) o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w, l * w + w)))
o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w))) o += String.fromCharCode.apply(null, new Uint8Array(data.slice(l * w)));
return o return o;
}, },
get_header_row(sheet) { get_header_row(sheet) {
const headers = [] const headers = [];
const range = XLSX.utils.decode_range(sheet['!ref']) const range = XLSX.utils.decode_range(sheet['!ref']);
let C let C;
const R = range.s.r /* start in the first row */ const R = range.s.r; /* start in the first row */
for (C = range.s.c; C <= range.e.c; ++C) { /* walk every column in the range */ for (C = range.s.c; C <= range.e.c; ++C) { /* walk every column in the range */
var cell = sheet[XLSX.utils.encode_cell({ c: C, r: R })] /* find the cell in the first row */ let cell = sheet[XLSX.utils.encode_cell({ c: C, r: R })]; /* find the cell in the first row */
var hdr = 'UNKNOWN ' + C // <-- replace with your desired default let hdr = 'UNKNOWN ' + C; // <-- replace with your desired default
if (cell && cell.t) hdr = XLSX.utils.format_cell(cell) if (cell && cell.t) hdr = XLSX.utils.format_cell(cell);
headers.push(hdr) headers.push(hdr);
} }
return headers return headers;
}, },
/** /**
* 导出 excel * 导出 excel
*/ */
handleDownload() { handleDownload() {
const that = this const that = this;
console.log(that.currentExcelTagItemId)
const para = { const para = {
tagItemId: that.tagItemId, tagItemId: that.tagItemId,
} }
getRequest('/memberTag/queryImportErrorData',para) getRequest('/memberTag/queryImportErrorData',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data
var resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
// showMsg.showmsg('保存成功','success')
if (!!resData.result && !!resData.result.length) { if (!!resData.result && !!resData.result.length) {
let header = Object.keys(resData.result[0]) let header = Object.keys(resData.result[0]);
//获取数据后执行 excel 导出 //获取数据后执行 excel 导出
that.exportExcel(header,resData.result) that.exportExcel(header,resData.result);
}else { }else {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: "暂无失败数据" message: "暂无失败数据"
}) })
} }
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -228,13 +205,12 @@ export default { ...@@ -228,13 +205,12 @@ export default {
* 导出 excel 方法 * 导出 excel 方法
*/ */
exportExcel(header,currentExcelData) { exportExcel(header,currentExcelData) {
const that = this const that = this;
require.ensure([], () => { require.ensure([], () => {
const { export_json_to_excel } = require('@/vendor/Export2Excel') const { export_json_to_excel } = require('@/vendor/Export2Excel')
const tHeader = header; // ['phoneNum'] const tHeader = header; // ['phoneNum']
const filterVal = header; //['phoneNum'] const filterVal = header; //['phoneNum']
const list = currentExcelData; const list = currentExcelData;
console.log(list)
if (!list.length) { if (!list.length) {
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
...@@ -242,38 +218,32 @@ export default { ...@@ -242,38 +218,32 @@ export default {
}) })
return false; return false;
} }
const data = that.formatJson(filterVal, list) const data = that.formatJson(filterVal, list);
console.log(data)
export_json_to_excel(tHeader, data, '导出列表'); export_json_to_excel(tHeader, data, '导出列表');
}) })
}, },
formatJson(filterVal, jsonData) { formatJson(filterVal, jsonData) {
return jsonData.map(v => filterVal.map(j => v[j])) return jsonData.map(v => filterVal.map(j => v[j]));
}, },
}, },
watch: { watch: {
currentIndex: function(newdata,oldData){ currentIndex: function(newdata,oldData){
console.log("watch:",newdata) this.useIndex = newdata;
this.useIndex = newdata
}, },
// failData: function(newdata,oldData){ // failData: function(newdata,oldData){
// console.log("watch:",newdata) // console.log("watch:",newdata)
// this.failedData = newdata // this.failedData = newdata
// }, // },
currentExcelTagItemId: function(newdata,oldData){ currentExcelTagItemId: function(newdata,oldData){
console.log("watch:",newdata)
this.tagItemId = newdata this.tagItemId = newdata
}, },
status: function(newdata,oldData){ status: function(newdata,oldData){
console.log("watch:",newdata)
this.tagItemStatus = newdata this.tagItemStatus = newdata
}, },
}, },
mounted() { mounted() {
console.log(this.currentIndex)
this.useIndex = this.currentIndex; this.useIndex = this.currentIndex;
// this.failedData = this.failData // this.failedData = this.failData
this.tagItemId = this.currentExcelTagItemId; this.tagItemId = this.currentExcelTagItemId;
......
...@@ -45,33 +45,32 @@ ...@@ -45,33 +45,32 @@
* 关闭 * 关闭
*/ */
handleClose(done) { handleClose(done) {
const that = this const that = this;
// done(); this.$emit('hideUserDefined',false);
this.$emit('hideUserDefined',false)
}, },
submitFields() { submitFields() {
const that = this const that = this;
that.$emit('confirmUserDefined',that.checkedFields) that.$emit('confirmUserDefined',that.checkedFields);
}, },
/** /**
* 取消选择 * 取消选择
*/ */
cancelSel() { cancelSel() {
this.handleClose() this.handleClose();
} }
}, },
watch: { watch: {
showUserDefined: function(newData,oldData){ showUserDefined: function(newData,oldData){
this.showFlag = newData this.showFlag = newData;
}, },
fieldsData: function(newData,oldData){ fieldsData: function(newData,oldData){
this.memberFields = newData this.memberFields = newData;
}, },
selectedData: function(newData,oldData){ selectedData: function(newData,oldData){
this.checkedFields = newData this.checkedFields = newData;
}, },
}, },
mounted() { mounted() {
......
...@@ -174,51 +174,50 @@ ...@@ -174,51 +174,50 @@
* 显示标签详情缩小版 * 显示标签详情缩小版
*/ */
handleShowTag() { handleShowTag() {
const that = this const that = this;
that.showTagDetail = true that.showTagDetail = true;
}, },
/** /**
* 隐藏标签详情缩小版 * 隐藏标签详情缩小版
*/ */
handleHideTag(val){ handleHideTag(val){
const that = this const that = this;
that.showTagDetail = false that.showTagDetail = false;
}, },
/** /**
* 到手工标签库 * 到手工标签库
*/ */
toManualTagLib() { toManualTagLib() {
const that = this const that = this;
that.changeRoute('/manualTagList') that.changeRoute('/manualTagList');
}, },
/** /**
* 到平台标签库 * 到平台标签库
*/ */
toPlatformTagLib() { toPlatformTagLib() {
const that = this const that = this;
that.changeRoute('/platformTagList') that.changeRoute('/platformTagList');
}, },
/** /**
* 搜索标签 * 搜索标签
*/ */
searchEnterFun: _debounce(function(e) { searchEnterFun: _debounce(function(e) {
const that = this const that = this;
console.log(e)
that.currentPage = 1; that.currentPage = 1;
that.getTagList() that.getTagList();
},500), },500),
/** /**
* 搜索标签清空 * 搜索标签清空
*/ */
clearSearch() { clearSearch() {
const that = this const that = this;
that.currentPage = 1; that.currentPage = 1;
that.getTagList() that.getTagList();
}, },
/** /**
...@@ -233,41 +232,38 @@ ...@@ -233,41 +232,38 @@
* 分页---页码变化 * 分页---页码变化
*/ */
handleSizeChange(val) { handleSizeChange(val) {
const that = this const that = this;
console.log(`每页 ${val} 条`);
that.pageSize = val; that.pageSize = val;
that.getTagList() that.getTagList();
}, },
/** /**
* 分页---当前页变化 * 分页---当前页变化
*/ */
handleCurrentChange(val) { handleCurrentChange(val) {
const that = this const that = this;
console.log(`当前页: ${val}`);
that.currentPage = val; that.currentPage = val;
let fullPath = that.$route.fullPath; let fullPath = that.$route.fullPath;
if (fullPath.includes('?')) { if (fullPath.includes('?')) {
that.$router.push(`${that.$route.path}?tagLevelGroupId=${that.$route.query.tagLevelGroupId}&currentPage=${val}`) that.$router.push(`${that.$route.path}?tagLevelGroupId=${that.$route.query.tagLevelGroupId}&currentPage=${val}`);
} }
that.getTagList() that.getTagList();
}, },
/** /**
* 获取当前分类下下的标签 * 获取当前分类下下的标签
*/ */
getTagList() { getTagList() {
const that = this const that = this;
const para = { const para = {
tagName: that.tagSearch, // 搜索字段 tagName: that.tagSearch, // 搜索字段
tagLevelGroupId: that.currentGroupId, // 当前分类的id tagLevelGroupId: that.currentGroupId, // 当前分类的id
pageNum: that.currentPage, // 当前页 pageNum: that.currentPage, // 当前页
pageSize: that.pageSize, // 一页显示个数 pageSize: that.pageSize // 一页显示个数
} }
getRequest('/enterpriseMemberTag/pageList',para) getRequest('/enterpriseMemberTag/pageList',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data;
let resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
if (!!resData.result.result && !!resData.result.result.length) { if (!!resData.result.result && !!resData.result.result.length) {
resData.result.result.forEach(function(ele,index){ resData.result.result.forEach(function(ele,index){
...@@ -281,31 +277,24 @@ ...@@ -281,31 +277,24 @@
message: '未找到数据' message: '未找到数据'
}) })
} }
that.total = resData.result.totalCount; that.total = resData.result.totalCount;
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
}) })
}); });
}, },
/** /**
* 点击显示标签详情缩写版 * 点击显示标签详情缩写版
*/ */
addTemporary(id){ addTemporary(id){
const that = this const that = this;
console.log(id);
that.tagShortDetailId = id; that.tagShortDetailId = id;
that.showTagDetail = true; that.showTagDetail = true;
that.$refs.tagTemp.hideTagList(); that.$refs.tagTemp.hideTagList();
...@@ -315,50 +304,45 @@ ...@@ -315,50 +304,45 @@
* 删除当前标签 -- 取消 * 删除当前标签 -- 取消
*/ */
cancelDelTag(index,row) { cancelDelTag(index,row) {
const that = this const that = this;
row.popVisible = false row.popVisible = false;
}, },
/** /**
* 删除当前标签 -- 确定 * 删除当前标签 -- 确定
*/ */
toDelTag(index,row) { toDelTag(index,row) {
const that = this const that = this;
that.$confirm('确认要删除此标签吗?', '提示', { that.$confirm('确认要删除此标签吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
that.postToDelTag(index,row) that.postToDelTag(index,row);
}).catch(() => { }).catch(() => {
}); });
}, },
/** /**
* 删除当前标签 -- api * 删除当前标签 -- api
*/ */
postToDelTag(index,row) { postToDelTag(index,row) {
const that = this const that = this;
const para = { const para = {
enterpriseMemberTagId: row.enterpriseMemberTagId, // enterpriseMemberTagId: row.enterpriseMemberTagId
} }
getRequest('/enterpriseMemberTag/del',para) getRequest('/enterpriseMemberTag/del',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data;
let resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('删除成功','success') showMsg.showmsg('删除成功','success');
that.tagTableData.splice(index,1) that.tagTableData.splice(index,1);
that.$refs.tagTemp.getTagList(); that.$refs.tagTemp.getTagList();
return; return;
} }
errMsg.errorMsg(resData) errMsg.errorMsg(resData);
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -370,47 +354,44 @@ ...@@ -370,47 +354,44 @@
* 子组件暂存架-点击名字显示标签详情缩略版 * 子组件暂存架-点击名字显示标签详情缩略版
*/ */
showShortDetail(val) { showShortDetail(val) {
const that = this const that = this;
that.showTagDetail = true; that.showTagDetail = true;
that.tagShortDetailId = val that.tagShortDetailId = val;
}, },
/** /**
* 子组件添加到暂存架-更新暂存架 * 子组件添加到暂存架-更新暂存架
*/ */
updateTemp(){ updateTemp(){
const that = this const that = this;
that.$refs.tagTemp.getTagList(); that.$refs.tagTemp.getTagList();
that.$refs.tagTemp.showTagList(); that.$refs.tagTemp.showTagList();
}, },
getUrlParams() { getUrlParams() {
const that = this const that = this;
// 获取标签库中传递的搜索字段 // 获取标签库中传递的搜索字段
that.tagSearch = !!that.$route.query.searchName? that.$route.query.searchName : ''; that.tagSearch = !!that.$route.query.searchName? that.$route.query.searchName : '';
// 获取标签库传递过来的分类 id // 获取标签库传递过来的分类 id
that.currentGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0; that.currentGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0;
// 获取页码 // 获取页码
that.currentPage = !!that.$route.query.currentPage? parseInt(that.$route.query.currentPage) : 1; that.currentPage = !!that.$route.query.currentPage? parseInt(that.$route.query.currentPage) : 1;
that.getTagList() that.getTagList();
} }
}, },
watch: { watch: {
$route: { $route: {
handler: function(val, oldVal){ handler: function(val, oldVal){
// console.log("获取当前路由:",val); const that = this;
const that = this that.getUrlParams();
that.getUrlParams()
}, },
// 深度观察监听 // 深度观察监听
deep: true deep: true
}, },
}, },
mounted() { mounted() {
const that = this const that = this;
that.getUrlParams() that.getUrlParams();
}, },
components: { components: {
navCrumb, navCrumb,
......
...@@ -3,47 +3,7 @@ ...@@ -3,47 +3,7 @@
<nav-crumb :navpath="navpath"></nav-crumb> <nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content"> <div class="right-content">
<div class="right-box"> <div class="right-box">
<!-- <div class="platformTagLib-wrap__opt common-wrap__opt">
<el-input
class="w-184"
placeholder="请输入标签"
prefix-icon="el-icon-search"
v-model="platformTagSearch"
@keyup.enter.native="searchEnterFun">
</el-input>
<el-button type="primary" @click="toAddMyTagLib" class="fr">添加至我的标签库</el-button>
</div>
<div class="platformTagLib-wrap__libFields common-libFields flex" >
<template v-for="(item,pindex) in libDatas">
<div class="platformTagLib-wrap__lib__cell common-lib__cell flex-1" :key="pindex">
<div class="platformTagLib-wrap__cell__head border-box common-lib__cell__head">
<a :href="'#/platformTagList?test='+item.id" class="block"><i :class="['iconfont','common-lib__cell__icon',item.icon]"></i><span class="platformTagLib-wrap__cell__name common-lib__cell__name">{{item.name}}</span><span class="common-lib__icon__right fr"><i class="el-icon-arrow-right"></i></span>
</a>
</div>
<div class="platformTagLib-wrap__cell__body border-box common-lib__cell__body">
<template v-for="(itemTwo,cindex) in item.children">
<div class="platformTagLib-wrap__cell__fieldRow border-box common-lib__cell__fieldRow" :key="cindex">
<div class="platformTagLib-wrap__cell__fieldChild inline-block common-lib__cell__fieldChild"> <a :href="'#/platformTagList?test='+itemTwo.id" class="inline-block common-lib__cell__name">{{itemTwo.name}}</a>
<i class="el-icon-arrow-right"></i>
</div>
<div class="platformTagLib-wrap__cell__fieldLastChild inline-block common-lib__cell__fieldLastChild">
<template v-for="(itemThree,lindex) in itemTwo.children">
<a :href="'#/platformTagList?test='+itemThree.id" class="platformTagLib-wrap__cell__fieldName inline-block common-lib__cell__fieldName">{{itemThree.name}}</a>
</template>
</div>
</div>
</template>
</div>
<div class="platformTagLib-wrap__cell__radio common-lib__cell__radio">
<el-radio v-model="libRadio" :label="item.id" name=""> </el-radio>
</div>
</div>
</template>
</div> -->
<tag-lib :tagCategory="tagCategory"></tag-lib> <tag-lib :tagCategory="tagCategory"></tag-lib>
</div> </div>
</div> </div>
<vue-gic-footer></vue-gic-footer> <vue-gic-footer></vue-gic-footer>
...@@ -81,7 +41,6 @@ ...@@ -81,7 +41,6 @@
path: '' path: ''
} }
], ],
tagCategory: 'platformTagList', // 当前标签类别 tagCategory: 'platformTagList', // 当前标签类别
} }
}, },
......
...@@ -120,9 +120,7 @@ ...@@ -120,9 +120,7 @@
], ],
tagLibName: 'platformTag',// 面包屑分类需要的参数 tagLibName: 'platformTag',// 面包屑分类需要的参数
tagSearch: '', // 搜索值绑定的参数 tagSearch: '', // 搜索值绑定的参数
// 标签列表数据 // 标签列表数据
tagTableData:[ tagTableData:[
// { // {
...@@ -134,15 +132,12 @@ ...@@ -134,15 +132,12 @@
// } // }
], ],
selTagTableData: [], // 已选择 selTagTableData: [], // 已选择
// 分页参数 // 分页参数
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
total: 0, total: 0,
// 子分类数据 // 子分类数据
currentGroupId: 0, //当前分类 id, 0默认全部 currentGroupId: 0, //当前分类 id, 0默认全部
} }
}, },
methods: { methods: {
...@@ -150,11 +145,8 @@ ...@@ -150,11 +145,8 @@
* 添加到我的标签库 * 添加到我的标签库
*/ */
toAddMyTagLib(flag,id) { toAddMyTagLib(flag,id) {
const that = this const that = this;
// console.log(id) const para = {};
const para = {
}
if (flag === 'mult' ) { if (flag === 'mult' ) {
if (!that.selTagTableData.length) { if (!that.selTagTableData.length) {
that.$message.error({ message: '请选择标签' }) that.$message.error({ message: '请选择标签' })
...@@ -162,40 +154,32 @@ ...@@ -162,40 +154,32 @@
} }
para.tagIds = []; para.tagIds = [];
that.selTagTableData.forEach(function(ele,index){ that.selTagTableData.forEach(function(ele,index){
para.tagIds.push(ele.tagId) para.tagIds.push(ele.tagId);
}) })
// console.log(para)
para.tagIds = para.tagIds.join(','); para.tagIds = para.tagIds.join(',');
that.addByTagId('addByTagIds',para) that.addByTagId('addByTagIds',para);
}else { }else {
para.tagId = id; para.tagId = id;
that.addByTagId('addByTagId',para) that.addByTagId('addByTagId',para);
} }
}, },
/** /**
* 添加单个ID至我的标签库 * 添加单个ID至我的标签库
*/ */
addByTagId(name,para) { addByTagId(name,para) {
const that = this const that = this;
getRequest(`/enterpriseMemberTag/${name}`,para) getRequest(`/enterpriseMemberTag/${name}`,para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) let resData = res.data;
var resData = res.data
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('添加成功','success') showMsg.showmsg('添加成功','success');
that.getTagList() that.getTagList();
return; return;
} }
errMsg.errorMsg(resData) errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -207,10 +191,9 @@ ...@@ -207,10 +191,9 @@
* 搜索标签 * 搜索标签
*/ */
searchEnterFun(e) { searchEnterFun(e) {
const that = this const that = this;
console.log(e)
that.currentPage = 1; that.currentPage = 1;
that.getTagList() that.getTagList();
}, },
/** /**
...@@ -219,15 +202,14 @@ ...@@ -219,15 +202,14 @@
clearSearch() { clearSearch() {
const that = this const that = this
that.currentPage = 1; that.currentPage = 1;
that.getTagList() that.getTagList();
}, },
/** /**
* 表格---多选 * 表格---多选
*/ */
handleSelectChange(val) { handleSelectChange(val) {
const that = this const that = this;
console.log(val);
that.selTagTableData = val; that.selTagTableData = val;
}, },
...@@ -235,8 +217,7 @@ ...@@ -235,8 +217,7 @@
* 分页---页码变化 * 分页---页码变化
*/ */
handleSizeChange(val) { handleSizeChange(val) {
const that = this const that = this;
console.log(`每页 ${val} 条`);
that.pageSize = val; that.pageSize = val;
that.getTagList(); that.getTagList();
}, },
...@@ -244,11 +225,11 @@ ...@@ -244,11 +225,11 @@
* 分页---当前页变化 * 分页---当前页变化
*/ */
handleCurrentChange(val) { handleCurrentChange(val) {
const that = this const that = this;
that.currentPage = val; that.currentPage = val;
let fullPath = that.$route.fullPath; let fullPath = that.$route.fullPath;
if (fullPath.includes('?')) { if (fullPath.includes('?')) {
that.$router.push(`${that.$route.path}?tagLevelGroupId=${that.$route.query.tagLevelGroupId}&currentPage=${val}`) that.$router.push(`${that.$route.path}?tagLevelGroupId=${that.$route.query.tagLevelGroupId}&currentPage=${val}`);
} }
that.getTagList(); that.getTagList();
}, },
...@@ -257,30 +238,26 @@ ...@@ -257,30 +238,26 @@
* 获取当前分类下下的标签 * 获取当前分类下下的标签
*/ */
getTagList(val) { getTagList(val) {
const that = this const that = this;
const para = { const para = {
tagName: that.tagSearch, // 搜索字段 tagName: that.tagSearch, // 搜索字段
tagLevelGroupId: that.currentGroupId, // 当前分类的id tagLevelGroupId: that.currentGroupId, // 当前分类的id
pageNum: that.currentPage, // 当前页 pageNum: that.currentPage, // 当前页
pageSize: that.pageSize, // 一页显示个数 pageSize: that.pageSize // 一页显示个数
} }
getRequest('/memberTag/platformTagPageList',para) getRequest('/memberTag/platformTagPageList',para)
.then((res) => { .then((res) => {
// console.log(res,res.data,res.data.errorCode) // console.log(res,res.data,res.data.errorCode)
var resData = res.data let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
that.tagTableData = resData.result.result; that.tagTableData = resData.result.result;
that.total = resData.result.totalCount; that.total = resData.result.totalCount;
return; return;
} }
errMsg.errorMsg(resData);
errMsg.errorMsg(resData)
}) })
.catch(function (error) { .catch(function (error) {
console.log(error);
that.$message.error({ that.$message.error({
duration: 1000, duration: 1000,
message: error.message message: error.message
...@@ -289,34 +266,28 @@ ...@@ -289,34 +266,28 @@
}, },
getUrlParams() { getUrlParams() {
const that = this const that = this;
// 获取标签库中传递的搜索字段 // 获取标签库中传递的搜索字段
that.tagSearch = !!that.$route.query.searchName? that.$route.query.searchName : ''; that.tagSearch = !!that.$route.query.searchName? that.$route.query.searchName : '';
// 获取标签库传递过来的分类 id // 获取标签库传递过来的分类 id
that.currentGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0; that.currentGroupId = !!that.$route.query.tagLevelGroupId? that.$route.query.tagLevelGroupId : 0;
// 获取页码 // 获取页码
that.currentPage = !!that.$route.query.currentPage? parseInt(that.$route.query.currentPage) : 1; that.currentPage = !!that.$route.query.currentPage? parseInt(that.$route.query.currentPage) : 1;
that.getTagList() that.getTagList();
} }
}, },
watch: { watch: {
$route: { $route: {
handler: function(val, oldVal){ handler: function(val, oldVal){
const that = this const that = this;
that.getUrlParams(); that.getUrlParams();
}, },
// 深度观察监听 // 深度观察监听
deep: true deep: true
}, },
}, },
beforeMount() {
const that = this
},
mounted() { mounted() {
const that = this const that = this;
that.getUrlParams(); that.getUrlParams();
}, },
components: { components: {
......
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