Commit 40369533 by 无尘

fix: 修改请求

parent ea9f35a3
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.aeaeb2fddb2207c4de4930be1169ee7c.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><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/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.936a43b5118d013ede71.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.561b9cea6e0bf2312576.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>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.91d6e38da1e1ca02ad7ecf1ab4187076.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><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/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.550f8623d541147ff8ef.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.568db93181e18d6d9f88.js></script></body></html>
\ No newline at end of file
webpackJsonp([8],{DyFh:function(t,e){},"Y/ty":function(t,e){},c9no:function(t,e,s){"use strict";var a={name:"set-tip",props:{tipText:{type:String,default:function(){return""}}},data:function(){return{setTipShow:!0}},methods:{toClose:function(){this.setTipShow=!1},toSet:function(){if(this.$route.path.includes("enterpriseSet"))return!1;this.$router.push("enterpriseSet?/adminList")}}},c={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.setTipShow?s("div",{staticClass:"set-tip-body flex flex-align-center border-box"},[s("span",{staticClass:" font-13 el-icon-info color-2f54eb"}),s("span",{staticClass:"m-l-10 font-13 color-606266"},[t._v(t._s(t.tipText))]),s("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:t.toClose}},[t._v("忽略")]),s("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:t.toSet}},[t._v("去完成")])],1):t._e()},staticRenderFns:[]};var o=s("VU/8")(a,c,!1,function(t){s("DyFh")},"data-v-51e28415",null);e.a=o.exports},x5Fx:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("c9no"),c=s("P9l9"),o=s("Ch4/"),r={props:{},data:function(){return{checkShow:!1,tipText:"请在企业密钥维护中输入对应的secret",tableH:window.screen.availHeight-464-126,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpid:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:""},secrets:{customerSecret:"",customerSaveDate:"",customerCheck:!0,contactSecret:"",contactSaveDate:"",contactCheck:!0,appSecret:"",appSaveDate:"",appCheck:!1}}},computed:{},methods:{saveSecret:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(c.d)("/haoban-manage3-web/",e).then(function(e){var s=e.data;if(1==s.errorCode)return t.secrets=s.result,!1;o.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},refeshData:function(){this.refreshData()},refreshData:function(t){var e=this,s={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-refresh",s).then(function(t){var s=t.data;if(1==s.errorCode)return e.companyObj=s.result,!1;o.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,s={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-detail",s).then(function(t){var s=t.data;if(1==s.errorCode)return e.companyObj=s.result,!1;o.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab",1),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{setTip:a.a}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"daily-set-wrap "},[s("div",{staticClass:"daily-set-content border-box"},[s("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[s("div",{staticClass:"line-h-32"},[s("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("企业微信基本信息")]),s("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:t.refeshData}},[t._v("同步刷新 ")])],1),t._v(" "),s("div",[t.checkShow?s("set-tip",{attrs:{tipText:t.tipText}}):t._e()],1)]),t._v(" "),s("div",{staticClass:"company-info-body"},[s("el-form",{ref:"form",attrs:{model:t.form,"label-width":"105px"}},[s("el-form-item",{attrs:{label:"企业名称"}},[s("span",{staticClass:"font-14 color-303133 p-r-10"},[t._v(t._s(t.companyObj.corpName))]),t._v(" "),s("el-tag",[t._v(" "+t._s(1==t.companyObj.contactFlag?"已认证":"未认证"))]),1==t.companyObj.contactFlag?s("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("认证到期 "+t._s(t._f("timeStampToYmd")(t.companyObj.verifiedEndTime)))]):t._e()],1),t._v(" "),s("el-form-item",{attrs:{label:"企业ID"}},[s("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpid))])]),t._v(" "),s("el-form-item",{attrs:{label:"行业类型"}},[s("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpIndustry)+" / "+t._s(t.companyObj.corpSubIndustry))])]),t._v(" "),s("el-form-item",{attrs:{label:"人员规模"}},[s("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpScale))])]),t._v(" "),s("el-form-item",{attrs:{label:"地址"}},[s("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.location))])])],1)],1),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"company-info-body secret-body"},[s("div",{staticClass:"m-b-20"},[s("span",{staticClass:"inline-block w-127"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[s("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("客户联系secret:")])])],1),s("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:""},model:{value:t.secrets.customerSecret,callback:function(e){t.$set(t.secrets,"customerSecret",e)},expression:"secrets.customerSecret"}}),s("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),s("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t.secrets.customerSaveDate||t.formatTimeStamp))]),s("span",{staticClass:"m-l-37 font-14 color-303133"},[s("span",{class:["iconfont",t.secrets.customerCheck?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),s("span",{staticClass:"p-l-10"},[t._v(t._s(t.secrets.customerCheck?"校验成功":"校验失败"))])])],1),t._v(" "),s("div",{staticClass:"m-b-20"},[s("span",{staticClass:"inline-block w-127"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[s("div",{attrs:{slot:"content"},slot:"content"},[t._v("企业微信中通讯录同步若更新secret,请复制后更新至此处。"),s("br"),t._v("因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"),s("br"),t._v("若发生相关变更,与企业微信无关,特此告知!")]),t._v(" "),s("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("通讯录secret:")])])],1),s("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:""},model:{value:t.secrets.contactSecret,callback:function(e){t.$set(t.secrets,"contactSecret",e)},expression:"secrets.contactSecret"}}),s("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),s("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t.secrets.contactSaveDate||t.formatTimeStamp))]),s("span",{staticClass:"m-l-37 font-14 color-303133"},[s("span",{class:["iconfont",t.secrets.contactCheck?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),s("span",{staticClass:"p-l-10"},[t._v(t._s(t.secrets.contactCheck?"校验成功":"校验失败"))])])],1),t._v(" "),s("div",[s("span",{staticClass:"inline-block w-127"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[s("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("会员小程序secret:")])])],1),s("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:""},model:{value:t.secrets.appSecret,callback:function(e){t.$set(t.secrets,"appSecret",e)},expression:"secrets.appSecret"}}),s("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),s("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t.secrets.appSaveDate||t.formatTimeStamp))]),s("span",{staticClass:"m-l-37 font-14 color-303133"},[s("span",{class:["iconfont",t.secrets.appCheck?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),s("span",{staticClass:"p-l-10"},[t._v(t._s(t.secrets.appCheck?"校验成功":"校验失败"))])])],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"company-title m-b-20 m-t-30"},[e("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])}]};var i=s("VU/8")(r,n,!1,function(t){s("Y/ty")},"data-v-9d6df938",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([9],{DyFh:function(t,e){},c9no:function(t,e,a){"use strict";var s={name:"set-tip",props:{tipText:{type:String,default:function(){return""}}},data:function(){return{setTipShow:!0}},methods:{toClose:function(){this.setTipShow=!1},toSet:function(){if(this.$route.path.includes("enterpriseSet"))return!1;this.$router.push("enterpriseSet?/adminList")}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.setTipShow?a("div",{staticClass:"set-tip-body flex flex-align-center border-box"},[a("span",{staticClass:" font-13 el-icon-info color-2f54eb"}),a("span",{staticClass:"m-l-10 font-13 color-606266"},[t._v(t._s(t.tipText))]),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:t.toClose}},[t._v("忽略")]),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:t.toSet}},[t._v("去完成")])],1):t._e()},staticRenderFns:[]};var o=a("VU/8")(s,c,!1,function(t){a("DyFh")},"data-v-51e28415",null);e.a=o.exports},u3Wc:function(t,e){},x5Fx:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("c9no"),c=a("P9l9"),o=a("PI0u"),n=a("Ch4/"),r={props:{},data:function(){return{checkShow:!1,tipText:"请在企业密钥维护中输入对应的secret",tableH:window.screen.availHeight-464-126,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpid:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:"",contactSecret:"",wxSecretKey:"",memberSecret:"",wxSecretKeyFlag:!0,memberSecretFlag:!0,contactSecretFlag:!0,wxSecretKeyLastTime:null,contactSecretLastTime:null,memberSecretLastTime:null}}},computed:{},methods:{saveSecret:Object(o.a)(function(t){var e={};1==t&&(e.contactSecret=this.companyObj.contactSecret),2==t&&(e.wxSecretKey=this.companyObj.wxSecretKey),3==t&&(e.memberSecret=this.companyObj.memberSecret),this.postSaveSecret(t,e)},300),postSaveSecret:function(t,e){var a=this,s=1==t?"wx-enterprise-contact-secret-set":2==t?"/wx-enterprise-wx-secret-set":"wx-enterprise-member-secret-set";Object(c.d)("/haoban-manage3-web/"+s,e).then(function(t){var e=t.data;if(1==e.errorCode)return a.getData(),!1;n.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},refeshData:function(){this.refreshData()},refreshData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-refresh",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTipData:function(){var t=this;Object(c.a)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?n.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab",1),document.documentElement.style.backgroundColor="#f0f2f5",this.getData(),this.getTipData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{setTip:s.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[a("div",{staticClass:"line-h-32"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("企业微信基本信息")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:t.refeshData}},[t._v("同步刷新 ")])],1),t._v(" "),a("div",[t.checkShow?a("set-tip",{attrs:{tipText:t.tipText}}):t._e()],1)]),t._v(" "),a("div",{staticClass:"company-info-body"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"105px"}},[a("el-form-item",{attrs:{label:"企业名称"}},[a("span",{staticClass:"font-14 color-303133 p-r-10"},[t._v(t._s(t.companyObj.corpName))]),t._v(" "),a("el-tag",[t._v(" "+t._s(1==t.companyObj.contactFlag?"已认证":"未认证"))]),1==t.companyObj.contactFlag?a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("认证到期 "+t._s(t._f("timeStampToYmd")(t.companyObj.verifiedEndTime)))]):t._e()],1),t._v(" "),a("el-form-item",{attrs:{label:"企业ID"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpid))])]),t._v(" "),a("el-form-item",{attrs:{label:"行业类型"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpIndustry)+" / "+t._s(t.companyObj.corpSubIndustry))])]),t._v(" "),a("el-form-item",{attrs:{label:"人员规模"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpScale))])]),t._v(" "),a("el-form-item",{attrs:{label:"地址"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.location))])])],1)],1),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"company-info-body secret-body"},[a("div",{staticClass:"m-b-20"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("客户联系secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:""},model:{value:t.secrets.contactSecret,callback:function(e){t.$set(t.secrets,"contactSecret",e)},expression:"secrets.contactSecret"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("1")}}},[t._v("保存")]),t.companyObj.contactSecretLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t.companyObj.contactSecretLastTime||t.formatTimeStamp))]):t._e(),t.secrets.contactSecret?a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.contactSecretFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.contactSecretFlag?"校验成功":"校验失败"))])]):t._e()],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("企业微信中通讯录同步若更新secret,请复制后更新至此处。"),a("br"),t._v("因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"),a("br"),t._v("若发生相关变更,与企业微信无关,特此告知!")]),t._v(" "),a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("通讯录secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:""},model:{value:t.companyObj.wxSecretKey,callback:function(e){t.$set(t.companyObj,"wxSecretKey",e)},expression:"companyObj.wxSecretKey"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("2")}}},[t._v("保存")]),t.companyObj.wxSecretKeyLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t.companyObj.wxSecretKeyLastTime||t.formatTimeStamp))]):t._e(),t.companyObj.wxSecretKey?a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.wxSecretKeyFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.wxSecretKeyFlag?"校验成功":"校验失败"))])]):t._e()],1),t._v(" "),a("div",[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("会员小程序secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:""},model:{value:t.companyObj.memberSecret,callback:function(e){t.$set(t.companyObj,"memberSecret",e)},expression:"companyObj.memberSecret"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("3")}}},[t._v("保存")]),t.companyObj.memberSecretLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t.companyObj.memberSecretLastTime||t.formatTimeStamp))]):t._e(),t.companyObj.memberSecret?a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.memberSecretFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.memberSecretFlag?"校验成功":"校验失败"))])]):t._e()],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"company-title m-b-20 m-t-30"},[e("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])}]};var l=a("VU/8")(r,i,!1,function(t){a("u3Wc")},"data-v-52d79069",null);e.default=l.exports}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={63:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"ebfd144322bcfb4044b3",1:"06c4e42e62c1f75191f0",2:"951ea9709fba56eb6968",3:"83bca32cb852f7a11daf",4:"ab8174a3faedf840b70f",5:"bf21cfa1832c94ed8d4c",6:"fbf186d576b015e0fd7d",7:"c9ccf52380a5efb8720c",8:"4a0adea155b2fa3a84f0",9:"4297a816c6e6c471f83f",10:"de0926ea3807ca900dd6",11:"fca55db2a20cdb939eed",12:"69a7846110e7b239cf01",13:"ebba5b82c2826c9ba6e1",14:"4093e2a3f16424fbfb07",15:"e84ba50ee99289c29c42",16:"bc276325eab50b4b86c0",17:"edf42ec3b001b6cfe65e",18:"4b0922e27b6b34b18611",19:"379162e017a8b5beee8b",20:"ba2e2bd0823422a4de6c",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"58c7c6c2d8897eb7c474",25:"9e5733792c18c643ff3a",26:"dba4d3332f3dbc9d7649",27:"8c00b479947588ae7b2c",28:"110ab7e5f64abacf9778",29:"cebf604cf1225f47e634",30:"7c1e52b5c0d36e8632c1",31:"5a37b0bffabe56fe5af9",32:"f7592089bbd49cf8ae9c",33:"6133e1e6b5fd398be401",34:"06f8f5b3621074c353c6",35:"bf9fd1d5441ee72fc26d",36:"93c91e49a2adcaf3793d",37:"8f4c7fd433e2fc86ab21",38:"0cb1610bc0b7ec39980b",39:"61c4e14a1b0ea5ffff85",40:"34f2de0ffbb2c4bd22b3",41:"be7b959a60f42ef67daa",42:"341a71ea503996b11a90",43:"f4eee7e60e1d81a3cd65",44:"f0e3e88e253d14faf973",45:"e1d0ed2694e633eca897",46:"d0d7666a8d9e3f155fb7",47:"d383bda19a279b17d388",48:"41401e6b01697e4f8c14",49:"15bc78cea887de215d32",50:"c2932bcd17cb7bb00ef7",51:"6ecd1c76f129643c28a8",52:"9fc13e0d46255e8ef544",53:"6598383a315e20061786",54:"2859fd12cca9ce86f0c3",55:"5921ccabefea7cacacc2",56:"91a0acffaeb56fc3566c",57:"1a7102c508e3c1a0a222",58:"a7fa96edb1538ed5b7ff",59:"c71bd5036dd611ea623a",60:"775007688f0115e168fb"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={63:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"ebfd144322bcfb4044b3",1:"06c4e42e62c1f75191f0",2:"951ea9709fba56eb6968",3:"83bca32cb852f7a11daf",4:"ab8174a3faedf840b70f",5:"bf21cfa1832c94ed8d4c",6:"fbf186d576b015e0fd7d",7:"c9ccf52380a5efb8720c",8:"423211614171c0693855",9:"07b7014946b3c11d5096",10:"de0926ea3807ca900dd6",11:"fca55db2a20cdb939eed",12:"69a7846110e7b239cf01",13:"ebba5b82c2826c9ba6e1",14:"4093e2a3f16424fbfb07",15:"e84ba50ee99289c29c42",16:"bc276325eab50b4b86c0",17:"edf42ec3b001b6cfe65e",18:"4b0922e27b6b34b18611",19:"379162e017a8b5beee8b",20:"ba2e2bd0823422a4de6c",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"58c7c6c2d8897eb7c474",25:"9e5733792c18c643ff3a",26:"dba4d3332f3dbc9d7649",27:"8c00b479947588ae7b2c",28:"110ab7e5f64abacf9778",29:"cebf604cf1225f47e634",30:"7c1e52b5c0d36e8632c1",31:"5a37b0bffabe56fe5af9",32:"f7592089bbd49cf8ae9c",33:"6133e1e6b5fd398be401",34:"06f8f5b3621074c353c6",35:"bf9fd1d5441ee72fc26d",36:"93c91e49a2adcaf3793d",37:"8f4c7fd433e2fc86ab21",38:"0cb1610bc0b7ec39980b",39:"61c4e14a1b0ea5ffff85",40:"34f2de0ffbb2c4bd22b3",41:"be7b959a60f42ef67daa",42:"341a71ea503996b11a90",43:"f4eee7e60e1d81a3cd65",44:"f0e3e88e253d14faf973",45:"e1d0ed2694e633eca897",46:"d0d7666a8d9e3f155fb7",47:"d383bda19a279b17d388",48:"41401e6b01697e4f8c14",49:"15bc78cea887de215d32",50:"c2932bcd17cb7bb00ef7",51:"6ecd1c76f129643c28a8",52:"9fc13e0d46255e8ef544",53:"6598383a315e20061786",54:"2859fd12cca9ce86f0c3",55:"5921ccabefea7cacacc2",56:"91a0acffaeb56fc3566c",57:"1a7102c508e3c1a0a222",58:"a7fa96edb1538ed5b7ff",59:"c71bd5036dd611ea623a",60:"775007688f0115e168fb"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-04-17 15:21:06
* @LastEditTime: 2020-04-20 10:59:33
-->
<template>
<div class="daily-set-wrap ">
......@@ -43,9 +43,9 @@
<div class="m-b-20">
<span class="inline-block w-127"
><el-tooltip class="item" effect="dark" content="企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;" class="font-14 color-606266">客户联系secret:</span></el-tooltip> </span
><el-input class="m-l-10 w-399" maxlength="200" v-model="secrets.customerSecret" placeholder=""></el-input><el-button class="m-l-20" type="text" @click="saveSecret('')">保存</el-button><span class="m-l-20 font-12 color-909399">最后一次保存:{{ secrets.customerSaveDate || formatTimeStamp }}</span
><span class="m-l-37 font-14 color-303133"
><span :class="['iconfont', secrets.customerCheck ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"></span><span class="p-l-10">{{ secrets.customerCheck ? '校验成功' : '校验失败' }}</span></span
><el-input class="m-l-10 w-399" maxlength="200" v-model="secrets.contactSecret" placeholder=""></el-input><el-button class="m-l-20" type="text" @click="saveSecret('1')">保存</el-button><span v-if="companyObj.contactSecretLastTime" class="m-l-20 font-12 color-909399">最后一次保存:{{ companyObj.contactSecretLastTime || formatTimeStamp }}</span
><span v-if="secrets.contactSecret" class="m-l-37 font-14 color-303133"
><span :class="['iconfont', companyObj.contactSecretFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"></span><span class="p-l-10">{{ companyObj.contactSecretFlag ? '校验成功' : '校验失败' }}</span></span
>
</div>
<!-- <div class="m-b-20">
......@@ -59,17 +59,17 @@
<div slot="content">企业微信中通讯录同步若更新secret,请复制后更新至此处。<br />因获取Secret而获取通讯录的相关信息。首次使用好办请输入。<br />若发生相关变更,与企业微信无关,特此告知!</div>
<span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;" class="font-14 color-606266">通讯录secret:</span></el-tooltip
></span
><el-input class="m-l-10 w-399" maxlength="200" v-model="secrets.contactSecret" placeholder=""></el-input><el-button class="m-l-20" type="text" @click="saveSecret('')">保存</el-button><span class="m-l-20 font-12 color-909399">最后一次保存:{{ secrets.contactSaveDate || formatTimeStamp }}</span
><span class="m-l-37 font-14 color-303133"
><span :class="['iconfont', secrets.contactCheck ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"></span><span class="p-l-10">{{ secrets.contactCheck ? '校验成功' : '校验失败' }}</span></span
><el-input class="m-l-10 w-399" maxlength="200" v-model="companyObj.wxSecretKey" placeholder=""></el-input><el-button class="m-l-20" type="text" @click="saveSecret('2')">保存</el-button><span v-if="companyObj.wxSecretKeyLastTime" class="m-l-20 font-12 color-909399">最后一次保存:{{ companyObj.wxSecretKeyLastTime || formatTimeStamp }}</span
><span v-if="companyObj.wxSecretKey" class="m-l-37 font-14 color-303133"
><span :class="['iconfont', companyObj.wxSecretKeyFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"></span><span class="p-l-10">{{ companyObj.wxSecretKeyFlag ? '校验成功' : '校验失败' }}</span></span
>
</div>
<div>
<span class="inline-block w-127"
><el-tooltip class="item" effect="dark" content="企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;" class="font-14 color-606266">会员小程序secret:</span></el-tooltip> </span
><el-input class="m-l-10 w-399" maxlength="200" v-model="secrets.appSecret" placeholder=""></el-input><el-button class="m-l-20" type="text" @click="saveSecret('')">保存</el-button><span class="m-l-20 font-12 color-909399">最后一次保存:{{ secrets.appSaveDate || formatTimeStamp }}</span
><span class="m-l-37 font-14 color-303133"
><span :class="['iconfont', secrets.appCheck ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"></span><span class="p-l-10">{{ secrets.appCheck ? '校验成功' : '校验失败' }}</span></span
><el-input class="m-l-10 w-399" maxlength="200" v-model="companyObj.memberSecret" placeholder=""></el-input><el-button class="m-l-20" type="text" @click="saveSecret('3')">保存</el-button><span v-if="companyObj.memberSecretLastTime" class="m-l-20 font-12 color-909399">最后一次保存:{{ companyObj.memberSecretLastTime || formatTimeStamp }}</span
><span v-if="companyObj.memberSecret" class="m-l-37 font-14 color-303133"
><span :class="['iconfont', companyObj.memberSecretFlag ? 'color-49c958 iconchenggong' : 'color-f83431 iconshibai']"></span><span class="p-l-10">{{ companyObj.memberSecretFlag ? '校验成功' : '校验失败' }}</span></span
>
</div>
</div>
......@@ -79,7 +79,7 @@
<script>
import setTip from '@/components/app/set-tip.vue';
import { getRequest, postRequest } from '@/api/api';
// import { _debounce } from '@/common/js/public';
import { _debounce } from '@/common/js/public';
// import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error';
export default {
......@@ -99,20 +99,16 @@ export default {
corpIndustry: '',
corpSubIndustry: '',
corpUserMax: '',
location: ''
},
secrets: {
customerSecret: '',
customerSaveDate: '',
customerCheck: true,
/* haobanSecret: '',
haobanSaveDate: '', */
location: '',
contactSecret: '',
contactSaveDate: '',
contactCheck: true,
appSecret: '',
appSaveDate: '',
appCheck: false
wxSecretKey: '',
memberSecret: '',
wxSecretKeyFlag: true,
memberSecretFlag: true,
contactSecretFlag: true,
wxSecretKeyLastTime: null,
contactSecretLastTime: null,
memberSecretLastTime: null
}
};
},
......@@ -121,16 +117,28 @@ export default {
/**
* 保存secret
*/
saveSecret() {
saveSecret: _debounce(function(flag) {
const that = this;
let para = {
wxEnterpriseId: that.wxEnterpriseId
};
postRequest('/haoban-manage3-web/', para)
let para = {};
if (flag == 1) {
para.contactSecret = that.companyObj.contactSecret;
}
if (flag == 2) {
para.wxSecretKey = that.companyObj.wxSecretKey;
}
if (flag == 3) {
para.memberSecret = that.companyObj.memberSecret;
}
that.postSaveSecret(flag, para);
}, 300),
postSaveSecret(flag, para) {
const that = this;
const url = flag == 1 ? 'wx-enterprise-contact-secret-set' : flag == 2 ? '/wx-enterprise-wx-secret-set' : 'wx-enterprise-member-secret-set';
postRequest(`/haoban-manage3-web/${url}`, para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.secrets = resData.result;
that.getData();
return false;
}
errMsg.errorMsg(resData);
......@@ -193,6 +201,28 @@ export default {
message: error.message
});
});
},
/**
* 获取显示的提示
*/
getTipData() {
const that = this;
let para = {};
getRequest('/haoban-manage3-web/is-wx-enterprise-secret-set', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.checkShow = resData.result;
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {},
......@@ -201,6 +231,7 @@ export default {
that.$emit('showTab', 1);
document.documentElement.style.backgroundColor = '#f0f2f5';
that.getData();
that.getTipData();
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
......
......@@ -422,7 +422,7 @@ export default {
*/
getHelpData() {
const that = this;
getRequest('/haoban-manage3-web/emp/get-user-info', {})
getRequest('/haoban-manage3-web/get-help-list', {})
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
......
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