Commit 660caf60 by 无尘

feat: 增加secret

parent dd8d2608
<!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.b0fa6e3874dd86fa1f5f015415e1031a.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.a21bf71d5cb65563c173.js></script><script type=text/javascript src=./static/js/vendor.335cad076562a197329f.js></script><script type=text/javascript src=./static/js/app.6060be08fee95a7d419e.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.2f0fb5a4635f56aa0add9730af8066a7.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.65f83aeb09ab72de62d5.js></script><script type=text/javascript src=./static/js/vendor.335cad076562a197329f.js></script><script type=text/javascript src=./static/js/app.4c63eb571c26d8adb2bf.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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([41],{Wr1B:function(t,e){},x5Fx:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("P9l9"),r=a("Ch4/"),o={props:{},data:function(){return{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:"",haobanSecret:"",haobanSaveDate:"",contactSecret:"",contactSaveDate:"",appSecret:"",appSaveDate:""}}},computed:{},methods:{saveSecret:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(s.d)("/haoban-manage3-web/",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.secrets=a.result,!1;r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},refeshData:function(){this.refreshData()},refreshData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(s.a)("/haoban-manage3-web/wxEnterprise-refresh",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;r.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(s.a)("/haoban-manage3-web/wxEnterprise-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;r.a.errorMsg(a)}).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:{}},c={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"},[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",{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"},[a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("客户联系secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.customerSecret,callback:function(e){t.$set(t.secrets,"customerSecret",e)},expression:"secrets.customerSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.customerSaveDate||t.formatTimeStamp))])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("好办助手secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.haobanSecret,callback:function(e){t.$set(t.secrets,"haobanSecret",e)},expression:"secrets.haobanSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.haobanSaveDate||t.formatTimeStamp))])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[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 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("通讯录secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.contactSecret,callback:function(e){t.$set(t.secrets,"contactSecret",e)},expression:"secrets.contactSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.contactSaveDate||t.formatTimeStamp))])],1),t._v(" "),a("div",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("会员小程序secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.appSecret,callback:function(e){t.$set(t.secrets,"appSecret",e)},expression:"secrets.appSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.appSaveDate||t.formatTimeStamp))])],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"company-title m-b-20"},[e("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])}]};var n=a("VU/8")(o,c,!1,function(t){a("Wr1B")},"data-v-2fb98747",null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([45],{hxFU:function(t,e){},x5Fx:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("P9l9"),r=a("Ch4/"),o={props:{},data:function(){return{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:"",haobanSecret:"",haobanSaveDate:"",contactSecret:"",contactSaveDate:"",appSecret:"",appSaveDate:""}}},computed:{},methods:{saveSecret:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(s.d)("/haoban-manage3-web/",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.secrets=a.result,!1;r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},refeshData:function(){this.refreshData()},refreshData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(s.a)("/haoban-manage3-web/wxEnterprise-refresh",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;r.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(s.a)("/haoban-manage3-web/wxEnterprise-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;r.a.errorMsg(a)}).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:{}},c={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"},[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",{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"},[a("div",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("客户联系secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.customerSecret,callback:function(e){t.$set(t.secrets,"customerSecret",e)},expression:"secrets.customerSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.customerSaveDate||t.formatTimeStamp))])],1),t._v(" "),a("div",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("好办助手secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.haobanSecret,callback:function(e){t.$set(t.secrets,"haobanSecret",e)},expression:"secrets.haobanSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.haobanSaveDate||t.formatTimeStamp))])],1),t._v(" "),a("div",[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 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("通讯录secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.contactSecret,callback:function(e){t.$set(t.secrets,"contactSecret",e)},expression:"secrets.contactSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.contactSaveDate||t.formatTimeStamp))])],1),t._v(" "),a("div",[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("会员小程序secret:")])]),t._v(" "),a("el-input",{staticClass:"m-l-10 w-399",attrs:{placeholder:""},model:{value:t.secrets.appSecret,callback:function(e){t.$set(t.secrets,"appSecret",e)},expression:"secrets.appSecret"}}),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(e){t.saveSecret("")}}},[t._v("保存")]),a("span",{staticClass:"m-l-10"},[t._v("最后一次保存:"+t._s(t.secrets.appSaveDate||t.formatTimeStamp))])],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"company-title m-b-20"},[e("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])}]};var n=a("VU/8")(o,c,!1,function(t){a("hxFU")},"data-v-2848c1f7",null);e.default=n.exports}});
\ No newline at end of file
webpackJsonp([44],{"/XIA":function(t,e){},"8dpP":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("/XIA")},"data-v-2858c829",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([45],{"/XIA":function(t,e){},"8dpP":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("/XIA")},"data-v-2858c829",null);e.default=c.exports}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},d={58:0};function f(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=d[e]=[a,f]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"937e457e590c16cf534f",1:"06c4e42e62c1f75191f0",2:"3dfae52ca9d7cb448d26",3:"b2cc94a09469925585d4",4:"48683e240d33007103ef",5:"dfaf5efcefc976f1c71d",6:"830ccaeb3dabb854de00",7:"05c74c76c13ad9c6c264",8:"1064c13f6499d3584a7a",9:"1af4e41f6c0abfe9ab16",10:"8f034eddadaa388a28ca",11:"dd3f0a08b2f714c2ff3f",12:"9012fc1846da845cc44b",13:"5cc656369eca6da7166b",14:"9b0fd682e7ff9de7493b",15:"b11c4e277ba5b15fae60",16:"43a3d87b46bb037ed7b8",17:"460972d5475db459c8d1",18:"a04e1af625d632a6f78c",19:"23b56206349e67bb3652",20:"5f6fef2d3b7557f2608e",21:"c7913c7cc969936bc4c0",22:"673da915390891ca958c",23:"ff9c41d5760ef945a3c5",24:"b0db1c04eda50480c9dc",25:"db198c98626c54aa65c5",26:"9f12894d65bf5d1ab991",27:"b490fd241b7731265513",28:"7c1b655549994ce54ea3",29:"d4f8647711a9d8ccb164",30:"86b5b1715bd40de91206",31:"a668ab1de95280d8ea4b",32:"22fcab94d4b8d6c87e72",33:"d51faa2d3dbe6520d566",34:"6cfbb247fbb23212e1ea",35:"a06319b5a088958091c2",36:"ab1ba043932c91607c7b",37:"2b75c5bdcf4cbabe30d7",38:"11fa4a08a95df9d72fdb",39:"7dfcaaab2bdeab04f8e8",40:"171cc72fd4e4372da044",41:"a90b15356e0a09335538",42:"3411ae512beead7a56d8",43:"a91b0c695c83966d2769",44:"730cbc4fc2d8db734d3b",45:"179c6c62c3653601b002",46:"d3d14b6a1e8065c570b3",47:"92eb14302f83a336d9e1",48:"7924df130d5da2e421e2",49:"1172d8a0393b3303db5a",50:"07dc0cbae75c78a91e9e",51:"fee210cf92d3a0968f77",52:"430cd7d5ca507f1b9672",53:"bdf7402197597faaef29",54:"681ff60c3870c0b73217",55:"46b3ad4746b48178893b"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,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 b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={58:0};function d(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,d),f.l=!0,f.exports}d.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,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"937e457e590c16cf534f",1:"06c4e42e62c1f75191f0",2:"29fe486e7bc7492226f8",3:"b2cc94a09469925585d4",4:"48683e240d33007103ef",5:"3ea89c49ff2b4ca1ab86",6:"830ccaeb3dabb854de00",7:"05c74c76c13ad9c6c264",8:"1064c13f6499d3584a7a",9:"1af4e41f6c0abfe9ab16",10:"8f034eddadaa388a28ca",11:"dd3f0a08b2f714c2ff3f",12:"9012fc1846da845cc44b",13:"5cc656369eca6da7166b",14:"9b0fd682e7ff9de7493b",15:"b11c4e277ba5b15fae60",16:"43a3d87b46bb037ed7b8",17:"460972d5475db459c8d1",18:"a04e1af625d632a6f78c",19:"23b56206349e67bb3652",20:"5f6fef2d3b7557f2608e",21:"c7913c7cc969936bc4c0",22:"673da915390891ca958c",23:"ff9c41d5760ef945a3c5",24:"b0db1c04eda50480c9dc",25:"db198c98626c54aa65c5",26:"9f12894d65bf5d1ab991",27:"b490fd241b7731265513",28:"7c1b655549994ce54ea3",29:"d4f8647711a9d8ccb164",30:"86b5b1715bd40de91206",31:"a668ab1de95280d8ea4b",32:"22fcab94d4b8d6c87e72",33:"d51faa2d3dbe6520d566",34:"6cfbb247fbb23212e1ea",35:"a06319b5a088958091c2",36:"ab1ba043932c91607c7b",37:"2b75c5bdcf4cbabe30d7",38:"11fa4a08a95df9d72fdb",39:"7dfcaaab2bdeab04f8e8",40:"171cc72fd4e4372da044",41:"f85ecdef63675f23bd74",42:"df126b2732f7f4b4bb42",43:"d05c21c0ca2024af77dc",44:"4023d0edb59dd022cfe1",45:"779a749f328ebdad6494",46:"d3d14b6a1e8065c570b3",47:"92eb14302f83a336d9e1",48:"7924df130d5da2e421e2",49:"1172d8a0393b3303db5a",50:"07dc0cbae75c78a91e9e",51:"fee210cf92d3a0968f77",52:"430cd7d5ca507f1b9672",53:"bdf7402197597faaef29",54:"681ff60c3870c0b73217",55:"46b3ad4746b48178893b"}[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,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-08-14 16:51:07
* @LastEditors : 无尘
* @LastEditTime : 2020-04-10 16:45:13
* @LastEditors: 无尘
* @LastEditTime: 2020-04-13 11:03:52
-->
<!--
<wx-tree v-model="itemData" ></wx-tree>
......@@ -23,7 +23,7 @@ import wxTree from './wx-tree.vue';
<div class="tree-right">
<el-button v-if="item.isStore == 0 && !item.gicBind" type="text" @click.stop="addChild(item)">添加子部门</el-button>
<el-button v-if="!item.gicBind" type="text" @click.stop="modChild(item)">修改名称</el-button>
<el-button v-if="(item.level > 0 && !item.children.length && !item.hasSonNode) || !item.hasSonNode" type="text" @click.stop="delChild(item)">删除</el-button>
<el-button v-if="!item.gicBind && ((item.level > 0 && !item.children.length && !item.hasSonNode) || !item.hasSonNode)" type="text" @click.stop="delChild(item)">删除</el-button>
</div>
</div>
</div>
......@@ -347,7 +347,7 @@ export default {
});
that.$store.dispatch('saveEditInfo', newEle);
if (that.itemObj.addFlag) {
that.$emit('changeParent', that.itemObj, 'edit');
// that.$emit('changeParent', that.itemObj, 'edit');
return false;
}
// 父级去重
......@@ -381,7 +381,7 @@ export default {
that.$store.dispatch('saveAddInfo', newEle);
// 判断父级是否新增
if (that.itemObj.addFlag) {
that.$emit('changeParent', that.itemObj, 'edit');
// that.$emit('changeParent', that.itemObj, 'edit');
return false;
}
// 新的排序
......@@ -407,7 +407,7 @@ export default {
});
that.$store.dispatch('saveEditInfo', newEle);
if (that.itemObj.addFlag) {
that.$emit('changeParent', that.itemObj, 'edit');
// that.$emit('changeParent', that.itemObj, 'edit');
return false;
}
// 父级去重
......@@ -427,7 +427,7 @@ export default {
if (objKey == 'added' && !newEle.wxEnterpriseId) {
that.$store.dispatch('saveAddInfo', newEle);
if (that.itemObj.addFlag) {
that.$emit('changeParent', that.itemObj, 'edit');
// that.$emit('changeParent', that.itemObj, 'edit');
return false;
}
// console.log('addFlag: gic 移动到企业微信:');
......@@ -500,27 +500,31 @@ export default {
return false;
}
if (mod == 'modify') {
const modFlag = await that.toModDepart(name);
if (!modFlag) {
return false;
}
that.modItem.label = name;
that.modItem.departmentName = name;
// 如果是新增后又编辑,---属于新增
if (that.modItem.addFlag) {
// if (that.modItem.addFlag) {
// 去掉重复的父级
// console.log('新增后又编辑:',that.$store.state.addDepartment)
let storeAddData = [];
that.$store.state.addDepartment.forEach(ele => {
if (ele.departmentId != that.modItem.departmentId) {
storeAddData.push(ele);
}
});
that.$store.dispatch('clearAddData');
storeAddData.forEach(ele => {
that.$store.dispatch('saveAddInfo', ele);
});
that.$store.dispatch('saveAddInfo', that.modItem);
// let storeAddData = [];
// that.$store.state.addDepartment.forEach(ele => {
// if (ele.departmentId != that.modItem.departmentId) {
// storeAddData.push(ele);
// }
// });
// that.$store.dispatch('clearAddData');
// storeAddData.forEach(ele => {
// that.$store.dispatch('saveAddInfo', ele);
// });
// that.$store.dispatch('saveAddInfo', that.modItem);
// console.log('新增后又编辑,---属于新增:',that.modItem)
return false;
}
that.$store.dispatch('saveEditInfo', that.modItem);
// return false;
// }
// that.$store.dispatch('saveEditInfo', that.modItem);
return false;
}
// 添加子部门的时候判断是否有子级且不是新添加
......@@ -530,56 +534,94 @@ export default {
that.additem.children.push(ele);
});
}
let childObj = {
id: String(new Date().getTime()),
departmentId: String(new Date().getTime()),
expand: true,
level: that.additem.level + 1,
isStore: 0,
label: name,
departmentName: name,
addFlag: true,
parentId: that.additem.departmentId,
parentDepartmentId: that.additem.departmentId,
children: []
};
let childObj = await that.toAddOrMod(name);
if (!childObj) {
return false;
}
// {
// id: String(new Date().getTime()),
// departmentId: String(new Date().getTime()),
// expand: true,
// level: that.additem.level + 1,
// isStore: 0,
// label: name,
// departmentName: name,
// addFlag: true,
// parentId: that.additem.departmentId,
// parentDepartmentId: that.additem.departmentId,
// children: []
// };
that.$set(that.additem, 'hasSonNode', true);
that.additem.children.push(childObj);
// 增加的字段
that.$store.dispatch('saveAddInfo', childObj);
// that.$store.dispatch('saveAddInfo', childObj);
// 由于操作在当前层级,需要判断当前部门是不是新增部门
if (that.additem.addFlag) {
that.$emit('changeParent', that.itemObj, 'add');
return false;
}
// if (that.additem.addFlag) {
// that.$emit('changeParent', that.itemObj, 'add');
// return false;
// }
// 父级
that.$store.dispatch('saveAddInfo', that.additem);
// that.$store.dispatch('saveAddInfo', that.additem);
that.$forceUpdate();
},
/**
* 新增/修改 --- api
* 新增 --- api
*/
toAddOrMod(flag) {
toAddOrMod(departmentName) {
const that = this;
return new Promise((resolve, reject) => {
let para = {};
postRequest('/haoban-manage3-web/get-login-info', para)
let para = {
departmentName: departmentName,
parentId: that.additem.departmentId
};
postRequest('/haoban-manage3-web/department-add', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('新增成功!', 'success');
resData.result.label = departmentName;
resData.result.expand = true;
resData.result.children = [];
resolve(resData.result);
return;
}
errMsg.errorMsg(resData);
resolve({
wxEnterpriseId: ''
});
resolve(false);
})
.catch(function(error) {
resolve({
wxEnterpriseId: ''
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
/**
* 修改 --- api
*/
toModDepart(departmentName) {
const that = this;
return new Promise((resolve, reject) => {
let para = {
departmentId: that.modItem.parentDepartmentId,
departmentName: departmentName,
parentId: that.modItem.departmentId
};
postRequest('/haoban-manage3-web/department-edit', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('修改成功!', 'success');
resolve(resData.result);
return;
}
errMsg.errorMsg(resData);
resolve(false);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
......
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘
* @LastEditTime : 2020-04-10 16:44:22
* @LastEditors: 无尘
* @LastEditTime: 2020-04-13 10:44:07
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -339,7 +339,7 @@ export default {
},
/**
* 添加子部门
* 添加子部门(实时操作)
*/
addChild(item) {
const that = this;
......@@ -348,7 +348,7 @@ export default {
that.additem = item;
},
/**
* 修改名称
* 修改名称(实时操作)
*/
modChild(item) {
const that = this;
......@@ -365,9 +365,13 @@ export default {
return false;
}
if (mod == 'modify') {
const modFlag = await that.toModDepart(name);
if (!modFlag) {
return false;
}
that.modItem.label = name;
that.modItem.departmentName = name;
that.$store.dispatch('saveEditInfo', that.modItem);
// that.$store.dispatch('saveEditInfo', that.modItem);
return false;
}
// 添加子部门的时候判断是否有子级且不是新添加
......@@ -377,7 +381,11 @@ export default {
that.additem.children.push(ele);
});
}
let childObj = {
let childObj = await that.toAddOrMod(name);
if (!childObj) {
return false;
}
/* {
id: String(new Date().getTime()),
departmentId: String(new Date().getTime()),
expand: true,
......@@ -389,37 +397,71 @@ export default {
parentDepartmentId: that.additem.departmentId,
addFlag: true,
children: []
};
}; */
that.additem.children.push(childObj);
// 增加的字段
that.$store.dispatch('saveAddInfo', that.additem);
that.$store.dispatch('saveAddInfo', childObj);
// that.$store.dispatch('saveAddInfo', that.additem);
// that.$store.dispatch('saveAddInfo', childObj);
that.$forceUpdate();
},
/**
* 新增/修改 --- api
* 新增 --- api
*/
toAddOrMod(flag) {
toAddOrMod(departmentName) {
const that = this;
return new Promise((resolve, reject) => {
let para = {};
postRequest('/haoban-manage3-web/get-login-info', para)
let para = {
departmentName: departmentName,
parentId: that.additem.departmentId
};
postRequest('/haoban-manage3-web/department-add', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('新增成功!', 'success');
resData.result.label = departmentName;
resData.result.expand = true;
resData.result.children = [];
resolve(resData.result);
return;
}
errMsg.errorMsg(resData);
resolve({
wxEnterpriseId: ''
});
resolve(false);
})
.catch(function(error) {
resolve({
wxEnterpriseId: ''
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
/**
* 修改 --- api
*/
toModDepart(departmentName) {
const that = this;
return new Promise((resolve, reject) => {
let para = {
departmentId: that.modItem.parentDepartmentId,
departmentName: departmentName,
parentId: that.modItem.departmentId
};
postRequest('/haoban-manage3-web/department-edit', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
showMsg.showmsg('修改成功!', 'success');
resolve(resData.result);
return;
}
errMsg.errorMsg(resData);
resolve(false);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-04-13 10:06:03
* @LastEditTime: 2020-04-13 10:22:36
-->
<template>
<div class="daily-set-wrap ">
......@@ -35,15 +35,15 @@
</div>
<div class="company-title m-b-20"><span class="color-303133 font-14 font-w-600">客户密钥维护</span></div>
<div class="company-info-body">
<div>
<div class="m-b-20">
<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 m-r-20">客户联系secret:</span></el-tooltip>
<el-input class="m-l-10 w-399" v-model="secrets.customerSecret" placeholder=""></el-input><el-button class="m-l-10" type="text" @click="saveSecret('')">保存</el-button><span class="m-l-10">最后一次保存:{{ secrets.customerSaveDate || formatTimeStamp }}</span>
</div>
<div>
<div class="m-b-20">
<el-tooltip class="item" effect="dark" content="" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;" class="font-14 color-606266 m-r-20">好办助手secret:</span></el-tooltip>
<el-input class="m-l-10 w-399" v-model="secrets.haobanSecret" placeholder=""></el-input><el-button class="m-l-10" type="text" @click="saveSecret('')">保存</el-button><span class="m-l-10">最后一次保存:{{ secrets.haobanSaveDate || formatTimeStamp }}</span>
</div>
<div>
<div class="m-b-20">
<el-tooltip class="item" effect="dark" placement="top-start">
<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 m-r-20">通讯录secret:</span></el-tooltip
......@@ -204,6 +204,9 @@ export default {
.m-l-20 {
margin-left: 20px;
}
.m-b-20 {
margin-bottom: 20px;
}
.table-condition {
// min-width: 1200px;
}
......
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