Commit 838e19ff by xinla

Merge remote-tracking branch 'origin/front_end_1.5'

2 parents 9bb536ac 8892a025
......@@ -27,10 +27,15 @@ export default {
video: 'attachment',
voice: 'attachment',
location: 'address',
weapp: 'title',
card: 'corpname'
weapp: 'title'
// card: 'corpname'
}
let attr = typeDict[this.message.msgType]
if (attr) {
return JSON.parse(this.message.contact)[typeDict[this.message.msgType]]
} else {
return JSON.parse(this.message.contact)
}
return JSON.parse(this.message.contact)[typeDict[this.message.msgType]]
}
},
watch: {},
......@@ -65,13 +70,7 @@ export default {
{{ content }}
</template>
<template v-else-if="'image,emotion'.includes(message.msgType)">
<el-image
style="width: 100px; height: 100px"
:src="content"
fit="fit"
:preview-src-list="[content]"
>
</el-image>
<el-image style="width: 100px; height: 100px" :src="content" fit="fit" :preview-src-list="[content]"> </el-image>
</template>
<a
v-else-if="'file'.includes(message.msgType)"
......@@ -90,11 +89,7 @@ export default {
{{ content }}
</a>
<div v-else-if="message.msgType === 'voice'">
<i
class="el-icon-microphone"
style=" font-size: 40px; color: #199ed8;"
@click="playAudio('attachment')"
></i>
<i class="el-icon-microphone" style=" font-size: 40px; color: #199ed8;" @click="playAudio('attachment')"></i>
</div>
<template v-else-if="message.msgType === 'video'">
<video
......@@ -137,44 +132,50 @@ export default {
></video-player> -->
</template>
<div v-else-if="message.msgType === 'location'" class="msgtypecard">
<div class="card_name">
<div class="card-content">
<el-amap
ref="map"
vid="amapDemo"
:center="[
JSON.parse(message.contact).longitude,
JSON.parse(message.contact).latitude
]"
:center="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"
:zoom="15"
class="amap-demo"
style="pointer-events: none;"
>
<el-amap-marker
:position="[
JSON.parse(message.contact).longitude,
JSON.parse(message.contact).latitude
]"
:position="[JSON.parse(message.contact).longitude, JSON.parse(message.contact).latitude]"
></el-amap-marker>
</el-amap>
</div>
<div class="card_foot">{{ content }}</div>
<div class="card-foot">{{ content }}</div>
</div>
<div v-else-if="message.msgType === 'weapp'" class="msgtypecard">
<div class="card_name">{{ content }}</div>
<div class="card_foot">小程序</div>
<div class="card-content">{{ content }}</div>
<div class="card-foot">小程序</div>
</div>
<div v-else-if="message.msgType === 'card'" class="msgtypecard ">
<div class="card_name">{{ content }}</div>
<div class="card_foot">个人名片</div>
<div class="card-content">
<span style="flex: none;"> {{ content.corpname }}: </span>
<span>
{{ content.userid }}
</span>
</div>
<div class="card-foot">个人名片</div>
</div>
<!-- 图文链接 -->
<div v-else-if="message.msgType === 'link'" class="msgtypecard ">
<a :href="content.link_url">
<div class="card-content fxbw">
<div>
<div class="card--link-title">{{ content.title }}</div>
<div class="card--link-desc">{{ content.description }}</div>
</div>
<el-image style="width: 50px; height: 50px" :src="content.image_url" fit="fit"></el-image>
</div>
</a>
</div>
<div v-else>不支持的消息类型:{{ message.msgType }}</div>
<el-dialog
v-if="audioSrc[0]"
:visible.sync="dialogVisible"
width="30%"
@close="close"
>
<el-dialog v-if="audioSrc[0]" :visible.sync="dialogVisible" width="30%" @close="close">
<div class="shabowboxvidoe shabowboxaudio">
<!-- <AudioPlayer
:audio-list="audioSrc"
......@@ -223,23 +224,45 @@ export default {
.msgtypecard {
width: 320px;
height: 140px;
// height: 140px;
margin: 10px 5px;
border-radius: 8px;
-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2),
0 6px 8px 0 rgba(0, 0, 0, 0.19);
-webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 8px 0 rgba(0, 0, 0, 0.19);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 8px 0 rgba(0, 0, 0, 0.19);
position: relative;
background: #f8f8f8;
overflow: hidden;
.card_name {
.card-content {
width: 320px;
height: 105px;
line-height: 80px;
text-indent: 10px;
min-height: 105px;
height: 100%;
display: flex;
align-items: center;
padding: 10px;
line-height: 1.5;
// text-indent: 10px;
color: #333;
.card--link-title {
font-size: 16px;
font-weight: 500;
margin-bottom: 5px;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
display: -webkit-box;
white-space: pre-wrap;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.card--link-desc {
font-size: 14px;
color: #aaa;
}
}
.card_foot {
.card-foot {
position: absolute;
height: 20px;
border-top: 1px solid #efefef;
......
......@@ -35,7 +35,6 @@ export default {
rewardImageUrl: '',
rewardRule: ''
},
rewardImageUrlTemp: '',
action: process.env.VUE_APP_BASE_API + window.CONFIG.services.wecom + '/fission/upload',
headers: window.CONFIG.headers,
ruleForm: {
......@@ -223,7 +222,7 @@ export default {
},
handleAvatarSuccess(res, file) {
// this.rewardImageUrlTemp = URL.createObjectURL(file.raw) //预览
this.rewardImageUrlTemp = this.groupForm.rewardImageUrl = res.data.rewardImageUrl
this.groupForm.rewardImageUrl = res.data.rewardImageUrl
},
beforeAvatarUpload(file) {
const isJPG = file.type === 'image/jpeg'
......@@ -388,7 +387,7 @@ export default {
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload"
>
<img v-if="rewardImageUrlTemp" :src="rewardImageUrlTemp" class="avatar" />
<img v-if="groupForm.rewardImageUrl" :src="groupForm.rewardImageUrl" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item>
......
......@@ -167,8 +167,17 @@ export default {
})
})
if (hasErrorTag.length > 0) {
this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,或存在异常')
return
this.$notify({
// title: '标题名称',
message: this.$createElement(
'i',
{ style: 'color: red' },
'已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常'
),
type: 'warning',
customClass: 'mzindex'
})
// this.msgError('已有标签[' + hasErrorTag + ']不在标签库中,已被删除或存在异常')
}
if (type === 'remove' && this.selectedTag.length === 0) {
this.msgError('该客户没有标签,不可进行移除')
......@@ -443,3 +452,8 @@ export default {
margin-left: 10px;
}
</style>
<style>
.mzindex {
z-index: 5000 !important;
}
</style>
<script>
import {
getAllocateCustomers,
getAllocateGroups
} from '@/api/customer/dimission'
import { getAllocateCustomers, getAllocateGroups } from '@/api/customer/dimission'
export default {
name: 'AllocatedStaffDetailList',
......@@ -50,9 +47,7 @@ export default {
}
page && (this.query.pageNum = page)
this.loading = true
;(this.type === 'customer' ? getAllocateCustomers : getAllocateGroups)(
this.query
)
;(this.type === 'customer' ? getAllocateCustomers : getAllocateGroups)(this.query)
.then(({ rows, total }) => {
this.list = rows
this.total = +total
......@@ -68,40 +63,20 @@ export default {
<template>
<div class="page">
<el-table
ref="multipleTable"
:data="list"
tooltip-effect="dark"
style="width: 100%"
>
<el-table-column
v-if="type === 'customer'"
prop="customerName"
label="客户名称"
></el-table-column>
<el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%">
<el-table-column v-if="type === 'customer'" prop="customerName" label="客户名称"></el-table-column>
<el-table-column v-else prop="groupName" label="群名称"></el-table-column>
<el-table-column
:prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'"
label="接替员工"
></el-table-column>
<el-table-column
prop="department"
label="接替员工所属部门"
show-overflow-tooltip
></el-table-column>
<el-table-column
prop="allocateTime"
label="分配时间"
show-overflow-tooltip
></el-table-column>
<el-table-column :prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'" label="接替员工"></el-table-column>
<el-table-column prop="department" label="接替员工所属部门" show-overflow-tooltip></el-table-column>
<el-table-column prop="allocateTime" label="分配时间" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="100">
<template slot-scope="scope">
<template slot-scope="{ row }">
<el-button
v-hasPermi="['customerManage:dimission:edit']"
@click="
$router.push({
path: 'customerDetail',
query: { id: scope.row.id }
query: { data: JSON.stringify(row) }
})
"
type="text"
......
......@@ -258,13 +258,13 @@ export default {
</template>
</el-table-column>
<el-table-column label="操作" width="100">
<template slot-scope="scope">
<template slot-scope="{ row }">
<el-button
v-hasPermi="['customerManage:customer:view']"
@click="
$router.push({
path: 'customerDetail',
query: { id: scope.row.externalUserid }
query: { data: JSON.stringify(row) }
})
"
type="text"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!