webpackJsonp([59],{"6j9f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),n=a("Ch4/"),r=a("P9l9"),o={name:"unreview",data:function(){return{storeSwitch:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{changeSwitch:function(t){this.postData()},postData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,auditFlag:e.storeSwitch?1:0};Object(r.d)("/haoban-manage3-web/audit/open-or-close",a).then(function(t){var e=t.data;1!=e.errorCode?n.a.errorMsg(e):s.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(r.a)("/haoban-manage3-web/audit/find-setting",a).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):e.storeSwitch=1==a.result.auditFlag}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeSwitch},model:{value:t.storeSwitch,callback:function(e){t.storeSwitch=e},expression:"storeSwitch"}}),t._v(" "),a("el-tooltip",{attrs:{content:"开启后，所有门店在小程序端修改门店资料需要审核通过后才能修改",placement:"top"}},[a("span",{staticClass:"inline-block font-14 color-303133 m-l-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("开启门店资料修改审核")])])],1)])])])},staticRenderFns:[]};var c=a("VU/8")(o,i,!1,function(t){a("sbgV")},"data-v-3cd6917c",null);e.default=c.exports},sbgV:function(t,e){}});