From 8f656d7ee0c221576f2ff3b94b03f89af90f5af2 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Thu, 8 Oct 2020 10:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/custom/domain/CusUserPost.java | 11 + .../mapper/custom/CusUserPostMapper.xml | 3 +- .../views/custom/commision/detail/index.vue | 2 +- ruoyi-ui/src/views/custom/order/index.vue | 50 +- ruoyi-ui/src/views/system/post/index.vue | 652 ++++----- ruoyi-ui/src/views/system/role/index.vue | 1202 ++++++++--------- ruoyi-ui/src/views/system/user/index.vue | 824 +++++------ 7 files changed, 1408 insertions(+), 1336 deletions(-) diff --git a/ruoyi-custom/src/main/java/com/ruoyi/custom/domain/CusUserPost.java b/ruoyi-custom/src/main/java/com/ruoyi/custom/domain/CusUserPost.java index 0e8c7155a..2275f0fcb 100644 --- a/ruoyi-custom/src/main/java/com/ruoyi/custom/domain/CusUserPost.java +++ b/ruoyi-custom/src/main/java/com/ruoyi/custom/domain/CusUserPost.java @@ -18,6 +18,16 @@ public class CusUserPost implements Serializable { private String postName; + private String remark; + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getRemark() { + return remark; + } + public void setPostName(String postName) { this.postName = postName; } @@ -66,6 +76,7 @@ public class CusUserPost implements Serializable { ", postCode='" + postCode + '\'' + ", postid='" + postId + '\'' + ", postName='" + postName + '\'' + + ", remark='" + remark + '\'' + '}'; } } diff --git a/ruoyi-custom/src/main/resources/mapper/custom/CusUserPostMapper.xml b/ruoyi-custom/src/main/resources/mapper/custom/CusUserPostMapper.xml index af2c7854e..112b4036d 100644 --- a/ruoyi-custom/src/main/resources/mapper/custom/CusUserPostMapper.xml +++ b/ruoyi-custom/src/main/resources/mapper/custom/CusUserPostMapper.xml @@ -10,10 +10,11 @@ + - SELECT u.user_id, u.nick_name, p.post_id, p.post_code, p.post_name + SELECT u.user_id, u.nick_name, p.post_id, p.post_code, p.post_name, u.remark FROM sys_user u, sys_post p, sys_user_post up WHERE up.user_id = u.user_id AND p.post_id = up.post_id AND p.post_id > 4 diff --git a/ruoyi-ui/src/views/custom/commision/detail/index.vue b/ruoyi-ui/src/views/custom/commision/detail/index.vue index 63df91e2d..d5a61b434 100644 --- a/ruoyi-ui/src/views/custom/commision/detail/index.vue +++ b/ruoyi-ui/src/views/custom/commision/detail/index.vue @@ -65,7 +65,7 @@ diff --git a/ruoyi-ui/src/views/custom/order/index.vue b/ruoyi-ui/src/views/custom/order/index.vue index 7ccc28dbf..f98362995 100644 --- a/ruoyi-ui/src/views/custom/order/index.vue +++ b/ruoyi-ui/src/views/custom/order/index.vue @@ -19,7 +19,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -29,7 +29,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -39,7 +39,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -49,7 +49,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -60,7 +60,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -72,7 +72,7 @@ v-for="dict in accountIdOptions" :key="dict.dictValue" :label="dict.dictLabel" - :value="dict.dictValue" + :value="parseInt(dict.dictValue)" /> @@ -84,7 +84,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -95,7 +95,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -106,7 +106,7 @@ + :value="parseInt(dict.dictValue)"/> @@ -537,9 +537,9 @@ getOptions().then(response => { const options = response.data.reduce((opts, cur) => { if (!opts[cur.postCode]) { - opts[cur.postCode] = []; + opts[cur.postCode] = [{dictValue: 0, dictLabel: ' ', remark: null}]; } - opts[cur.postCode].push({dictValue: cur.userId, dictLabel: cur.userName}) + opts[cur.postCode].push({dictValue: cur.userId, dictLabel: cur.userName, remark: cur.remark}) return opts; }, {}) this.preSaleIdOptions = options['pre_sale'] || []; @@ -616,28 +616,38 @@ // 表单重置 reset() { const defaultPayType = this.payTypeIdOptions.find(opt => opt.remark === 'default'); + const defaultServeMonth = this.serveMonthOption.find(opt => opt.remark === 'default'); + const defaultAccount = this.accountIdOptions.find(opt => opt.remark === 'default'); + const defaultOperator = this.operatorIdOptions.find(opt => opt.remark === 'default'); + const defaultPresale = this.preSaleIdOptions.find(opt => opt.remark === 'default'); + const defaultAftersale = this.afterSaleIdOptions.find(opt => opt.remark === 'default'); + const defaultNutritionist = this.nutritionistIdOptions.find(opt => opt.remark === 'default'); + const defaultNutriAssis = this.nutriAssisIdOptions.find(opt => opt.remark === 'default'); + const defaultPlanner = this.plannerIdOptions.find(opt => opt.remark === 'default'); + const defaultPlannerAssis = this.plannerAssisIdOptions.find(opt => opt.remark === 'default'); this.form = { orderId: null, customer: null, phone: null, amount: null, payTypeId: defaultPayType ? parseInt(defaultPayType.dictValue) : null, - preSaleId: null, + preSaleId: defaultPresale ? parseInt(defaultPresale.dictValue) : null, createBy: null, createTime: null, - afterSaleId: null, + afterSaleId: defaultAftersale ? parseInt(defaultAftersale.dictValue) : null, updateBy: null, updateTime: null, - nutritionistId: null, + nutritionistId: defaultNutritionist ? parseInt(defaultNutritionist.dictValue) : null, remark: null, - nutriAssisId: null, - accountId: null, - plannerId: null, - plannerAssisId: null, - operatorId: null, + nutriAssisId: defaultNutriAssis ? parseInt(defaultNutriAssis.dictValue) : null, + accountId: defaultAccount ? parseInt(defaultAccount.dictValue) : null, + plannerId: defaultPlanner ? parseInt(defaultPlanner.dictValue) : null, + plannerAssisId: defaultPlannerAssis ? parseInt(defaultPlannerAssis.dictValue) : null, + operatorId: defaultOperator ? parseInt(defaultOperator.dictValue) : null, recommender: null, orderTime: null, - serveMonth: 1, + serveMonth: defaultServeMonth ? parseInt(defaultServeMonth.dictValue) : 1, + reviewStatus: 'no' }; this.resetForm("form"); }, diff --git a/ruoyi-ui/src/views/system/post/index.vue b/ruoyi-ui/src/views/system/post/index.vue index b66060d08..388615054 100644 --- a/ruoyi-ui/src/views/system/post/index.vue +++ b/ruoyi-ui/src/views/system/post/index.vue @@ -1,326 +1,326 @@ - - - \ No newline at end of file + + + diff --git a/ruoyi-ui/src/views/system/role/index.vue b/ruoyi-ui/src/views/system/role/index.vue index f54a7e759..02f9574ee 100644 --- a/ruoyi-ui/src/views/system/role/index.vue +++ b/ruoyi-ui/src/views/system/role/index.vue @@ -1,601 +1,601 @@ - - - \ No newline at end of file + + + diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index d44fa58f3..520b0a520 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -4,28 +4,35 @@
- +
- +
- + - + - + - + 搜索 @@ -35,33 +42,40 @@ - 新增 + 新增 + + + + + + + + + + 导入 + - 修改 - - - 删除 - - - 导入 - - - 导出 + 导出 + - - - - - - + + + + + + @@ -71,14 +85,21 @@ - + @@ -88,36 +109,36 @@ - + - + - + - + - + - + @@ -125,14 +146,17 @@ - + - {{dict.dictLabel}} + + {{dict.dictLabel}} + @@ -140,15 +164,23 @@ - - + + - - + + @@ -169,14 +201,17 @@ - +
将文件拖到此处,或 点击上传
- 是否更新已经存在的用户数据 + + 是否更新已经存在的用户数据 下载模板
提示:仅允许导入“xls”或“xlsx”格式文件!
@@ -190,364 +225,379 @@