小小儁爺
2024-07-05 b10b7b2e7d387d95391d9254b899551f8ecf4c60
src/views/systemSetting/processSetting.vue
@@ -107,6 +107,7 @@
<script>
import { SaveSystemProcConfig } from '@/api/systemSetting'
import { logout } from '@/api/user'
export default {
  name: 'ProcessSetting',
@@ -137,6 +138,7 @@
        this.route = mesSetting.route
        this.isOrder = mesSetting.isOrder
        this.device = mesSetting.device
        this.tech = mesSetting.tech
        this.workOrder = mesSetting.workOrder
        this.every = mesSetting.every
@@ -144,7 +146,7 @@
      }
    },
    save() {
      this.$confirm('是否确认保存?', '提示', {
      this.$confirm('是否确认保存?保存成功之后自动跳转登录页重新登录', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
@@ -163,6 +165,13 @@
          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(() => {
@@ -186,29 +195,34 @@
</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>