Commit 938beb4d by 胡悦

群发人群修改

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