Commit b5bd6c48 by xinla

<i([\r\b\n\s\w\-"':=]*class="[\r\b\n\s]*el-icon-([^ "]*))

1 parent 06ecba94
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
<el-table v-loading="loading" :data="list" @current-change="currentChange"> <el-table v-loading="loading" :data="list" @current-change="currentChange">
<el-table-column width="60"> <el-table-column width="60">
<template #default="{ row }"> <template #default="{ row }">
<i <el-icon-check
v-if="welSelected ? welSelected.id === row.id : false" v-if="welSelected ? welSelected.id === row.id : false"
class="el-icon-check" class="el-icon-check"
style="color: rgb(65, 133, 244); font-size: 25px"></i> style="color: rgb(65, 133, 244); font-size: 25px"></el-icon-check>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="isGroup ? '群发内容' : '欢迎语'" align="center" min-width="250" show-overflow-tooltip> <el-table-column :label="isGroup ? '群发内容' : '欢迎语'" align="center" min-width="250" show-overflow-tooltip>
......
...@@ -36,10 +36,10 @@ ...@@ -36,10 +36,10 @@
<el-table-column label="短链地址" align="center" prop="shortLink" show-overflow-tooltip> <el-table-column label="短链地址" align="center" prop="shortLink" show-overflow-tooltip>
<template #default="{ row }"> <template #default="{ row }">
<span>{{ row.shortLink }}</span> <span>{{ row.shortLink }}</span>
<i <el-icon-copy-document
class="el-icon-copy-document copy-btn cp ml20" class="el-icon-copy-document copy-btn cp ml20"
title="复制" title="复制"
:data-clipboard-text="row.shortLink"></i> :data-clipboard-text="row.shortLink" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="最近更新时间" align="center" prop="updateTime" width="180"></el-table-column> <el-table-column label="最近更新时间" align="center" prop="updateTime" width="180"></el-table-column>
......
...@@ -70,10 +70,10 @@ export default { ...@@ -70,10 +70,10 @@ export default {
<template> <template>
<div> <div>
<i <el-icon-microphone
:class="['el-icon-microphone', actived && 'actived']" :class="['el-icon-microphone', actived && 'actived']"
style="font-size: 40px; color: var(--color)" style="font-size: 40px; color: var(--color)"
@click.stop="play('attachment')"></i> @click.stop="play('attachment')" />
<!-- <AudioPlayer <!-- <AudioPlayer
:audio-list="audioSrc" :audio-list="audioSrc"
......
...@@ -227,10 +227,10 @@ ...@@ -227,10 +227,10 @@
</el-table-column> </el-table-column>
<el-table-column width="60"> <el-table-column width="60">
<template #default="{ row }"> <template #default="{ row }">
<i <el-icon-check
v-if="welSelected.id === row.id" v-if="welSelected.id === row.id"
class="el-icon-check" class="el-icon-check"
style="color: rgb(65, 133, 244); font-size: 25px"></i> style="color: rgb(65, 133, 244); font-size: 25px" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -57,17 +57,15 @@ ...@@ -57,17 +57,15 @@
<el-tooltip content="功能清单" effect="dark" placement="bottom"> <el-tooltip content="功能清单" effect="dark" placement="bottom">
<div class="right-menu-item hover-effect"> <div class="right-menu-item hover-effect">
<i <el-icon-tickets class="el-icon-tickets right-icon"
class="el-icon-tickets right-icon" @click="goto('https://docs.qq.com/sheet/DZW9HSHpHdWlOYWh2?tab=BB08J3')"/>
@click="goto('https://docs.qq.com/sheet/DZW9HSHpHdWlOYWh2?tab=BB08J3')"></i>
</div> </div>
</el-tooltip> </el-tooltip>
<el-tooltip content="需求墙" effect="dark" placement="bottom"> <el-tooltip content="需求墙" effect="dark" placement="bottom">
<div class="right-menu-item hover-effect"> <div class="right-menu-item hover-effect">
<i <el-icon-data-board class="el-icon-data-board right-icon"
class="el-icon-data-board right-icon" @click="goto('https://docs.qq.com/sheet/DZWxGU0JGVFRVdWZV?tab=BB08J2')"/>
@click="goto('https://docs.qq.com/sheet/DZWxGU0JGVFRVdWZV?tab=BB08J2')"></i>
</div> </div>
</el-tooltip> --> </el-tooltip> -->
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<el-image style="width: 50px; height: 50px; flex: none" :src="row.externalAvatar" fit="fill"></el-image> <el-image style="width: 50px; height: 50px; flex: none" :src="row.externalAvatar" fit="fill"></el-image>
<div class="ml10"> <div class="ml10">
<p>{{ row.externalName }}</p> <p>{{ row.externalName }}</p>
<!-- <i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i> --> <!-- <el-icon-Avatar :class="['el-icon-Avatar', { 1: 'man', 2: 'woman' }[row.gender]]"/> -->
<span :style="{ color: row.externalType === 1 ? '#4bde03' : '#f9a90b' }"> <span :style="{ color: row.externalType === 1 ? '#4bde03' : '#f9a90b' }">
{{ { 1: '@微信', 2: '@企业微信' }[row.externalType] }} {{ { 1: '@微信', 2: '@企业微信' }[row.externalType] }}
</span> </span>
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
content="仅统计话术中轨迹素材被查看情况统计,排行权重:查看总人数 > 查看总次数 > 发送总次数" content="仅统计话术中轨迹素材被查看情况统计,排行权重:查看总人数 > 查看总次数 > 发送总次数"
placement="top-start" placement="top-start"
> >
<i slot="reference" class="el-icon-QuestionFilled"></i> <el-icon-QuestionFilled slot="reference" class="el-icon-QuestionFilled"/>
</el-popover> --> </el-popover> -->
</div> </div>
<search-title :showToday="true" @search="getTableData" style="margin-top: 20px"></search-title> <search-title :showToday="true" @search="getTableData" style="margin-top: 20px"></search-title>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
content="仅统计话术中轨迹素材被查看情况统计,排行权重:查看总人数 > 查看总次数 > 发送总次数" content="仅统计话术中轨迹素材被查看情况统计,排行权重:查看总人数 > 查看总次数 > 发送总次数"
placement="top-start" placement="top-start"
> >
<i slot="reference" class="el-icon-QuestionFilled"></i> <el-icon-QuestionFilled slot="reference" class="el-icon-QuestionFilled"/>
</el-popover> --> </el-popover> -->
</div> </div>
<div> <div>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
content="仅统计话术中轨迹素材被查看情况统计,排行权重:查看总人数 > 查看总次数 > 发送总次数" content="仅统计话术中轨迹素材被查看情况统计,排行权重:查看总人数 > 查看总次数 > 发送总次数"
placement="top-start" placement="top-start"
> >
<i slot="reference" class="el-icon-QuestionFilled"></i> <el-icon-QuestionFilled slot="reference" class="el-icon-QuestionFilled"/>
</el-popover> --> </el-popover> -->
</div> </div>
<div> <div>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<span :style="{ color: item.customerType === 1 ? '#4bde03' : '#f9a90b' }"> <span :style="{ color: item.customerType === 1 ? '#4bde03' : '#f9a90b' }">
{{ { 1: '@微信', 2: '@企业微信' }[item.customerType] }} {{ { 1: '@微信', 2: '@企业微信' }[item.customerType] }}
</span> </span>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[item.gender]]"></i> <el-icon-Avatar :class="['el-icon-Avatar', { 1: 'man', 2: 'woman' }[item.gender]]"></el-icon-Avatar>
</el-col> </el-col>
</el-row> </el-row>
<div class="ac mt10 mb15"> <div class="ac mt10 mb15">
...@@ -266,7 +266,7 @@ export default { ...@@ -266,7 +266,7 @@ export default {
} }
} }
.el-icon-s-custom { .el-icon-Avatar {
font-size: 16px; font-size: 16px;
margin-left: 4px; margin-left: 4px;
color: #999; color: #999;
......
<script> <script>
import * as api from '@/api/customer' import * as api from '@/api/customer'
import { getList as getListTag } from '@/api/customer/tag' import { getList as getListTag } from '@/api/customer/tag'
import AddTag from '@/components/AddTag' import AddTag from '@/components/AddTag'
import SelectTag from '@/components/SelectTag' import SelectTag from '@/components/SelectTag'
import DeleteTag from '@/components/DeleteTag' import DeleteTag from '@/components/DeleteTag'
import { dictAddType, dictTrackState } from '@/utils/dictionary' import { dictAddType, dictTrackState } from '@/utils/dictionary'
import { getList } from '@/api/salesCenter/businessConver.js' import { getList } from '@/api/salesCenter/businessConver.js'
export default { export default {
name: 'Customer', name: 'Customer',
components: { AddTag, SelectTag, DeleteTag }, components: { AddTag, SelectTag, DeleteTag },
props: {}, props: {},
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
trackState: '', //跟进状态 1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失 trackState: '', //跟进状态 1:待跟进;2:跟进中;3:已成交;4:无意向;5:已流失
addMethod: '', //添加方式 0:未知来源;1:扫描二维码;2:搜索手机号;3:名片分享;4:群聊;5:手机通讯录;6:微信联系人;7:来自微信好友的添加申请;8:安装第三方应用时自动添加的客服人员;9:搜索邮箱;10:视频号主页添加;11:员工活码;12:新客拉群;13:活动裂变;201:内部成员共享;202:管理员/负责人分配 addMethod: '', //添加方式 0:未知来源;1:扫描二维码;2:搜索手机号;3:名片分享;4:群聊;5:手机通讯录;6:微信联系人;7:来自微信好友的添加申请;8:安装第三方应用时自动添加的客服人员;9:搜索邮箱;10:视频号主页添加;11:员工活码;12:新客拉群;13:活动裂变;201:内部成员共享;202:管理员/负责人分配
gender: '', //0-未知 1-男性 2-女性 gender: '', //0-未知 1-男性 2-女性
noTagCheck: false noTagCheck: false,
}, },
queryTag: [], // 搜索框选择的标签 queryTag: [], // 搜索框选择的标签
queryUser: [], // 搜索框选择的添加人 queryUser: [], // 搜索框选择的添加人
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
// 添加标签表单 // 添加标签表单
form: { form: {
gourpName: '', gourpName: '',
weTags: [] weTags: [],
}, },
list: [], // 客户列表 list: [], // 客户列表
staffList: [], // 所有员工列表 staffList: [], // 所有员工列表
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
selectedTag: [], // 选择的标签 selectedTag: [], // 选择的标签
tagDialogType: { tagDialogType: {
title: '', // 选择标签弹窗标题 title: '', // 选择标签弹窗标题
type: '' // 弹窗类型 type: '', // 弹窗类型
}, },
dictCustomerType: Object.freeze({ 1: '微信客户', 2: '企业客户' }), dictCustomerType: Object.freeze({ 1: '微信客户', 2: '企业客户' }),
dictAddType, dictAddType,
...@@ -59,12 +59,12 @@ ...@@ -59,12 +59,12 @@
multiObj: { multiObj: {
state: 'add', // 'delete' state: 'add', // 'delete'
title: '批量打标签', title: '批量打标签',
showDialog: false showDialog: false,
}, },
multipleSelection: [], // 多选数组 multipleSelection: [], // 多选数组
mulSelectedTag: [], mulSelectedTag: [],
deleteData: [], deleteData: [],
deleteDialog: false deleteDialog: false,
} }
}, },
watch: {}, watch: {},
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
this.$store.setBusininessDesc( this.$store.setBusininessDesc(
` `
<div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div> <div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
` `,
) )
}, },
mounted() {}, mounted() {},
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
let obj = { let obj = {
externalUserid: dd.externalUserid, externalUserid: dd.externalUserid,
addTag: data, addTag: data,
userId: dd.firstUserId userId: dd.firstUserId,
} }
arr.push(obj) arr.push(obj)
}) })
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
let obj = { let obj = {
externalUserid: dd.externalUserid, externalUserid: dd.externalUserid,
addTag: data, addTag: data,
userId: dd.firstUserId userId: dd.firstUserId,
} }
arr.push(obj) arr.push(obj)
}) })
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
element.tagIds.forEach((unit, index) => { element.tagIds.forEach((unit, index) => {
element.tags.push({ element.tags.push({
tagId: unit, tagId: unit,
tagName: element.tagNames[index] tagName: element.tagNames[index],
}) })
}) })
} }
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
this.$refs.selectTag.getList() this.$refs.selectTag.getList()
this.form = { this.form = {
gourpName: '', gourpName: '',
weTags: [] weTags: [],
} }
} }
}) })
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
this.selectedTag = this.queryTag this.selectedTag = this.queryTag
this.tagDialogType = { this.tagDialogType = {
title: '选择标签', title: '选择标签',
type: 'query' type: 'query',
} }
this.dialogVisible = true this.dialogVisible = true
// this.$refs.selectTag.$forceUpdate() // this.$refs.selectTag.$forceUpdate()
...@@ -286,16 +286,16 @@ ...@@ -286,16 +286,16 @@
message: this.$createElement( message: this.$createElement(
'i', 'i',
{ style: 'color: red' }, { style: 'color: red' },
'已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常' '已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常',
), ),
type: 'warning', type: 'warning',
customClass: 'mzindex' customClass: 'mzindex',
}) })
// this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常') // this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常')
} }
this.tagDialogType = { this.tagDialogType = {
title: '标签设置' + (repeat.length ? '(重复的标签已去重显示)' : '') title: '标签设置' + (repeat.length ? '(重复的标签已去重显示)' : ''),
} }
this.dialogVisible = true this.dialogVisible = true
// this.$refs.selectTag.$forceUpdate() // this.$refs.selectTag.$forceUpdate()
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
externalUserid: this.currentEidt.externalUserid, externalUserid: this.currentEidt.externalUserid,
removeTag: deleteTag, removeTag: deleteTag,
addTag: selected, addTag: selected,
userId: this.currentEidt.firstUserId userId: this.currentEidt.firstUserId,
} }
// let apiType = { // let apiType = {
...@@ -398,7 +398,7 @@ ...@@ -398,7 +398,7 @@
let { externalUserid, firstUserId: userId } = row let { externalUserid, firstUserId: userId } = row
this.$router.push({ this.$router.push({
path: 'customerDetail', path: 'customerDetail',
query: { externalUserid, userId } query: { externalUserid, userId },
}) })
}, },
...@@ -412,7 +412,7 @@ ...@@ -412,7 +412,7 @@
let data = { let data = {
handoverUserId: this.currentEidt.firstUserId, //移交人 handoverUserId: this.currentEidt.firstUserId, //移交人
takeoverUserId: this.extendStaff, //接受人 takeoverUserId: this.extendStaff, //接受人
externalUserid: this.currentEidt.externalUserid //客户id,多个客户使用逗号隔开 externalUserid: this.currentEidt.externalUserid, //客户id,多个客户使用逗号隔开
} }
api.jobExtends(data).then((res) => { api.jobExtends(data).then((res) => {
this.msgSuccess('操作成功') this.msgSuccess('操作成功')
...@@ -423,9 +423,9 @@ ...@@ -423,9 +423,9 @@
setData(data) { setData(data) {
this.queryTag = [] this.queryTag = []
this.query.tagIds = '' this.query.tagIds = ''
} },
} },
} }
</script> </script>
<template> <template>
...@@ -453,8 +453,7 @@ ...@@ -453,8 +453,7 @@
v-for="(item, index) in stageList" v-for="(item, index) in stageList"
:key="index" :key="index"
:label="item.stageKey" :label="item.stageKey"
:value="item.stageVal" :value="item.stageVal"></el-option>
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="添加方式" prop="addMethod"> <el-form-item label="添加方式" prop="addMethod">
...@@ -471,8 +470,7 @@ ...@@ -471,8 +470,7 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
align="right" align="right"></el-date-picker>
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="客户标签" prop="customerType"> <el-form-item label="客户标签" prop="customerType">
<div class="tag-input" @click="showTagDialog"> <div class="tag-input" @click="showTagDialog">
...@@ -528,8 +526,7 @@ ...@@ -528,8 +526,7 @@
:data="list" :data="list"
tooltip-effect="dark" tooltip-effect="dark"
highlight-current-row highlight-current-row
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange">
>
<!-- --> <!-- -->
<el-table-column type="selection" align="center" width="55"></el-table-column> <el-table-column type="selection" align="center" width="55"></el-table-column>
<el-table-column label="客户" prop="customerName" header-align="center" align="" width="180"> <el-table-column label="客户" prop="customerName" header-align="center" align="" width="180">
...@@ -538,7 +535,7 @@ ...@@ -538,7 +535,7 @@
<el-image class="avatar" :src="row.avatar" fit="fill"></el-image> <el-image class="avatar" :src="row.avatar" fit="fill"></el-image>
<div class="ml10"> <div class="ml10">
<p class="blod">{{ row.customerName }}</p> <p class="blod">{{ row.customerName }}</p>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i> <el-icon-Avatar :class="['el-icon-Avatar', { 1: 'man', 2: 'woman' }[row.gender]]" />
<span :style="{ color: row.customerType === 1 ? '#4bde03' : '#f9a90b' }"> <span :style="{ color: row.customerType === 1 ? '#4bde03' : '#f9a90b' }">
{{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }} {{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }}
</span> </span>
...@@ -597,8 +594,7 @@ ...@@ -597,8 +594,7 @@
:total="total" :total="total"
v-model:page="query.pageNum" v-model:page="query.pageNum"
v-model:limit="query.pageSize" v-model:limit="query.pageSize"
@pagination="getList()" @pagination="getList()" />
/>
</div> </div>
<!-- 选择标签弹窗 --> <!-- 选择标签弹窗 -->
...@@ -607,8 +603,7 @@ ...@@ -607,8 +603,7 @@
v-model:visible="dialogVisible" v-model:visible="dialogVisible"
:title="tagDialogType.title" :title="tagDialogType.title"
:defaultValues="selectedTag" :defaultValues="selectedTag"
@success="submitSelectTag" @success="submitSelectTag">
>
<!-- <el-button class="ml20" type="primary" @click="dialogVisibleAddTag = true" <!-- <el-button class="ml20" type="primary" @click="dialogVisibleAddTag = true"
>添加标签</el-button >添加标签</el-button
> --> > -->
...@@ -637,27 +632,25 @@ ...@@ -637,27 +632,25 @@
:selected="mulSelectedTag" :selected="mulSelectedTag"
v-model:visible="multiObj.showDialog" v-model:visible="multiObj.showDialog"
:title="multiObj.title" :title="multiObj.title"
@success="getMultiOperation" @success="getMultiOperation"></SelectTag>
></SelectTag>
<DeleteTag <DeleteTag
v-if="deleteDialog" v-if="deleteDialog"
ref="deleteTag" ref="deleteTag"
v-model:visible="deleteDialog" v-model:visible="deleteDialog"
:initList="deleteData" :initList="deleteData"
:selected="deleteData" :selected="deleteData"
@success="getDeleteData" @success="getDeleteData"></DeleteTag>
></DeleteTag>
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.avatar { .avatar {
width: 56px; width: 56px;
height: 56px; height: 56px;
flex: none; flex: none;
border-radius: var(--border-radius-big); border-radius: var(--border-radius-big);
} }
.el-icon-s-custom { .el-icon-Avatar {
font-size: 16px; font-size: 16px;
// margin-left: 4px; // margin-left: 4px;
color: #999; color: #999;
...@@ -667,13 +660,13 @@ ...@@ -667,13 +660,13 @@
&.woman { &.woman {
color: #f753b2; color: #f753b2;
} }
} }
.bfc-d + .bfc-d .el-checkbox:first-child { .bfc-d + .bfc-d .el-checkbox:first-child {
margin-left: 10px; margin-left: 10px;
} }
</style> </style>
<style> <style>
.mzindex { .mzindex {
z-index: 5000 !important; z-index: 5000 !important;
} }
</style> </style>
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
<div> <div>
{{ customer.customerName + (customer.corpName ? '-' + customer.corpName : '') }} {{ customer.customerName + (customer.corpName ? '-' + customer.corpName : '') }}
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[customer.gender]]"></i> <el-icon-Avatar :class="['el-icon-Avatar', { 1: 'man', 2: 'woman' }[customer.gender]]" />
</div> </div>
<div class="mt10"> <div class="mt10">
<span :style="{ color: customer.customerType === 1 ? '#4bde03' : '#f9a90b' }"> <span :style="{ color: customer.customerType === 1 ? '#4bde03' : '#f9a90b' }">
......
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
<!-- <span <!-- <span
:style="{color: scope.row.joinType == 1 ? '#4bde03' : '#f9a90b'}" :style="{color: scope.row.joinType == 1 ? '#4bde03' : '#f9a90b'}"
>{{ ({1: '@微信', 2: '@企业微信'})[scope.row.joinType] }}</span>--> >{{ ({1: '@微信', 2: '@企业微信'})[scope.row.joinType] }}</span>-->
<!-- <i :class="['el-icon-s-custom', ({1: 'man', 2: 'woman'})[scope.row.gender]]"></i> --> <!-- <el-icon-Avatar :class="['el-icon-Avatar', ({1: 'man', 2: 'woman'})[scope.row.gender]]"/> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="进群时间" prop="joinTime"></el-table-column> <el-table-column label="进群时间" prop="joinTime"></el-table-column>
......
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
<!-- <span :style="{ color: scope.row.type === 1 ? '#4bde03' : '#f9a90b' }">{{ <!-- <span :style="{ color: scope.row.type === 1 ? '#4bde03' : '#f9a90b' }">{{
{ 1: '@微信', 2: '@企业微信' }[scope.row.type] { 1: '@微信', 2: '@企业微信' }[scope.row.type]
}}</span> }}</span>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[scope.row.gender]]"></i> --> <el-icon-Avatar :class="['el-icon-Avatar', { 1: 'man', 2: 'woman' }[scope.row.gender]]"/> -->
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="corpName" label="公司名称" align="center"></el-table-column> --> <!-- <el-table-column prop="corpName" label="公司名称" align="center"></el-table-column> -->
......
...@@ -263,10 +263,10 @@ export default { ...@@ -263,10 +263,10 @@ export default {
<el-table-column property="welcomeMsg" show-overflow-tooltip></el-table-column> <el-table-column property="welcomeMsg" show-overflow-tooltip></el-table-column>
<el-table-column width="60"> <el-table-column width="60">
<template #default="{ row }"> <template #default="{ row }">
<i <el-icon-check
v-if="welSelected.id === row.id" v-if="welSelected.id === row.id"
class="el-icon-check" class="el-icon-check"
style="color: rgb(65, 133, 244); font-size: 25px"></i> style="color: rgb(65, 133, 244); font-size: 25px" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</template> </template>
<ul class="icon-ul"> <ul class="icon-ul">
<li v-for="icon in iconList" :key="icon" :class="active === icon ? 'active-item' : ''" @click="onSelect(icon)"> <li v-for="icon in iconList" :key="icon" :class="active === icon ? 'active-item' : ''" @click="onSelect(icon)">
<i :class="icon" /> <components :is="icon" :class="icon" />
<div>{{ icon }}</div> <div>{{ icon }}</div>
</li> </li>
</ul> </ul>
......
<script> <script>
import { getList, update, add, remove, sync, appMsg } from '@/api/internalCollaborate/appManage' import { getList, update, add, remove, sync, appMsg } from '@/api/internalCollaborate/appManage'
export default { export default {
components: { components: {
HistoryMsg: defineAsyncComponent(() => import('./HistoryMsg')), HistoryMsg: defineAsyncComponent(() => import('./HistoryMsg')),
MsgForm: defineAsyncComponent(() => import('../components/MsgForm')) MsgForm: defineAsyncComponent(() => import('../components/MsgForm')),
}, },
props: {}, props: {},
data() { data() {
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
agentId: [{ required: true, message: '必填项', trigger: 'blur' }], agentId: [{ required: true, message: '必填项', trigger: 'blur' }],
name: [{ required: true, message: '必填项', trigger: 'blur' }], name: [{ required: true, message: '必填项', trigger: 'blur' }],
description: [{ required: true, message: '必填项', trigger: 'blur' }], description: [{ required: true, message: '必填项', trigger: 'blur' }],
logoUrl: [{ required: true, message: '必填项', trigger: 'change' }] logoUrl: [{ required: true, message: '必填项', trigger: 'change' }],
}), }),
formMsg: {}, formMsg: {},
dialogVisibleHistoryMsg: false, dialogVisibleHistoryMsg: false,
dialogVisibleSendMsg: false, dialogVisibleSendMsg: false,
disabledMsg: false disabledMsg: false,
} }
}, },
watch: {}, watch: {},
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
// const operIds = id || this.ids + '' // const operIds = id || this.ids + ''
this.$confirm('是否确认删除?该操作不可撤销,请谨慎操作。', { this.$confirm('是否确认删除?该操作不可撤销,请谨慎操作。', {
title: '警告', title: '警告',
type: 'warning' type: 'warning',
}) })
.then(function () { .then(function () {
return remove(id) return remove(id)
...@@ -139,9 +139,9 @@ ...@@ -139,9 +139,9 @@
} else { } else {
this.dialogVisibleSendMsg = false this.dialogVisibleSendMsg = false
} }
} },
} },
} }
</script> </script>
<template> <template>
...@@ -179,14 +179,12 @@ ...@@ -179,14 +179,12 @@
;(formMsg = { agentName: item.name, agentId: item.agentId }), ;(formMsg = { agentName: item.name, agentId: item.agentId }),
(disabledMsg = false), (disabledMsg = false),
(dialogVisibleSendMsg = true) (dialogVisibleSendMsg = true)
" ">
>
发送消息 发送消息
</el-button> </el-button>
<el-button <el-button
text text
@click=";(formMsg = { agentName: item.name, agentId: item.agentId }), (dialogVisibleHistoryMsg = true)" @click=";(formMsg = { agentName: item.name, agentId: item.agentId }), (dialogVisibleHistoryMsg = true)">
>
历史消息 历史消息
</el-button> </el-button>
<el-button text @click="edit(item)">编辑</el-button> <el-button text @click="edit(item)">编辑</el-button>
...@@ -195,7 +193,7 @@ ...@@ -195,7 +193,7 @@
</div> </div>
</li> </li>
<li class="list" @click="edit()"> <li class="list" @click="edit()">
<div class="ac flex aic cp theme list-item" style="justify-content: center;"> <div class="ac flex aic cp theme list-item" style="justify-content: center">
<el-icon-plus class="el-icon-plus"></el-icon-plus> <el-icon-plus class="el-icon-plus"></el-icon-plus>
添加应用 添加应用
</div> </div>
...@@ -214,8 +212,7 @@ ...@@ -214,8 +212,7 @@
<el-form-item <el-form-item
label="应用密钥" label="应用密钥"
prop="secret" prop="secret"
:rules="{ required: !form.agentId, message: '必填项', trigger: 'blur' }" :rules="{ required: !form.agentId, message: '必填项', trigger: 'blur' }">
>
<el-input v-model="form.secret" placeholder="请输入应用 Secret"></el-input> <el-input v-model="form.secret" placeholder="请输入应用 Secret"></el-input>
<div class="dialog-tip">如何获取:企微后台->应用管理->自建应用详情->Secret</div> <div class="dialog-tip">如何获取:企微后台->应用管理->自建应用详情->Secret</div>
</el-form-item> </el-form-item>
...@@ -232,8 +229,7 @@ ...@@ -232,8 +229,7 @@
v-model="form.description" v-model="form.description"
maxlength="60" maxlength="60"
show-word-limit show-word-limit
placeholder="请输入应用描述" placeholder="请输入应用描述"></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="应用头像" prop="logoUrl"> <el-form-item label="应用头像" prop="logoUrl">
<upload class="image-uploader" v-model:fileUrl="form.logoUrl" type="0"></upload> <upload class="image-uploader" v-model:fileUrl="form.logoUrl" type="0"></upload>
...@@ -244,7 +240,7 @@ ...@@ -244,7 +240,7 @@
<el-col :span="4"> <el-col :span="4">
<div class="avatar-wrap ac" @click="dialogVisibleSelectMaterial = true"> <div class="avatar-wrap ac" @click="dialogVisibleSelectMaterial = true">
<img class="avatar" v-if="form.squareLogoUrl" :src="form.squareLogoUrl" /> <img class="avatar" v-if="form.squareLogoUrl" :src="form.squareLogoUrl" />
<i v-else class="el-icon-plus avatar-uploader-icon cc"></i> <el-icon-plus v-else class="el-icon-plus avatar-uploader-icon cc"/>
</div> </div>
</el-col> </el-col>
<el-col :span="20"> <el-col :span="20">
...@@ -293,8 +289,7 @@ ...@@ -293,8 +289,7 @@
disabledMsg = type === 'detail' disabledMsg = type === 'detail'
formMsg = Object.assign({ agentId: formMsg.agentId, agentName: formMsg.agentName }, data) formMsg = Object.assign({ agentId: formMsg.agentId, agentName: formMsg.agentName }, data)
} }
" " />
/>
</el-dialog> </el-dialog>
<!-- 选择素材弹窗 --> <!-- 选择素材弹窗 -->
...@@ -314,10 +309,10 @@ ...@@ -314,10 +309,10 @@
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.theme { .theme {
color: var(--color); color: var(--color);
} }
.list-wrap { .list-wrap {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 20px; line-height: 20px;
...@@ -354,24 +349,24 @@ ...@@ -354,24 +349,24 @@
width: 90px; width: 90px;
} }
} }
} }
.dialog-tip { .dialog-tip {
color: #888; color: #888;
font-size: 12px; font-size: 12px;
} }
// .avatar-wrap { // .avatar-wrap {
// position: relative; // position: relative;
// width: 120px; // width: 120px;
// height: 120px; // height: 120px;
// border: 1px solid #eee; // border: 1px solid #eee;
// border-radius: 5px; // border-radius: 5px;
// } // }
// .avatar { // .avatar {
// width: 100%; // width: 100%;
// } // }
// .avatar-uploader-icon { // .avatar-uploader-icon {
// font-size: 28px; // font-size: 28px;
// color: #ddd; // color: #ddd;
// } // }
</style> </style>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<svg-icon icon="service" class="code-user" v-else></svg-icon> <svg-icon icon="service" class="code-user" v-else></svg-icon>
<div class="ml10"> <div class="ml10">
<p>{{ row.watchUserName }}</p> <p>{{ row.watchUserName }}</p>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i> <el-icon-Avatar :class="['el-icon-Avatar', { 1: 'man', 2: 'woman' }[row.gender]]" />
<span <span
:style="{ :style="{
color: ['@微信', '@微信用户'].includes(row.remarks) ? '#4bde03' : '#f9a90b', color: ['@微信', '@微信用户'].includes(row.remarks) ? '#4bde03' : '#f9a90b',
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
<el-image style="width: 50px; height: 50px; flex: none" :src="row.avatar" fit="fill"></el-image> <el-image style="width: 50px; height: 50px; flex: none" :src="row.avatar" fit="fill"></el-image>
<div class="ml10"> <div class="ml10">
<p>{{ row.customerName }}</p> <p>{{ row.customerName }}</p>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i> <el-icon-Avatar :class="['el-icon-Avatar', { 1: 'man', 2: 'woman' }[row.gender]]" />
<span :style="{ color: row.customerType == 1 ? '#4bde03' : '#f9a90b' }"> <span :style="{ color: row.customerType == 1 ? '#4bde03' : '#f9a90b' }">
{{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }} {{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }}
</span> </span>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!