(window.webpackJsonpzcomps=window.webpackJsonpzcomps||[]).push([["chunk-5572"],{"6fa6":function(t,e,s){"use strict";var n=s("FoSf");s.n(n).a},FoSf:function(t,e,s){},KGWN:function(t,e,s){"use strict";s.r(e);var n=s("gDS+"),r=s.n(n),i=s("X4fA"),a=s("ShcQ"),o={data:function(){return{content:"您已打开编辑模式",warn:"：再次访问该页面，关闭编辑模式"}},created:function(){this.entryAndExitEditing()},methods:{refreshEdit:function(t,e){var s={table:"oam_account_t",attrs:{username:["new_oam",t.username[1]]},updates:{}};s.updates.setEdsuper=e,Object(a.j)(r()(s)).then(function(t){var s=JSON.parse(Object(i.c)());s.setEdsuper=e,Object(i.g)(s)}).catch(function(t){console.log(t)})},entryAndExitEditing:function(){var t=JSON.parse(Object(i.c)()),e=JSON.parse(sessionStorage.getItem("ed-super"));if(!t)return this.$store.dispatch("setEdsuper",!e),sessionStorage.setItem("ed-super",!e),e&&(this.content="您已关闭编辑模式",this.warn="：再次访问该页面，打开编辑模式"),!1;"admin"!==t.role||t.setEdsuper?"admin"===t.role&&t.setEdsuper&&(this.$store.dispatch("setEdsuper",!1),this.refreshEdit(t,!1),this.content="您已关闭编辑模式",this.warn="：再次访问该页面，打开编辑模式"):(this.$store.dispatch("setEdsuper",!0),this.refreshEdit(t,!0))}}},c=(s("6fa6"),s("KHd+")),u=Object(c.a)(o,function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"edSuper"},[s("el-row",[t._v(t._s(t.content))]),t._v(" "),s("el-row",[s("span",{staticClass:"notice"},[t._v("注意")]),t._v(t._s(t.warn))])],1)},[],!1,null,"04d4092d",null);u.options.__file="super.vue",e.default=u.exports}}]);