Commit 2ba565fc by 胡悦

群发修改

1 parent a67eb0de

18.6 KB | W: | H:

19.6 KB | W: | H:

src/assets/guestCustom/activity-logo.png
src/assets/guestCustom/activity-logo.png
src/assets/guestCustom/activity-logo.png
src/assets/guestCustom/activity-logo.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
label-width="120px" label-width="120px"
> >
<el-form-item label="群聊名称" prop="massName"> <el-form-item label="群聊名称" prop="massName">
<el-input v-model="basicForm.massName" placeholder="群发名称仅内部可见" maxlength="10"></el-input> <el-input v-model="basicForm.massName" placeholder="群发名称仅内部可见,且不可重复" maxlength="10"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="userList"> <el-form-item prop="userList">
<label slot="label" class="required">选择群主</label> <label slot="label" class="required">选择群主</label>
......
...@@ -230,6 +230,9 @@ export default { ...@@ -230,6 +230,9 @@ export default {
line-height: 24px; line-height: 24px;
} }
/deep/ { /deep/ {
.el-pager {
height: 30px;
}
.el-checkbox:last-of-type { .el-checkbox:last-of-type {
margin-right: 8px; margin-right: 8px;
} }
...@@ -276,7 +279,8 @@ export default { ...@@ -276,7 +279,8 @@ export default {
display: grid; display: grid;
grid-template-columns: repeat(4, 25%); grid-template-columns: repeat(4, 25%);
grid-row-gap: 10px; grid-row-gap: 10px;
height: 38vh; max-height: 35vh;
min-height: 35vh;
padding: 10px; padding: 10px;
overflow: auto; overflow: auto;
text-align: center; text-align: center;
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="statistics-li"> <div class="statistics-li">
<div class="statistics-number"> <div class="statistics-number">
<span>{{form == 'customer' ? statistic.senderCustomerCount :statistic.senderGroupCount}}</span> <span>{{form == 'customer' ? statistic.senderCustomerCount :statistic.senderGroupCount}}</span>
人 {{form == 'customer' ? '人' : '个'}}
</div> </div>
<div class="statistics-text">送达{{form == 'customer' ? '客户': '群聊'}}</div> <div class="statistics-text">送达{{form == 'customer' ? '客户': '群聊'}}</div>
</div> </div>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<div class="statistics-li"> <div class="statistics-li">
<div class="statistics-number"> <div class="statistics-number">
<span>{{form == 'customer' ?statistic.unSenderCustomerCount:statistic.unSenderGroupCount}}</span> <span>{{form == 'customer' ?statistic.unSenderCustomerCount:statistic.unSenderGroupCount}}</span>
人 {{form == 'customer' ? '人' : '个'}}
</div> </div>
<div class="statistics-text">未送达{{form == 'customer' ? '客户': '群聊'}}</div> <div class="statistics-text">未送达{{form == 'customer' ? '客户': '群聊'}}</div>
</div> </div>
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<div class="preview-content"> <div class="preview-content">
<div class="preview-time">{{ currentTime }}</div> <div class="preview-time">{{ currentTime }}</div>
<div class="preview-info" v-for="item in previewList" :key="item.id"> <div class="preview-info" v-for="item in previewList" :key="item.id">
<img class="avatar" src="@/assets/logo.png" alt /> <img class="avatar" src="@/assets/guestCustom/default-customer.png" alt />
<template v-if="item.attType == 1"> <template v-if="item.attType == 1">
<div class="preview-text text">{{ item.attContent }}</div> <div class="preview-text text">{{ item.attContent }}</div>
</template> </template>
<template v-else-if="item.attType == 7"> <template v-else-if="item.attType == 7">
<div class="preview-activity"> <div class="preview-activity">
<img class="applet-logo" src="@/assets/guestCustom/applet-logo.png" alt /> <!-- <img class="applet-logo" src="@/assets/guestCustom/applet-logo.png" alt /> -->
<div class="activity-name">{{item.attContent.marketingName}}</div> <div class="activity-name">{{item.attContent.marketingName}}</div>
<img class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt /> <img class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<div class="activity-footer"> <div class="activity-footer">
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable
:key="key"
ref="customer" ref="customer"
:getListApi="customerList" :getListApi="customerList"
:tableParams="gueastTableParams" :tableParams="gueastTableParams"
...@@ -60,6 +61,7 @@ ...@@ -60,6 +61,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable <GLTable
:key="groupKey"
ref="customerGroup" ref="customerGroup"
:getListApi="customerGroupList" :getListApi="customerGroupList"
:tableParams="gueastGroupTableParams" :tableParams="gueastGroupTableParams"
...@@ -99,7 +101,7 @@ export default { ...@@ -99,7 +101,7 @@ export default {
} }
return { return {
ATT_TYPE, ATT_TYPE,
activeIndex: '1', activeIndex: 1,
gueastTableParams: { gueastTableParams: {
listName: 'data', listName: 'data',
tableOption: false, tableOption: false,
...@@ -199,7 +201,7 @@ export default { ...@@ -199,7 +201,7 @@ export default {
line: 2 line: 2
}, },
{ {
label: '已送达群聊', label: '送达群聊',
prop: 'sendCustomerNum', prop: 'sendCustomerNum',
line: 2 line: 2
}, },
...@@ -220,7 +222,9 @@ export default { ...@@ -220,7 +222,9 @@ export default {
addHtml: 'optionBtns' addHtml: 'optionBtns'
} }
] ]
} },
key: new Date(),
groupKey: new Date()
} }
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
...@@ -232,11 +236,13 @@ export default { ...@@ -232,11 +236,13 @@ export default {
}, },
methods: { methods: {
switchMenu(val) { switchMenu(val) {
this.activeIndex = val
this.$nextTick(() => { this.$nextTick(() => {
this.activeIndex = val
if (val == 1) { if (val == 1) {
this.key = new Date()
if (this.$refs.customer) this.$refs.customer.refreshTable() if (this.$refs.customer) this.$refs.customer.refreshTable()
} else { } else {
this.groupKey = new Date()
if (this.$refs.customerGroup) this.$refs.customerGroup.refreshTable() if (this.$refs.customerGroup) this.$refs.customerGroup.refreshTable()
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!