Commit 19e07f8e by 怪兽?别跑

人群迁移

1 parent 732e509b
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
</div> </div>
</template> </template>
<script> <script>
import { getList } from '@/api/drainageCode/staff'
import { getChannelDetail } from '@/api/marketStrategy/people' import { getChannelDetail } from '@/api/marketStrategy/people'
export default { export default {
name: 'channel-label', name: 'channel-label',
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
> >
<span v-if="unit.andOr === 2" class="relation_button" :class="{ relation_active: unit.andOr === 2 }">或</span> <span v-if="unit.andOr === 2" class="relation_button" :class="{ relation_active: unit.andOr === 2 }">或</span>
</div> </div>
<el-card> <div class="g-card">
<div class="card_header"> <div class="card_header">
<div> <div>
<show-people-title :titleType="unit.swipType"></show-people-title> <show-people-title :titleType="unit.swipType"></show-people-title>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<template v-if="unit.swipType === 5"> <template v-if="unit.swipType === 5">
<strategic-crowd :currentData="unit" :detail="true" :baseData="baseEnum.StrategicCrowdEnum"></strategic-crowd> <strategic-crowd :currentData="unit" :detail="true" :baseData="baseEnum.StrategicCrowdEnum"></strategic-crowd>
</template> </template>
</el-card> </div>
</div> </div>
</div> </div>
</template> </template>
......
<template> <template>
<div> <div style="height: 100%;">
<!-- <div class="title_name"> <div class="g-left-right">
查询表格 <div class="left g-card">
</div> -->
<el-form :inline="true" label-width="" label-position="left" class="top-search">
<el-form-item label="人群名称">
<el-input v-model="query.name" placeholder="请输入人群名称" clearable @keyup.enter.native="search()" />
</el-form-item>
<el-form-item label="选择状态" prop="qrUserName">
<el-select v-model="query.status">
<el-option v-for="(unit, key) in statusList" :key="key" :label="unit.name" :value="unit.status"></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="0">
<el-button type="primary" size="small" @click="search()">查询</el-button>
<el-button @click="resetQuery" size="small" type="info" plain>清空</el-button>
</el-form-item>
</el-form>
<el-row type="flex" justify="space-between" class="g-margin-t">
<el-col :span="5" class="left g-card" style="border-radius: 4px; background: #fff;">
<div class="title"> <div class="title">
<div class="title-name">人群分组</div> <div class="title-name">人群分组</div>
<div class="title-btn" @click="addGroup">添加</div> <div class="title-btn" @click="addGroup">添加</div>
</div> </div>
<div class="item-list"> <el-scrollbar class="item-list">
<div <div
class="item" class="item"
:class="{ active: groupIndex == key }" :class="{ active: groupIndex == key }"
...@@ -36,22 +19,42 @@ ...@@ -36,22 +19,42 @@
<span class="dot"> <span class="dot">
<i class="el-icon-more content-icon"></i> <i class="el-icon-more content-icon"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <template #dropdown>
<el-dropdown-menu>
<el-dropdown-item command="edit">修改分组</el-dropdown-item> <el-dropdown-item command="edit">修改分组</el-dropdown-item>
<el-dropdown-item command="remove">删除分组</el-dropdown-item> <el-dropdown-item command="remove">删除分组</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template>
</el-dropdown> </el-dropdown>
</div> </div>
</el-scrollbar>
</div> </div>
</el-col> <div class="right">
<el-col :span="19" class="g-card mt0"> <el-form :inline="true" label-width="" label-position="left" class="top-search">
<div> <el-form-item label="人群名称">
<div style="display: flex; justify-content: space-between;"> <el-input v-model="query.name" placeholder="请输入人群名称" clearable @keyup.enter.native="search()" />
<el-button type="primary" size="small" @click="goRoute('add')">新建人群</el-button> </el-form-item>
<el-form-item label="选择状态" prop="qrUserName">
<el-select v-model="query.status">
<el-option
v-for="(unit, key) in statusList"
:key="key"
:label="unit.name"
:value="unit.status"
></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="0">
<el-button type="primary" @click="search()">查询</el-button>
<el-button @click="resetQuery" type="info" plain>清空</el-button>
</el-form-item>
</el-form>
<div class="g-card">
<div class="mid-action">
<el-button type="primary" @click="goRoute('add')">新建人群</el-button>
<div> <div>
<el-button type="primary" plain size="small" @click="removeFn('mult')">批量删除</el-button> <el-button type="primary" plain @click="removeFn('mult')">批量删除</el-button>
<el-button type="primary" plain size="small" @click="updateFn('mult')">批量更新</el-button> <el-button type="primary" plain @click="updateFn('mult')">批量更新</el-button>
</div>
</div> </div>
</div> </div>
<el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange" style="width: 100%;"> <el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange" style="width: 100%;">
...@@ -107,7 +110,13 @@ ...@@ -107,7 +110,13 @@
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="最近更新时间" align="center" prop="updateTime" width="180"></el-table-column> <el-table-column label="最近更新时间" align="center" prop="updateTime" width="180"></el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="180" class-name="small-padding fixed-width"> <el-table-column
label="操作"
align="center"
fixed="right"
width="180"
class-name="small-padding fixed-width"
>
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" @click="goRoute('detail', row.id)">查看</el-button> <el-button type="text" @click="goRoute('detail', row.id)">查看</el-button>
<template v-if="row.status === 3 || row.status === 4"> <template v-if="row.status === 3 || row.status === 4">
...@@ -124,8 +133,15 @@ ...@@ -124,8 +133,15 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination :total="total" :page.sync="query.pageNum" :limit.sync="query.pageSize" @pagination="getList()" /> <pagination :total="total" :page.sync="query.pageNum" :limit.sync="query.pageSize" @pagination="getList()" />
</div>
</div>
</div>
<!-- <el-row type="flex" justify="space-between" class="g-margin-t">
<el-col :span="5" class="left g-card" style="border-radius: 4px; background: #fff;"> </el-col>
<el-col :span="19" class="g-card mt0">
</el-col> </el-col>
</el-row> </el-row> -->
<el-dialog :title="`${groupForm.id ? '修改' : '新建'}分组`" :visible.sync="groupVisible" width="30%"> <el-dialog :title="`${groupForm.id ? '修改' : '新建'}分组`" :visible.sync="groupVisible" width="30%">
<el-form :model="groupForm" :rules="rules" ref="groupForm"> <el-form :model="groupForm" :rules="rules" ref="groupForm">
...@@ -437,97 +453,4 @@ ...@@ -437,97 +453,4 @@
background-color: #f5f8fe; background-color: #f5f8fe;
} }
} }
.left {
margin-right: 16px;
.title {
color: #3c88f0;
display: flex;
justify-content: space-between;
align-items: center;
.title-name {
color: rgba(0, 0, 0, 0.9);
font-size: 16px;
font-weight: 600;
// color: #333333;
display: flex;
align-items: center;
}
.title-btn {
cursor: pointer;
display: flex;
align-items: center;
font-size: 14px;
font-weight: normal;
color: #0079de;
&:hover {
opacity: 0.8;
}
}
}
.item-list {
max-height: 700px;
padding-top: 15px;
display: flex;
flex-direction: column;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
.item {
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
color: rgba(0, 0, 0, 0.6);
height: 40px;
line-height: 40px;
width: 100%;
padding-left: 20px;
.name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.dropdown {
// display: none;
.dot {
cursor: pointer;
width: 15px;
height: 15px;
line-height: 15px;
font-size: 14px;
font-family: JMT-Font, JMT;
font-weight: normal;
color: rgba(0, 0, 0, 0.6);
margin-right: 10px;
margin-left: 5px;
font-weight: 500;
.content-icon {
color: rgba(0, 0, 0, 0.6);
font-size: 12px;
transform: rotate(90deg);
}
}
}
&:hover {
color: rgba(0, 0, 0, 0.9);
background: #f5f8fe;
opacity: 0.8;
border-radius: 2px;
.dropdown {
// display: block;
}
}
}
.active {
// border-left: 2px solid #3c88f0;
color: rgba(0, 0, 0, 0.9);
background: #f5f8fe;
border-radius: 2px;
}
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!