Commit 3e3be707 by 王志慧

fixed

1 parent fde783bd
......@@ -304,7 +304,7 @@ export default {
let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
if (item.groupId) {
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]
} else if (item.groupName) {
this.groupCofList[groupHideAttr].push({
......
......@@ -34,6 +34,7 @@ export default {
isDialogVisible: false,
mode: 'big',
wordType: {
switchType: 701,
switchText: ''
},
......
......@@ -14,9 +14,12 @@
<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="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">
<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>
</div>
</GLTable>
</div>
......@@ -520,23 +523,7 @@ export default {
{
label: '内容',
prop: '',
formatter: cellValue => {
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
}
addHtml: 'content'
}
]
},
......@@ -606,7 +593,19 @@ export default {
}
},
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) {
this.isImgVisible = true
this.dialogImageUrl = name
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!