Commit 407aaa6b by 张立顺

feat 放开早报推送时间选择

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