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AjB,OAAAC,MAAAC,IAAA,mBACAC,IAAA,KAAAH,OAAAC,MAAAG,SAAAC,OACA1B,KAAA,eACA6B,MAAAC,IACA,IAAAR,EAAAQ,EAAA,uBAEA,KAAAlB,SAAA2B,QAAAjB,GACA,KAAAnB,SAAA,KACA+B,OAAAC,IACAC,QAAAC,IAAAF,EAAA,GAEA,GAEAK,MAAA,CAEA,EACAC,UACA,EAEAC,YACA,KAAAT,cACA,GCvEmR,I,WCQ/QU,GAAY,OACd,EACAjD,EACAqB,GACA,EACA,KACA,WACA,MAIF,EAAe4B,EAAiB,O","sources":["webpack://scproject/./src/views/system.vue","webpack://scproject/src/views/system.vue","webpack://scproject/./src/views/system.vue?df47","webpack://scproject/./src/views/system.vue?498f"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"id\":\"system\"}},[_vm._m(0),_c('hr'),_c('div',{attrs:{\"id\":\"SystemBtn\"}},[_c('div',{staticClass:\"setSystemBtn\"},[_c('span',[_vm._v(\"关闭网站\")]),_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\"},on:{\"change\":_vm.ChangeCloseWebState},model:{value:(_vm.closeWeb),callback:function ($$v) {_vm.closeWeb=$$v},expression:\"closeWeb\"}})],1)])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"pAHeader\"},[_c('div',{staticClass:\"pAHeader1\"},[_vm._v(\"系统管理\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\r\n <!-- 消息通知 -->\r\n <div id=\"system\" v-loading=\"loading\">\r\n <div class=\"pAHeader\">\r\n <div class=\"pAHeader1\">系统管理</div>\r\n </div>\r\n <hr>\r\n <div id=\"SystemBtn\">\r\n <div class=\"setSystemBtn\">\r\n <span>关闭网站</span>\r\n <el-switch\r\n v-model=\"closeWeb\"\r\n @change=\"ChangeCloseWebState\"\r\n active-color=\"#13ce66\"\r\n inactive-color=\"#ff4949\">\r\n </el-switch>\r\n </div>\r\n </div>\r\n </div>\r\n </template>\r\n \r\n <script>\r\n export default {\r\n components:{\r\n\r\n },\r\n data() {\r\n return {\r\n closeWeb:false,\r\n loading:false,\r\n }\r\n },\r\n methods:{\r\n ChangeCloseWebState(){\r\n this.loading = true;\r\n this.ajax.post(this.$store.state.api+'/setSystemState',{\r\n uid:this.$store.state.userInfo.userid,\r\n\t\t\t\t\t\t\t\t\t\tname:\"systemOpen\",\r\n st:Number(this.closeWeb)\r\n }).then(res=>{\r\n if(res['data']==1){\r\n this.$message.success(`更改系统状态成功`);\r\n this.getCloseData();\r\n }\r\n }).catch(err=>{\r\n console.log(err);\r\n })\r\n },\r\n getCloseData(){\r\n this.loading = true;\r\n this.ajax.get(this.$store.state.api+'/getSystemState',{\r\n uid:this.$store.state.userInfo.userid,\r\n\t\t\t\t\t\t\t\t\t\tname:\"systemOpen\"\r\n }).then(res=>{\r\n let state = res['data'][0][0]['state'];\r\n //是否关闭网站\r\n this.closeWeb = Boolean(state);\r\n this.loading = false;\r\n }).catch(err=>{\r\n console.log(err)\r\n })\r\n },\r\n },\r\n watch:{\r\n\r\n },\r\n mounted(){\r\n // this.getCloseData();\r\n },\r\n\t\t\t\tactivated(){\r\n\t\t\t\t\tthis.getCloseData()\r\n\t\t\t\t}\r\n \r\n }\r\n </script>\r\n \r\n <style lang=\"less\" scoped>\r\n #system{\r\n width: 100%;\r\n height: 100%;\r\n #SystemBtn{\r\n margin-top: 40px;\r\n width: 100%;\r\n .setSystemBtn{\r\n font-size: 18px;\r\n span{\r\n margin-right: 10px;\r\n }\r\n }\r\n }\r\n }\r\n </style>","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./system.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./system.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./system.vue?vue&type=template&id=7f980910&scoped=true\"\nimport script from \"./system.vue?vue&type=script&lang=js\"\nexport * from \"./system.vue?vue&type=script&lang=js\"\nimport style0 from \"./system.vue?vue&type=style&index=0&id=7f980910&prod&lang=less&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f980910\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","directives","name","rawName","value","loading","expression","attrs","_m","staticClass","_v","on","ChangeCloseWebState","model","closeWeb","callback","$$v","staticRenderFns","components","data","methods","ajax","post","$store","state","api","uid","userInfo","userid","st","Number","then","res","$message","success","getCloseData","catch","err","console","log","get","Boolean","watch","mounted","activated","component"],"sourceRoot":""}