425.0616ee2e.js 1.5 KB

12
  1. "use strict";(self["webpackChunkscproject"]=self["webpackChunkscproject"]||[]).push([[425],{19425:function(t,e,s){s.r(e),s.d(e,{default:function(){return r}});var a=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{id:"system"}},[t._m(0),e("hr"),e("div",{attrs:{id:"SystemBtn"}},[e("div",{staticClass:"setSystemBtn"},[e("span",[t._v("关闭网站")]),e("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:t.ChangeCloseWebState},model:{value:t.closeWeb,callback:function(e){t.closeWeb=e},expression:"closeWeb"}})],1)])])},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pAHeader"},[e("div",{staticClass:"pAHeader1"},[t._v("系统管理")])])}],o={components:{},data(){return{closeWeb:!1,loading:!1}},methods:{ChangeCloseWebState(){this.loading=!0,this.ajax.post(this.$store.state.api+"/setSystemState",{uid:this.$store.state.userInfo.userid,st:Number(this.closeWeb)}).then((t=>{1==t["data"]&&(this.$message.success("更改系统状态成功"),this.getCloseData())})).catch((t=>{console.log(t)}))},getCloseData(){this.loading=!0,this.ajax.get(this.$store.state.api+"/getSystemState",{uid:this.$store.state.userInfo.userid}).then((t=>{let e=t["data"][0][0]["state"];this.closeWeb=Boolean(e),this.loading=!1})).catch((t=>{console.log(t)}))}},watch:{},mounted(){this.getCloseData()}},n=o,l=s(43736),c=(0,l.Z)(n,a,i,!1,null,"2060e266",null),r=c.exports}}]);
  2. //# sourceMappingURL=425.0616ee2e.js.map