Commit 407aaa6b by 张立顺

feat 放开早报推送时间选择

1 parent efe281e9
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<span v-if="bulletin.label != '推送时间'">推送至群聊:</span> <span v-if="bulletin.label != '推送时间'">推送至群聊:</span>
<span v-else>:</span> <span v-else>:</span>
</div> </div>
<!-- <div v-if="bulletin.label == '推送时间'" class="group-box group-box-white"> <div v-if="bulletin.label == '推送时间'" class="group-box group-box-white">
<div class="input-box radio-box"> <div class="input-box radio-box">
<el-radio-group @change="changeRadio" v-model="pushRadio"> <el-radio-group @change="changeRadio" v-model="pushRadio">
<el-radio :label="2">次日</el-radio> <el-radio :label="2">次日</el-radio>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</div> </div>
<div class="input-box"> <div class="input-box">
<el-time-select <el-time-select
:disabled="pushRadio==2" :disabled="pushRadio == 2"
:picker-options="{ :picker-options="{
start: '00:00', start: '00:00',
step: '00:01', step: '00:01',
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
placeholder="选择时间" placeholder="选择时间"
></el-time-select> ></el-time-select>
</div> </div>
</div> --> </div>
<div class="group-box"> <div class="group-box">
<div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k"> <div class="input-box" v-for="(i, k) in groupCofListInput[bulletin.storageList]" :key="k">
<el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'" filterable clearable> <el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'" filterable clearable>
...@@ -260,8 +260,8 @@ export default { ...@@ -260,8 +260,8 @@ export default {
], ],
isImgVisible: false, isImgVisible: false,
dialogImageUrl: '', dialogImageUrl: '',
// pushTimeValue: '9:00', pushTimeValue: '9:00',
// pushRadio:2, pushRadio: 2
} }
}, },
watch: { watch: {
...@@ -281,15 +281,15 @@ export default { ...@@ -281,15 +281,15 @@ export default {
let { data, sign } = this.paramsData let { data, sign } = this.paramsData
data = JSON.parse(data) data = JSON.parse(data)
this.getMerchantList(sign) this.getMerchantList(sign)
console.log(data); console.log(data)
this.handlebattleOn(data, sign) this.handlebattleOn(data, sign)
}, },
methods: { methods: {
// changeRadio(e){ changeRadio(e) {
// if(e==2){ if (e == 2) {
// this.pushTimeValue = '9:00' this.pushTimeValue = '9:00'
// } }
// }, },
// 图片查看 // 图片查看
handlePoster(name) { handlePoster(name) {
this.isImgVisible = true this.isImgVisible = true
...@@ -419,10 +419,10 @@ export default { ...@@ -419,10 +419,10 @@ export default {
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = item.groupId.split('_R:')[0]
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
} }
// if(item.sendTime){ if (item.sendTime) {
// this.pushRadio = 1 this.pushRadio = 1
// this.pushTimeValue = item.sendTime this.pushTimeValue = item.sendTime
// } }
} }
}) })
for (let k in this.groupCofListInput) { for (let k in this.groupCofListInput) {
...@@ -591,22 +591,23 @@ export default { ...@@ -591,22 +591,23 @@ export default {
this.setectList.forEach(item => { this.setectList.forEach(item => {
params.yqMerchantIdList.push(item.yqMerchantId) params.yqMerchantIdList.push(item.yqMerchantId)
}) })
// const sendTime = this.pushTimeValue?this.pushTimeValue+':00':'' const sendTime = this.pushTimeValue ? this.pushTimeValue + ':00' : ''
// let _emptyObj = {} let _emptyObj = {}
Object.keys(this.groupCofList).map(item => { Object.keys(this.groupCofList).map(item => {
let type = this.groupToType.find(k => k.attr == item).type let type = this.groupToType.find(k => k.attr == item).type
// if(type==21&&this.pushRadio==1){//仅早报需要 if (type == 21 && this.pushRadio == 1) {
// _emptyObj.sendTime = sendTime //仅早报需要
// }else{ _emptyObj.sendTime = sendTime
// _emptyObj = {} } else {
// } _emptyObj = {}
}
if (this.groupCofList[item].length) { if (this.groupCofList[item].length) {
this.groupCofList[item].forEach(k => { this.groupCofList[item].forEach(k => {
params.groupConfigList.push({ params.groupConfigList.push({
groupId: k.groupId, groupId: k.groupId,
groupName: k.roomName, groupName: k.roomName,
groupMerchantId: this.config.merchantId, groupMerchantId: this.config.merchantId,
actionReportType: type, actionReportType: type
// ..._emptyObj // ..._emptyObj
}) })
}) })
...@@ -616,7 +617,7 @@ export default { ...@@ -616,7 +617,7 @@ export default {
groupId: this.idBefEncryption + '_R:' + k.name, groupId: this.idBefEncryption + '_R:' + k.name,
groupName: k.name, groupName: k.name,
groupMerchantId: this.config.merchantId, groupMerchantId: this.config.merchantId,
actionReportType: type, actionReportType: type
// ..._emptyObj // ..._emptyObj
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!