浏览代码

编辑人员缓存修复

zhuliu 2 年之前
父节点
当前提交
60efc0872d
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 2 1
      src/views/layout/mixins/index.js
  2. 3 1
      src/views/user/index.vue

+ 2 - 1
src/views/layout/mixins/index.js

@@ -4,7 +4,8 @@ import Store from '@/store'
 export const webSocket = {
   methods: {
     connectWebSocket(userId) {
-      let webSocket = new WebSocket(`ws://139.224.24.90:8871/permission/api/ws/` + userId)
+      // let webSocket = new WebSocket(`ws://139.224.24.90:8871/permission/api/ws/` + userId)
+      let webSocket = new WebSocket(`ws://139.224.24.90:8880/permission/api/ws/` + userId)
       Store.commit('SET_WEB_SOCKET', webSocket)
       webSocket.onopen = () => {
         console.log('WebSocket连接成功')

+ 3 - 1
src/views/user/index.vue

@@ -684,7 +684,8 @@
 				this.title = "编辑人员";
 				this.pswdshow = false;
 				this.visible = true;
-				this.ruleForm = { ...row };
+				// this.ruleForm = { ...row };
+				this.ruleForm =JSON.parse(JSON.stringify(row));
 			},
 			handleDetails(row) {
 				this.title = "人员详情";
@@ -692,6 +693,7 @@
 				this.ruleForm.apply = row;
 			},
 			close() {
+				this.positionAndDepartment = {};
 				this.pswdshow = false;
 				this.visible = false;
 				this.showvisible = false;