Commit f00ace4a by 杨明

fixed

1 parent 7b289ef0
...@@ -75,5 +75,14 @@ const getGroupList = params => { ...@@ -75,5 +75,14 @@ const getGroupList = params => {
returnAll: true returnAll: true
}) })
} }
const activityreportWorktool = params => {
export default { getStaffList, getMerchantList, getlistDepartmentTree, getActivitylist, insertStaff, getGroupList, activityOpen } params.method = `entmicro.api.wechatcloudcontrol.activityreport.worktool.grouplist`
return http({
url: url1,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { activityreportWorktool, getStaffList, getMerchantList, getlistDepartmentTree, getActivitylist, insertStaff, getGroupList, activityOpen }
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
</div> </div>
<transition name="el-zoom-in-top" v-if="!isAutomatic"> <transition name="el-zoom-in-top" v-if="!isAutomatic">
<gl-select-menu :domEl="automaticEl" @changeStatu="hideSelect"> <gl-select-menu :domEl="automaticEl" @changeStatu="hideSelect" style="width:432px">
<el-form-item class="search-groomname"> <el-form-item class="search-groomname">
<el-input placeholder="请输入搜索关键词" v-model="filterText"></el-input> <el-input placeholder="请输入搜索关键词" v-model="filterText"></el-input>
</el-form-item> </el-form-item>
...@@ -44,7 +44,10 @@ ...@@ -44,7 +44,10 @@
<el-form-item :label="'#' + (index + 1) + bulletin.label + '>>' + ':'" class="group-item-box" :key="index"> <el-form-item :label="'#' + (index + 1) + bulletin.label + '>>' + ':'" class="group-item-box" :key="index">
<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-input v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'"></el-input> <!-- <el-input v-model="i.name" ></el-input> -->
<el-select v-model="i.name" :placeholder="'将' + bulletin.label + '推送至群聊'">
<el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option>
</el-select>
<i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput[bulletin.storageList])"></i> <i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput[bulletin.storageList])"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i> <i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i>
</div> </div>
...@@ -55,7 +58,7 @@ ...@@ -55,7 +58,7 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<GLFooter> <GLFooter class="footer-panel">
<el-button @click="handlebattleClose" size="medium">取消</el-button> <el-button @click="handlebattleClose" size="medium">取消</el-button>
<el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button> <el-button type="primary" @click="handlebattleConfirm" size="medium" :loading="loading">保存</el-button>
</GLFooter> </GLFooter>
...@@ -84,6 +87,7 @@ export default { ...@@ -84,6 +87,7 @@ export default {
}, },
data() { data() {
return { return {
selectGroupName: [],
isDialogVisible: false, isDialogVisible: false,
merchantName: '', merchantName: '',
paramsData: this.$route.query, paramsData: this.$route.query,
...@@ -264,6 +268,10 @@ export default { ...@@ -264,6 +268,10 @@ export default {
this.wechat.automaticName = data.name this.wechat.automaticName = data.name
this.wechat.staffId = data.staffId this.wechat.staffId = data.staffId
this.idBefEncryption = data.idBefEncryption this.idBefEncryption = data.idBefEncryption
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || []
this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], saReportValue: [{ name: '' }], saPerReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }] }
})
}, },
// 弹窗数据回显 // 弹窗数据回显
initswitchList(switchList) { initswitchList(switchList) {
...@@ -306,6 +314,7 @@ export default { ...@@ -306,6 +314,7 @@ export default {
this.initswitchList(data.switchList) this.initswitchList(data.switchList)
data.groupConfigList.forEach(item => { data.groupConfigList.forEach(item => {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (!groupHideAttr) return
if (item.groupId) { if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) { if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
...@@ -317,6 +326,7 @@ export default { ...@@ -317,6 +326,7 @@ export default {
roomName: item.groupName roomName: item.groupName
}) })
} else { } else {
this.idBefEncryption = item.groupId.split('_R:')[0]
groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' }) groupHideAttr && this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
} }
} }
...@@ -326,6 +336,9 @@ export default { ...@@ -326,6 +336,9 @@ export default {
this.groupCofListInput[k] = [{ name: '' }] this.groupCofListInput[k] = [{ name: '' }]
} }
} }
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || []
})
this.getGroupList(this.wechat.staffId) this.getGroupList(this.wechat.staffId)
} else { } else {
this.groupCofListInput = { this.groupCofListInput = {
...@@ -524,6 +537,16 @@ export default { ...@@ -524,6 +537,16 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.footer-panel {
margin-top: 20px;
}
.search-groomname {
width: 402px;
margin: 12px 16px 0;
/deep/.el-input {
width: 402px;
}
}
.addConfig-wrap { .addConfig-wrap {
background: #fff; background: #fff;
.header { .header {
...@@ -552,6 +575,12 @@ export default { ...@@ -552,6 +575,12 @@ export default {
.input-box { .input-box {
display: flex; display: flex;
align-items: center; align-items: center;
/deep/ {
.el-select,
.el-input {
width: 355px !important;
}
}
i { i {
cursor: pointer; cursor: pointer;
font-size: 20px; font-size: 20px;
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-21 19:07:21
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-21 20:12:35
* @FilePath: \scrm-micro-battles\src\views\bulletin\components\battle\components\select-dropdown.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<div class="el-select-dropdown el-popper group-select" :style="groupStyle"> <div class="el-select-dropdown el-popper group-select" :style="groupStyle" v-bind="$attrs">
<slot></slot> <slot></slot>
</div> </div>
</template> </template>
...@@ -21,7 +29,7 @@ export default { ...@@ -21,7 +29,7 @@ export default {
data() { data() {
return { return {
groupStyle: '', groupStyle: '',
includeData:['el-input__inner','placeholder','el-select__caret el-input__icon el-icon-arrow-up'] includeData: ['el-input__inner', 'placeholder', 'el-select__caret el-input__icon el-icon-arrow-up']
} }
}, },
mounted() { mounted() {
...@@ -65,4 +73,3 @@ export default { ...@@ -65,4 +73,3 @@ export default {
} }
} }
</style> </style>
<template> <template>
<div class="activity"> <div class="activity">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<template slot="activityStatus">
<el-select v-model="tableSearchForm.activityStatus" placeholder="请选择活动状态">
<el-option v-for="item in baseData.activityStatuList" :key="item.confId" :label="item.confName" :value="item.confId"></el-option>
</el-select>
</template>
</GLCombiForm>
<div class="flex-between title"> <div class="flex-between title">
<div class="title-text">专员列表</div> <div class="title-text">专员列表</div>
<template v-if="tableSearchForm.activityStatus == 2"> <template v-if="activeName == 'first'">
<el-button :size="size" type="primary" class="battle-set-btn" @click="battleSetHandle">批量配置专员</el-button> <el-button :size="size" type="primary" class="battle-set-btn" @click="battleSetHandle">批量配置专员</el-button>
</template> </template>
</div> </div>
...@@ -138,7 +133,9 @@ ...@@ -138,7 +133,9 @@
</transition> </transition>
</el-form-item> </el-form-item>
<el-form-item class="select-wrap" label="群名:"> <el-form-item class="select-wrap" label="群名:">
<el-input v-model="groupName" placeholder="请输入群名" @blur="importGroup"></el-input> <el-select v-model="groupName" placeholder="请选择">
<el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option>
</el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -152,8 +149,8 @@ ...@@ -152,8 +149,8 @@
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { dateFormat } from '@/utils/index' import { dateFormat } from '@/utils/index'
import SelectMember from '../battle/components/SelectMember.vue' import SelectMember from './components/SelectMember.vue'
import GlSelectMenu from '../battle/components/select-dropdown.vue' import GlSelectMenu from './components/select-dropdown.vue'
export default { export default {
components: { components: {
SelectMember, SelectMember,
...@@ -161,12 +158,14 @@ export default { ...@@ -161,12 +158,14 @@ export default {
}, },
data() { data() {
return { return {
selectGroupName: [],
groupName: '', groupName: '',
isgroup: true, isgroup: true,
isAutomatic: true, isAutomatic: true,
menuIndex: 0, menuIndex: 0,
merchantId: '', merchantId: '',
merchantName: '', merchantName: '',
activeName: 'first',
size: 'small', size: 'small',
mode: 'mid', mode: 'mid',
battleVisible: false, battleVisible: false,
...@@ -176,6 +175,16 @@ export default { ...@@ -176,6 +175,16 @@ export default {
setectEditList: [], setectEditList: [],
merchantList: [], merchantList: [],
groupList: [], groupList: [],
tabPaneList: [
{
label: '进行中',
name: 'first'
},
{
label: '已结束',
name: 'second'
}
],
searchFormData: [ searchFormData: [
{ {
label: '活动门店', label: '活动门店',
...@@ -197,16 +206,6 @@ export default { ...@@ -197,16 +206,6 @@ export default {
optionLabel: 'confName' optionLabel: 'confName'
}, },
{ {
label: '活动状态',
name: 'activityStatus',
type: 'select',
optionList: [],
addHtml: 'activityStatus',
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'activityStatuList'
},
{
label: '活动类型', label: '活动类型',
name: 'marketingType', name: 'marketingType',
type: 'select', type: 'select',
...@@ -219,8 +218,7 @@ export default { ...@@ -219,8 +218,7 @@ export default {
tableSearchForm: { tableSearchForm: {
merchantName: '', merchantName: '',
activityName: '', activityName: '',
activityType: '', activityType: ''
activityStatus: 2
}, },
// 表格 // 表格
userList: [], userList: [],
...@@ -292,10 +290,6 @@ export default { ...@@ -292,10 +290,6 @@ export default {
activityTypeList: [ activityTypeList: [
{ confId: '3', confName: '众筹' }, { confId: '3', confName: '众筹' },
{ confId: '5', confName: '膨胀金' } { confId: '5', confName: '膨胀金' }
],
activityStatuList: [
{ confId: 2, confName: '进行中' },
{ confId: 3, confName: '已结束' }
] ]
} }
} }
...@@ -317,12 +311,30 @@ export default { ...@@ -317,12 +311,30 @@ export default {
} }
}, },
watch: { watch: {
idBefEncryptionBattle(val) { activeName: {
this.importGroup() handler(val) {
if (val == 'first') {
this.tableParams.tableOption = true
this.$nextTick(() => {
this.tableParams.mutiSelectUniqueKey = 'activityId'
this.tableParams.mutiSelectName = 'activityId'
})
} else {
this.tableParams.tableOption = false
this.$nextTick(() => {
this.tableParams.mutiSelectUniqueKey = ''
this.tableParams.mutiSelectName = ''
})
}
}, },
idBefEncryptionGood(val) { immediate: true
this.importGroup()
}, },
// idBefEncryptionBattle(val) {
// this.importGroup()
// },
// idBefEncryptionGood(val) {
// this.importGroup()
// },
filterText(val) { filterText(val) {
this.$refs.tree.filter(val) this.$refs.tree.filter(val)
}, },
...@@ -331,6 +343,15 @@ export default { ...@@ -331,6 +343,15 @@ export default {
}, },
roomName(val) { roomName(val) {
this.filterRoomName(val) this.filterRoomName(val)
},
groupName(val) {
if (this.wechat.roomName) return
if (this.wechat.battleStaffName) {
this.wechat.battleGroupId = this.idBefEncryptionBattle + '_R:' + val
}
if (this.wechat.goodStaffName) {
this.wechat.goodGroupId = this.idBefEncryptionGood + '_R:' + val
}
} }
}, },
methods: { methods: {
...@@ -401,14 +422,15 @@ export default { ...@@ -401,14 +422,15 @@ export default {
}) })
}, },
handleNodeClick(data) { handleNodeClick(data) {
this.setSendName(data.name, data.staffId)
// this.wechat.roomName = '' // this.wechat.roomName = ''
if (this.menuIndex == 1) { if (this.menuIndex == 1) {
this.idBefEncryptionBattle = data.idBefEncryption this.idBefEncryptionBattle = data.idBefEncryption
} }
if (this.menuIndex == 2) { if (this.menuIndex == 2) {
this.idBefEncryptionGood = data.idBefEncryption this.idBefEncryptionGood = data.idBefEncryption
this.groupName = ''
} }
this.setSendName(data.name, data.staffId)
this.hideSelect() this.hideSelect()
}, },
setSendName(name, staffId, isClear, i) { setSendName(name, staffId, isClear, i) {
...@@ -420,8 +442,10 @@ export default { ...@@ -420,8 +442,10 @@ export default {
if (this.menuIndex == 2 || i == 2) { if (this.menuIndex == 2 || i == 2) {
if (staffId == this.wechat.goodStaffId && staffId) return if (staffId == this.wechat.goodStaffId && staffId) return
Object.assign(this.wechat, { goodStaffName: name, goodStaffId: staffId }) Object.assign(this.wechat, { goodStaffName: name, goodStaffId: staffId })
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryptionGood }).then(res => {
this.selectGroupName = res.data.result || []
})
} }
console.log(this.wechat)
if (isClear && !this.wechat.battleStaffName && !this.wechat.goodStaffName) { if (isClear && !this.wechat.battleStaffName && !this.wechat.goodStaffName) {
this.wechat.roomName = '' this.wechat.roomName = ''
this.groupList = [] this.groupList = []
...@@ -448,15 +472,15 @@ export default { ...@@ -448,15 +472,15 @@ export default {
} }
// this.wechat.groupId = data.roomChatId // this.wechat.groupId = data.roomChatId
}, },
importGroup() { // importGroup() {
if (this.wechat.roomName) return // if (this.wechat.roomName) return
if (this.wechat.battleStaffName) { // if (this.wechat.battleStaffName) {
this.wechat.battleGroupId = this.idBefEncryptionBattle + '_R:' + this.groupName // this.wechat.battleGroupId = this.idBefEncryptionBattle + '_R:' + this.groupName
} // }
if (this.wechat.goodStaffName) { // if (this.wechat.goodStaffName) {
this.wechat.goodGroupId = this.idBefEncryptionGood + '_R:' + this.groupName // this.wechat.goodGroupId = this.idBefEncryptionGood + '_R:' + this.groupName
} // }
}, // },
openMenu(e) { openMenu(e) {
if (e == this.menuIndex) return (this.menuIndex = 0) if (e == this.menuIndex) return (this.menuIndex = 0)
this.menuIndex = e this.menuIndex = e
...@@ -551,7 +575,7 @@ export default { ...@@ -551,7 +575,7 @@ export default {
// this.$refs.selectMember.$refs.tree.setCheckedKeys(this.ids) // this.$refs.selectMember.$refs.tree.setCheckedKeys(this.ids)
// } // }
}, },
handlebattleConfirm() { async handlebattleConfirm() {
if (this.userList.length == 0) { if (this.userList.length == 0) {
this.$message({ this.$message({
message: '请选择专员', message: '请选择专员',
...@@ -607,6 +631,7 @@ export default { ...@@ -607,6 +631,7 @@ export default {
if (res.data) { if (res.data) {
this.battleVisible = false this.battleVisible = false
this.handleSearch() this.handleSearch()
this.activeName = 'first'
this.clearData() this.clearData()
} }
}) })
...@@ -658,7 +683,7 @@ export default { ...@@ -658,7 +683,7 @@ export default {
roomName: '', roomName: '',
autoGroupMerchantId autoGroupMerchantId
} }
const groupId = battleGroupId || goodGroupId const groupId = battleGroupId || goodGroupId || ''
if (groupId.split('_R:')[1] == autoGroupName) { if (groupId.split('_R:')[1] == autoGroupName) {
this.groupName = autoGroupName this.groupName = autoGroupName
this.idBefEncryptionBattle = battleGroupId.split('_R:')[0] this.idBefEncryptionBattle = battleGroupId.split('_R:')[0]
...@@ -666,7 +691,9 @@ export default { ...@@ -666,7 +691,9 @@ export default {
} else { } else {
this.wechat.roomName = autoGroupName this.wechat.roomName = autoGroupName
} }
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryptionGood }).then(res => {
this.selectGroupName = res.data.result || []
})
this.getGroupList(this.wechat.staffId) this.getGroupList(this.wechat.staffId)
}) })
}, },
...@@ -693,6 +720,7 @@ export default { ...@@ -693,6 +720,7 @@ export default {
let params = { let params = {
...this.tableSearchForm ...this.tableSearchForm
} }
this.activeName == 'first' ? (params.activityStatus = 2) : (params.activityStatus = 3)
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
...@@ -710,7 +738,7 @@ export default { ...@@ -710,7 +738,7 @@ export default {
}, },
async getDepartmentTree() { async getDepartmentTree() {
// let params = { addChildrensFlag: true, queryMerchantId: this.config.merchantId,loginStatus:1 } // let params = { addChildrensFlag: true, queryMerchantId: this.config.merchantId,loginStatus:1 }
let params = { addChildrensFlag: true, queryMerchantId: this.$merchantId, loginStatus: 1 } let params = { addChildrensFlag: true, queryMerchantId: this.$merchantId, loginStatus: 1 } //this.$merchantId
let data = await this.$apis.battle.getlistDepartmentTree(params) let data = await this.$apis.battle.getlistDepartmentTree(params)
this.ids = [] this.ids = []
this.automaticData = data this.automaticData = data
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable"> <GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
<div slot="activityTime" slot-scope="scope">{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div> <div slot="activityTime" slot-scope="scope">{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div>
<div slot="content" slot-scope="scope"> <div slot="content" slot-scope="scope">
<div v-for="(item,index) in formatterContent(scope.scope)" :key="index">{{item}}</div> <div v-for="(item, index) in formatterContent(scope.scope)" :key="index">{{ item }}</div>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" v-if="!scope.scope.staffId" @click="handlebattleOn(scope.scope)">配置</el-button> <el-button type="text" v-if="!scope.scope.staffId" @click="handlebattleOn(scope.scope)">配置</el-button>
...@@ -584,15 +584,21 @@ export default { ...@@ -584,15 +584,21 @@ export default {
}, },
methods: { methods: {
formatterContent(cellValue) { formatterContent(cellValue) {
let typeToTxt = new Map([[5,'#1.SA个人喜报>>'],[4, '#2.SA喜报>>'],[7, '#3.文字喜报>>'],[2, '#4.早报>>'],[6, '#5.客户进度消息>>'],[ 3, '#6.补单通知>>']]) let typeToTxt = new Map([
[5, '#1.SA个人喜报>>'],
[4, '#2.SA喜报>>'],
[7, '#3.文字喜报>>'],
[2, '#4.早报>>'],
[6, '#5.客户进度消息>>'],
[3, '#6.补单通知>>']
])
let txt = '' let txt = ''
cellValue.groupConfigList?.forEach(item => { cellValue.groupConfigList?.forEach(item => {
if (item.groupId&&typeToTxt.get(item.actionReportType)) { if (item.groupId && typeToTxt.get(item.actionReportType)) {
typeToTxt.set(item.actionReportType,item.groupName?typeToTxt.get(item.actionReportType) + `【${item.groupName}】`:'') typeToTxt.set(item.actionReportType, item.groupName ? typeToTxt.get(item.actionReportType) + `【${item.groupName}】` : '')
} }
}) })
txt = [...typeToTxt.values()].filter(item=>item.includes('【')) txt = [...typeToTxt.values()].filter(item => item.includes('【'))
return txt return txt
}, },
// 图片查看, // 图片查看,
...@@ -1159,7 +1165,7 @@ export default { ...@@ -1159,7 +1165,7 @@ export default {
} }
} }
.search-groomname { .search-groomname {
width: 252px; width: 400px;
margin: 12px 16px 0; margin: 12px 16px 0;
/deep/.el-input { /deep/.el-input {
width: 252px; width: 252px;
......
...@@ -10,99 +10,46 @@ ...@@ -10,99 +10,46 @@
class="battle-set-btn" class="battle-set-btn"
@click="battleSetHandle">批量配置专员</el-button> --> @click="battleSetHandle">批量配置专员</el-button> -->
</div> </div>
<GLCombiForm ref="showSearch" <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
:rowNumber="1" <GLTable ref="battleRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
:formObj="searchForm" <div slot="activityTime" slot-scope="scope">{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div>
:formData="searchFormData" <div class="table-btns" slot="auth-button" slot-scope="scope">
@handleOk="handleSearch" <el-button type="text" v-if="!scope.scope.staffId" @click="handlebattleOn(scope.scope)">配置</el-button>
@handleRest="handleReset"></GLCombiForm> <el-button type="text" v-else @click="handlebattleOn(scope.scope, 'edit')">编辑</el-button>
<GLTable ref="battleRef"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="searchForm"
:tableParams="tableParams"
:pageConf="pageConf"
@setTableFinishFun="setTableFinishFun"
@selectionTable="selectionTable">
<div slot="activityTime"
slot-scope="scope">
{{ dateFormatFun(scope.scope.startTime) }}-{{ dateFormatFun(scope.scope.endTime) }}</div>
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<el-button type="text"
v-if="!scope.scope.staffId"
@click="handlebattleOn(scope.scope)">配置</el-button>
<el-button type="text"
v-else
@click="handlebattleOn(scope.scope, 'edit')">编辑</el-button>
</div> </div>
</GLTable> </GLTable>
</div> </div>
<GLDialog :mode="mode" <GLDialog :mode="mode" class="battle-dialog" title="配置专员" @onOk="handlebattleConfirm" @onCancel="handlebattleClose" :visible.sync="battleVisible">
class="battle-dialog"
title="配置专员"
@onOk="handlebattleConfirm"
@onCancel="handlebattleClose"
:visible.sync="battleVisible">
<div class="gl-form-page gl-form-min"> <div class="gl-form-page gl-form-min">
<el-form :model="wechat" <el-form :model="wechat" ref="form" label-width="230px" :rules="rules">
ref="form"
label-width="230px"
:rules="rules">
<el-form-item label="所属企业:"> <el-form-item label="所属企业:">
<el-select v-model="config.merchantId" <el-select v-model="config.merchantId" placeholder="请选择" @change="handleMerchatChange">
placeholder="请选择" <el-option v-for="item in merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
@change="handleMerchatChange">
<el-option v-for="item in merchantList"
:key="item.merchantId"
:label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- 推送人 --> <!-- 推送人 -->
<el-form-item class="select-wrap" <el-form-item class="select-wrap" label="推送人:" prop="staffId">
label="推送人:"
prop="staffId">
<div class="common el-form-item__content"> <div class="common el-form-item__content">
<div class="el-input" <div class="el-input" ref="automaticRef">
ref="automaticRef"> <div class="el-input__inner" @click="openAutomatic">
<div class="el-input__inner" <span v-if="wechat.automaticName == ''" class="placeholder">选择成员</span>
@click="openAutomatic">
<span v-if="wechat.automaticName == ''"
class="placeholder">选择成员</span>
{{ wechat.automaticName }} {{ wechat.automaticName }}
</div> </div>
<span class="el-input__suffix" <span class="el-input__suffix" @click="openAutomatic">
@click="openAutomatic"> <span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span>
<span class="el-input__suffix-inner"><i
:class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"></i></span>
</span> </span>
</div> </div>
</div> </div>
<transition name="el-zoom-in-top" <transition name="el-zoom-in-top" v-if="!isAutomatic">
v-if="!isAutomatic"> <gl-select-menu :domEl="automaticEl" @changeStatu="hideSelect">
<gl-select-menu :domEl="automaticEl"
@changeStatu="hideSelect">
<el-form-item class="search-groomname"> <el-form-item class="search-groomname">
<el-input placeholder="请输入搜索关键词" <el-input placeholder="请输入搜索关键词" v-model="filterText"></el-input>
v-model="filterText"></el-input>
</el-form-item> </el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap"> <div class="el-select-dropdown__wrap el-scrollbar__wrap">
<template v-if="automaticData.length > 0"> <template v-if="automaticData.length > 0">
<el-tree class="filter-tree" <el-tree class="filter-tree" :data="automaticData" node-key="id" :default-expanded-keys="expandedKeys" :props="defaultProps" default-expand-all :filter-node-method="filterNode" ref="tree" @node-click="handleNodeClick"></el-tree>
:data="automaticData"
node-key="id"
:default-expanded-keys="expandedKeys"
:props="defaultProps"
default-expand-all
:filter-node-method="filterNode"
ref="tree"
@node-click="handleNodeClick"></el-tree>
</template> </template>
<div class="empty" <div class="empty" v-else>暂无数据</div>
v-else>暂无数据</div>
</div> </div>
</gl-select-menu> </gl-select-menu>
</transition> </transition>
...@@ -111,75 +58,51 @@ ...@@ -111,75 +58,51 @@
<el-form-item class="select-wrap"> <el-form-item class="select-wrap">
<div slot="label"> <div slot="label">
将 收款喜报 将 收款喜报
<img class="icon-eye" <img class="icon-eye" @click="handlePoster('xiReport_qy')" src="@/assets/icon-eye.png" />
@click="handlePoster('xiReport_qy')"
src="@/assets/icon-eye.png" />
:推送至群聊: :推送至群聊:
</div> </div>
<div class="common el-form-item__content"> <div class="common el-form-item__content">
<div class="el-input" <div class="el-input" ref="groupXiRef">
ref="groupXiRef"> <div class="el-input__inner" @click="openGroup('xiReport')">
<div class="el-input__inner"
@click="openGroup('xiReport')">
<span class="placeholder">请选择(可多选)</span> <span class="placeholder">请选择(可多选)</span>
</div> </div>
<span class="el-input__suffix" <span class="el-input__suffix" @click="openGroup('xiReport')">
@click="openGroup('xiReport')"> <span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.xiReport ? 'is-reverse' : '']"></i></span>
<span class="el-input__suffix-inner"><i
:class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.xiReport ? 'is-reverse' : '']"></i></span>
</span> </span>
</div> </div>
</div> </div>
<transition name="el-zoom-in-top" <transition name="el-zoom-in-top" v-if="!groupHideObj.xiReport">
v-if="!groupHideObj.xiReport"> <gl-select-menu :domEl="domXiEl" @changeStatu="hideSelect">
<gl-select-menu :domEl="domXiEl"
@changeStatu="hideSelect">
<el-form-item class="search-groomname"> <el-form-item class="search-groomname">
<el-input placeholder="请输入搜索关键词" <el-input placeholder="请输入搜索关键词" prefix-icon="el-icon-search" v-model="roomName"></el-input>
prefix-icon="el-icon-search"
v-model="roomName"></el-input>
</el-form-item> </el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap"> <div class="el-select-dropdown__wrap el-scrollbar__wrap">
<ul class="el-scrollbar__view el-select-dropdown__list"> <ul class="el-scrollbar__view el-select-dropdown__list">
<template v-if="groupList.length > 0"> <template v-if="groupList.length > 0">
<li v-for="(k, kIdx) in roomName == '' ? groupList : stageList" <li v-for="(k, kIdx) in roomName == '' ? groupList : stageList" class="el-select-dropdown__item" :key="kIdx" @click="e => selectGroup(e, k, 'xiReport')">
class="el-select-dropdown__item" <span :class="[groupCofList.xiReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']">{{ k.roomName }}</span>
:key="kIdx"
@click="e => selectGroup(e, k, 'xiReport')">
<span
:class="[groupCofList.xiReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']">{{ k.roomName }}</span>
</li> </li>
</template> </template>
<div class="empty" <div class="empty" v-else>暂无数据</div>
v-else>暂无数据</div>
</ul> </ul>
</div> </div>
</gl-select-menu> </gl-select-menu>
</transition> </transition>
<div class="group-list-box"> <div class="group-list-box">
<div class="list-tag" <div class="list-tag" v-for="(k, kIdx) in groupCofList.xiReport" :key="kIdx">
v-for="(k, kIdx) in groupCofList.xiReport"
:key="kIdx">
<span class="tag-txt">{{ k.roomName }}</span> <span class="tag-txt">{{ k.roomName }}</span>
<img class="icon-close" <img class="icon-close" @click="handleGroupRemove(kIdx, 'xiReport')" src="@/assets/icon-close.png" />
@click="handleGroupRemove(kIdx, 'xiReport')"
src="@/assets/icon-close.png" />
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:"> <el-form-item label="手动选择群名:">
<div class="group-box"> <div class="group-box">
<div class="input-box" <div class="input-box" v-for="(i, k) in groupCofListInput.xiReportValue" :key="k">
v-for="(i, k) in groupCofListInput.xiReportValue" <el-select v-model="i.name" placeholder="请选择">
:key="k"> <el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option>
<el-input v-model="i.name" </el-select>
placeholder="将收款喜报推送至群聊"></el-input> <i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.xiReportValue)"></i>
<i class="el-icon-circle-plus" <i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.xiReportValue, k)"></i>
v-if="k == 0"
@click="addGroup(groupCofListInput.xiReportValue)"></i>
<i class="el-icon-remove"
v-else
@click="delGroup(groupCofListInput.xiReportValue, k)"></i>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
...@@ -187,75 +110,51 @@ ...@@ -187,75 +110,51 @@
<el-form-item class="select-wrap"> <el-form-item class="select-wrap">
<div slot="label"> <div slot="label">
将 战报 将 战报
<img class="icon-eye" <img class="icon-eye" @click="handlePoster('zhanReport_qy')" src="@/assets/icon-eye.png" />
@click="handlePoster('zhanReport_qy')"
src="@/assets/icon-eye.png" />
:推送至群聊: :推送至群聊:
</div> </div>
<div class="common el-form-item__content"> <div class="common el-form-item__content">
<div class="el-input" <div class="el-input" ref="groupZhanRef">
ref="groupZhanRef"> <div class="el-input__inner" @click="openGroup('zhanReport')">
<div class="el-input__inner"
@click="openGroup('zhanReport')">
<span class="placeholder">请选择(可多选)</span> <span class="placeholder">请选择(可多选)</span>
</div> </div>
<span class="el-input__suffix" <span class="el-input__suffix" @click="openGroup('zhanReport')">
@click="openGroup('zhanReport')"> <span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.zhanReport ? 'is-reverse' : '']"></i></span>
<span class="el-input__suffix-inner"><i
:class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.zhanReport ? 'is-reverse' : '']"></i></span>
</span> </span>
</div> </div>
</div> </div>
<transition name="el-zoom-in-top" <transition name="el-zoom-in-top" v-if="!groupHideObj.zhanReport">
v-if="!groupHideObj.zhanReport"> <gl-select-menu :domEl="domZhanEl" @changeStatu="hideSelect">
<gl-select-menu :domEl="domZhanEl"
@changeStatu="hideSelect">
<el-form-item class="search-groomname"> <el-form-item class="search-groomname">
<el-input placeholder="请输入搜索关键词" <el-input placeholder="请输入搜索关键词" prefix-icon="el-icon-search" v-model="roomName"></el-input>
prefix-icon="el-icon-search"
v-model="roomName"></el-input>
</el-form-item> </el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap"> <div class="el-select-dropdown__wrap el-scrollbar__wrap">
<ul class="el-scrollbar__view el-select-dropdown__list"> <ul class="el-scrollbar__view el-select-dropdown__list">
<template v-if="groupList.length > 0"> <template v-if="groupList.length > 0">
<li v-for="(k, kIdx) in roomName == '' ? groupList : stageList" <li v-for="(k, kIdx) in roomName == '' ? groupList : stageList" class="el-select-dropdown__item" :key="kIdx" @click="e => selectGroup(e, k, 'zhanReport')">
class="el-select-dropdown__item" <span :class="[groupCofList.zhanReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']">{{ k.roomName }}</span>
:key="kIdx"
@click="e => selectGroup(e, k, 'zhanReport')">
<span
:class="[groupCofList.zhanReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']">{{ k.roomName }}</span>
</li> </li>
</template> </template>
<div class="empty" <div class="empty" v-else>暂无数据</div>
v-else>暂无数据</div>
</ul> </ul>
</div> </div>
</gl-select-menu> </gl-select-menu>
</transition> </transition>
<div class="group-list-box"> <div class="group-list-box">
<div class="list-tag" <div class="list-tag" v-for="(k, kIdx) in groupCofList.zhanReport" :key="kIdx">
v-for="(k, kIdx) in groupCofList.zhanReport"
:key="kIdx">
<span class="tag-txt">{{ k.roomName }}</span> <span class="tag-txt">{{ k.roomName }}</span>
<img class="icon-close" <img class="icon-close" @click="handleGroupRemove(kIdx, 'zhanReport')" src="@/assets/icon-close.png" />
@click="handleGroupRemove(kIdx, 'zhanReport')"
src="@/assets/icon-close.png" />
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:"> <el-form-item label="手动选择群名:">
<div class="group-box"> <div class="group-box">
<div class="input-box" <div class="input-box" v-for="(i, k) in groupCofListInput.zhanReportValue" :key="k">
v-for="(i, k) in groupCofListInput.zhanReportValue" <el-select v-model="i.name" placeholder="请选择">
:key="k"> <el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option>
<el-input v-model="i.name" </el-select>
placeholder="将战报推送至群聊"></el-input> <i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.zhanReportValue)"></i>
<i class="el-icon-circle-plus" <i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.zhanReportValue, k)"></i>
v-if="k == 0"
@click="addGroup(groupCofListInput.zhanReportValue)"></i>
<i class="el-icon-remove"
v-else
@click="delGroup(groupCofListInput.zhanReportValue, k)"></i>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
...@@ -263,75 +162,51 @@ ...@@ -263,75 +162,51 @@
<el-form-item class="select-wrap"> <el-form-item class="select-wrap">
<div slot="label"> <div slot="label">
将 服务商战报 将 服务商战报
<img class="icon-eye" <img class="icon-eye" @click="handlePoster('zhanServerReport_qy')" src="@/assets/icon-eye.png" />
@click="handlePoster('zhanServerReport_qy')"
src="@/assets/icon-eye.png" />
:推送至群聊: :推送至群聊:
</div> </div>
<div class="common el-form-item__content"> <div class="common el-form-item__content">
<div class="el-input" <div class="el-input" ref="groupZhanServerRef">
ref="groupZhanServerRef"> <div class="el-input__inner" @click="openGroup('zhanServerReport')">
<div class="el-input__inner"
@click="openGroup('zhanServerReport')">
<span class="placeholder">请选择(可多选)</span> <span class="placeholder">请选择(可多选)</span>
</div> </div>
<span class="el-input__suffix" <span class="el-input__suffix" @click="openGroup('zhanServerReport')">
@click="openGroup('zhanServerReport')"> <span class="el-input__suffix-inner"><i :class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.zhanServerReport ? 'is-reverse' : '']"></i></span>
<span class="el-input__suffix-inner"><i
:class="['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.zhanServerReport ? 'is-reverse' : '']"></i></span>
</span> </span>
</div> </div>
</div> </div>
<transition name="el-zoom-in-top" <transition name="el-zoom-in-top" v-if="!groupHideObj.zhanServerReport">
v-if="!groupHideObj.zhanServerReport"> <gl-select-menu :domEl="domZhanServerEl" @changeStatu="hideSelect">
<gl-select-menu :domEl="domZhanServerEl"
@changeStatu="hideSelect">
<el-form-item class="search-groomname"> <el-form-item class="search-groomname">
<el-input placeholder="请输入搜索关键词" <el-input placeholder="请输入搜索关键词" prefix-icon="el-icon-search" v-model="roomName"></el-input>
prefix-icon="el-icon-search"
v-model="roomName"></el-input>
</el-form-item> </el-form-item>
<div class="el-select-dropdown__wrap el-scrollbar__wrap"> <div class="el-select-dropdown__wrap el-scrollbar__wrap">
<ul class="el-scrollbar__view el-select-dropdown__list"> <ul class="el-scrollbar__view el-select-dropdown__list">
<template v-if="groupList.length > 0"> <template v-if="groupList.length > 0">
<li v-for="(k, kIdx) in roomName == '' ? groupList : stageList" <li v-for="(k, kIdx) in roomName == '' ? groupList : stageList" class="el-select-dropdown__item" :key="kIdx" @click="e => selectGroup(e, k, 'zhanServerReport')">
class="el-select-dropdown__item" <span :class="[groupCofList.zhanServerReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']">{{ k.roomName }}</span>
:key="kIdx"
@click="e => selectGroup(e, k, 'zhanServerReport')">
<span
:class="[groupCofList.zhanServerReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']">{{ k.roomName }}</span>
</li> </li>
</template> </template>
<div class="empty" <div class="empty" v-else>暂无数据</div>
v-else>暂无数据</div>
</ul> </ul>
</div> </div>
</gl-select-menu> </gl-select-menu>
</transition> </transition>
<div class="group-list-box"> <div class="group-list-box">
<div class="list-tag" <div class="list-tag" v-for="(k, kIdx) in groupCofList.zhanServerReport" :key="kIdx">
v-for="(k, kIdx) in groupCofList.zhanServerReport"
:key="kIdx">
<span class="tag-txt">{{ k.roomName }}</span> <span class="tag-txt">{{ k.roomName }}</span>
<img class="icon-close" <img class="icon-close" @click="handleGroupRemove(kIdx, 'zhanServerReport')" src="@/assets/icon-close.png" />
@click="handleGroupRemove(kIdx, 'zhanServerReport')"
src="@/assets/icon-close.png" />
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:"> <el-form-item label="手动选择群名:">
<div class="group-box"> <div class="group-box">
<div class="input-box" <div class="input-box" v-for="(i, k) in groupCofListInput.zhanServerReportValue" :key="k">
v-for="(i, k) in groupCofListInput.zhanServerReportValue" <el-select v-model="i.name" placeholder="请选择">
:key="k"> <el-option v-for="item in selectGroupName" :key="item.groupName" :label="item.groupName" :value="item.groupName"></el-option>
<el-input v-model="i.name" </el-select>
placeholder="将服务商战报推送至群聊"></el-input> <i class="el-icon-circle-plus" v-if="k == 0" @click="addGroup(groupCofListInput.zhanServerReportValue)"></i>
<i class="el-icon-circle-plus" <i class="el-icon-remove" v-else @click="delGroup(groupCofListInput.zhanServerReportValue, k)"></i>
v-if="k == 0"
@click="addGroup(groupCofListInput.zhanServerReportValue)"></i>
<i class="el-icon-remove"
v-else
@click="delGroup(groupCofListInput.zhanServerReportValue, k)"></i>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
...@@ -395,7 +270,7 @@ ...@@ -395,7 +270,7 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:"> <el-form-item label="手动选择群名:">
<div class="group-box"> <div class="group-box">
<div class="input-box" <div class="input-box"
v-for="(i, k) in groupCofListInput.orderReportValue" v-for="(i, k) in groupCofListInput.orderReportValue"
...@@ -471,7 +346,7 @@ ...@@ -471,7 +346,7 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:"> <el-form-item label="手动选择群名:">
<div class="group-box"> <div class="group-box">
<div class="input-box" <div class="input-box"
v-for="(i, k) in groupCofListInput.saReportValue" v-for="(i, k) in groupCofListInput.saReportValue"
...@@ -547,7 +422,7 @@ ...@@ -547,7 +422,7 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:"> <el-form-item label="手动选择群名:">
<div class="group-box"> <div class="group-box">
<div class="input-box" <div class="input-box"
v-for="(i, k) in groupCofListInput.saPerReportValue" v-for="(i, k) in groupCofListInput.saPerReportValue"
...@@ -563,7 +438,6 @@ ...@@ -563,7 +438,6 @@
</div> </div>
</div> </div>
</el-form-item> --> </el-form-item> -->
<!-- 客户进度消息 - 关联群 --> <!-- 客户进度消息 - 关联群 -->
<!-- <el-form-item class="select-wrap"> <!-- <el-form-item class="select-wrap">
<div slot="label"> <div slot="label">
...@@ -621,7 +495,7 @@ ...@@ -621,7 +495,7 @@
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="手动输入群名:"> <el-form-item label="手动选择群名:">
<div class="group-box"> <div class="group-box">
<div class="input-box" <div class="input-box"
v-for="(i, k) in groupCofListInput.scheduleReportValue" v-for="(i, k) in groupCofListInput.scheduleReportValue"
...@@ -641,19 +515,11 @@ ...@@ -641,19 +515,11 @@
</div> </div>
</GLDialog> </GLDialog>
<!-- 查看 --> <!-- 查看 -->
<GLDialog v-if="isImgVisible" <GLDialog v-if="isImgVisible" title="查看" mode="mid" :visible.sync="isImgVisible" class="dialog-look" :hasFooter="false">
title="查看" <img width="50%" :src="require(`@/assets/${dialogImageUrl}.png`)" alt="" />
mode="mid"
:visible.sync="isImgVisible"
class="dialog-look"
:hasFooter="false">
<img width="50%"
:src="require(`@/assets/${dialogImageUrl}.png`)"
alt="" />
</GLDialog> </GLDialog>
</div> </div>
</template> </template>
<script> <script>
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { dateFormat } from '@/utils/index' import { dateFormat } from '@/utils/index'
...@@ -664,6 +530,7 @@ export default { ...@@ -664,6 +530,7 @@ export default {
}, },
data() { data() {
return { return {
selectGroupName: [],
// 推送至群聊,下拉框是否隐藏 // 推送至群聊,下拉框是否隐藏
groupHideObj: { groupHideObj: {
xiReport: true, xiReport: true,
...@@ -720,7 +587,7 @@ export default { ...@@ -720,7 +587,7 @@ export default {
{ {
attr: 'zhanServerReport', attr: 'zhanServerReport',
type: 22 type: 22
}, }
], ],
// 查看大图 // 查看大图
isImgVisible: false, isImgVisible: false,
...@@ -833,7 +700,6 @@ export default { ...@@ -833,7 +700,6 @@ export default {
// 5: '(推SA个人喜报)', // 5: '(推SA个人喜报)',
// 6: '(推客户进度消息)', // 6: '(推客户进度消息)',
22: '(推服务商战报)' 22: '(推服务商战报)'
} }
let txt = '' let txt = ''
cellValue.groupConfigList?.forEach(item => { cellValue.groupConfigList?.forEach(item => {
...@@ -873,7 +739,6 @@ export default { ...@@ -873,7 +739,6 @@ export default {
} }
} }
}, },
mounted() { mounted() {
this.getMerchantList() this.getMerchantList()
// this.merchantList = this.$saasOrder?.merchantList || [] // this.merchantList = this.$saasOrder?.merchantList || []
...@@ -904,7 +769,7 @@ export default { ...@@ -904,7 +769,7 @@ export default {
// }, // },
domZhanServerEl() { domZhanServerEl() {
return this.$refs.groupZhanServerRef return this.$refs.groupZhanServerRef
}, }
}, },
watch: { watch: {
filterText(val) { filterText(val) {
...@@ -1002,6 +867,14 @@ export default { ...@@ -1002,6 +867,14 @@ export default {
this.wechat.staffId = data.staffId this.wechat.staffId = data.staffId
this.idBefEncryption = data.idBefEncryption this.idBefEncryption = data.idBefEncryption
this.getGroupList(this.wechat.staffId, true) this.getGroupList(this.wechat.staffId, true)
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || []
this.groupCofListInput = {
xiReportValue: [{ name: '' }],
zhanReportValue: [{ name: '' }],
zhanServerReportValue: [{ name: '' }]
}
})
}, },
hideSelect() { hideSelect() {
// this.isgroup = true // this.isgroup = true
...@@ -1108,7 +981,7 @@ export default { ...@@ -1108,7 +981,7 @@ export default {
handlestaffbattleClose() { handlestaffbattleClose() {
this.battlestaffVisible = false this.battlestaffVisible = false
}, },
handlebattleConfirm() { async handlebattleConfirm() {
if (!this.wechat.staffId) { if (!this.wechat.staffId) {
this.$message({ this.$message({
message: '请选择推送人', message: '请选择推送人',
...@@ -1145,7 +1018,6 @@ export default { ...@@ -1145,7 +1018,6 @@ export default {
merchantId: this.setectList[0]?.merchantId, merchantId: this.setectList[0]?.merchantId,
scene: 0 scene: 0
} }
this.setectList.forEach(item => { this.setectList.forEach(item => {
params.yqMerchantIdList.push(item.yqMerchantId) params.yqMerchantIdList.push(item.yqMerchantId)
}) })
...@@ -1173,7 +1045,6 @@ export default { ...@@ -1173,7 +1045,6 @@ export default {
} }
}) })
console.log(params, 'params---') console.log(params, 'params---')
this.$apis.saasOrder.updateYqConfig(params).then(res => { this.$apis.saasOrder.updateYqConfig(params).then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '配置成功' : res.message, message: res.code == '0' ? '配置成功' : res.message,
...@@ -1190,7 +1061,7 @@ export default { ...@@ -1190,7 +1061,7 @@ export default {
this.battleVisible = false this.battleVisible = false
this.clearData() this.clearData()
}, },
handleDetails() { }, handleDetails() {},
addGroup(group) { addGroup(group) {
group.push({ name: '' }) group.push({ name: '' })
}, },
...@@ -1231,8 +1102,14 @@ export default { ...@@ -1231,8 +1102,14 @@ export default {
// this.wechat.roomName = data.groupName // this.wechat.roomName = data.groupName
this.config.merchantId = data.enterpriseMerchantId this.config.merchantId = data.enterpriseMerchantId
this.config.merchantName = data.enterpriseMerchantName this.config.merchantName = data.enterpriseMerchantName
data.groupConfigList.forEach(item => { const groupConfigList = data.groupConfigList
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType).attr groupConfigList &&
groupConfigList.forEach(item => {
console.log(item, '999999')
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (!groupHideAttr) {
return
}
if (item.groupId) { if (item.groupId) {
if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) { if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName }) this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
...@@ -1243,6 +1120,7 @@ export default { ...@@ -1243,6 +1120,7 @@ export default {
roomName: item.groupName roomName: item.groupName
}) })
} else { } else {
this.idBefEncryption = item.groupId.split('_R:')[0]
this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' }) this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
} }
} }
...@@ -1252,7 +1130,9 @@ export default { ...@@ -1252,7 +1130,9 @@ export default {
this.groupCofListInput[k] = [{ name: '' }] this.groupCofListInput[k] = [{ name: '' }]
} }
} }
console.log(this.groupCofListInput) this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || []
})
this.getGroupList(this.wechat.staffId) this.getGroupList(this.wechat.staffId)
} else { } else {
this.groupCofListInput = { this.groupCofListInput = {
...@@ -1262,7 +1142,7 @@ export default { ...@@ -1262,7 +1142,7 @@ export default {
// saReportValue: [{ name: '' }], // saReportValue: [{ name: '' }],
// saPerReportValue: [{ name: '' }], // saPerReportValue: [{ name: '' }],
// scheduleReportValue: [{ name: '' }], // scheduleReportValue: [{ name: '' }],
zhanServerReportValue: [{ name: '' }], zhanServerReportValue: [{ name: '' }]
} }
} }
this.getDepartmentTree() this.getDepartmentTree()
...@@ -1291,12 +1171,10 @@ export default { ...@@ -1291,12 +1171,10 @@ export default {
handleClick() { handleClick() {
this.handleSearch() this.handleSearch()
}, },
setTableFinishFun() { setTableFinishFun() {
//接收到的数据为空 //接收到的数据为空
this.$refs.battleRef.data.length ? (this.$refs.battleRef.tableHeightValues = '') : this.$refs.battleRef.setTableHeightFun() this.$refs.battleRef.data.length ? (this.$refs.battleRef.tableHeightValues = '') : this.$refs.battleRef.setTableHeightFun()
}, },
handleSearch() { handleSearch() {
this.$refs.battleRef.refreshTable() this.$refs.battleRef.refreshTable()
}, },
...@@ -1355,7 +1233,6 @@ export default { ...@@ -1355,7 +1233,6 @@ export default {
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.message-Z-zinde { .message-Z-zinde {
z-index: 9999 !important; z-index: 9999 !important;
...@@ -1378,6 +1255,9 @@ export default { ...@@ -1378,6 +1255,9 @@ export default {
.group-box { .group-box {
padding: 20px; padding: 20px;
background: #f9f9f9; background: #f9f9f9;
/deep/ .el-input {
width: 255px !important;
}
.input-box { .input-box {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -1389,7 +1269,6 @@ export default { ...@@ -1389,7 +1269,6 @@ export default {
} }
} }
} }
.input-tag-wrapper { .input-tag-wrapper {
position: relative; position: relative;
font-size: 14px; font-size: 14px;
...@@ -1447,7 +1326,6 @@ export default { ...@@ -1447,7 +1326,6 @@ export default {
.group-list-box { .group-list-box {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.list-tag { .list-tag {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
...@@ -1505,7 +1383,6 @@ export default { ...@@ -1505,7 +1383,6 @@ export default {
color: #c0c6ce; color: #c0c6ce;
line-height: 20px; line-height: 20px;
} }
.dialog-look { .dialog-look {
text-align: center; text-align: center;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!