Commit 86b312d6 by 胡悦

提交群发

1 parent 8e23600b
......@@ -150,12 +150,15 @@
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
:picker-options="dateOptions"
@change="changeValue"
></el-date-picker>-
<el-time-picker
v-model="basicForm.sendDate"
size="small"
value-format="HH:mm:ss"
placeholder="选择时间"
:picker-options="timeOptions"
></el-time-picker>
</div>
</el-form-item>
......@@ -278,7 +281,17 @@ export default {
// 是否有修改筛选成员
isUpdate: true,
tagging: [],
groupNumber: ''
groupNumber: '',
dateOptions: {
disabledDate(time) {
let now = new Date()
now.setTime(now.getTime() - 3600 * 1000 * 24)
return time.getTime() < now
}
},
timeOptions: {
selectableRange: '00:00:00 - 23:59:59'
}
}
},
mounted() {
......@@ -438,6 +451,22 @@ export default {
this.groupNumber = res
this.isUpdate = false
})
},
changeValue(v) {
console.log(v, Date.now())
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
}
console.log(this.timeOptions)
} else {
this.timeOptions = {
selectableRange: '00:00:00 - 23:59:59'
}
}
}
}
}
......
......@@ -52,12 +52,15 @@
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
:picker-options="dateOptions"
@change="changeValue"
></el-date-picker>-
<el-time-picker
v-model="basicForm.sendDate"
size="small"
value-format="HH:mm:ss"
placeholder="选择时间"
:picker-options="timeOptions"
></el-time-picker>
</div>
</el-form-item>
......@@ -97,6 +100,7 @@ import Vue from 'vue'
import WelcomeWords from './components/welcomeWords.vue'
import SelectMembers from './components/selectMembers.vue'
import Preview from './components/preview.vue'
import * as dayjs from 'dayjs'
export default {
components: {
WelcomeWords,
......@@ -166,7 +170,17 @@ export default {
]
},
membersVisible: false,
key: new Date()
key: new Date(),
dateOptions: {
disabledDate(time) {
let now = new Date()
now.setTime(now.getTime() - 3600 * 1000 * 24)
return time.getTime() < now
}
},
timeOptions: {
selectableRange: '00:00:00 - 23:59:59'
}
}
},
mounted() {
......@@ -246,6 +260,22 @@ export default {
})
}
})
},
changeValue(v) {
console.log(v, Date.now())
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
}
console.log(this.timeOptions)
} else {
this.timeOptions = {
selectableRange: '00:00:00 - 23:59:59'
}
}
}
}
}
......
......@@ -185,7 +185,7 @@ export default {
}
.statistics-li {
display: inline-block;
width: 142px;
// width: 142px;
color: #424242;
font-size: 14px;
text-align: center;
......@@ -193,6 +193,7 @@ export default {
&.statistics-border {
padding-right: 35 px;
margin-right: 0;
padding-right: 36px;
border-right: 1px solid #5850ff;
}
.statistics-number {
......
......@@ -28,7 +28,7 @@
:class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未' : '已' }}发送</span>
</div>
<div class="info-num">共{{ item.customerCount }}个客户</div>
<div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div>
</div>
<div class="info-right">
<div v-if="item.remindStatus == 1">已提醒</div>
......@@ -68,6 +68,7 @@
<div class="info-name">
{{ item.customerName }}
<div
class="customer-table"
:class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未' : '已' }}送达</div>
</div>
......@@ -260,6 +261,9 @@ export default {
color: #fff;
border-radius: 2px;
}
.customer-table {
display: table;
}
div {
margin-top: 10px;
font-size: 14px;
......
......@@ -98,7 +98,7 @@
title="浏览量"
width="200"
trigger="hover"
content="购买活动商品的账号数量。"
content="进入活动页面但未购买商品的张傲数量+购买活动商品的账号数量。"
>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
......@@ -116,7 +116,7 @@
title="累计销量"
width="200"
trigger="hover"
content="购买活动商品的账号数量。"
content="购买活动商品付款金额的累加。"
>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!