webpackJsonp([10],{N9hT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-layout-content",[a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"left"}},[a("a-tab-pane",{key:"1",attrs:{tab:"基本设置"}},[a("div",{staticClass:"kuang"},[a("a-alert",{staticClass:"alertx",attrs:{message:"提示",type:"info","show-icon":""}},[a("span",{attrs:{slot:"description"},slot:"description"},[t._v("API KEY 用于请求平台接口使用，点击按钮会随机生成。")])]),t._v(" "),a("a-row",{attrs:{type:"flex"}},[a("a-col",{attrs:{flex:"80px"}},[a("span",{staticClass:"title"},[t._v("API KEY :")])]),t._v(" "),a("a-col",{attrs:{flex:"auto"}},[a("a-tag",{staticStyle:{"margin-top":"1px"},attrs:{color:"green"}},[t._v(t._s(t.api_key))])],1),t._v(" "),a("a-col",{attrs:{flex:"120px"}},[a("a-button",{staticClass:"btnx",attrs:{type:"primary",icon:"key"},on:{click:t.onUpdateApiKey}},[t._v("生成 KEY")])],1)],1)],1)]),t._v(" "),a("a-tab-pane",{key:"2",attrs:{tab:"危险设置"}},[a("div",{staticClass:"kuang"},[a("a-alert",{staticClass:"alertx",attrs:{message:"警告",description:"数据一经删除，不可恢复.",type:"warning","show-icon":""}}),t._v(" "),a("a-list",{attrs:{"item-layout":"horizontal"}},[a("a-list-item",[a("a-list-item-meta",{attrs:{title:"清空剧本",description:"清空剧本数据不可恢复，剧本数据很重要，请谨慎操作"}}),t._v(" "),a("a-popconfirm",{attrs:{slot:"actions",title:"是否要清空剧本数据?","ok-text":"是","cancel-text":"否"},on:{confirm:function(e){return t.del(1)}},slot:"actions"},[a("a-button",{attrs:{type:"primary",icon:"delete"}},[t._v("清空剧本")])],1)],1),t._v(" "),a("a-list-item",[a("a-list-item-meta",{attrs:{title:"清空日记",description:"清空日记数据不可恢复，请谨慎操作"}}),t._v(" "),a("a-popconfirm",{attrs:{slot:"actions",title:"是否要清空日记数据?","ok-text":"是","cancel-text":"否"},on:{confirm:function(e){return t.del(2)}},slot:"actions"},[a("a-button",{attrs:{type:"primary",icon:"delete"}},[t._v("清空日记")])],1)],1),t._v(" "),a("a-list-item",[a("a-list-item-meta",{attrs:{title:"清空报告",description:"清空报告数据不可恢复，请谨慎操作"}}),t._v(" "),a("a-popconfirm",{attrs:{slot:"actions",title:"是否要清空报告数据?","ok-text":"是","cancel-text":"否"},on:{confirm:function(e){return t.del(5)}},slot:"actions"},[a("a-button",{attrs:{type:"primary",icon:"delete"}},[t._v("清空报告")])],1)],1),t._v(" "),a("a-list-item",[a("a-list-item-meta",{attrs:{title:"清空变量",description:"清空变量数据不可恢复，会造成剧本不可以状态，请谨慎操作"}}),t._v(" "),a("a-popconfirm",{attrs:{slot:"actions",title:"是否要清空变量数据?","ok-text":"是","cancel-text":"否"},on:{confirm:function(e){return t.del(3)}},slot:"actions"},[a("a-button",{attrs:{type:"primary",icon:"delete"}},[t._v("清空变量")])],1)],1),t._v(" "),a("a-list-item",[a("a-list-item-meta",{attrs:{title:"清空缓存",description:"清空缓存，W5 将会让你重新登录"}}),t._v(" "),a("a-popconfirm",{attrs:{slot:"actions",title:"是否要清空缓存?","ok-text":"是","cancel-text":"否"},on:{confirm:function(e){return t.del(4)}},slot:"actions"},[a("a-button",{attrs:{type:"primary",icon:"delete"}},[t._v("清空缓存")])],1)],1)],1)],1)])],1)],1)},staticRenderFns:[]};var i=a("VU/8")({name:"systemHome",data:function(){return{data:{},w5_key:"",api_key:""}},mounted:function(){this.onLoad()},methods:{onLoad:function(){var t=this;this.$http.post("/api/v1/w5/get/system/list").then(function(e){0==e.code?(t.data=e.data,t.w5_key=t.data.w5_key,t.api_key=t.data.api_key):t.$message.error(e.msg)})},del:function(t){var e=this;this.$http.post("/api/v1/w5/post/system/del",{type:t}).then(function(t){0==t.code?e.$message.success("清空成功"):e.$message.error(t.msg)})},onUpdateKey:function(){var t=this;this.$http.post("/api/v1/w5/post/system/w5key",{w5key:this.w5_key}).then(function(e){0==e.code?(t.$message.success("更新成功"),t.onLoad()):t.$message.error(e.msg)})},onUpdateApiKey:function(){var t=this;this.$http.post("/api/v1/w5/post/system/apikey").then(function(e){0==e.code?(t.$message.success("更新成功"),t.onLoad()):t.$message.error(e.msg)})}}},s,!1,function(t){a("h87+")},"data-v-35c351f4",null);e.default=i.exports},"h87+":function(t,e){}});