Commit 5edc6dc1 by xinla

2.0bug修改

1 parent 424c681e
......@@ -33,46 +33,46 @@ export const constantRoutes = [
children: [
{
path: '/redirect/:path(.*)',
component: (resolve) => require(['@/views/redirect'], resolve),
},
],
component: (resolve) => require(['@/views/redirect'], resolve)
}
]
},
{
path: '',
redirect: '/index',
hidden: true,
hidden: true
},
{
path: '/index',
component: Layout,
redirect: '/index',
name: '首页',
meta: { title: '首页' },
name: '运营中心',
meta: { title: '运营中心' },
children: [
{
path: '/index',
component: (resolve) => require(['@/views/index'], resolve),
name: '首页',
name: '运营中心',
hidden: true,
meta: {
title: '首页',
title: '运营中心',
icon: 'dashboard',
breadcrumb: false,
noCache: true,
affix: true,
},
},
],
affix: true
}
}
]
},
{
path: '/login',
component: (resolve) => require(['@/views/login'], resolve),
hidden: true,
hidden: true
},
{
path: '/authCallback',
component: (resolve) => require(['@/views/authCallback'], resolve),
hidden: true,
hidden: true
},
// {
// path: '/customerManage',
......@@ -541,12 +541,11 @@ export const constantRoutes = [
children: [
{
path: 'profile',
component: (resolve) =>
require(['@/views/system/user/profile/index'], resolve),
component: (resolve) => require(['@/views/system/user/profile/index'], resolve),
name: 'Profile',
meta: { title: '个人中心', icon: 'user' },
},
],
meta: { title: '个人中心', icon: 'user' }
}
]
},
{
path: '/dict',
......@@ -557,9 +556,9 @@ export const constantRoutes = [
path: 'type/data/:dictId(\\d+)',
component: (resolve) => require(['@/views/system/dict/data'], resolve),
name: 'Data',
meta: { title: '字典数据', icon: '' },
},
],
meta: { title: '字典数据', icon: '' }
}
]
},
{
path: '/job',
......@@ -570,9 +569,9 @@ export const constantRoutes = [
path: 'log',
component: (resolve) => require(['@/views/monitor/job/log'], resolve),
name: 'JobLog',
meta: { title: '调度日志' },
},
],
meta: { title: '调度日志' }
}
]
},
{
path: '/gen',
......@@ -581,12 +580,11 @@ export const constantRoutes = [
children: [
{
path: 'edit/:tableId(\\d+)',
component: (resolve) =>
require(['@/views/tool/gen/editTable'], resolve),
component: (resolve) => require(['@/views/tool/gen/editTable'], resolve),
name: 'GenEdit',
meta: { title: '修改生成配置' },
},
],
meta: { title: '修改生成配置' }
}
]
},
// {
// path: '/test',
......@@ -596,17 +594,17 @@ export const constantRoutes = [
{
path: '/404',
component: (resolve) => require(['@/views/error/404'], resolve),
hidden: true,
hidden: true
},
{
path: '/401',
component: (resolve) => require(['@/views/error/401'], resolve),
hidden: true,
},
hidden: true
}
]
export default new Router({
// mode: 'history',
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes,
routes: constantRoutes
})
......@@ -32,8 +32,8 @@
<span style="line-height:40px">{{ item.customerName }}</span>
</el-col>
<el-col :span="10" class="ar">
<span :style="{ color: item.type === 1 ? '#4bde03' : '#f9a90b' }"
>{{ { 1: '@微信', 2: '@企业微信' }[item.type] }}
<span :style="{ color: item.customerType === 1 ? '#4bde03' : '#f9a90b' }"
>{{ { 1: '@微信', 2: '@企业微信' }[item.customerType] }}
</span>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[item.gender]]"></i>
</el-col>
......
......@@ -449,7 +449,7 @@ export default {
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" align="center" width="55"> </el-table-column>
<el-table-column label="客户" prop="customerName" align="center">
<el-table-column label="客户" prop="customerName" header-align="center" align="" width="180">
<template slot-scope="{ row }">
<div class="cp flex aic" @click="goRoute(row)">
<el-image
......@@ -458,11 +458,11 @@ export default {
fit="fit"
></el-image>
<div class="ml10">
{{ row.customerName }}
<span :style="{ color: row.customerType === 1 ? '#4bde03' : '#f9a90b' }">{{
{ 1: '@微信', 2: '@企业微信' }[row.type]
}}</span>
<p>{{ row.customerName }}</p>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[row.gender]]"></i>
<span :style="{ color: row.customerType === 1 ? '#4bde03' : '#f9a90b' }">
{{ { 1: '@微信', 2: '@企业微信' }[row.customerType] }}
</span>
</div>
</div>
</template>
......@@ -593,7 +593,7 @@ export default {
<style lang="scss" scoped>
.el-icon-s-custom {
font-size: 16px;
margin-left: 4px;
// margin-left: 4px;
color: #999;
&.man {
color: #13a2e8;
......
......@@ -64,10 +64,21 @@ 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-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="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="{ row }">
......@@ -76,7 +87,7 @@ export default {
@click="
$router.push({
path: 'customerDetail',
query: { data: JSON.stringify(row) }
query: { externalUserid: row.externalUserid, userId: row.firstUserId }
})
"
type="text"
......
<script>
import { getListNew, exportCustomer, lossRemind, getLossRemindStatus } from '@/api/customer'
import { getList as getListTag } from '@/api/customer/tag'
import { getList as getListOrganization } from '@/api/organization'
// import { getList as getListTag } from '@/api/customer/tag'
// import { getList as getListOrganization } from '@/api/organization'
import SelectUser from '@/components/SelectUser'
import SelectTag from '@/components/SelectTag'
......@@ -51,8 +51,8 @@ export default {
computed: {},
created() {
this.getList()
this.getListTag()
this.getListOrganization()
// this.getListTag()
// this.getListOrganization()
this.getLossRemindStatus()
this.$store.dispatch(
......@@ -86,21 +86,21 @@ export default {
this.loading = false
})
},
getListTag() {
getListTag().then(({ rows }) => {
this.listTagOneArray = []
rows.forEach((element) => {
element.weTags.forEach((d) => {
this.listTagOneArray.push(d)
})
})
})
},
getListOrganization() {
getListOrganization().then(({ rows }) => {
this.listOrganization = Object.freeze(rows)
})
},
// getListTag() {
// getListTag().then(({ rows }) => {
// this.listTagOneArray = []
// rows.forEach((element) => {
// element.weTags.forEach((d) => {
// this.listTagOneArray.push(d)
// })
// })
// })
// },
// getListOrganization() {
// getListOrganization().then(({ rows }) => {
// this.listOrganization = Object.freeze(rows)
// })
// },
getLossRemindStatus() {
getLossRemindStatus().then(({ data }) => {
this.isNotice = data
......@@ -164,7 +164,14 @@ export default {
<template>
<div>
<el-form ref="queryForm" :inline="true" :model="query" label-width="100px" class="top-search" size="small">
<el-form
ref="queryForm"
:inline="true"
:model="query"
label-width="100px"
class="top-search"
size="small"
>
<el-form-item label="客户名称" prop="name">
<el-input v-model="query.name" placeholder="请输入"></el-input>
</el-form-item>
......@@ -172,7 +179,9 @@ export default {
<div class="tag-input" @click="dialogVisibleSelectUser = true">
<span class="tag-place" v-if="!queryUser.length">请选择</span>
<template v-else>
<el-tag type="info" v-for="(unit, unique) in queryUser" :key="unique">{{ unit.name }}</el-tag>
<el-tag type="info" v-for="(unit, unique) in queryUser" :key="unique">{{
unit.name
}}</el-tag>
</template>
</div>
</el-form-item>
......@@ -192,14 +201,26 @@ export default {
<div class="tag-input" @click="showTagDialog">
<span class="tag-place" v-if="!queryTag.length">请选择</span>
<template v-else>
<el-tag type="info" v-for="(unit, unique) in queryTag" :key="unique">{{ unit.name }}</el-tag>
<el-tag type="info" v-for="(unit, unique) in queryTag" :key="unique">{{
unit.name
}}</el-tag>
</template>
</div>
</el-form-item>
<el-form-item label=" ">
<el-button v-hasPermi="['customerManage:customer:query']" type="primary" @click="getList(1)">查询</el-button>
<el-button v-hasPermi="['customerManage:customer:query']" type="success" @click="resetForm()">重置</el-button>
<el-button v-hasPermi="['customerManage:customer:export']" type="info" @click="exportCustomer"
<el-button v-hasPermi="['customerManage:customer:query']" type="primary" @click="getList(1)"
>查询</el-button
>
<el-button
v-hasPermi="['customerManage:customer:query']"
type="success"
@click="resetForm()"
>重置</el-button
>
<el-button
v-hasPermi="['customerManage:customer:export']"
type="info"
@click="exportCustomer"
>导出列表</el-button
>
</el-form-item>
......@@ -248,7 +269,9 @@ export default {
</el-table-column>
<el-table-column prop="address" label="标签" align="center">
<template slot-scope="{ row }" v-if="row.tagNames">
<el-tag type="info" v-for="(unit, unique) in row.tagNames.split(',')" :key="unique">{{ unit }}</el-tag>
<el-tag type="info" v-for="(unit, unique) in row.tagNames.split(',')" :key="unique">{{
unit
}}</el-tag>
<!-- <div v-for="(item, index) in row.weFlowerCustomerRels" :key="index">
<el-tag type="info" v-for="(unit, unique) in item.weFlowerCustomerTagRels" :key="unique">{{
......@@ -264,7 +287,7 @@ export default {
@click="
$router.push({
path: 'customerDetail',
query: { data: JSON.stringify(row) }
query: { externalUserid: row.externalUserid, userId: row.firstUserId }
})
"
type="text"
......@@ -295,7 +318,11 @@ export default {
</SelectTag>
<!-- 选择添加人弹窗 -->
<SelectUser :visible.sync="dialogVisibleSelectUser" title="选择添加人" @success="selectedUser"></SelectUser>
<SelectUser
:visible.sync="dialogVisibleSelectUser"
title="选择添加人"
@success="selectedUser"
></SelectUser>
</div>
</template>
......
......@@ -340,8 +340,7 @@ export default {
xData: []
}
let series = []
let colors = ['#088AEE', '#E74E59', '#14BF48', '#FA7216']
this.erchatsTable.dataList.forEach((a) => {
let colors = this.erchatsTable.dataList.forEach((a) => {
data.xData.push(a.xtime)
data.arr1.push(a.newContactCnt)
data.arr3.push(a.newMemberCnt)
......@@ -356,13 +355,13 @@ export default {
stack: '总量',
smooth: true,
data: data['arr' + index],
itemStyle: {
normal: {
lineStyle: {
color: colors[index]
}
}
},
// itemStyle: {
// normal: {
// lineStyle: {
// color: colors[index]
// }
// }
// },
textStyle: {
color: '#fff' // 主标题文字的颜色。
}
......@@ -381,7 +380,7 @@ export default {
}, 200)
}
charts.setOption({
// color: [color],
color: ['#088AEE', '#E74E59', '#14BF48', '#FA7216'],
tooltip: {
trigger: 'axis'
},
......
......@@ -441,14 +441,14 @@ export default {
<!-- 图片 -->
<template v-else-if="type === '0'">
<el-form-item label="文案" prop="content">
<!-- <el-form-item label="文案" prop="content">
<el-input
v-model="form.content"
type="textarea"
:autosize="{ minRows: 2, maxRows: 50 }"
placeholder="请输入"
></el-input>
</el-form-item>
</el-form-item> -->
<el-form-item label="图片" prop="materialUrl">
<upload :fileUrl.sync="form.materialUrl" :fileName.sync="form.materialName" type="0">
<div slot="tip">
......@@ -456,9 +456,9 @@ export default {
</div>
</upload>
</el-form-item>
<el-form-item label="名称" prop="materialName">
<!-- <el-form-item label="名称" prop="materialName">
<el-input v-model="form.materialName" placeholder="请输入"></el-input>
</el-form-item>
</el-form-item> -->
</template>
<!-- 图文 -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!