From 4ebd8f522567d32c8da8ab8ee5e632811c4903a6 Mon Sep 17 00:00:00 2001 From: huweihang <916879598@qq.com> Date: Wed, 17 Dec 2025 01:22:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E5=92=8CAudienceMode=E7=BB=84=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=8F=97=E4=BC=97=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E5=8C=85=E6=8B=ACAPI=E8=B0=83=E6=95=B4=E5=92=8CUI?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/signup/commonStudent.js | 14 ++- src/assets/styles/index.scss | 148 ++++++++++++++++++++++- src/components/signup/AudienceModal.vue | 107 +++++++++++++---- src/components/signup/SignupModal.vue | 151 ++++-------------------- 4 files changed, 257 insertions(+), 163 deletions(-) diff --git a/src/api/signup/commonStudent.js b/src/api/signup/commonStudent.js index 0c0dad66..0e29a5e8 100644 --- a/src/api/signup/commonStudent.js +++ b/src/api/signup/commonStudent.js @@ -4,13 +4,17 @@ export const STUDENT_LIST = "/manageApi/admin/student/getStudent"; export const USER_LIST_PAGE = "/manageApi/admin/thirdApi/user/list"; export const ORG_LIST = "/manageApi/admin/thirdApi/org/list"; export const ORG_CHILD_LIST = "/manageApi/admin/thirdApi/org/info"; -export const AUDIENCE_LIST = "/manageApi/admin/thirdApi/audience/userAudiences"; +// 查询受众中的用户列表 +export const AUDIENCE_LIST = "/userbasic/audience/memberList"; +export const USER_AUDIENCES = "/manageApi/admin/thirdApi/audience/userAudiences"; +export const fetchUserAudiences = (params) => + ajax2.get1(USER_AUDIENCES, params); // 保存学员信息(走 manageApi,POST) export const saveStu = (data) => ajax2.postJson("/manageApi", "/admin/student/addStudent", data); -// 获取项目学员列表(走 manageApi,GET) +// 获取项目学员列表(走 manageApi,GET)弃用 export const fetchProjectStudents = (params = {}) => { return ajax2.get1(STUDENT_LIST, params); }; @@ -27,7 +31,7 @@ export const fetchOrgList = (params) => export const fetchOrgChildren = (params) => ajax2.get1(ORG_CHILD_LIST, params); -// 受众列表(走 manageApi,POST) -export const fetchAudienceList = (params) => - ajax2.get1(AUDIENCE_LIST, params); +// 受众中的用户列表(POST,application/json) +export const fetchAudienceList = (data) => + ajax2.postJson("", AUDIENCE_LIST, data); diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 23bc4561..ecc17b2d 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -486,6 +486,150 @@ li{ } } -.custom-message-dialog { +.use-table { + td.el-table__cell { + border-bottom: 1px solid rgba(0, 0, 0, .1); + } + th.el-table__cell { + background: rgba(66, 132, 247, 0.1); + // padding: 3px 0; + + .cell { + font-weight: bold; + font-size: 14px; + color: #60769D; + } + .caret-wrapper { + .sort-caret { + border: 4px solid transparent; + &.ascending { + border-bottom-color: #C0C4CC; + top: 8px; + } + &.descending { + border-top-color: #C0C4CC; + bottom: 8px; + } + } + } + &.ascending .sort-caret.ascending { + border-bottom-color: #409EFF; + } + &.descending .sort-caret.descending{ + border-top-color: #409EFF; + } + + &.el-table--medium .el-table__cell { + padding: 5px 0; + } + } + + .course-name { + font-weight: 400; + font-size: 14px; + color: #000000; + line-height: 20px; + } + + .common-cell { + font-weight: 400; + font-size: 14px; + color: #000000; + } + .common-cell-right { + padding-right: 20px; + } + + .single-line-ellipsis { + display: inline-block; + max-width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + vertical-align: middle; + } + + ::v-deep .el-table--medium .el-table__cell { + padding: 5px 0; + } + } -} \ No newline at end of file + .pagination { + text-align: right; + padding-top: 20px; + .el-pagination { + .el-pagination__total { + font-size: 14px; + color: #000000; + } + .el-pagination__sizes { + margin-right: 4px; + .el-input{ + margin: 0; + width: 89px; + + } + .el-input__inner { + width: 89px; + background: #F5F9FF; + border-radius: 4px; + border: 1px solid #DFDFDF; + height: 28px; + font-size: 14px; + color: #000000; + } + } + .btn-prev, .btn-next { + width: 28px; + height: 28px; + background: #F5F9FF; + border-radius: 4px; + border: 1px solid #DFDFDF; + // &:hover { + // background: #4284F7; + // color: #FFFFFF; + // } + } + .btn-quicknext{ + background-color: transparent !important; + border: none; + line-height: 44px; + &:before { + content: '......'; + } + + } + .el-pager { + .number { + min-width: 28px; + height: 28px; + background: #F5F9FF; + border-radius: 4px; + border: 1px solid #DFDFDF; + font-weight: normal; + color: #000000; + margin: 0 4px; + &.active { + background-color: #4284F7 !important; + color: #FFFFFF; + border: none; + } + } + } + .el-pagination__jump { + font-size: 14px; + color: #000000; + margin-left: 4px; + .el-input__inner { + width: 28px; + height: 28px; + background: #F5F9FF; + border-radius: 4px; + border: 1px solid #DFDFDF; + font-size: 14px; + color: #000000; + } + } + + } + } \ No newline at end of file diff --git a/src/components/signup/AudienceModal.vue b/src/components/signup/AudienceModal.vue index b291007f..77ff76d8 100644 --- a/src/components/signup/AudienceModal.vue +++ b/src/components/signup/AudienceModal.vue @@ -1,19 +1,23 @@