From b82de922f1919d953ac8c99ade9537f45cb642fc Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Thu, 20 Jun 2024 10:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/system/train/add.html | 58 ++++++++++++------- .../templates/system/train/detail.html | 24 ++++++-- .../templates/system/train/edit.html | 25 ++++++-- .../templates/system/train/examine.html | 24 ++++++-- .../templates/system/trainnum/detail.html | 3 +- .../resources/templates/system/user/add.html | 4 +- .../resources/templates/system/user/edit.html | 2 +- .../user/userexamine/examinedetail.html | 2 +- 8 files changed, 103 insertions(+), 39 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/train/add.html b/ruoyi-admin/src/main/resources/templates/system/train/add.html index beb038d..31f3e93 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/add.html @@ -40,7 +40,7 @@
-
- +
- + +
+ + + + + +
- +
- +
@@ -81,17 +91,6 @@
-
-
- -
- -
-
-
@@ -100,12 +99,10 @@
- -
-
+
- -
+ +
@@ -142,10 +139,12 @@ userList:[], City:'', Area:'', + dept:'', params:{ parentId:'', }, - userPost:"system/user/list" + userPost:"system/user/list", + deptObj:{} }, mounted(){ // 初始化地市列表 @@ -156,6 +155,21 @@ this.getUserList() }, methods:{ + getDept(){ + if (this.dept !== ''){ + $.ajax({ + url: ctx + this.userPost, + data:{userId:this.dept}, + type: 'POST', + success:((res)=>{ + this.deptObj = res.rows[0].dept + }) , + }); + }else{ + this.deptObj ={} + } + + }, getUserList(){ $.ajax({ url: ctx + this.userPost, diff --git a/ruoyi-admin/src/main/resources/templates/system/train/detail.html b/ruoyi-admin/src/main/resources/templates/system/train/detail.html index d5dba37..ccfeb6d 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/detail.html @@ -43,7 +43,7 @@
-
- +
- +
@@ -170,7 +170,8 @@ params:{ parentId:'', }, - userPost:"system/user/list" + userPost:"system/user/list", + deptObj:{} }, mounted(){ // 初始化地市列表 @@ -179,8 +180,23 @@ this.getAreaList() } this.getUserList() + this.getDept() }, methods:{ + getDept(){ + if (this.userName !== ''){ + $.ajax({ + url: ctx + this.userPost, + data:{userId:this.userName}, + type: 'POST', + success:((res)=>{ + this.deptObj = res.rows[0].dept + }) , + }); + }else{ + this.deptObj ={} + } + }, getUserList(){ $.ajax({ url: ctx + this.userPost, diff --git a/ruoyi-admin/src/main/resources/templates/system/train/edit.html b/ruoyi-admin/src/main/resources/templates/system/train/edit.html index 4aa002a..1b06d36 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/edit.html @@ -41,7 +41,7 @@
-
- +
- + +
@@ -142,7 +143,8 @@ params:{ parentId:'', }, - userPost:"system/user/list" + userPost:"system/user/list", + deptObj:{} }, mounted(){ // 初始化地市列表 @@ -151,8 +153,23 @@ this.getAreaList() } this.getUserList() + this.getDept() }, methods:{ + getDept(){ + if (this.userName !== ''){ + $.ajax({ + url: ctx + this.userPost, + data:{userId:this.userName}, + type: 'POST', + success:((res)=>{ + this.deptObj = res.rows[0].dept + }) , + }); + }else{ + this.deptObj ={} + } + }, getUserList(){ $.ajax({ url: ctx + this.userPost, diff --git a/ruoyi-admin/src/main/resources/templates/system/train/examine.html b/ruoyi-admin/src/main/resources/templates/system/train/examine.html index 38c7fa3..80c5762 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/examine.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/examine.html @@ -42,7 +42,7 @@
-
- +
- +
@@ -171,7 +171,8 @@ params:{ parentId:'', }, - userPost:"system/user/list" + userPost:"system/user/list", + deptObj:{} }, mounted(){ // 初始化地市列表 @@ -180,8 +181,23 @@ this.getAreaList() } this.getUserList() + this.getDept() }, methods:{ + getDept(){ + if (this.userName !== ''){ + $.ajax({ + url: ctx + this.userPost, + data:{userId:this.userName}, + type: 'POST', + success:((res)=>{ + this.deptObj = res.rows[0].dept + }) , + }); + }else{ + this.deptObj ={} + } + }, getUserList(){ $.ajax({ url: ctx + this.userPost, diff --git a/ruoyi-admin/src/main/resources/templates/system/trainnum/detail.html b/ruoyi-admin/src/main/resources/templates/system/trainnum/detail.html index 9e0afa7..4b0237c 100644 --- a/ruoyi-admin/src/main/resources/templates/system/trainnum/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/trainnum/detail.html @@ -48,7 +48,7 @@
- +
@@ -181,6 +181,7 @@ } }, methods:{ + getCityList(){ $.ajax({ url: ctx + "system/area/getSysAreaList", diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index 46ecdf9..8bd9525 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -21,10 +21,10 @@
- +
- +
diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index 12dbbaf..70c2687 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -22,7 +22,7 @@
- +
diff --git a/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examinedetail.html b/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examinedetail.html index 26020fe..5bb3407 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examinedetail.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examinedetail.html @@ -37,7 +37,7 @@
- +