1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <template>
- <el-container>
- <el-header class="header">
- <h3>系统设置</h3>
- </el-header>
- <el-main class="main">
- <div>
- <span>恢复出厂设置</span>
- <el-button type="primary">执行恢复</el-button>
- </div>
- <div>
- <span>设备重启</span>
- <el-button type="primary" @click="rebootClick">执行重启</el-button>
- </div>
- </el-main>
- </el-container>
- </template>
- <script>
- import { mapActions } from 'vuex'
- // mapState
- export default {
- name: 'systemctl',
- components: {},
- data () {
- return {}
- },
- mounted () {},
- methods: {
- ...mapActions(['reboot']),
- rebootClick () {
- this.reboot()
- }
- }
- }
- </script>
- <style lang="less" scoped>
- h3 {
- width: 90%;
- text-align: left;
- text-indent: 1em;
- line-height: 3em;
- border-bottom: 2px solid #999;
- }
- .main {
- width: 70%;
- margin: 10% auto;
- display: flex;
- div {
- width: 50%;
- span {
- display: block;
- color: #999;
- text-align: center;
- }
- /deep/ .el-button {
- display: block;
- margin: 5% auto;
- }
- }
- }
- </style>
|