Commit bf5236ee by member

会员标签配置项

parent e55edbdc
......@@ -14,13 +14,13 @@ module.exports = {
// "standard",
"plugin:vue/essential",
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
"plugin:prettier/recommended"
// "plugin:prettier/recommended"
],
// required to lint *.vue files
plugins: ["vue", "prettier"],
plugins: ["vue"],
// add your custom rules here
rules: {
"prettier/prettier": "error",
// "prettier/prettier": "error",
// allow async-await
"generator-star-spacing": "off",
// "no-console": process.env.NODE_ENV === "production" ? 2 : 0,
......@@ -82,7 +82,7 @@ module.exports = {
complexity: [
2,
{
max: 20
max: 200
}
],
// 不允许有空函数,除非是将一个空函数设置为某个项的默认值 【否则空函数并没有实际意义】
......
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.1a36843ac70ed0ad186c7b8dfd41bdcb.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.18.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.07.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script type=text/javascript src=./static/js/manifest.0bb5f716d865dc7fde18.js></script><script type=text/javascript src=./static/js/vendor.c30398db3b176e06f763.js></script><script type=text/javascript src=./static/js/app.f34ba1c04bf0e9b0d621.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.e0fd3b5b69750916f5631d67c2dc3f7e.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.18.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.07.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script type=text/javascript src=./static/js/manifest.251b8b30bc590d620a74.js></script><script type=text/javascript src=./static/js/vendor.c30398db3b176e06f763.js></script><script type=text/javascript src=./static/js/app.20125f3e56ef7f8392b6.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -455,6 +455,9 @@ input:focus {
.w-309 {
width: 309px;
}
.w-348 {
width: 348px;
}
.w-329 {
width: 329px;
}
......
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([21],{UnNO:function(t,e){},iHP3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),s=a.n(n),i=a("lRwf"),l=a.n(i),c=a("zL8q"),o=a("CUHN"),d=a("SJI6");l.a.component(c.CollapseTransition.name,c.CollapseTransition);var r={name:"tag-type",components:{SecondTag:o.default},props:{tagList:Object},data:function(){return{list:{},typeName:"",editData:[],expends:"收起"}},computed:s()({},Object(d.mapState)(["tagRealName"])),methods:{handleChangeExpends:function(){this.expends="收起"===this.expends?"展开":"收起"},handleFirstTag:function(){this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(t){this.list=t}}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list"},[a("span",{staticClass:"expends-txt",on:{click:t.handleChangeExpends}},[t._v(t._s(t.expends)+" ")]),t._v(" "),a("div",{staticClass:"first-tag"},[a("div",[a("i",{staticClass:"iconfont menu-icon",class:[t.list.icon,{"icon-tag-light":t.list.name===t.tagRealName}]}),t._v(" "),a("span",{staticClass:"tag-name",class:{"icon-tag-light":t.list.name===t.tagRealName},on:{click:t.handleFirstTag}},[t._v(t._s(t.list.name))])]),t._v(" "),a("el-collapseTransition",[a("div",{directives:[{name:"show",rawName:"v-show",value:"收起"===t.expends,expression:"expends === '收起'"}],staticClass:"second-tag"},t._l(t.list.children,function(e,n){return a("second-tag",{key:n,attrs:{list:e,"tag-name":t.list.name}})}),1)])],1)])},staticRenderFns:[]};var m=a("VU/8")(r,p,!1,function(t){a("UnNO")},"data-v-46ef8c6a",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([22],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):!!t.hasOwnProperty("response")&&(401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){return e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("I1mE")},null,null);e.default=d.exports},I1mE:function(t,e){}});
\ No newline at end of file
webpackJsonp([23],{"6Qob":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("mvHQ"),n=i.n(s),o=i("5reh"),a=i("zL8q");function r(t){return t?(a.Message.warning(t),!1):(a.Message.warning("操作失败"),!1)}function l(t){return"cancel"==t?(a.Message.info(t||"cancel"),!1):!!t.hasOwnProperty("response")&&(401==t.response.status?(a.Message.error("登录过期"),!1):500==t.response.status?(a.Message.error("服务器错误500"),!1):void 0)}var c=i("mw3O"),u={name:"login",data:function(){return{redirect:this.$route.query.redirect,token:"",form:{loginName:"damogic",password:"1",eid:"ff808081593917d90159398ec6340012"}}},computed:{imgHeight:function(){return document.body.clientHeight},imgWidth:function(){return document.body.clientWidth}},methods:{loginAnimate:function(){new LoginAnimate(loginwrap,{length:90,LineWeight:.1,clicked:!0,moveon:!0}).Run()},submitLogin:function(){var t=this;this.axios.post("/api-auth/do-login",c.stringify({loginName:this.form.loginName,password:this.form.password,eid:"ff808081593917d90159398ec6340012"})).then(function(e){if(e.data.success){(s=e.data.message)?a.Message.success(s):a.Message.success("操作成功");var i=decodeURIComponent(t.$route.query.redirect||"/index");t.$router.push({path:i})}else r(e.data.message);var s}).catch(function(t){l(t)})},getMenu:function(){var t=this;this.axios.get("/gic/get-menu").then(function(e){if(e.data.success){t.menuList=e.data.list,sessionStorage.setItem("menuList",n()(t.menuList));var i=t.$route.query.redirect||"/index";t.$router.push({path:i})}else r(e.data.errorMessage)}).catch(function(t){l(t)})}},mounted:function(){this.$store.commit(o.d,"login"),document.title=this.$store.state.title,this.loginAnimate()}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"loginwrap",style:{height:t.imgHeight+"px"}},[i("div",{staticStyle:{position:"absolute",left:"0",height:"0",width:"100%"}},[i("canvas",{attrs:{id:"loginwrap",width:t.imgWidth,height:t.imgHeight}})]),t._v(" "),t._m(0),t._v(" "),i("div",{staticClass:"login_contetnt"},[i("h3",{staticClass:"login-top"},[t._v("让信息连接一切")]),t._v(" "),i("h4",{staticClass:"login-bottom"},[t._v("GIC商户后台")]),t._v(" "),i("div",{staticClass:"formlogin"},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":""}},[i("el-form-item",{attrs:{label:""}},[i("el-input",{staticClass:"forminput",attrs:{placeholder:"账号"},model:{value:t.form.loginName,callback:function(e){t.$set(t.form,"loginName",e)},expression:"form.loginName"}})],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-input",{attrs:{type:"password",placeholder:"密码"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitLogin("form")}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),i("el-form-item",[i("button",{staticClass:"submit",on:{click:function(e){return e.preventDefault(),t.submitLogin("form")}}},[t._v("立即登录")])])],1)],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"logintop"},[e("div",{staticClass:"fl loginlogo"},[e("a",{staticClass:"fr logo",attrs:{href:"#"}},[this._v("login_logo.png")])]),this._v(" "),e("a",{staticClass:"home-link fr",attrs:{href:"http://www.demogic.com/"}},[this._v("返回首页")])])}]};var d=i("VU/8")(u,m,!1,function(t){i("I1mE")},null,null);e.default=d.exports},I1mE:function(t,e){}});
\ No newline at end of file
webpackJsonp([23],{"3pKj":function(t,a){},q490:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"manualTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"手工标签库",path:""}],tagCategory:"manualTagList"}},methods:{},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"manualTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("3pKj")},"data-v-190fc065",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([24],{"3pKj":function(t,a){},q490:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"manualTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"手工标签库",path:""}],tagCategory:"manualTagList"}},methods:{},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"manualTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("3pKj")},"data-v-190fc065",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([24],{W0XF:function(t,a){},twLH:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"myTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("W0XF")},"data-v-16100a88",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([25],{W0XF:function(t,a){},twLH:function(t,a,n){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=n("3Xzz"),i=n("BdFv"),r=(n("Mk6G"),n("3E4D"),n("Ch4/"),n("PI0u"),n("P9l9"),{name:"myTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"我的标签库",path:""}],tagCategory:"myTagList"}},methods:{toAddMyTagLib:function(){}},mounted:function(){},components:{navCrumb:e.a,tagLib:i.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"myTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=n("VU/8")(r,o,!1,function(t){n("W0XF")},"data-v-16100a88",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([26],{J3vB:function(t,a){},puJc:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),r=e("BdFv"),i=(e("Mk6G"),e("3E4D"),e("Ch4/"),e("PI0u"),e("P9l9"),{name:"platformTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"平台标签库",path:""}],tagCategory:"platformTagList"}},methods:{},mounted:function(){},components:{navCrumb:n.a,tagLib:r.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"platformTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=e("VU/8")(i,o,!1,function(t){e("J3vB")},"data-v-0eb00465",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([27],{J3vB:function(t,a){},puJc:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),r=e("BdFv"),i=(e("Mk6G"),e("3E4D"),e("Ch4/"),e("PI0u"),e("P9l9"),{name:"platformTagLib",data:function(){return{navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员标签",path:""},{name:"平台标签库",path:""}],tagCategory:"platformTagList"}},methods:{},mounted:function(){},components:{navCrumb:n.a,tagLib:r.a}}),o={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"platformTagLib-wrap common-wrap"},[a("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("tag-lib",{attrs:{tagCategory:this.tagCategory}})],1)]),this._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var s=e("VU/8")(i,o,!1,function(t){e("J3vB")},"data-v-0eb00465",null);a.default=s.exports}});
\ No newline at end of file
webpackJsonp([27],{iHP3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n("lRwf"),a=n.n(s),i=n("zL8q"),l=n("CUHN");a.a.component(i.CollapseTransition.name,i.CollapseTransition);var c={name:"tag-type",components:{SecondTag:l.default},props:{tagList:Object},data:function(){return{list:{},typeName:"",editData:[],expends:"收起"}},computed:{iconLight:function(){return"手工标签"===this.list.name?"icon-tag-light":""}},methods:{handleChangeExpends:function(){this.expends="收起"===this.expends?"展开":"收起"},handleFirstTag:function(){this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(t){this.list=t}}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list"},["手工标签"!==t.list.name?n("span",{staticClass:"expends-txt",on:{click:t.handleChangeExpends}},[t._v(t._s(t.expends)+" ")]):t._e(),t._v(" "),n("div",{staticClass:"first-tag"},[n("div",[n("i",{staticClass:"iconfont menu-icon",class:[t.list.icon,t.iconLight]}),t._v(" "),n("span",{staticClass:"tag-name",class:[t.iconLight],on:{click:t.handleFirstTag}},[t._v(t._s(t.list.name))])]),t._v(" "),n("el-collapseTransition",[n("div",{directives:[{name:"show",rawName:"v-show",value:"收起"===t.expends,expression:"expends === '收起'"}],staticClass:"second-tag"},t._l(t.list.children,function(e,s){return n("second-tag",{key:s,attrs:{list:e,"tag-name":t.list.name}})}),1)])],1)])},staticRenderFns:[]};var d=n("VU/8")(c,o,!1,function(t){n("vSuD")},"data-v-067944b1",null);e.default=d.exports},vSuD:function(t,e){}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,f){for(var o,d,b,i=0,u=[];i<c.length;i++)d=c[i],n[d]&&u.push(n[d][0]),n[d]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(a&&a(c,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=r(r.s=f[i]);return b};var c={},n={33:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"d2b9bf7d9b7c29c88ee3",1:"eccd8c3c3d12ce4a6d73",2:"dd4fd4366dbfaac0e52c",3:"2f800687a000c2635a63",4:"f21080634b532ec7e21b",5:"31a1f8d9a6762a8f88d4",6:"156667a0d69e9b0f9b4c",7:"4ff29118928a011087de",8:"a7bfdf906c46bdc7024f",9:"ea583eedf0e8e01807bd",10:"2450ea09d03a6d56323f",11:"2fbbec48bb1a6eb355d8",12:"ff49b3face62ef7aef5f",13:"109c66b4d5044a2c65ce",14:"e4525c088aa2fb266e4f",15:"d3bc927a69a035e8f788",16:"a75aeea0cbeabe55b8a6",17:"de3efb98ab1af91a17c7",18:"34b693a8bcc1f192dc0f",19:"308e228686726571bdcf",20:"2b65704e386d6c480e4e",21:"9ad10774440ae06517b7",22:"c4f40b36578f95b71d0e",23:"487d36d247e011d8b493",24:"ac711164a179b5d1a97d",25:"eecd859ab9c64de6928f",26:"5055355a4a84b9f2bd9d",27:"6d31a9ba97dcacb6a1f7",28:"3493abb67f82d7dbc1cb",29:"85349d1f36348906697c",32:"a9aaa6e5d01423c1a780"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=d,t.appendChild(f),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,d){for(var f,o,b,i=0,u=[];i<a.length;i++)o=a[i],n[o]&&u.push(n[o][0]),n[o]=0;for(f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f]);for(c&&c(a,t,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)b=r(r.s=d[i]);return b};var a={},n={33:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,r.nc&&d.setAttribute("nonce",r.nc),d.src=r.p+"static/js/"+e+"."+{0:"25ee4ef54d07716dd0e8",1:"eccd8c3c3d12ce4a6d73",2:"dd4fd4366dbfaac0e52c",3:"d8e5769297d323db2af0",4:"f21080634b532ec7e21b",5:"f23a89578a39c3272788",6:"156667a0d69e9b0f9b4c",7:"4ff29118928a011087de",8:"a7bfdf906c46bdc7024f",9:"ea583eedf0e8e01807bd",10:"2450ea09d03a6d56323f",11:"20b8edf23ced5c12d43b",12:"ff49b3face62ef7aef5f",13:"109c66b4d5044a2c65ce",14:"0550dbc2c960c90c548f",15:"d3bc927a69a035e8f788",16:"a75aeea0cbeabe55b8a6",17:"de3efb98ab1af91a17c7",18:"34b693a8bcc1f192dc0f",19:"308e228686726571bdcf",20:"2b65704e386d6c480e4e",21:"dcbb43680b4433f7b378",22:"7d4423d284c4a444cc08",23:"113ed2bdef919e3f8c31",24:"c9d5d98023a48e77bcbd",25:"6934db3f920c52113f90",26:"f7bcd73f7165acb2f64d",27:"2c48b10d124016d57c0b",28:"3493abb67f82d7dbc1cb",29:"85349d1f36348906697c",32:"a9aaa6e5d01423c1a780"}[e]+".js";var f=setTimeout(o,12e4);function o(){d.onerror=d.onload=null,clearTimeout(f);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return d.onerror=d.onload=o,t.appendChild(d),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="./",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -20,5 +20,6 @@
<!-- <script src="//web-1251519181.file.myqcloud.com/components/datepicker.2.0.00.js"></script> -->
<script src="//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/card.2.0.02.js"></script>
</body>
</html>
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -8,8 +8,6 @@
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js",
"format": "onchange 'test/**/*.js' 'src/**/*.js' 'src/**/*.vue' -- prettier --write {{changed}}",
"formater": "onchange \"test/**/*.js\" \"src/**/*.js\" \"src/**/*.vue\" -- prettier --write {{changed}}",
"version": "conventional-changelog -p angular -i changelog.md -s -r 0 && git add changelog.md"
},
"dependencies": {
......
import vueGicCard from './card.vue'; // 导入组件
const GicCard = {
install(Vue, options) {
Vue.component(vueGicCard.name, vueGicCard);
}
};
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(GicCard);
}
export default GicCard;
const host = window.location.origin;
// eslint-disable-next-line
export const baseUrl = host.indexOf('localhost') != '-1' ? 'http://gicdev.demogic.com' : host;
<template>
<div class="tag-mode">
<p class="title">营销方式</p>
<div class="tag-header">
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全部选择</el-checkbox>
</div>
......@@ -50,5 +51,8 @@ export default {
.tag-content {
padding: 12px;
}
.title {
padding: 5px 0;
}
}
</style>
......@@ -16,6 +16,7 @@ export default {
},
data() {
return {
templateCode: '',
currentComputeType:'',
currentKey: '',
// 标签详情数据
......@@ -392,7 +393,7 @@ export default {
}
if (code === 'tag007' && that.templateData.length === 1) {
tagValue.val[0].data.compute = that.templateData[0].postCompute;
tagValue.val[0].data.value = that.templateData[0].addTags.map(item => item.value).join(' ');
tagValue.val[0].data.value = that.templateData[0].addTags.map(item => item.value.replace(/\s/g, '')).join(' ');
that.postTemplateData.selectedVal.push(that.templateData[0].addTags.map(item => item.value).join(','));
}
// 全部/已选
......@@ -463,8 +464,7 @@ export default {
} else {
tagValue.val[0].data.compute = that.templateData[0].postCompute;
}
tagValue.val[0].data.value = that.templateData[0].dateRangeValue.join(',');
that.templateData[0].timeInput = '';
tagValue.val[0].data.value = that.templateData[0].dateRangeValue.join(','); that.templateData[0].timeInput = '';
if (code === 'tag019') {
tagValue.val[0].data.value = that.templateData[0].dateRangeValue
.join(',')
......@@ -826,6 +826,21 @@ export default {
ele.isAdd = false;
}
});
//
if (this.templateData.length == 1) {
for (let i = 0; i < this.templateData.length; i++) {
if (this.templateData[i].templateCode == 'tag011') {
returnFlag = await that.$refs.storeNew[0].isStoreSave();
let StoreConfigData = await that.$refs.storeNew[0].getStoreConfig();
that.postTemplateData.selectedVal.push(`${StoreConfigData.name} ${StoreConfigData.list.map(item => item.name).join(',')}`);
tagValue.val[0].data.value = this.templateData[i].uuid;
tagValue.val[0].data.dealKey = 'storeWidget';
}
}
}
that.postTemplateData.template = that.templateData;
tagParams = that.postTemplateData;
await this.addToTemp(tagValue, tagParams);
......@@ -858,8 +873,10 @@ export default {
tagValue: JSON.stringify(tagValue),
tagParams: JSON.stringify(tagParams),
tagName: that.tagData.tagName,
isActive: that.tagData.isActive
isActive: that.tagData.isActive,
templateCode: this.templateCode
};
console.log(sendObj);
this.$emit('returnTagData', sendObj);
// return false;
// }
......@@ -1426,6 +1443,7 @@ export default {
let resData = res.data;
if (resData.errorCode == 1) {
// 返回字段否追加对应 模板数据对象上
for (let key in resData.result) {
that[resData.result.templateCode][key] = resData.result[key];
}
......
......@@ -138,3 +138,18 @@ export const addNewGroup = params =>
method: 'get',
params: params
});
// 批量更新会员分组的人
export const refershMemberCount = params =>
request({
url: '/member-tag-member/getMemberCountByGroupIdBatch',
method: 'get',
params
});
export const memberTagGroupList = params =>
request({
url: '/member-tag-group/findList.json',
method: 'get',
params
});
......@@ -20,5 +20,12 @@ export const findOndJson = params =>
request({
url: '/member-tag-value/findOne.json',
method: 'get',
params: params
});
export const getCityTree = params =>
request({
url: '/api-plug/dict-district-tree',
method: 'post',
params
});
......@@ -212,7 +212,11 @@ export function getTime(type) {
}
export function debounce(func, wait, immediate) {
let timeout, args, context, timestamp, result
let timeout,
args,
context,
timestamp,
result
const later = function() {
// 据上一次触发时间间隔
......
......@@ -3,13 +3,11 @@
<!-- 添加标签、编辑标签 -->
<el-dialog :title="title" :visible.sync="showEditTagPop" width="540" :before-close="handleClose" append-to-body>
<div class="dialog-box">
<p class="tag-name">{{ tagData.tagName }}</p>
<p class="tag-desc">{{ tagData.tagDescribe }}</p>
<p v-if="tagData.tagId" class="m-t-20 m-b-20">标签值设置</p>
<p class="tag-name">{{ tagDataAssgin.tagName }}</p>
<p class="tag-desc">{{ tagDataAssgin.tagDescribe }}</p>
<p v-if="tagId" class="m-t-20 m-b-20">标签值设置</p>
<!-- 所有标签的配置项 -->
<tag-config-options v-if="tagData.tagId" :tagId="tagData.tagId" ref="tagConfig" @returnTagData="returnTagData"></tag-config-options>
<p>营销方式</p>
<tag-mode></tag-mode>
<tag-config-options v-if="isAddFlag" :tagId="tagDataAssgin.tagId" ref="tagConfig" :templateDataList="templateObj" @returnTagData="returnTagData"></tag-config-options>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose">取 消</el-button>
......@@ -20,14 +18,12 @@
</template>
<script>
import TagMode from '@/components/tag/tag-mode';
import TagConfigOptions from '@/components/tag/tag-config-options';
// import tagDetails from '@/components/tagDetail/mixin/index';
export default {
name: 'edit-tag',
components: {
TagMode,
TagConfigOptions
},
props: {
......@@ -45,9 +41,26 @@ export default {
selectedVal: [],
template: []
},
templateData: []
templateData: [],
tagDataAssgin: {},
templateObj: {},
isAddFlag: false
};
},
watch: {
tagData: {
immediate: true,
handler(newval) {
this.isAddFlag = false;
setTimeout(_ => {
this.isAddFlag = true;
this.tagId = newval.tagId;
this.tagDataAssgin = newval;
this.templateObj = newval;
}, 20);
}
}
},
// mixins: [tagDetails],
methods: {
handleClose() {
......@@ -56,9 +69,10 @@ export default {
handleSave() {
const ret = this.$refs.tagConfig.getTemplateData();
this.templateData = JSON.parse(JSON.stringify(ret));
this.tagId = this.tagData.tagId;
this.tagId = this.tagDataAssgin.tagId;
this.$refs.tagConfig.saveConfirm().then(_ => {
this.$emit('update:showEditTagPop', false);
this.$emit('refersh', this.tagDataAssgin);
});
},
returnTagData(list) {
......
......@@ -315,7 +315,6 @@ export default {
},
// 保存选择的标签数据
returnTagData(data) {
console.log(data);
let tagParams = JSON.parse(data.tagParams);
data.newTagVal = JSON.stringify(tagParams.selectedVal);
......
......@@ -73,11 +73,11 @@
><!-- width="150px" -->
<template slot="header">
覆盖人数
<el-popover placement="top-start" width="200" trigger="hover">
<el-popover placement="top-start" width="300" trigger="hover">
<div>
默认显示上次页面缓存人数,可点击刷新按钮查看当页分组最新人数。
</div>
<el-button type="text" @click="getGroupList">刷新</el-button>
<el-button type="text" @click="refershMember">刷新</el-button>
<i slot="reference" class="el-icon-more icon-transform-nine"></i>
</el-popover>
</template>
......@@ -172,14 +172,12 @@ import errMsg from '@/common/js/error';
import timeFormat from '@/common/js/timeFormat';
import { _debounce } from '@/common/js/public';
import { getRequest } from '@/api/api';
import { recommendList, recommendGroupList, findSecondMemberList } from '@/request/api';
import { recommendList, recommendGroupList, findSecondMemberList, refershMemberCount, memberTagGroupList } from '@/request/api';
import GroupList from './group-list';
import RecommendTable from './recommend-table';
// import { memberGroupList } from '@/request/api';
// import groupTransfer from '@/components/groupTransfer';
export default {
name: 'memberGroupList',
components: {
......@@ -232,10 +230,13 @@ export default {
batchSelect: ''
};
},
created() {
this.loading = true;
// this.getMemberGroupList();
watch: {
tagSearch(newval) {
this.params.groupName = newval;
}
},
filters: {
formatTimeYMD(data) {
return data && data != '- -' ? data.split(' ')[0] : '--';
......@@ -264,21 +265,42 @@ export default {
}
}
},
methods: {
refershMember() {
let Ids = this.groupTableData.map(el => el.memberTagGroupId).join(',');
const param = {
requestProject: 'gic-member-tag-web',
memberTagGroupIds: Ids
};
refershMemberCount(param).then(res => {
if (res.errorCode == 1) {
this.getGroupList(this.params);
this.$message.success({message: '更新成功'});
}
});
},
refreshList() {
this.getGroupList();
// const param = {
// requestProject: 'gic-member-tag-web',
// memberTagGroupIds: this.groupTableData.map(el => el.memberTagGroupId).join(',')
// };
// console.log(param);
// refershMemberCount(param).then(res => {
// if (res.errorCode == 1) {
// this.getGroupList();
// this.$message.success({message: '更新成功'});
// }
// });
},
// 会员分组二级
getsecondList(list) {
this.isRecommend = false;
const param = {
pageNum: 1,
pageSize: 20,
requestProject: 'gic-member-tag-web',
memberTagGroupClassifyId: list.memberTagGroupClassifyId
};
findSecondMemberList(param).then(res => {
this.params.memberTagGroupClassifyId = list.memberTagGroupClassifyId;
findSecondMemberList(this.params).then(res => {
if (res.errorCode == 1) {
this.total = res.result.totalCount;
this.groupTableData = res.result.result.map(el => ({
...el,
createTime: timeFormat.timeToDateTime(el.createTime)
......@@ -390,6 +412,7 @@ export default {
*/
clearSearch() {
this.currentPage = 1;
this.params.pageNum = 1;
this.getGroupList();
},
......@@ -397,30 +420,27 @@ export default {
* 搜索分组
*/
searchEnterFun(e) {
const that = this;
// console.log(e)
that.currentPage = 1;
that.getGroupList();
this.currentPage = 1;
this.params.pageNum = 1;
this.getGroupList();
},
/**
* 分页---页码变化
* 分页--- 一页多少条
*/
handleSizeChange(val) {
const that = this;
// console.log(`每页 ${val} 条`);
that.pageSize = val;
that.getGroupList();
this.params.pageSize = val;
this.pageSize = val;
this.getGroupList();
},
/**
* 分页---当前页变化
* 分页--- 当前第几页
*/
handleCurrentChange(val) {
const that = this;
// console.log(`当前页: ${val}`);
that.currentPage = val;
that.getGroupList();
this.params.pageNum = val;
this.currentPage = val;
this.getGroupList();
},
/**
......@@ -588,60 +608,41 @@ export default {
* 通过状态筛选列表
*/
searchByStatus(val) {
this.loading = true;
console.log(val, this.statusSelect);
this.params.effectiveStatus = val;
this.getGroupList();
},
/**
* 获取列表数据
*/
getGroupList() {
const that = this;
const para = {
groupName: that.tagSearch, // 搜索字段
pageSize: that.pageSize,
pageNum: that.currentPage,
effectiveStatus: that.statusSelect
};
getRequest('/member-tag-group/findList.json', para)
.then(res => {
// console.log(res, "groupList");
var resData = res.data;
if (resData.errorCode == 1) {
that.total = resData.result.totalCount;
resData.result.result.forEach(function(ele, index) {
if (!ele.latestUpdateTime) {
ele.latestUpdateTime = '- -';
}
if (ele.createTime) {
ele.createTime = timeFormat.timeToDateTime(ele.createTime);
}
});
that.groupTableData = resData.result.result;
that.loading = false;
// showMsg.showmsg('保存成功','success')
return;
}
that.loading = false;
errMsg.errorMsg(resData);
})
.catch(function(error) {
// console.log(error);
that.loading = false;
that.$message.error({
duration: 1000,
message: error.message
});
});
memberTagGroupList(this.params).then(res => {
if (res.errorCode == 1) {
this.total = res.result.totalCount;
this.groupTableData = res.result.result.map(el => ({
...el,
latestUpdateTime: !!el.latestUpdateTime ? el.latestUpdateTime : '--',
createTime: timeFormat.timeToDateTime(el.createTime)
}));
}
this.loading = false;
}).catch(err => {
console.log(err);
});
}
},
created() {
this.loading = true;
this.params = {
groupName: this.tagSearch,
pageSize: 20,
pageNum: 1,
effectiveStatus: this.statusSelect,
requestProject: 'gic-member-tag-web',
memberTagGroupClassifyId: ''
};
},
mounted() {
this.getGroupList();
this.config = {
};
}
};
</script>
......
......@@ -17,7 +17,7 @@
@checkTagsGroup="checkTagsGroup"
@dragTag="dragTag"
/>
<el-button class="m-t-10 w-548 el-icon-plus color-blue add-group-btn" v-show="selectedTagsData.length < 3" @click="addTagsGroup">
<el-button class="m-t-10 w-348 el-icon-plus color-blue add-group-btn" v-show="selectedTagsData.length < 3" @click="addTagsGroup">
&nbsp;&nbsp;添加
</el-button>
</div>
......
<template>
<div class="w-548 border-box">
<div class="w-348 border-box">
<div :class="['tags-group', { 'tags-group--active': active }]" @click="checkTagsGroup">
<!--右上角的下拉菜单-->
<el-dropdown class="tags-group__dropdown" placement="bottom-end">
......@@ -149,8 +149,8 @@ export default {
}
.tags-group__show {
padding: 12px;
height: 150px;
padding: 0 12px;
height: 120px;
overflow-y: scroll;
}
......
......@@ -6,7 +6,8 @@
<template slot-scope="scope">
<span class="tag-name">{{ scope.row.tagName }}</span>
<el-tooltip class="item" effect="dark" :content="scope.row.refersh ? '更新标签' : '添加标签'" placement="bottom">
<i class="iconfont icon-jia icon-tag-name" :class="{ 'icon-shoudonggengxin': scope.row.refersh }" @click="addTag(scope.row)"></i>
<!-- :class="{ 'icon-shoudonggengxin': scope.row.refersh }" -->
<i class="iconfont icon-jia icon-tag-name" @click="addTag(scope.row)"></i>
</el-tooltip>
</template>
</el-table-column>
......@@ -51,7 +52,8 @@ export default {
type: Boolean,
default: false
},
groupId: String
groupId: String,
refersh: Object
},
data() {
......@@ -144,6 +146,16 @@ export default {
handler(newval) {
this.tableData = newval;
}
},
refersh: {
immediate: true,
handler(newval) {
// 刷新
if (newval.changeRefersh) {
let index = this.tableData.findIndex(el => newval.tagId === el.tagId);
this.tableData[index].refersh = true;
}
}
}
}
};
......@@ -154,4 +166,7 @@ export default {
margin: 0 20px;
overflow-y: auto;
}
.icon-tag-name {
cursor: pointer;
}
</style>
<template>
<div class="list">
<span class="expends-txt" @click="handleChangeExpends" v-if="list.name !== '手工标签'">{{ expends }} </span>
<!-- v-if="list.name !== '手工标签'" -->
<span class="expends-txt" @click="handleChangeExpends">{{ expends }} </span>
<div class="first-tag">
<div>
<i :class="[list.icon, iconLight]" class="iconfont menu-icon"></i>
<span class="tag-name" :class="[iconLight]" @click="handleFirstTag">{{ list.name }}</span>
<i :class="[list.icon, { 'icon-tag-light': list.name === tagRealName }]" class="iconfont menu-icon"></i>
<span class="tag-name" :class="{ 'icon-tag-light': list.name === tagRealName }" @click="handleFirstTag">{{ list.name }}</span>
</div>
<el-collapseTransition>
<div class="second-tag" v-show="expends === '收起'">
......@@ -19,6 +20,7 @@
import Vue from 'vue';
import { CollapseTransition } from 'element-ui';
import SecondTag from './second-tag';
import { mapState } from 'vuex';
Vue.component(CollapseTransition.name, CollapseTransition);
......@@ -44,9 +46,7 @@ export default {
},
computed: {
iconLight() {
return this.list.name === '手工标签' ? 'icon-tag-light' : '';
}
...mapState(['tagRealName'])
},
methods: {
......
......@@ -42,4 +42,18 @@
color: #c0c4cc;
}
.line-nowrap {
white-space: nowrap;
overflow: hidden;
padding: 0 6px;
line-height: 32px;
vertical-align: middle;
}
.line-nowrap .el-tag {
margin-right: 4px;
}
.el-tag-popover {
margin-right: 5px;
margin-bottom: 5px;
}
\ No newline at end of file
......@@ -455,6 +455,9 @@ input:focus {
.w-309 {
width: 309px;
}
.w-348 {
width: 348px;
}
.w-329 {
width: 329px;
}
......
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