Commit e4ade171 by 胡悦

提交群发详情

1 parent 6e9c57f5
...@@ -16,6 +16,7 @@ import '@/components' ...@@ -16,6 +16,7 @@ import '@/components'
import { start } from '@/setup' import { start } from '@/setup'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
...@@ -81,6 +81,18 @@ const staticRoutes = Object.freeze([ ...@@ -81,6 +81,18 @@ const staticRoutes = Object.freeze([
path: '/customerTransform/addCustomerGroup', path: '/customerTransform/addCustomerGroup',
component: resolve => require([`@/views/customerTransform/addCustomerGroup.vue`], resolve), component: resolve => require([`@/views/customerTransform/addCustomerGroup.vue`], resolve),
meta: {} meta: {}
},
{
name: 'detailCustomer',
path: '/customerTransform/detailCustomer',
component: resolve => require([`@/views/customerTransform/detailCustomer.vue`], resolve),
meta: {}
},
{
name: 'detaiCustomeGroup',
path: '/customerTransform/detaiCustomeGroup',
component: resolve => require([`@/views/customerTransform/detaiCustomeGroup.vue`], resolve),
meta: {}
} }
]) ])
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
}" }"
> >
<el-button type="primary" @click="handleNext">确定</el-button> <el-button type="primary" @click="handleNext">确定</el-button>
<el-button type="primary" @click="handleNext">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -129,6 +129,9 @@ export default { ...@@ -129,6 +129,9 @@ export default {
methods: { methods: {
openMembers() { openMembers() {
this.membersVisible = !this.membersVisible this.membersVisible = !this.membersVisible
},
handleCancel() {
this.$router.go(-1)
} }
} }
} }
...@@ -145,9 +148,6 @@ export default { ...@@ -145,9 +148,6 @@ export default {
font-size: 16px; font-size: 16px;
color: #333; color: #333;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
&::after {
content: '';
}
} }
.info-box { .info-box {
display: inline-flex; display: inline-flex;
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
}" }"
> >
<el-button type="primary" @click="handleNext">确定</el-button> <el-button type="primary" @click="handleNext">确定</el-button>
<el-button type="primary" @click="handleNext">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</div> </div>
<glsx-dialog :title="'选择成员'" :width="'712px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible"> <glsx-dialog :title="'选择成员'" :width="'712px'" :isVisible="membersVisible" @confirmDialog="handleConfirm" @closeDialog="membersVisible = !membersVisible">
<SelectMembers ref="drawerForm" @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp"></SelectMembers> <SelectMembers ref="drawerForm" @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp"></SelectMembers>
...@@ -77,6 +77,9 @@ export default { ...@@ -77,6 +77,9 @@ export default {
methods: { methods: {
openMembers() { openMembers() {
this.membersVisible = !this.membersVisible this.membersVisible = !this.membersVisible
},
handleCancel() {
this.$router.go(-1)
} }
} }
} }
...@@ -93,9 +96,6 @@ export default { ...@@ -93,9 +96,6 @@ export default {
font-size: 16px; font-size: 16px;
color: #333; color: #333;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
&::after {
content: '';
}
} }
.info-box { .info-box {
display: inline-flex; display: inline-flex;
......
<template>
<div class="container">
<div class="title">基础信息</div>
<div class="content">
<div class="content-info">
<div class="content-text">
<div class="detail-item">
<div class="detail-label">创建者:</div>
<div class="detail-value">超级管理员</div>
</div>
<div class="detail-item">
<div class="detail-label">群发内容:</div>
<div class="detail-value">超级管理员</div>
<div class="detail-tips">详见右侧视图</div>
</div>
<div class="detail-item">
<div class="detail-label">创建者:</div>
<div class="detail-value">超级管理员</div>
</div>
<div class="detail-item">
<div class="detail-label">创建者:</div>
<div class="detail-value">超级管理员</div>
</div>
</div>
<div class="title">数据统计</div>
<div class="statistics-info">
<div class="statistics-ul">
<div class="statistics-li statistics-border">
<div class="statistics-number">
<span>0</span>
人
</div>
<div>已发送群主</div>
</div>
<div class="statistics-li">
<div class="statistics-number">
<span>0</span>
人
</div>
<div>已发送群主</div>
</div>
</div>
<div class="statistics-ul">
<div class="statistics-li statistics-border">
<div class="statistics-number">
<span>0</span>
人
</div>
<div>已发送群主</div>
</div>
<div class="statistics-li">
<div class="statistics-number">
<span>0</span>
人
</div>
<div>已发送群主</div>
</div>
</div>
<div class="statistics-ul">
<div class="statistics-li">
<div class="statistics-number">
<span>0</span>
人
</div>
<div>已发送群主</div>
</div>
</div>
</div>
</div>
<Preview></Preview>
</div>
</div>
</template>
<script>
import Preview from '../components/preview.vue'
export default {
name: 'BasicInof',
components: {
Preview
},
data() {},
methods: {}
}
</script>
<style lang="scss" scope>
.container {
margin-bottom: 20px;
background-color: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
.title {
padding: 20px 0 17px 20px;
font-size: 16px;
color: #333;
border-bottom: 1px solid #d8d8d8;
}
.content {
display: flex;
align-items: flex-end;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 20px 24px 40px 0;
.content-info {
width: calc(100% - 360px);
.content-text {
padding-left: 52px;
height: 400px;
}
.detail-item {
display: flex;
font-size: 14px;
color: #333;
line-height: 20px;
margin-bottom: 24px;
.detail-tips {
margin-left: 8px;
color: #939393;
}
}
.statistics-info {
display: flex;
justify-content: space-between;
margin-top: 24px;
margin-left: 52px;
.statistics-ul {
border-radius: 2px;
background-color: #f6f6ff;
border: 1px solid rgba(88, 80, 255, 0.8);
}
.statistics-li {
display: inline-block;
width: 142px;
color: #424242;
font-size: 14px;
text-align: center;
margin: 42px 35px;
&.statistics-border {
padding-right: 35 px;
margin-right: 0;
border-right: 1px solid #5850ff;
}
.statistics-number {
margin-bottom: 12px;
font-size: 16px;
color: #333;
span {
font-size: 26px;
}
}
}
}
}
}
}
</style>
<template>
<div>
<BasicInof></BasicInof>
<div class="detail-container">
<glsx-combi-form ref="showSearch" labelWidth="90px" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="search-btns">
<el-button :size="size" type="primary" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
</span>
</glsx-combi-form>
<!-- 表格区域 开始 -->
<GLTable ref="table" :tableData="tableData" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" :disabled="scope.scope.isRemind == 1" @click="btnClick('edit', scope.scope)">提醒发送</el-button>
</div>
</GLTable>
</div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="handleNext">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</div>
</div>
</template>
<script>
import BasicInof from './components/basicInfo.vue'
export default {
components: {
BasicInof
},
data() {
return {
searchForm: {},
searchFormData: [
{
label: '群聊名称',
name: 'zoneName',
type: 'input',
maxlength: 20
},
{
label: '群主',
name: 'createDate',
type: 'select',
isClear: true,
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: 12,
value: 12
}
]
},
{
label: '送达状态',
name: 'createDate',
type: 'select',
isClear: true,
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: 12,
value: 12
}
]
}
],
tableParams: {
listName: 'list',
tableOption: false,
tableColumns: [
{
label: '群聊名称',
prop: 'zoneName'
},
{
label: '群主',
prop: 'zoneName'
},
{
label: '群主所在部门',
prop: 'zoneName'
},
{
label: '群客户人数',
prop: 'zoneName'
},
{
label: '消息送达状态',
prop: 'zoneName'
},
{
label: '确认发送时间',
prop: 'createdDate',
formatter: cellValue => {
return new Date(cellValue.createdDate).toLocaleDateString().replace(/\//g, '-')
}
},
{
label: '操作',
prop: 'optionBtns',
width: '140px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableData: [
{
zoneName: 'fasd',
isRemind: 1
},
{
zoneName: 'fasd',
isRemind: 2
}
]
}
},
methods: {
handleCancel() {
this.$router.go(-1)
}
}
}
</script>
<style lang="scss" scope>
.detail-container {
margin-bottom: 84px;
padding: 20px;
background-color: #ffffff;
box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);
.search-btns {
float: right;
}
}
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
width: 100%;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
</style>
<template>
<div>
<BasicInof></BasicInof>
<div class="detail-container">
<div class="detail-modular">
<div class="title">员工详情</div>
<div class="detail-info">
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
<el-menu-item index="1">全部</el-menu-item>
<el-menu-item index="2">已发送员工</el-menu-item>
<el-menu-item index="3">未发送员工</el-menu-item>
<el-menu-item index="4">员工发送失败</el-menu-item>
</el-menu>
<div class="detail-total">共 {{ employeelist.length || 0 }} 人</div>
<div class="info-list">
<div class="info-item" v-for="item in employeelist" :key="item.id">
<img class="info-avatar" src="../../assets/logo.png" alt="" />
<div class="info-content">
<div class="info-text">
<div class="info-name">
{{ item.name }}
<span :class="[item.status == 1 ? 'unsend' : 'send']">{{ item.status == 1 ? '未' : '已' }}发送</span>
</div>
<div class="info-num">共{{ item.num }}个客户</div>
</div>
<div class="info-right">
<div v-if="item.status == 1">已提醒</div>
<el-button size="mini" type="primary">提醒</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="detail-modular">
<div class="title">客户详情</div>
<div class="detail-info">
<el-menu :default-active="customIndex" class="el-menu-demo" mode="horizontal" @select="handleCustomSelect">
<el-menu-item index="1">全部</el-menu-item>
<el-menu-item index="2">已发送员工</el-menu-item>
<el-menu-item index="3">未发送员工</el-menu-item>
<el-menu-item index="4">员工发送失败</el-menu-item>
</el-menu>
<div class="detail-total">共 {{ employeelist.length || 0 }} 人</div>
<div class="info-list">
<div class="info-item" v-for="item in employeelist" :key="item.id">
<img class="info-avatar" src="../../assets/logo.png" alt="" />
<div class="info-content info-custom">
<div class="info-text">
<div class="info-name">
{{ item.name }}
<div :class="[item.status == 1 ? 'unsend' : 'send']">{{ item.status == 1 ? '未' : '已' }}发送</div>
</div>
</div>
<div class="info-right">
<div>通过 胡悦发送</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="handleNext">确定</el-button>
<el-button type="primary" @click="handleCancel">取消</el-button>
</div>
</div>
</template>
<script>
import BasicInof from './components/basicInfo.vue'
export default {
components: {
BasicInof
},
data() {
return {
activeIndex: '1',
customIndex: '1',
employeelist: [
{
id: 1,
name: 'anadf',
status: 1,
num: 1,
url: 'dfsa'
},
{
id: 2,
name: 'anadf',
status: 2,
num: 1,
url: 'dfsa'
},
{
id: 3,
name: 'anadf',
status: 2,
num: 1,
url: 'dfsa'
},
{
id: 4,
name: 'anadf',
status: 2,
num: 1,
url: 'dfsa'
},
{
id: 5,
name: 'anadf',
status: 2,
num: 1,
url: 'dfsa'
},
{
id: 6,
name: 'anadf',
status: 2,
num: 1,
url: 'dfsa'
}
]
}
},
methods: {
handleSelect(val) {
console.log(val)
this.activeIndex = val
},
handleCustomSelect(val) {
this.customIndex = val
},
handleCancel() {
this.$router.go(-1)
}
}
}
</script>
<style lang="scss" scope>
.detail-container {
display: flex;
width: 100%;
justify-content: space-between;
margin-bottom: 84px;
.detail-modular {
width: calc(50% - 10px);
background-color: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
.title {
padding: 20px 0 17px 20px;
font-size: 16px;
color: #333;
border-bottom: 1px solid #d8d8d8;
}
.detail-info {
padding: 0 20px;
.detail-total {
padding: 31px 0 14px;
font-size: 14px;
color: #333;
line-height: 16px;
}
.info-list {
max-height: 432px;
overflow: auto;
margin-bottom: 20px;
}
.info-item {
display: flex;
align-items: center;
background-color: #f6f6ff;
border-radius: 2px;
border: 1px solid rgba(88, 80, 255, 0.8);
padding: 15px;
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.info-avatar {
width: 58px;
height: 58px;
margin-right: 20px;
}
.info-content {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
.info-text {
height: 62px;
}
.info-right {
display: flex;
align-items: center;
font-size: 16px;
color: #5850ff;
line-height: 22px;
}
.info-name {
font-size: 16px;
color: #333;
font-weight: 500;
line-height: 22px;
margin-bottom: 14px;
span {
display: inline-block;
margin-left: 10px;
font-size: 14px;
}
.send {
color: #666;
}
.unsend {
padding: 3px 10px;
background-color: #eb4e4e;
color: #fff;
border-radius: 2px;
}
div {
margin-top: 10px;
font-size: 14px;
}
}
.info-num {
font-size: 14px;
color: #666;
line-height: 20px;
}
button {
margin-left: 10px;
padding: 9px 28px;
}
}
}
}
.el-menu.el-menu--horizontal {
border-bottom: none;
}
.el-menu--horizontal > .el-menu-item.is-active {
border-bottom-color: #5850ff;
color: #5850ff;
}
}
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
width: 100%;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
</style>
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<span v-for="(i, index) in scope.scope.userList" :key="index">{{ i.name }}({{ i.tips }});</span> <span v-for="(i, index) in scope.scope.userList" :key="index">{{ i.name }}({{ i.tips }});</span>
</div> --> </div> -->
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" :disabled="scope.scope.isRemind == 1" @click="btnClick('edit', scope.scope)">提醒发送</el-button> <el-button type="text" :disabled="scope.scope.isRemind == 1" @click="btnClick('edit', 1, scope.scope)">提醒发送</el-button>
<el-button type="text" @click="btnClick('detail', scope.scope)">详情</el-button> <el-button type="text" @click="btnClick('detail', 2, scope.scope)">详情</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
<span v-for="(i, index) in scope.scope.userList" :key="index">{{ i.name }}({{ i.tips }});</span> <span v-for="(i, index) in scope.scope.userList" :key="index">{{ i.name }}({{ i.tips }});</span>
</div> --> </div> -->
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" :disabled="scope.scope.isRemind == 1" @click="btnClick('edit', scope.scope)">提醒发送</el-button> <el-button type="text" :disabled="scope.scope.isRemind == 1" @click="btnClick('edit', 2, scope.scope)">提醒发送</el-button>
<el-button type="text" @click="btnClick('detail', scope.scope)">详情</el-button> <el-button type="text" @click="btnClick('detail', 2, scope.scope)">详情</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -197,6 +197,13 @@ export default { ...@@ -197,6 +197,13 @@ export default {
this.$router.push('/customerTransform/addCustomerGroup') this.$router.push('/customerTransform/addCustomerGroup')
} }
break break
case 'detail':
if (type == 1) {
this.$router.push('/customerTransform/detailCustomer')
} else {
this.$router.push('/customerTransform/detaiCustomeGroup')
}
break
default: default:
console.log(11) console.log(11)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!