| | |
| | | |
| | | <script> |
| | | import { SaveSystemProcConfig } from '@/api/systemSetting' |
| | | import { logout } from '@/api/user' |
| | | |
| | | export default { |
| | | name: 'ProcessSetting', |
| | |
| | | } |
| | | }, |
| | | save() { |
| | | this.$confirm('是否确认保存?', '提示', { |
| | | this.$confirm('是否确认保存?保存成功之后自动跳转登录页重新登录', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | |
| | | if (res.code === '200') { |
| | | localStorage.setItem('mesSetting', JSON.stringify(data)) |
| | | this.$notify.success('保存成功!') |
| | | |
| | | setTimeout(() => { |
| | | logout().then(res => { |
| | | localStorage.removeItem('token') |
| | | this.$router.push({ path: this.redirect || '/' }) |
| | | }) |
| | | }, 2000) |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .main{ |
| | | .main { |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | .block{ |
| | | |
| | | .block { |
| | | height: 100px; |
| | | } |
| | | .block-title{ |
| | | |
| | | .block-title { |
| | | |
| | | } |
| | | .block-content{ |
| | | |
| | | .block-content { |
| | | padding: 20px; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | } |
| | | |
| | | .font{ |
| | | .font { |
| | | color: #606266; |
| | | font-size: 14px; |
| | | display: flex; |
| | | align-items: center; |
| | | width: 200px; |
| | | } |
| | | |
| | | .el-icon-question { |
| | | cursor: pointer; |
| | | } |
| | | </style> |