From 3f386968d4b5cbb002ad93483f86a5443159e18a Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期六, 08 二月 2025 09:54:32 +0800
Subject: [PATCH] 1.递交
---
src/views/systemSetting/processSetting.vue | 28 +++++++++++++++++++++-------
1 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/src/views/systemSetting/processSetting.vue b/src/views/systemSetting/processSetting.vue
index 78f7645..3f62e1e 100644
--- a/src/views/systemSetting/processSetting.vue
+++ b/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>
--
Gitblit v1.9.3