Commit c270fb62 by 无尘

fix: 修改授权日志

parent 884b42c1
.line-h-18[data-v-392785a3]{line-height:18px}.bg-f5f7fa[data-v-392785a3]{background:#f5f7fa}.store-cell-ul[data-v-392785a3]{height:289px;overflow-y:auto}.store-cell-ul li[data-v-392785a3]{margin-top:10px}.line-h-18[data-v-11d8869e]{line-height:18px}.w-170[data-v-11d8869e]{width:170px}.my-customer-wrap[data-v-11d8869e]{height:100%}.my-customer-wrap .common-bottom-border[data-v-11d8869e]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.right-content[data-v-11d8869e]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-11d8869e]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-11d8869e]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-11d8869e]{height:100%;background:#fff}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img[data-v-11d8869e]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img img[data-v-11d8869e]{width:100%}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name[data-v-11d8869e]{margin-left:10px;line-height:20px}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name .el-tag[data-v-11d8869e]{height:18px;line-height:18px}
\ No newline at end of file
.span-dot[data-v-14196587]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-14196587]{background:#52c41a}.span-dot.bg-f5222d[data-v-14196587]{background:#f5222d}.bg-82C5FF[data-v-14196587]{background:#82c5ff}.color-508CEE[data-v-14196587]{color:#508cee}.color-FF585C[data-v-14196587]{color:#ff585c}.line-h-18[data-v-14196587]{line-height:18px}.tooltip-text[data-v-14196587]{width:100%;white-space:pre-wrap;word-break:break-all}.w-293[data-v-14196587]{width:293px}.w-191[data-v-14196587]{width:191px}.common-bottom-border[data-v-14196587]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.my-customer-wrap[data-v-14196587]{height:100%}.right-content[data-v-14196587]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-14196587]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-14196587]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-14196587]{height:100%;background:#fff}.ul-li-cell .cell-img[data-v-14196587]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;border:1px solid #e4e7ed;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-img img[data-v-14196587]{width:100%}.ul-li-cell .cell-info[data-v-14196587]{padding-left:10px;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-info .cell-info-name[data-v-14196587]{height:40px;line-height:19px;white-space:pre-wrap;word-break:break-all}.ul-li-cell .cell-info .gic-name[data-v-14196587]{font-size:14px;color:#303133;line-height:18px}.ul-li-cell .cell-info .gic-version[data-v-14196587]{display:inline-block;padding:0 5px;height:15px;line-height:15px;margin-left:5px;background:#fff1f0;border-radius:2px;border:1px solid #ffa39e;font-size:10px;color:#f5222d}
\ No newline at end of file
.span-dot[data-v-1f72c985]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-1f72c985]{background:#52c41a}.span-dot.bg-f5222d[data-v-1f72c985]{background:#f5222d}.bg-82C5FF[data-v-1f72c985]{background:#82c5ff}.color-508CEE[data-v-1f72c985]{color:#508cee}.color-FF585C[data-v-1f72c985]{color:#ff585c}.line-h-18[data-v-1f72c985]{line-height:18px}.tooltip-text[data-v-1f72c985]{width:100%;white-space:pre-wrap;word-break:break-all}.w-293[data-v-1f72c985]{width:293px}.w-191[data-v-1f72c985]{width:191px}.common-bottom-border[data-v-1f72c985]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.my-customer-wrap[data-v-1f72c985]{height:100%}.right-content[data-v-1f72c985]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-1f72c985]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-1f72c985]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-1f72c985]{height:100%;background:#fff}.ul-li-cell .cell-img[data-v-1f72c985]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;border:1px solid #e4e7ed;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-img img[data-v-1f72c985]{width:100%}.ul-li-cell .cell-info[data-v-1f72c985]{padding-left:10px;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-info .cell-info-name[data-v-1f72c985]{height:40px;line-height:19px;white-space:pre-wrap;word-break:break-all}.ul-li-cell .cell-info .gic-name[data-v-1f72c985]{font-size:14px;color:#303133;line-height:18px}.ul-li-cell .cell-info .gic-version[data-v-1f72c985]{display:inline-block;padding:0 5px;height:15px;line-height:15px;margin-left:5px;background:#fff1f0;border-radius:2px;border:1px solid #ffa39e;font-size:10px;color:#f5222d}
\ No newline at end of file
.line-h-18[data-v-392785a3]{line-height:18px}.bg-f5f7fa[data-v-392785a3]{background:#f5f7fa}.store-cell-ul[data-v-392785a3]{height:289px;overflow-y:auto}.store-cell-ul li[data-v-392785a3]{margin-top:10px}.line-h-18[data-v-2553d3e6]{line-height:18px}.w-170[data-v-2553d3e6]{width:170px}.my-customer-wrap[data-v-2553d3e6]{height:100%}.my-customer-wrap .common-bottom-border[data-v-2553d3e6]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.right-content[data-v-2553d3e6]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-2553d3e6]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-2553d3e6]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-2553d3e6]{height:100%;background:#fff}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img[data-v-2553d3e6]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img img[data-v-2553d3e6]{width:100%}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name[data-v-2553d3e6]{margin-left:10px;line-height:20px}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name .el-tag[data-v-2553d3e6]{height:18px;line-height:18px}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-00e0e4dc.b71d447e.css rel=prefetch><link href=css/chunk-01eacaa5.9010b5cb.css rel=prefetch><link href=css/chunk-0b0db9c0.8569c9f3.css rel=prefetch><link href=css/chunk-0d204189.9cb54b4c.css rel=prefetch><link href=css/chunk-16a8dcde.2a3bfb87.css rel=prefetch><link href=css/chunk-19db1fc6.ba890a33.css rel=prefetch><link href=css/chunk-1a973c84.759ba998.css rel=prefetch><link href=css/chunk-1b93a01a.01549a8d.css rel=prefetch><link href=css/chunk-1cee93ce.89cf8efe.css rel=prefetch><link href=css/chunk-29a5079e.0d5615a8.css rel=prefetch><link href=css/chunk-4a8be49a.e6fc8e8f.css rel=prefetch><link href=css/chunk-5c5dd087.a24888e6.css rel=prefetch><link href=css/chunk-63cd2773.5fbdcef6.css rel=prefetch><link href=css/chunk-63f006ce.8845f3f9.css rel=prefetch><link href=css/chunk-67f4894d.7887d86d.css rel=prefetch><link href=css/chunk-6b6f2a6e.d77c2657.css rel=prefetch><link href=css/chunk-7756bb34.84a9ca44.css rel=prefetch><link href=css/chunk-7ea1f4c1.2edbc58c.css rel=prefetch><link href=css/chunk-aef383e6.eec4d489.css rel=prefetch><link href=css/chunk-be528a18.e2991b7b.css rel=prefetch><link href=css/chunk-ea9d6bee.492c0f7d.css rel=prefetch><link href=js/chunk-00e0e4dc.aa44f0b4.js rel=prefetch><link href=js/chunk-01eacaa5.ddf66b20.js rel=prefetch><link href=js/chunk-0b0db9c0.59a9a72b.js rel=prefetch><link href=js/chunk-0d204189.f58688a5.js rel=prefetch><link href=js/chunk-16a8dcde.422b0989.js rel=prefetch><link href=js/chunk-19db1fc6.10fbf935.js rel=prefetch><link href=js/chunk-1a973c84.ec54956a.js rel=prefetch><link href=js/chunk-1b93a01a.19b25334.js rel=prefetch><link href=js/chunk-1cee93ce.20d8e6e2.js rel=prefetch><link href=js/chunk-29a5079e.fee731a4.js rel=prefetch><link href=js/chunk-2d0b5d69.68a52501.js rel=prefetch><link href=js/chunk-4a8be49a.279f41dc.js rel=prefetch><link href=js/chunk-5c5dd087.42780362.js rel=prefetch><link href=js/chunk-63cd2773.7c931d9c.js rel=prefetch><link href=js/chunk-63f006ce.e449905e.js rel=prefetch><link href=js/chunk-67f4894d.788a61fa.js rel=prefetch><link href=js/chunk-6b6f2a6e.53257f98.js rel=prefetch><link href=js/chunk-737eaf4a.50394394.js rel=prefetch><link href=js/chunk-7756bb34.1b2cb208.js rel=prefetch><link href=js/chunk-7ea1f4c1.fd6c8daa.js rel=prefetch><link href=js/chunk-aef383e6.5faa3612.js rel=prefetch><link href=js/chunk-be528a18.ba45b8c3.js rel=prefetch><link href=js/chunk-ea9d6bee.51f6b850.js rel=prefetch><link href=css/app.8052f0eb.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.89e9367e.js rel=preload as=script><link href=js/chunk-vendors.e7b30cab.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.8052f0eb.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.41.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=js/chunk-vendors.e7b30cab.js></script><script src=js/app.89e9367e.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-01eacaa5.9010b5cb.css rel=prefetch><link href=css/chunk-0b0db9c0.8569c9f3.css rel=prefetch><link href=css/chunk-0d204189.9cb54b4c.css rel=prefetch><link href=css/chunk-16a8dcde.2a3bfb87.css rel=prefetch><link href=css/chunk-19db1fc6.ba890a33.css rel=prefetch><link href=css/chunk-1a973c84.759ba998.css rel=prefetch><link href=css/chunk-1b93a01a.01549a8d.css rel=prefetch><link href=css/chunk-2918a10c.e1060915.css rel=prefetch><link href=css/chunk-29a5079e.0d5615a8.css rel=prefetch><link href=css/chunk-4a8be49a.e6fc8e8f.css rel=prefetch><link href=css/chunk-4b5b0a08.e48a0998.css rel=prefetch><link href=css/chunk-5c5dd087.a24888e6.css rel=prefetch><link href=css/chunk-63cd2773.5fbdcef6.css rel=prefetch><link href=css/chunk-63f006ce.8845f3f9.css rel=prefetch><link href=css/chunk-6ea0e836.cb2d02f8.css rel=prefetch><link href=css/chunk-7756bb34.84a9ca44.css rel=prefetch><link href=css/chunk-7ea1f4c1.2edbc58c.css rel=prefetch><link href=css/chunk-aef383e6.eec4d489.css rel=prefetch><link href=css/chunk-be528a18.e2991b7b.css rel=prefetch><link href=css/chunk-cef5816a.53044db9.css rel=prefetch><link href=css/chunk-ea9d6bee.492c0f7d.css rel=prefetch><link href=js/chunk-01eacaa5.ddf66b20.js rel=prefetch><link href=js/chunk-0b0db9c0.ead05eb3.js rel=prefetch><link href=js/chunk-0d204189.f58688a5.js rel=prefetch><link href=js/chunk-16a8dcde.422b0989.js rel=prefetch><link href=js/chunk-19db1fc6.10fbf935.js rel=prefetch><link href=js/chunk-1a973c84.ec54956a.js rel=prefetch><link href=js/chunk-1b93a01a.19b25334.js rel=prefetch><link href=js/chunk-2918a10c.58285a1c.js rel=prefetch><link href=js/chunk-29a5079e.fee731a4.js rel=prefetch><link href=js/chunk-2d0b5d69.68a52501.js rel=prefetch><link href=js/chunk-4a8be49a.279f41dc.js rel=prefetch><link href=js/chunk-4b5b0a08.2652b18e.js rel=prefetch><link href=js/chunk-5c5dd087.42780362.js rel=prefetch><link href=js/chunk-63cd2773.7c931d9c.js rel=prefetch><link href=js/chunk-63f006ce.e449905e.js rel=prefetch><link href=js/chunk-6ea0e836.e0373bf4.js rel=prefetch><link href=js/chunk-737eaf4a.50394394.js rel=prefetch><link href=js/chunk-7756bb34.1b2cb208.js rel=prefetch><link href=js/chunk-7ea1f4c1.fd6c8daa.js rel=prefetch><link href=js/chunk-aef383e6.5faa3612.js rel=prefetch><link href=js/chunk-be528a18.ba45b8c3.js rel=prefetch><link href=js/chunk-cef5816a.09f1f72b.js rel=prefetch><link href=js/chunk-ea9d6bee.51f6b850.js rel=prefetch><link href=css/app.8052f0eb.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.8beeb89f.js rel=preload as=script><link href=js/chunk-vendors.e7b30cab.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.8052f0eb.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.41.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=js/chunk-vendors.e7b30cab.js></script><script src=js/app.8beeb89f.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1cee93ce"],{"11b2":function(t,e,a){},"56b3":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"my-customer-wrap common-set-wrap"},[o("nav-crumb",{attrs:{navpath:t.navpath}}),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content-right"},[o("div",{staticClass:"flex flex-space-between"},[o("div",{staticStyle:{width:"643px"}},[o("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[o("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),o("div",{staticClass:"el-alert__content"},[o("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),o("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),o("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),o("div",{staticClass:"m-t-20"},[o("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{prop:"",label:"商户列表","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"ul-li-cell flex"},[o("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?o("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):o("img",{attrs:{src:a("6ce2"),alt:"img"}})]),o("div",{staticClass:"cell-info"},[o("div",{staticClass:"cell-info-name font-14 color-303133"},[o("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName))]),o("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version))])])])])]}}])}),o("el-table-column",{attrs:{prop:"",label:"绑定门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])},[o("template",{slot:"header"},[o("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),o("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),o("el-table-column",{attrs:{prop:"",label:"共享门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])},[o("template",{slot:"header"},[o("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),o("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),o("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),o("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),o("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),o("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),o("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),o("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},n=[],s=a("29b6"),l=a("1bd0"),i=l["a"].getAuthEnterprise,r={name:"authMerchant",data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};i(a).then((function(t){e.tableData=t.result||[]})).catch((function(t){}))}},watch:{},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:s["a"]}},c=r,u=(a("951c"),a("2877")),p=Object(u["a"])(c,o,n,!1,null,"14196587",null);e["default"]=p.exports},"951c":function(t,e,a){"use strict";var o=a("11b2"),n=a.n(o);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2918a10c"],{"1c0e":function(t,e,a){},"56b3":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticStyle:{width:"643px"}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),n("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"商户列表",width:"238"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"ul-li-cell flex"},[n("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?n("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"cell-info"},[n("div",{staticClass:"cell-info-name font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName))]),n("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version))])])])])]}}])}),n("el-table-column",{attrs:{prop:"",label:"绑定门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"共享门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),n("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},o=[],s=a("29b6"),l=a("1bd0"),i=l["a"].getAuthEnterprise,r={name:"authMerchant",data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};i(a).then((function(t){e.tableData=t.result||[]})).catch((function(t){}))}},watch:{},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:s["a"]}},c=r,u=(a("c2ad"),a("2877")),p=Object(u["a"])(c,n,o,!1,null,"1f72c985",null);e["default"]=p.exports},c2ad:function(t,e,a){"use strict";var n=a("1c0e"),o=a.n(n);o.a}}]);
\ 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.
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-24 12:19:48
* @LastEditors: 无尘
* @LastEditTime: 2020-07-29 17:30:55
* @LastEditTime: 2020-07-30 10:40:55
*/
import getFetch from './getFetch.js';
......@@ -22,7 +22,8 @@ let api = {
url: '/enterprise-auth', // 提交审核
method: 'post',
useFormData: true
}
},
getEnterpriseDetail: '/gic-enterprise-detail' // 获取商户详情
}
api = getFetch(api, '/hb-manage-web');
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 16:13:59
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 12:27:44
* @LastEditTime: 2020-07-30 11:44:16
* @FilePath :\haoban-4\src\components\company\add-member.vue
-->
<!--
......@@ -32,8 +32,8 @@
<el-form-item label="手机号码" prop=""> {{ partForm.nationCode }}-{{ partForm.phoneNumber }} </el-form-item>
<el-form-item label="部门" prop="">
<ul>
<li class=" depart-cell color-2f54eb cursor-pointer" v-for="(item, index) in partForm.departmentList" :key="index + 'part'" @click="changeDepart(item)">
<span>{{ item.chainName }} / {{ item.departmentName }} {{ partForm.departmentList.length > 1 ? ';' : ';' }}</span>
<li class=" depart-cell color-2f54eb cursor-pointer" v-for="(item, index) in partForm.departmentInfo" :key="index + 'part'" @click="changeDepart(item)">
<span>{{ item.chainName }} / {{ item.departmentName }} {{ partForm.departmentInfo.length > 1 ? ';' : ';' }}</span>
</li>
</ul>
</el-form-item>
......@@ -129,7 +129,7 @@ export default {
trigger: 'blur'
}
],
departmentList: [
departmentInfo: [
{
type: 'array',
required: true,
......@@ -146,7 +146,7 @@ export default {
phoneNumber: '',
postion: '',
activeFlag: false,
departmentList: [],
departmentInfo: [],
departmentIds: '',
sex: 1,
syncPostionFlag: 1,
......@@ -168,7 +168,7 @@ export default {
*/
checkGroupIds: function(nodes) {
const that = this;
that.partForm.departmentList = nodes;
that.partForm.departmentInfo = nodes;
},
/**
* 改变对外职务
......@@ -224,8 +224,8 @@ export default {
if (res.result.syncPostionFlag == 2) {
res.result.extendPostionDefine = res.result.extendPostion;
}
if (!!res.result.departmentList && !!res.result.departmentList.length) {
res.result.departmentList.forEach(ele => {
if (!!res.result.departmentInfo && !!res.result.departmentInfo.length) {
res.result.departmentInfo.forEach(ele => {
ele.chainName = ele.chainName.replace(/\//gi, ' / ');
});
}
......@@ -241,10 +241,10 @@ export default {
const that = this;
if (Object.keys(newData).length) {
that.partForm = newData;
that.partForm.departmentList = [];
that.partForm.departmentInfo = [];
that.getData();
} else {
that.partForm.departmentList = that.defaultDepart || [];
that.partForm.departmentInfo = that.defaultDepart || [];
}
}
},
......@@ -252,10 +252,10 @@ export default {
const that = this;
if (Object.keys(that.memberObj).length) {
that.partForm = that.memberObj;
that.partForm.departmentList = [];
that.partForm.departmentInfo = [];
that.getData();
} else {
that.partForm.departmentList = that.defaultDepart || [];
that.partForm.departmentInfo = that.defaultDepart || [];
}
}
};
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 16:13:59
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 12:24:38
* @LastEditTime: 2020-07-30 11:46:39
* @FilePath : \haoban-4\src\components\company\add-relate.vue
-->
<!--
......@@ -40,7 +40,7 @@
</div>
</div>
<div class="show-select-num cursor-pointer w-558" slot="reference">
<div>{{ partForm.salerName }} <span v-if="!partForm.salerName" class="font-14 color-c0c4cc">请输入code/手机号搜索进行账号关联</span></div>
<div><span>{{ partForm.salerName }}</span> <el-input placeholder="请输入code/手机号搜索进行账号关联" clearable maxlength="40" v-model="searchSelect" style="width: 100%;" prefix-icon="el-icon-search" @keyup.native="value => toInput(value, searchSelect)" @clear="clearSearch"> </el-input></div>
</div>
</el-popover>
</el-form-item>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-07-29 18:21:03
* @LastEditTime: 2020-07-30 11:51:32
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -16,12 +16,12 @@
<div class="flex flex-space-between">
<div class="flex ">
<div class="auth-merchant-img">
<img v-if="enterpriseObj.enterpriseLogo" :src="enterpriseObj.enterpriseLogo" alt="" />
<img v-if="enterpriseObj.logo" :src="enterpriseObj.logo" alt="" />
<img v-else src="../../assets/member.png" alt="img" />
</div>
<div>
<div class="auth-merchant-name w-170">
<span class="font-14 color-606266">{{ enterpriseObj.enterpriseName }}</span><el-tag class="m-l-10" size="mini" type="danger">4.0</el-tag>
<span class="font-14 color-606266">{{ enterpriseObj.enterpriseName }}</span><el-tag class="m-l-10" size="mini" type="danger">{{ enterpriseObj.versionName || '4.0'}}</el-tag>
</div>
</div>
</div>
......@@ -104,7 +104,7 @@ import navCrumb from '@/components/nav/nav.vue';
import storeAuthDetail from '@/components/company/store-auth-detail.vue';
import commonAlertTip from '@/components/common/common-alert-tip.vue';
import api from '@/api/merchantAuth.js';
const { getAuditLog, cancelAudit } = api;
const { getAuditLog, cancelAudit, getEnterpriseDetail } = api;
import showMsg from '@/common/js/showmsg';
export default {
name: 'auditLog',
......@@ -133,8 +133,8 @@ export default {
auditorName: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).staffName : '',
auditorId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).staffId : '',
enterpriseObj: {
enterpriseName: '达摩测试',
enterpriseLogo: '',
enterpriseName: '',
logo: '',
version: ''
},
// 分页参数
......@@ -150,6 +150,23 @@ export default {
computed: {},
methods: {
/**
* 获取商户信息
*/
getEnterpriseData() {
const that = this;
getEnterpriseDetail({enterpriseId: that.$route.query.enterpriseId})
.then(res => {
that.enterpriseObj = res.result || {
enterpriseName: '',
logo: '',
version: ''
};
})
.catch(function(error) {
});
},
/**
* 取消审核
*/
toCancleAudit(index, item) {
......@@ -234,12 +251,12 @@ export default {
.then(res => {
if (!!res.result.result && !!res.result.result.length) {
res.result.result.forEach(ele => {
if (!!ele.bindRange) {
if (!!ele.bindStoreMode&&!!ele.bindRange) {
ele.bindRange = JSON.parse(ele.bindRange);
}else {
ele.bindRange = [];
}
if (!!ele.shareRange) {
if (!!ele.bindStoreMode&&!!ele.shareRange) {
ele.shareRange = JSON.parse(ele.shareRange);
}else {
ele.shareRange = [];
......@@ -259,6 +276,7 @@ export default {
},
mounted() {
const that = this;
that.getEnterpriseData();
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-07-29 18:10:26
* @LastEditTime: 2020-07-30 10:49:21
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -26,7 +26,7 @@
</div>
<div class="m-t-20">
<el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }">
<el-table-column prop="" label="商户列表" show-overflow-tooltip>
<el-table-column prop="" label="商户列表" width="238">
<template slot-scope="scope">
<div class="ul-li-cell flex">
<div class="cell-img">
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-07-29 18:06:03
* @LastEditTime: 2020-07-30 11:29:40
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -112,6 +112,7 @@ export default {
}
],
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
auditorName: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).staffName : '',
activeStep: '0',
brandOptions: [], // 商户列表
authForm: {
......@@ -289,11 +290,12 @@ export default {
const para = {
enterpriseId: that.authForm.enterpriseId,
wxEnterpriseId: that.wxEnterpriseId,
shareRange: that.authForm.shareStoreMode == 1 ? that.authForm.shareRange.map(ele=>ele.storeGroupId).join(',') : that.authForm.shareStoreMode == 2 ?that.authForm.shareRange.map(ele=>ele.storeInfoId).join(',') : '',
bindRange: that.authForm.bindStoreMode == 1 ? that.authForm.bindRange.map(ele=>ele.storeGroupId).join(',') : that.authForm.bindStoreMode == 2 ?that.authForm.bindRange.map(ele=>ele.storeInfoId).join(',') : '',
shareRange: that.authForm.shareStoreMode != 0 ? that.authForm.shareRange.map(ele=>ele.storeGroupId || ele.storeInfoId).join(',') : '',
bindRange: that.authForm.bindStoreMode != 0 ? that.authForm.bindRange.map(ele=>ele.storeGroupId || ele.storeInfoId).join(',') : '',
auditReason: that.authForm.auditReason,
shareStoreMode: String(that.authForm.shareStoreMode), // 0 全部 1部分分组 2 部分门店
bindStoreMode: String(that.authForm.bindStoreMode)
bindStoreMode: String(that.authForm.bindStoreMode),
auditorName: that.auditorName
}
postEnterpriseAuth(para)
.then(res => {
......
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