Commit 938beb4d by 胡悦

群发人群修改

1 parent a79526fc
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-05-24 18:18:53 * @Date: 2022-05-24 18:18:53
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-05-31 15:09:10 * @LastEditTime: 2022-06-08 17:50:43
--> -->
<template> <template>
<div> <div>
...@@ -16,14 +16,17 @@ ...@@ -16,14 +16,17 @@
<div class="member-content"> <div class="member-content">
<el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent> <el-form :inline="true" class="member-form" :model="searchForm" @submit.native.prevent>
<el-form-item label="人群名称" style="margin-bottom: 0" size="small"> <el-form-item label="人群名称" style="margin-bottom: 0" size="small">
<el-input :size="size" v-model.trim="searchForm.req.keyword" @keyup.enter.native="search" clearable placeholder="请输入关键字搜索"></el-input> <el-input :size="size" v-model.trim="searchForm.req.keyword" @keyup.enter.native="search" clearable
placeholder="请输入关键字搜索"></el-input>
</el-form-item> </el-form-item>
<el-form-item label style="margin-bottom: 0;margin-left:10px" size="small"> <el-form-item label style="margin-bottom: 0;margin-left:10px" size="small">
<el-button type="primary" :size="size" @click="search">搜索</el-button> <el-button type="primary" :size="size" @click="search">搜索</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="table-content"> <div class="table-content">
<GLTable v-loading="loading" ref="crowdTable" :getListApi="getCrowdList" :tableParams="crowdTableParams" :hasNum="true" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :beforeSearchFn="beforeSearchFn" @selectionTable="selectionTable" @row-click="rowClick"></GLTable> <GLTable v-loading="loading" ref="crowdTable" :getListApi="getCrowdList" :tableParams="crowdTableParams"
:hasNum="true" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url"
:beforeSearchFn="beforeSearchFn" @selectionTable="selectionTable" @row-click="rowClick"></GLTable>
</div> </div>
</div> </div>
</div> </div>
...@@ -32,7 +35,8 @@ ...@@ -32,7 +35,8 @@
<div class="member-name">人群({{ innerTags.length }}项)</div> <div class="member-name">人群({{ innerTags.length }}项)</div>
<div class="input-tag-wrapper"> <div class="input-tag-wrapper">
<div class="tag-box"> <div class="tag-box">
<el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false" @close="remove(tag)"> <el-tag v-for="(tag, idx) in innerTags" :key="idx" type="info" closable :disable-transitions="false"
@close="remove(tag)">
{{ tag.crowdName }} {{ tag.crowdName }}
</el-tag> </el-tag>
</div> </div>
...@@ -89,8 +93,8 @@ export default { ...@@ -89,8 +93,8 @@ export default {
watch: { watch: {
selectCrowdData(val) { selectCrowdData(val) {
this.$emit('crowdData', val) this.$emit('crowdData', val)
if (val.length) {
this.$refs.crowdTable.$refs.crowdlistMutiTable.clearSelection() this.$refs.crowdTable.$refs.crowdlistMutiTable.clearSelection()
if (val.length) {
val.forEach(item => { val.forEach(item => {
this.rowClick(item) this.rowClick(item)
}) })
...@@ -133,12 +137,14 @@ export default { ...@@ -133,12 +137,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.member-wrapper { .member-wrapper {
display: flex; display: flex;
.member-title { .member-title {
font-size: 16px; font-size: 16px;
color: #333; color: #333;
font-weight: 600; font-weight: 600;
line-height: 22px; line-height: 22px;
margin-bottom: 6px; margin-bottom: 6px;
span { span {
display: inline-block; display: inline-block;
padding-left: 5px; padding-left: 5px;
...@@ -147,35 +153,42 @@ export default { ...@@ -147,35 +153,42 @@ export default {
font-weight: 500; font-weight: 500;
} }
} }
.member-left { .member-left {
width: 780px; width: 780px;
.member-content { .member-content {
border: 1px solid #eee; border: 1px solid #eee;
padding-bottom: 20px; padding-bottom: 20px;
/deep/ { /deep/ {
.el-table { .el-table {
height: 40vh; height: 40vh;
overflow-y: auto; overflow-y: auto;
} }
} }
.member-form { .member-form {
padding: 10px 20px; padding: 10px 20px;
} }
.table-content { .table-content {
max-height: 456px; max-height: 456px;
overflow: auto; overflow: auto;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
} }
.member-checked { .member-checked {
text-align: right; text-align: right;
margin-top: 10px; margin-top: 10px;
} }
} }
.member-right { .member-right {
width: 248px; width: 248px;
margin-left: 14px; margin-left: 14px;
.member-name { .member-name {
font-size: 14px; font-size: 14px;
color: #333; color: #333;
...@@ -185,10 +198,12 @@ export default { ...@@ -185,10 +198,12 @@ export default {
} }
} }
} }
.tag-box { .tag-box {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
.input-tag-wrapper { .input-tag-wrapper {
position: relative; position: relative;
font-size: 14px; font-size: 14px;
...@@ -206,24 +221,28 @@ export default { ...@@ -206,24 +221,28 @@ export default {
align-items: center; align-items: center;
max-height: 500px; max-height: 500px;
overflow: auto; overflow: auto;
// margin-bottom: 10px; // margin-bottom: 10px;
i { i {
color: #75acff; color: #75acff;
margin-right: 3px; margin-right: 3px;
font-size: 14px; font-size: 14px;
} }
/deep/ input { /deep/ input {
/* input { */ /* input { */
/* background-color: red!important; 调试用的样式 */ /* background-color: red!important; 调试用的样式 */
outline: none !important; outline: none !important;
border: none !important; border: none !important;
} }
/deep/ .el-input { /deep/ .el-input {
min-width: 150px; min-width: 150px;
width: auto; width: auto;
flex: 1; flex: 1;
} }
} }
.el-tag { .el-tag {
margin-right: 10px; margin-right: 10px;
line-height: 22px; line-height: 22px;
...@@ -231,6 +250,7 @@ export default { ...@@ -231,6 +250,7 @@ export default {
height: 24px; height: 24px;
background: #FAFBFE !important; background: #FAFBFE !important;
} }
/deep/.el-dialog__title { /deep/.el-dialog__title {
font-weight: 600; font-weight: 600;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!