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 @@
label-width="120px"
>
<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 prop="userList">
<label slot="label" class="required">选择群主</label>
......
......@@ -230,6 +230,9 @@ export default {
line-height: 24px;
}
/deep/ {
.el-pager {
height: 30px;
}
.el-checkbox:last-of-type {
margin-right: 8px;
}
......@@ -276,7 +279,8 @@ export default {
display: grid;
grid-template-columns: repeat(4, 25%);
grid-row-gap: 10px;
height: 38vh;
max-height: 35vh;
min-height: 35vh;
padding: 10px;
overflow: auto;
text-align: center;
......
......@@ -50,7 +50,7 @@
<div class="statistics-li">
<div class="statistics-number">
<span>{{form == 'customer' ? statistic.senderCustomerCount :statistic.senderGroupCount}}</span>
人
{{form == 'customer' ? '人' : '个'}}
</div>
<div class="statistics-text">送达{{form == 'customer' ? '客户': '群聊'}}</div>
</div>
......@@ -66,7 +66,7 @@
<div class="statistics-li">
<div class="statistics-number">
<span>{{form == 'customer' ?statistic.unSenderCustomerCount:statistic.unSenderGroupCount}}</span>
人
{{form == 'customer' ? '人' : '个'}}
</div>
<div class="statistics-text">未送达{{form == 'customer' ? '客户': '群聊'}}</div>
</div>
......
......@@ -3,13 +3,13 @@
<div class="preview-content">
<div class="preview-time">{{ currentTime }}</div>
<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">
<div class="preview-text text">{{ item.attContent }}</div>
</template>
<template v-else-if="item.attType == 7">
<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>
<img class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<div class="activity-footer">
......
......@@ -24,6 +24,7 @@
</div>
<!-- 表格区域 开始 -->
<GLTable
:key="key"
ref="customer"
:getListApi="customerList"
:tableParams="gueastTableParams"
......@@ -60,6 +61,7 @@
</div>
<!-- 表格区域 开始 -->
<GLTable
:key="groupKey"
ref="customerGroup"
:getListApi="customerGroupList"
:tableParams="gueastGroupTableParams"
......@@ -99,7 +101,7 @@ export default {
}
return {
ATT_TYPE,
activeIndex: '1',
activeIndex: 1,
gueastTableParams: {
listName: 'data',
tableOption: false,
......@@ -199,7 +201,7 @@ export default {
line: 2
},
{
label: '已送达群聊',
label: '送达群聊',
prop: 'sendCustomerNum',
line: 2
},
......@@ -220,7 +222,9 @@ export default {
addHtml: 'optionBtns'
}
]
}
},
key: new Date(),
groupKey: new Date()
}
},
beforeRouteEnter(to, from, next) {
......@@ -232,11 +236,13 @@ export default {
},
methods: {
switchMenu(val) {
this.activeIndex = val
this.$nextTick(() => {
this.activeIndex = val
if (val == 1) {
this.key = new Date()
if (this.$refs.customer) this.$refs.customer.refreshTable()
} else {
this.groupKey = new Date()
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!