Commit 3e3be707 by 王志慧

fixed

1 parent fde783bd
...@@ -304,7 +304,7 @@ export default { ...@@ -304,7 +304,7 @@ export default {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
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 }) groupHideAttr&&this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
this.idBefEncryption = item.groupId.split('_R:')[0] this.idBefEncryption = item.groupId.split('_R:')[0]
} else if (item.groupName) { } else if (item.groupName) {
this.groupCofList[groupHideAttr].push({ this.groupCofList[groupHideAttr].push({
......
...@@ -34,6 +34,7 @@ export default { ...@@ -34,6 +34,7 @@ export default {
isDialogVisible: false, isDialogVisible: false,
mode: 'big', mode: 'big',
wordType: { wordType: {
switchType: 701, switchType: 701,
switchText: '' switchText: ''
}, },
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
<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 v-for="(item,index) in formatterContent(scope.scope)" :key="index">{{item}}</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>
<el-button type="text" v-else @click="handlebattleOn(scope.scope, 'edit')">编辑</el-button> <el-button type="text" v-else @click="handlebattleOn(scope.scope, 'edit')">编辑</el-button>
...@@ -520,23 +523,7 @@ export default { ...@@ -520,23 +523,7 @@ export default {
{ {
label: '内容', label: '内容',
prop: '', prop: '',
formatter: cellValue => { addHtml: 'content'
let typeToTxt = {
1: '(推收款喜报)',
2: '(推战报)',
3: '(推补录订单)',
4: '(推SA喜报)',
5: '(推SA个人喜报)',
6: '(推客户进度消息)'
}
let txt = ''
cellValue.groupConfigList?.forEach(item => {
if (item.groupId) {
txt = (txt ? txt + ';' : txt) + item.groupName + typeToTxt[item.actionReportType]
}
})
return txt
}
} }
] ]
}, },
...@@ -606,7 +593,19 @@ export default { ...@@ -606,7 +593,19 @@ export default {
} }
}, },
methods: { methods: {
// 图片查看 formatterContent(cellValue) {
let typeToTxt = new Map([[5,'#1.SA个人喜报>>'],[4, '#2.SA喜报>>'],[7, '#3.文字喜报>>'],[2, '#4.早报>>'],[6, '#5.客户进度消息>>'],[ 3, '#6.补单通知>>']])
let txt = ''
cellValue.groupConfigList?.forEach(item => {
if (item.groupId&&typeToTxt.get(item.actionReportType)) {
typeToTxt.set(item.actionReportType,item.groupName?typeToTxt.get(item.actionReportType) + `【${item.groupName}】`:'')
}
})
txt = [...typeToTxt.values()].filter(item=>item.includes('【'))
return txt
},
// 图片查看,
handlePoster(name) { handlePoster(name) {
this.isImgVisible = true this.isImgVisible = true
this.dialogImageUrl = name this.dialogImageUrl = name
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!