Commit 234ff2b6 by xinla

修改bug

1 parent 410831fc
......@@ -8,16 +8,16 @@ export default {
// 添加标签显隐
visible: {
type: Boolean,
default: false,
default: false
},
// 表单参数
form: {
type: Object,
default: () => ({
gourpName: '',
weTags: [],
}),
},
weTags: []
})
}
},
data() {
return {
......@@ -26,10 +26,10 @@ export default {
// 表单验证规则
rules: Object.freeze({
gourpName: [{ required: true, message: '必填项', trigger: 'blur' }],
weTags: [{ required: true, message: '必填项', trigger: 'blur' }],
weTags: [{ required: true, message: '必填项', trigger: 'blur' }]
}),
// 添加便签按钮显隐
visibleAdd: false,
visibleAdd: false
}
},
watch: {},
......@@ -45,8 +45,8 @@ export default {
},
set(val) {
this.$emit('update:visible', val)
},
},
}
}
},
created() {},
mounted() {},
......@@ -94,8 +94,8 @@ export default {
this.$emit('success')
})
})
},
},
}
}
}
</script>
......@@ -162,7 +162,7 @@ export default {
<style lang="scss" scoped>
.input-new-tag {
width: 90px;
width: auto;
margin-left: 10px;
vertical-align: bottom;
}
......
......@@ -5,8 +5,8 @@ export default {
props: {
type: {
type: String,
default: '4',
},
default: '4'
}
},
data() {
return {
......@@ -17,7 +17,7 @@ export default {
pageSize: 10,
categoryId: '',
search: '',
mediaType: '4',
mediaType: '4'
},
list: [], // 列表
total: 0, // 总条数
......@@ -25,7 +25,7 @@ export default {
// 树props
treeProps: {
children: 'children',
label: 'name',
label: 'name'
},
// 分组props
groupProps: {
......@@ -34,15 +34,15 @@ export default {
children: 'children',
label: 'name',
value: 'id',
emitPath: false,
emitPath: false
},
radio: '',
radio: ''
}
},
watch: {
radio(val) {
this.$emit('change', val)
},
}
},
computed: {},
created() {
......@@ -72,8 +72,8 @@ export default {
.catch(() => {
this.loading = false
})
},
},
}
}
}
</script>
......@@ -134,8 +134,17 @@ export default {
v-model="radio"
>
<el-radio v-for="(item, index) in list" :label="item" :key="index">
<img crossorigin="anonymous" class="img-li" :src="item.materialUrl" alt />
<div class="ac mt5">{{ item.materialName }}</div>
<div class="ma-img ac mb20">
<el-card shadow="hover" body-style="padding: 0px;">
<img
crossorigin="anonymous"
class="img-li"
:src="item.materialUrl"
alt
/>
</el-card>
<div class="mt10 toe">{{ item.materialName }}</div>
</div>
</el-radio>
</el-radio-group>
</div>
......@@ -150,8 +159,11 @@ export default {
// transform: translate(-50%, -50%);
// }
// }
.img-li {
.ma-img {
width: 160px;
}
.img-li {
max-width: 100%;
height: 160px;
border-radius: 8px;
border: 1px solid #e6ebf5;
......
......@@ -7,17 +7,17 @@ export default {
props: {
fileUrl: {
type: String,
default: '',
default: ''
},
fileName: {
type: String,
default: '',
default: ''
},
// 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file)
type: {
type: String,
default: '0',
},
default: '0'
}
// beforeUpload: {
// type: Function,
// default: function() {
......@@ -33,14 +33,14 @@ export default {
// ? '/wecom/material/uploadimg'
// : '/common/uploadFile2Cos'),
headers: window.CONFIG.headers,
domain: process.env.VUE_APP_BASE_API,
domain: process.env.VUE_APP_BASE_API
}
},
watch: {},
computed: {
accept() {
return ['image/*', 'amr/*', 'video/*', '*'][this.type]
},
}
},
created() {},
mounted() {},
......@@ -104,12 +104,13 @@ export default {
this.loading = false
// this.$emit('update:fileUrl', res.data.materialUrl)
// this.$emit('update:fileName', res.data.materialName)
if (this.type == 0) {
res.url = res.data.url
res.fileName = res.data.url
}
this.$emit('update:fileUrl', res.url)
this.$emit('update:fileName', res.fileName)
// if (this.type == 0) {
// res.url = res.data.url
// res.fileName = res.data.url
// }
this.$emit('update:fileUrl', res.data.url)
this.$emit('update:fileName', res.data.fileName)
this.$emit('update:file', file)
// this.fileUrl = URL.createObjectURL(file.raw)
}
......@@ -117,8 +118,8 @@ export default {
onError(err, file, fileList) {
this.loading = false
this.$message.error('上传文件失败')
},
},
}
}
}
</script>
......
......@@ -54,12 +54,12 @@ export default {
this.getListTag()
this.getListOrganization()
// this.$store.dispatch(
// 'app/setBusininessDesc',
// `
// <div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
// `
// )
this.$store.dispatch(
'app/setBusininessDesc',
`
<div>用于查看当前企业所有的客户列表及详细信息,支持对客户进行打标签。</div>
`
)
},
mounted() {},
methods: {
......@@ -251,6 +251,12 @@ export default {
this.$refs.table.clearSelection()
this.$refs.table.toggleRowSelection(row, true)
})
},
goRoute(row) {
this.$router.push({
path: 'customerDetail',
query: { id: row.externalUserid }
})
}
}
}
......@@ -330,10 +336,25 @@ export default {
</el-form>
<div class="mid-action">
<div class="total">
共
<div>
<!-- 共
<span class="num">{{ total }}</span> 位客户,实际客户
<span class="num">{{ total }}</span> 位。
<span class="num">{{ total }}</span> 位。 -->
<el-button
v-hasPermi="['customerManage:customer:sync']"
v-preventReClick
type="primary"
@click="sync"
>同步客户</el-button
>
<el-button
v-hasPermi="['customerManage:customer:checkRepeat']"
type="primary"
>查看重复客户</el-button
>
<!-- <div>
最近同步:2021-05-17 15:05:43
</div> -->
</div>
<div>
<el-button
......@@ -350,17 +371,6 @@ export default {
:disabled="multipleSelection.length !== 1"
>移除标签</el-button
>
<el-button
v-hasPermi="['customerManage:customer:sync']"
type="primary"
@click="sync"
>同步客户</el-button
>
<el-button
v-hasPermi="['customerManage:customer:checkRepeat']"
type="primary"
>查看重复客户</el-button
>
</div>
</div>
......@@ -378,18 +388,19 @@ export default {
width="55"
></el-table-column>
<el-table-column label="客户" prop="name" align="center">
<template slot-scope="scope">
{{ scope.row.name }}
<span
:style="{ color: scope.row.type === 1 ? '#4bde03' : '#f9a90b' }"
>{{ { 1: '@微信', 2: '@企业微信' }[scope.row.type] }}</span
>
<i
:class="[
'el-icon-s-custom',
{ 1: 'man', 2: 'woman' }[scope.row.gender]
]"
></i>
<template slot-scope="{ row }">
<div class="cp" @click="goRoute(row)">
{{ row.name }}
<span :style="{ color: row.type === 1 ? '#4bde03' : '#f9a90b' }">{{
{ 1: '@微信', 2: '@企业微信' }[row.type]
}}</span>
<i
:class="[
'el-icon-s-custom',
{ 1: 'man', 2: 'woman' }[row.gender]
]"
></i>
</div>
</template>
</el-table-column>
<el-table-column
......@@ -398,25 +409,22 @@ export default {
align="center"
></el-table-column>
<el-table-column prop="userName" label="添加人(首位)" align="center">
<template slot-scope="scope">{{
scope.row.weFlowerCustomerRels[0]
? scope.row.weFlowerCustomerRels[0].userName
<template slot-scope="{ row }">{{
row.weFlowerCustomerRels[0]
? row.weFlowerCustomerRels[0].userName
: ''
}}</template>
</el-table-column>
<el-table-column prop="createTime" label="添加时间" align="center">
<template slot-scope="scope">{{
scope.row.weFlowerCustomerRels[0]
? scope.row.weFlowerCustomerRels[0].createTime
<template slot-scope="{ row }">{{
row.weFlowerCustomerRels[0]
? row.weFlowerCustomerRels[0].createTime
: ''
}}</template>
</el-table-column>
<el-table-column prop="address" label="标签" align="center">
<template slot-scope="scope">
<div
v-for="(item, index) in scope.row.weFlowerCustomerRels"
:key="index"
>
<template slot-scope="{ row }">
<div v-for="(item, index) in row.weFlowerCustomerRels" :key="index">
<el-tag
type="info"
v-for="(unit, unique) in item.weFlowerCustomerTagRels"
......@@ -427,15 +435,10 @@ 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 }
})
"
@click="goRoute(row)"
type="text"
size="small"
>查看</el-button
......
......@@ -67,7 +67,6 @@ export default {
'app/setBusininessDesc',
`
<div>群活码原理为把多个群二维码统一为固定的活码,群满自动切换新群,无需手动更新二维码,并未改变微信原有入群规则。</div>
<div>本质上相当于一个中间跳转页面,当一个群快满时,会自动在跳转页面中显示另一个群的二维码,从而突破客户加群的限制。</div>
`
)
},
......
......@@ -249,12 +249,12 @@ export default {
</el-form>
<div class="mid-action">
<div class="total">
<!-- <div class="total">
己选
<span class="num">{{ total }}</span> 条,当前已经配置
<span class="num">{{ total }}</span> 个 最多配置
<span class="num">{{ total }}</span> 个
</div>
</div> -->
<div>
<el-button
v-hasPermi="['wecom:code:add']"
......@@ -263,13 +263,13 @@ export default {
@click="goRoute('staffAdd')"
>新建员工活码</el-button
>
<el-button
<!-- <el-button
v-hasPermi="['wecom:code:batchAdd']"
type="primary"
size="mini"
@click="dialogVisible = true"
>批量新建</el-button
>
> -->
<el-button
v-hasPermi="['wecom:code:remove']"
type="primary"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!