Commit ddda09a4 by 无尘

fix: 修改手工标签判断

parent a753f990
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.4245a5d2776733e0c9ccce51b3750627.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.a8f52026fc6873978bf4.js></script><script type=text/javascript src=./static/js/vendor.4ac54fd03099c45beefc.js></script><script type=text/javascript src=./static/js/app.f4e83ed7afb9aa3975b5.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.f32e8af470cdd7bf761215e837abc022.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.af3ab3827faa1969b1e9.js></script><script type=text/javascript src=./static/js/vendor.4ac54fd03099c45beefc.js></script><script type=text/javascript src=./static/js/app.80cab846de7e313262cb.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.
......@@ -410,9 +410,16 @@ input:focus {
padding-right: 8px;
}
.p-r-12 {
padding-right: 12px;
}
.p-r-20 {
padding-right: 20px;
}
.w_100 {
width: 100%;
}
.w-86 {
width: 86px;
}
......
webpackJsonp([20],{"V+4W":function(e,t){},oVck:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o("3Xzz"),a=(o("Mk6G"),o("3E4D"),o("Ch4/")),n=function(e,t){function o(e){return(e=e.toString())[1]?e:"0"+e}if(null!=e){var r=new Date(e),a=r.getFullYear(),n=r.getMonth()+1,i=r.getDate(),l=r.getHours(),u=r.getMinutes(),s=r.getSeconds();return[a,n,i].map(o).join(t||"-")+" "+[l,u,s].map(o).join(":")}return"--"},i=(o("PI0u"),o("P9l9")),l={name:"memberGroupList",data:function(){return{navpath:[{name:"首页",path:""},{name:"会员标签",path:""},{name:"会员分组列表",path:""}],tagSearch:"",groupTableData:[{memberTagGroupId:1,describle:"标签列表数据",groupName:"123",isRealTime:1,latestUpdateTime:"2018-09-30 14:30:28",updateRate:"-",effectiveStatus:1,memberCount:"456566",createTime:"2018-09-30 14:30:28",expiredTime:"2018-09-30 14:30:28",popVisible:!1}],currentPage:1,pageSize:20,total:0}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},methods:{changeRoute:function(e){this.$router.push(e)},toAddGroup:function(){this.changeRoute("/memberGroupEdit")},clearSearch:function(){this.currentPage=1,this.getGroupList()},searchEnterFun:function(e){console.log(e),this.currentPage=1,this.getGroupList()},handleSizeChange:function(e){console.log("每页 "+e+" 条"),this.getGroupList()},handleCurrentChange:function(e){console.log("当前页: "+e),this.getGroupList()},toInvalid:function(e){console.log(e,"thisGroup");var t=this;t.$confirm("该分组失效后,不再更新数据,确认要失效吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={effectiveStatus:"0",memberTagGroupId:e.memberTagGroupId};t.updateGroup(o,e)}).catch(function(){})},updateGroup:function(e,t){Object(i.a)("/member-tag-group/simpleUpdate.json",e).then(function(o){console.log(o,"updateResult"),t.effectiveStatus=e.effectiveStatus||t.effectiveStatus,t.memberCount=e.memberCount||t.memberCount}).catch(function(e){console.log(e,"error")})},cancelDelTag:function(e,t){t.popVisible=!1},toDelTag:function(e,t){var o=this;o.$confirm("该分组覆盖"+o.$options.filters.formatNum(e.memberCount)+"人,一旦删除无法恢复,确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.delGroup(e.memberTagGroupId,t)}).catch(function(){})},delGroup:function(e,t){var o=this,r={memberTagGroupId:e};Object(i.a)("/member-tag-group/delete.json",r).then(function(e){console.log(e,"delResult");var r=e.data;1!=r.errorCode?200003!=r.errorCode?a.a.errorMsg(r):o.$confirm("该分组正在被活动使用,无法删除!","提示",{confirmButtonText:"确定",type:"warning"}):o.groupTableData.splice(t,1)}).catch(function(e){console.log(e),o.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t={groupName:e.tagSearch,pageSize:e.pageSize,pageNum:e.currentPage};Object(i.a)("/member-tag-group/findList.json",t).then(function(t){console.log(t,"groupList");var o=t.data;if(1==o.errorCode)return e.total=o.result.totalCount,o.result.result.forEach(function(e,t){e.latestUpdateTime||(e.latestUpdateTime="- -"),e.createTime&&(e.createTime=n(e.createTime))}),void(e.groupTableData=o.result.result);a.a.errorMsg(o)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getGroupList()},components:{navCrumb:r.a}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"memberGroupList-wrap common-wrap"},[o("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"common-wrap__opt"},[o("el-input",{staticClass:"w-220",attrs:{placeholder:"请输入关键字搜索人群","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchEnterFun(t):null}},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}}),e._v(" "),o("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.toAddGroup}},[e._v("新增分组")])],1),e._v(" "),o("div",{staticClass:"common-wrap__table m-t-20"},[o("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.groupTableData,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{label:"分组名称",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover"}},[o("span",[e._v(e._s(t.row.describle))]),e._v(" "),o("a",{staticClass:"pointer",attrs:{slot:"reference",href:"/memberGroupDetail?memberTagGroupId="+t.row.memberTagGroupId},slot:"reference"},[e._v(e._s(t.row.groupName))])])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"是否实时",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.isRealTime?"实时":"非实时")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"最近更新时间",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.latestUpdateTime))+"\n "),o("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.latestUpdateTime)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"更新频率",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.updateRate)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"state",label:"状态",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.effectiveStatus?"有效":"失效")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"peopleCover",label:"覆盖人数",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatNum")(t.row.memberCount))+" 人\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.createTime))+"\n "),o("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"recentUpdateDate",label:"到期时间",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.effectiveDate))+"\n "),o("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.effectiveDate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.effectiveStatus?o("el-button",{staticClass:"p-r-20",attrs:{type:"text",size:"small"},on:{click:function(o){e.toInvalid(t.row)}}},[e._v("失效")]):e._e(),e._v(" "),o("router-link",{staticClass:"edit-btn el-button--text p-r-20",attrs:{to:{path:"/memberGroupDetail",query:{memberTagGroupId:t.row.memberTagGroupId}}}},[e._v("详情")]),e._v(" "),o("router-link",{staticClass:"edit-btn el-button--text p-r-20",attrs:{to:{path:"/memberGroupEdit",query:{memberTagGroupId:t.row.memberTagGroupId}}}},[e._v("编辑")]),e._v(" "),o("el-button",{attrs:{type:"text",size:"small"},on:{click:function(o){e.toDelTag(t.row,t.$index)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),0!=e.groupTableData.length?o("div",{staticClass:"block common-wrap__page text-right"},[o("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),o("vue-gic-footer")],1)},staticRenderFns:[]};var s=o("VU/8")(l,u,!1,function(e){o("V+4W")},"data-v-4d60bbec",null);t.default=s.exports}});
//# sourceMappingURL=20.1be4e028c4beac6e198c.js.map
\ No newline at end of file
webpackJsonp([20],{FWct:function(e,t){},oVck:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o("3Xzz"),a=(o("Mk6G"),o("3E4D"),o("Ch4/")),n=function(e,t){function o(e){return(e=e.toString())[1]?e:"0"+e}if(null!=e){var r=new Date(e),a=r.getFullYear(),n=r.getMonth()+1,u=r.getDate(),l=r.getHours(),s=r.getMinutes(),i=r.getSeconds();return[a,n,u].map(o).join(t||"-")+" "+[l,s,i].map(o).join(":")}return"--"},u=(o("PI0u"),o("P9l9")),l={name:"memberGroupList",data:function(){return{navpath:[{name:"首页",path:""},{name:"会员标签",path:""},{name:"会员分组列表",path:""}],tagSearch:"",groupTableData:[],currentPage:1,pageSize:20,total:0,groupSetShow:!1,weekArr:["一","二","三","四","五","六","日"]}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},methods:{showGroupSet:function(){this.groupSetShow=!0},changeRoute:function(e){this.$router.push(e)},toAddGroup:function(){this.changeRoute("/memberGroupEdit")},clearSearch:function(){this.currentPage=1,this.getGroupList()},searchEnterFun:function(e){console.log(e),this.currentPage=1,this.getGroupList()},handleSizeChange:function(e){console.log("每页 "+e+" 条"),this.getGroupList()},handleCurrentChange:function(e){console.log("当前页: "+e),this.getGroupList()},toInvalid:function(e){console.log(e,"thisGroup");var t=this;t.$confirm("该分组失效后,不再更新数据,确认要失效吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={effectiveStatus:"0",memberTagGroupId:e.memberTagGroupId};t.updateGroup(o,e)}).catch(function(){})},refreshGroup:function(e){console.log(e);var t=this,o=e.memberTagGroupId,r={memberTagGroupId:o};Object(u.a)("/member-tag-member/findMemberList.json",r).then(function(r){console.log(r,"groupinfo");var a={memberTagGroupId:o,memberCount:r.data.result.page.totalCount};t.updateGroup(a,e)}).catch(function(e){console.log(e,"error")})},updateGroup:function(e,t){Object(u.a)("/member-tag-group/simpleUpdate.json",e).then(function(o){console.log(o,"updateResult"),t.effectiveStatus=e.effectiveStatus||t.effectiveStatus,t.memberCount=e.memberCount||0==e.memberCount?e.memberCount:t.memberCount}).catch(function(e){console.log(e,"error")})},cancelDelTag:function(e,t){t.popVisible=!1},toDelTag:function(e,t){var o=this;o.$confirm("该分组覆盖"+o.$options.filters.formatNum(e.memberCount)+"人,一旦删除无法恢复,确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.delGroup(e.memberTagGroupId,t)}).catch(function(){})},delGroup:function(e,t){var o=this,r={memberTagGroupId:e};Object(u.a)("/member-tag-group/delete.json",r).then(function(e){console.log(e,"delResult");var r=e.data;1!=r.errorCode?200003!=r.errorCode?a.a.errorMsg(r):o.$confirm("该分组正在被活动使用,无法删除!","提示",{confirmButtonText:"确定",type:"warning"}):o.groupTableData.splice(t,1)}).catch(function(e){console.log(e),o.$message.error({duration:1e3,message:e.message})})},getGroupList:function(){var e=this,t={groupName:e.tagSearch,pageSize:e.pageSize,pageNum:e.currentPage};Object(u.a)("/member-tag-group/findList.json",t).then(function(t){console.log(t,"groupList");var o=t.data;if(1==o.errorCode)return e.total=o.result.totalCount,o.result.result.forEach(function(e,t){e.latestUpdateTime||(e.latestUpdateTime="- -"),e.createTime&&(e.createTime=n(e.createTime))}),void(e.groupTableData=o.result.result);a.a.errorMsg(o)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getGroupList()},components:{navCrumb:r.a}},s={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"memberGroupList-wrap common-wrap"},[o("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"common-wrap__opt"},[o("el-input",{staticClass:"w-220",attrs:{placeholder:"请输入关键字搜索人群","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchEnterFun(t):null}},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}}),e._v(" "),o("el-button",{staticClass:"fr",attrs:{slot:"reference",type:"text",size:"small"},on:{click:e.showGroupSet},slot:"reference"},[e._v("设置组")]),e._v(" "),o("el-button",{staticClass:"fr",attrs:{type:"primary"},on:{click:e.toAddGroup}},[e._v("新增分组")])],1),e._v(" "),o("div",{staticClass:"common-wrap__table m-t-20"},[o("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.groupTableData,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{label:"分组名称",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover"}},[o("span",[e._v(e._s(t.row.describle))]),e._v(" "),o("a",{staticClass:"pointer",attrs:{slot:"reference",href:"/memberGroupDetail?memberTagGroupId="+t.row.memberTagGroupId},slot:"reference"},[e._v(e._s(t.row.groupName))])])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"是否实时",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.isRealTime?"实时":"非实时")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"最近更新时间",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.latestUpdateTime))+"\n "),o("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.latestUpdateTime)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"更新频率",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.updateType?"每天一次":2==t.row.updateType?t.row.updateDay?"每周"+e.weekArr[t.row.updateDay-1]:"每周一次":t.row.updateDay?"每月"+t.row.updateDay+"号":"每月一次")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"state",label:"状态",width:"50px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.effectiveStatus?"有效":"失效")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"peopleCover",label:"覆盖人数",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatNum")(t.row.memberCount||0))+" 人\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.createTime))+"\n "),o("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"recentUpdateDate",label:"到期时间",width:"150px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimeYMD")(t.row.effectiveDate))+"\n "),o("p",[e._v(e._s(e._f("formatTimeHMS")(t.row.effectiveDate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.effectiveStatus?o("el-button",{staticClass:"p-r-20",attrs:{type:"text",size:"small"},on:{click:function(o){e.toInvalid(t.row)}}},[e._v("失效")]):e._e(),e._v(" "),o("router-link",{staticClass:"edit-btn el-button--text p-r-20",attrs:{to:{path:"/memberGroupDetail",query:{memberTagGroupId:t.row.memberTagGroupId}}}},[e._v("详情")]),e._v(" "),o("router-link",{staticClass:"edit-btn el-button--text p-r-20",attrs:{to:{path:"/memberGroupEdit",query:{memberTagGroupId:t.row.memberTagGroupId}}}},[e._v("编辑")]),e._v(" "),o("el-button",{staticClass:"p-r-12",attrs:{type:"text",size:"small"},on:{click:function(o){e.toDelTag(t.row,t.$index)}}},[e._v("删除")]),e._v(" "),o("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[o("span",[e._v("刷新覆盖人数")]),e._v(" "),o("el-button",{attrs:{slot:"reference",type:"text",size:"small"},on:{click:function(o){e.refreshGroup(t.row)}},slot:"reference"},[e._v("刷新")])],1)]}}])})],1)],1),e._v(" "),0!=e.groupTableData.length?o("div",{staticClass:"block common-wrap__page text-right"},[o("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),o("vue-gic-footer")],1)},staticRenderFns:[]};var i=o("VU/8")(l,s,!1,function(e){o("FWct")},"data-v-516d834b",null);t.default=i.exports}});
//# sourceMappingURL=20.baa8227b22d5f19e798e.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.
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.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],c[d]&&b.push(c[d][0]),c[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=t(t.s=a[u]);return i};var r={},c={26:0};function t(n){if(r[n])return r[n].exports;var c=r[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.e=function(e){var n=c[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=c[e]=[r,t]});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,t.nc&&a.setAttribute("nonce",t.nc),a.src=t.p+"static/js/"+e+"."+{0:"83085074e03874029d44",1:"d1b66d4bf3d45b2621dd",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"3f422cfbe87ca12b4eac",6:"2f5a2f1729d9a620ae25",7:"674749ef3352df03005f",8:"a8c2da0b6b72909e8ce8",9:"be9610a42eda7bb18bc4",10:"c71c26ffe9e929740644",11:"e85b90356083e5b3e250",12:"6bce72ffa3001288e97c",13:"5200748d114383e3286c",14:"e3674474da8a18925ba8",15:"ea13cc5370a4d770d711",16:"f4036a24000959bd38c8",17:"83e469d672229c638715",18:"129d150ebd1fce6ee6e0",19:"4f681127cc3b6c7e3765",20:"1be4e028c4beac6e198c",21:"e0df757bb0bc77451792",22:"e91d8f3111c8c501ab9d",25:"9ceafa4ee79176c87d81"}[e]+".js";var f=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(f);var n=c[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return a.onerror=a.onload=d,o.appendChild(a),r},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.a8f52026fc6873978bf4.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,a);b.length;)b.shift()();if(a)for(u=0;u<a.length;u++)i=c(c.s=a[u]);return i};var r={},t={26: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:"83085074e03874029d44",1:"d1b66d4bf3d45b2621dd",2:"344d5c61c44868322e7e",3:"88a303fc10feb8b51091",4:"f6a8f25f4e8cc458879d",5:"464a7564c7b7ba2790b3",6:"b7fe65b2b2488cee6457",7:"9f049ffab9e57984e5d7",8:"e9c78884ddcc5007439f",9:"6b4ef5282ed9f885be14",10:"c71c26ffe9e929740644",11:"e85b90356083e5b3e250",12:"6bce72ffa3001288e97c",13:"5200748d114383e3286c",14:"e3674474da8a18925ba8",15:"ea13cc5370a4d770d711",16:"f4036a24000959bd38c8",17:"83e469d672229c638715",18:"129d150ebd1fce6ee6e0",19:"4f681127cc3b6c7e3765",20:"baa8227b22d5f19e798e",21:"e0df757bb0bc77451792",22:"e91d8f3111c8c501ab9d",25:"9ceafa4ee79176c87d81"}[e]+".js";var f=setTimeout(d,12e4);function d(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=d,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.af3ab3827faa1969b1e9.js.map
\ No newline at end of file
......@@ -907,7 +907,7 @@
"val":[{//选择的值 跟人群筛选器一样
"type": "data",//类型
"data": {
"key": that.currentKey,//es字段 如果是nested 变为title.t
"key": that.currentKey || that.tagData.tagId,//es字段 如果是nested 变为title.t
"compute": "",//计算属性
"value": "",//值,
"dealKey":""//属性是需要处理的类型 比如门店 下的门店类型都需要转门店id 需要后台转换 storeWidget
......@@ -2094,7 +2094,7 @@
getAsyncList(url,data) {
const that = this;
const para = {
key: that.currentKey,
key: that.currentKey || that.tagData.tagId,
requestProject: 'memberTag'
};
......@@ -2177,7 +2177,11 @@
that.tagData.tagDescribe = resData.result.tagDescribe;
that.tagData.isActive = resData.result.isActive;
// 获取 columnKey
that.currentKey = resData.result.columnKey;
// if (!!resData.result.columnKey) {
that.currentKey = resData.result.columnKey;
// }else {
// that.currentKey = resData.result.tagId;
// }
let templateObj = resData.result.template;
if (!!templateObj) {
......
......@@ -858,6 +858,8 @@
// 根据已选二级 id 获取三级列表
that.getThirdLevel(resData.result.tagTwoLevelGroupId);
// 获取标签值列表
that.getValueData()
return;
}
......@@ -885,6 +887,7 @@
that.currentTagId = that.$route.query.tagId;
that.ruleForm.tagId = that.$route.query.tagId;
that.getTagData(that.currentTagId)
that.tagEditFlag = false
}
},
......
......@@ -821,6 +821,7 @@ import qs from 'qs';
var resData = res.data
if (resData.errorCode == 1) {
showMsg.showmsg('添加成功','success')
that.$router.go(-1)
return;
}
......@@ -850,7 +851,7 @@ import qs from 'qs';
"val":[{//选择的值 跟人群筛选器一样
"type": "data",//类型
"data": {
"key": that.currentKey,//es字段 如果是nested 变为title.t
"key": that.currentKey || that.tagData.tagId,//es字段 如果是nested 变为title.t
"compute": "",//计算属性
"value": "",//值,
"dealKey":""//属性是需要处理的类型 比如门店 下的门店类型都需要转门店id 需要后台转换 storeWidget
......@@ -2014,17 +2015,26 @@ import qs from 'qs';
getAsyncList(url,data) {
const that = this;
const para = {
key: that.currentKey,
key: that.currentKey || that.tagData.tagId,
requestProject: 'memberTag'
};
that.axios.post(that.baseUrl + url, qs.stringify(para)).then(res => {
let resData = res.data;
if (resData.errorCode == 0) {
data.options = resData.result;
that.templateData.push(data)
that.getExistData(that.tagData.tagId)
return;
if (!!that.currentKey) {
if (resData.errorCode == 0) {
data.options = resData.result;
that.templateData.push(data)
that.getExistData(that.tagData.tagId)
return;
}
}else {
if (resData.errorCode == 1) {
data.options = resData.result;
that.templateData.push(data)
that.getExistData(that.tagData.tagId)
return;
}
}
that.$message.error({
......@@ -2097,7 +2107,11 @@ import qs from 'qs';
that.tagData.tagDescribe = resData.result.tagDescribe;
that.tagData.isActive = resData.result.isActive;
// 获取 columnKey
that.currentKey = resData.result.columnKey;
// if (!!resData.result.columnKey) {
that.currentKey = resData.result.columnKey;
// }else {
// that.currentKey = resData.result.tagId;
// }
let templateObj = resData.result.template;
if (!!templateObj) {
......
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