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KAAAH,OAAAC,MAAAG,SAAAC,SACAG,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,KAAAR,cACA,GClEsP,I,UCQlPS,GAAY,OACd,EACAhD,EACAqB,GACA,EACA,KACA,WACA,MAIF,EAAe2B,EAAiB,O","sources":["webpack://scproject/./src/views/system.vue","webpack://scproject/src/views/system.vue","webpack://scproject/./src/views/system.vue?5a60","webpack://scproject/./src/views/system.vue?07c3"],"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 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 }).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 \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/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/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=2060e266&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=2060e266&prod&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2060e266\",\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","component"],"sourceRoot":""}
|