From f903590f549e37078652a9324ca058d5e4d11b6c Mon Sep 17 00:00:00 2001 From: "weixiaobo@boe.com.cn" Date: Sun, 30 Jul 2023 19:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=97=E4=BC=97=E6=B7=BB=E5=8A=A0=E6=88=90?= =?UTF-8?q?=E5=91=98=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexAudience.js | 16 + src/views/audience/audienceManage.vue | 480 +++++++++++++++++++++++++- 2 files changed, 495 insertions(+), 1 deletion(-) diff --git a/src/api/indexAudience.js b/src/api/indexAudience.js index 487aedca..ddfc655a 100644 --- a/src/api/indexAudience.js +++ b/src/api/indexAudience.js @@ -109,4 +109,20 @@ export const getAudienceMemberList = (obj) => export const updateAudienceMember = (obj) => http.post("/audience/update", obj, { headers: { 'Content-Type':'application/json', }, +}); + +// 受众成员组织列表 +export const getAudienceOrgList = (obj) => + http.post("/org/list", obj, { + headers: { 'Content-Type':'application/json', }, +}); +// 受众成员组织列表 +export const getAudienceOrgInfo = (obj) => + http.post("/org/info", obj, { + headers: { 'Content-Type':'application/json', }, +}); +// 受众成员可选列表 +export const getAudienceUserList = (obj) => + http.post("/user/list", obj, { + headers: { 'Content-Type':'application/json', }, }); \ No newline at end of file diff --git a/src/views/audience/audienceManage.vue b/src/views/audience/audienceManage.vue index 93bca272..d60681c2 100644 --- a/src/views/audience/audienceManage.vue +++ b/src/views/audience/audienceManage.vue @@ -377,6 +377,105 @@ + +
+
+ 左边 +
+
+ + + + + 搜索 + + 重置 + + +
+
+
+
+ + +
+
+
+
+ + +
+
+ +
+
+
+
+
+
+ 右边 +
+
+
已选
+
+
+
+
+
+
+ {{ item.realName }} +
+
+
+
+
+
+
+
@@ -1535,4 +1826,191 @@ const handleExportAudienceMemberClick = () => { } } } +.onerow { + display: flex; + justify-content: space-between; + align-items: center; + margin-right: 40px; + flex-wrap: wrap; + + width: 100%; + + .onleft { + display: flex; + text-align: center; + + .already { + color: rgba(51, 51, 51, 1); + font-size: 16px; + font-weight: 500; + margin-left: 32px; + white-space: nowrap; + // margin-bottom: 20px; + } + + .count { + color: #4ea6ff; + font-size: 16px; + margin: 0 6px; + } + + .peo { + color: rgba(51, 51, 51, 1); + font-size: 16px; + font-weight: 500; + } + } + + .clbox { + margin-right: 50px; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + width: 104px; + height: 32px; + border-radius: 4px; + background: #4ea6ff; + + .colose { + width: 16px; + height: 16px; + // border-radius: 8px; + // background: #ffffff; + // position: relative; + background-image: url(../../assets/images/basicinfo/ch.png); + background-size: 100%; + margin-right: 4px; + } + + .allclear { + color: rgba(255, 255, 255, 1); + font-size: 14px; + } + } +} +.selecteds { + display: flex; + flex-wrap: wrap; + margin-left: 32px; + + .person { + width: 100%; + margin-top: 20px; + border-top: 1px solid #f2f6fe; + } + + .chose { + width: 64px; + height: 24px; + margin-top: 25px; + margin-right: 25px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 2px; + border: 1px solid rgba(56, 139, 225, 1); + color: rgba(56, 139, 225, 1); + font-size: 12px; + position: relative; + + .ch { + position: absolute; + width: 18px; + height: 18px; + background-image: url(../../assets/images/basicinfo/ch.png); + right: -8px; + top: -8px; + } + } + + .ifsw { + display: flex; + align-items: end; + justify-content: center; + color: #4ea6ff; + } + + .sw { + display: flex; + align-items: center; + justify-content: center; + text-align: justify; + color: #4ea6ff; + margin-top: 23px; + margin-left: 10px; + } + + .dept { + width: 100%; + margin-top: 30px; + border-top: 1px solid #f2f6fe; + } + + .chose1 { + //width: 90px; + height: 24px; + margin-top: 25px; + margin-right: 25px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 2px; + border: 1px solid rgba(56, 139, 225, 1); + color: rgba(56, 139, 225, 1); + font-size: 12px; + position: relative; + + .span { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .ch1 { + position: absolute; + width: 18px; + height: 18px; + background-image: url(../../assets/images/basicinfo/ch.png); + right: -8px; + top: -8px; + } + } + + .group { + width: 100%; + margin-top: 30px; + border-top: 1px solid #f2f6fe; + } + + .chose2 { + //width: 120px; + height: 24px; + margin-top: 25px; + margin-right: 25px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 2px; + border: 1px solid rgba(56, 139, 225, 1); + color: rgba(56, 139, 225, 1); + font-size: 12px; + position: relative; + + .span { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .ch2 { + position: absolute; + width: 18px; + height: 18px; + background-image: url(../../assets/images/basicinfo/ch.png); + right: -8px; + top: -8px; + } + } +}