Commit 9a74d171 by xinla

Merge remote-tracking branch 'origin/front_end_dev' into front_end_dev_1.0+

2 parents c41aabcc 3121a46e
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
<template> <template>
<el-dialog <el-dialog
:title="(form.groupId ? '修改' : '添加') + '标签'" :title="(form.groupId ? '修改' : '添加') + '标签/组'"
:visible.sync="Pvisible" :visible.sync="Pvisible"
width="500px" width="500px"
append-to-body append-to-body
......
// cover some element-ui styles // cover some element-ui styles
.el-button { .el-button {
[class^="el-icon-"], [class*=" el-icon-"] { [class^='el-icon-'],
[class*=' el-icon-'] {
vertical-align: top; vertical-align: top;
} }
} }
...@@ -11,7 +12,6 @@ ...@@ -11,7 +12,6 @@
} }
.top-search { .top-search {
.el-input, .el-input,
.el-select { .el-select {
width: 240px; width: 240px;
...@@ -22,7 +22,10 @@ ...@@ -22,7 +22,10 @@
} }
} }
.el-tag+.el-tag { .el-tag + .el-tag {
margin-right: 10px;
}
.el-tag:nth-of-type(2) {
margin-left: 10px; margin-left: 10px;
} }
...@@ -32,7 +35,7 @@ ...@@ -32,7 +35,7 @@
} }
.el-upload { .el-upload {
input[type="file"] { input[type='file'] {
display: none !important; display: none !important;
} }
} }
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
}, },
methods: { methods: {
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
}, },
methods: { methods: {
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
}, },
methods: { methods: {
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
......
...@@ -258,8 +258,8 @@ export default { ...@@ -258,8 +258,8 @@ export default {
getDetail(id) { getDetail(id) {
this.loading = true this.loading = true
getDetail(id).then(({ data }) => { getDetail(id).then(({ data }) => {
this.dateRange = [this.form.startExeTime, this.form.stopExeTime] this.dateRange = [data.startExeTime || '', data.stopExeTime || '']
this.customerGroups = data.groupList this.customerGroups = data.groupList || []
this.form.ruleName = data.ruleName || '' this.form.ruleName = data.ruleName || ''
this.form.title = data.title || '' this.form.title = data.title || ''
...@@ -268,7 +268,9 @@ export default { ...@@ -268,7 +268,9 @@ export default {
this.form.materialIdList = [] this.form.materialIdList = []
for (let material of data.materialList) { const materialList = data.materialList || []
for (let material of materialList) {
if (material.materialUrl) { if (material.materialUrl) {
this.imageMaterialList.push(material) this.imageMaterialList.push(material)
} else { } else {
......
...@@ -113,13 +113,19 @@ export default { ...@@ -113,13 +113,19 @@ export default {
this.form.taskName = data.taskName this.form.taskName = data.taskName
this.form.welcomeMsg = data.welcomeMsg this.form.welcomeMsg = data.welcomeMsg
const keywords = data.keywordList.map((k) => k.keyword) const keywordList = data.keywordList || []
const keywords = keywordList.map((k) => k.keyword)
this.form.keywords = keywords.join(',') this.form.keywords = keywords.join(',')
if (data.groupCodeInfo && data.groupCodeInfo.id) {
this.form.groupCodeId = data.groupCodeInfo.id this.form.groupCodeId = data.groupCodeInfo.id
this.codes = [ data.groupCodeInfo ] this.codes = [ data.groupCodeInfo ]
this.groupQrCode = data.groupCodeInfo this.groupQrCode = data.groupCodeInfo
} else {
this.form.groupCodeId = ''
this.codes = []
this.groupQrCode = {}
}
this.loading = false this.loading = false
}) })
......
...@@ -113,11 +113,11 @@ ...@@ -113,11 +113,11 @@
> >
<el-image <el-image
slot="reference" slot="reference"
:src="row.groupCodeInfo.codeUrl" :src="(row.groupCodeInfo && row.groupCodeInfo.codeUrl) || ''"
class="code-image--small" class="code-image--small"
></el-image> ></el-image>
<el-image <el-image
:src="row.groupCodeInfo.codeUrl" :src="(row.groupCodeInfo && row.groupCodeInfo.codeUrl ) || ''"
class="code-image" class="code-image"
> >
</el-image> </el-image>
...@@ -345,7 +345,8 @@ export default { ...@@ -345,7 +345,8 @@ export default {
// 获取显示用keyword字符串 // 获取显示用keyword字符串
getDisplayKeywords (row) { getDisplayKeywords (row) {
const keywords = row.keywordList.map(k => k.keyword) const keywordList = row.keywordList || []
const keywords = keywordList.map(k => k.keyword)
return keywords.join(' ') return keywords.join(' ')
}, },
......
...@@ -176,16 +176,22 @@ export default { ...@@ -176,16 +176,22 @@ export default {
getDetail(id) { getDetail(id) {
this.loading = true this.loading = true
getDetail(id).then(({ data }) => { getDetail(id).then(({ data }) => {
this.form.codeName = data.codeName this.form.codeName = data.codeName || ''
this.form.skipVerify = data.skipVerify this.form.skipVerify = data.skipVerify || 0
this.form.welcomeMsg = data.welcomeMsg this.form.welcomeMsg = data.welcomeMsg || ''
this.form.groupCodeId = data.groupCodeInfo.id
if (data.groupCodeInfo && data.groupCodeInfo.id) {
this.codes = [ data.groupCodeInfo ] this.codes = [ data.groupCodeInfo ]
this.groupQrCode = data.groupCodeInfo this.groupQrCode = data.groupCodeInfo
this.form.groupCodeId = data.groupCodeInfo.id
} else {
this.codes = []
this.groupQrCode = {}
this.form.groupCodeId = ''
}
this.tags = data.tagList this.tags = data.tagList || []
this.users = data.emplList this.users = data.emplList || []
this.loading = false this.loading = false
}) })
......
...@@ -233,14 +233,25 @@ export default { ...@@ -233,14 +233,25 @@ export default {
getDetail(id) { getDetail(id) {
this.loading = true this.loading = true
getDetail(id).then(({ data }) => { getDetail(id).then(({ data }) => {
this.form = data this.form.taskName = data.taskName || ''
this.tags = this.form.tagList this.form.welcomeMsg = data.welcomeMsg || ''
this.users = this.form.scopeList this.form.sendType = data.sendType || 0
this.groupQrCode = data.groupCodeInfo this.form.sendScope = data.sendScope || 0
this.form.groupCodeId = this.groupQrCode.id this.form.sendGender = data.sendGender || 0
this.dateRange = [this.form.cusBeginTime, this.form.cusEndTime]
this.tags = data.tagList || []
this.users = data.scopeList || []
this.dateRange = [data.cusBeginTime || '', data.cusEndTime || '']
if (data.groupCodeInfo && data.groupCodeInfo.id) {
this.codes = [ data.groupCodeInfo ] this.codes = [ data.groupCodeInfo ]
this.groupQrCode = data.groupCodeInfo
this.form.groupCodeId = this.groupQrCode.id
} else {
this.codes = []
this.groupQrCode = {}
this.form.groupCodeId = ''
}
this.loading = false this.loading = false
}) })
......
...@@ -121,9 +121,12 @@ export default { ...@@ -121,9 +121,12 @@ export default {
}, },
getList(page) { getList(page) {
// console.log(this.dateRange); // console.log(this.dateRange);
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = ''
this.query.endTime = ''
} }
page && (this.query.pageNum = page) page && (this.query.pageNum = page)
this.loading = true this.loading = true
......
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
methods: { methods: {
getList(page) { getList(page) {
// console.log(this.dateRange); // console.log(this.dateRange);
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
</el-row> </el-row>
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="10">标签:</el-col> <el-col :span="10">标签:</el-col>
<el-col :span="12"> <el-col :span="14">
<div <div
v-for="(item, index) in customer.weFlowerCustomerRels" v-for="(item, index) in customer.weFlowerCustomerRels"
:key="index" :key="index"
...@@ -195,6 +195,9 @@ export default { ...@@ -195,6 +195,9 @@ export default {
width: 100px; width: 100px;
text-align: right; text-align: right;
} }
.el-tag {
margin-bottom: 5px;
}
} }
.el-icon-s-custom { .el-icon-s-custom {
font-size: 16px; font-size: 16px;
......
<script> <script>
import { getAllocateCustomers } from "@/api/customer/dimission"; import { getAllocateCustomers } from '@/api/customer/dimission'
export default { export default {
name: "AllocatedStaffDetailList", name: 'AllocatedStaffDetailList',
components: {}, components: {},
props: { props: {
dateRange: { dateRange: {
...@@ -23,59 +23,78 @@ export default { ...@@ -23,59 +23,78 @@ export default {
loading: false, loading: false,
total: 0, total: 0,
list: [], list: [],
}; }
}, },
watch: {}, watch: {},
computed: {}, computed: {},
created() { created() {
this.query.handoverUserId = this.$route.query.userId; this.query.handoverUserId = this.$route.query.userId
this.getList(); this.getList()
}, },
mounted() {}, mounted() {},
methods: { methods: {
/** 查询 */ /** 查询 */
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0]; this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1]; this.query.endTime = this.dateRange[1]
} }
page && (this.query.pageNum = page); page && (this.query.pageNum = page)
this.loading = true; this.loading = true
getAllocateCustomers(this.query) getAllocateCustomers(this.query)
.then(({ rows, total }) => { .then(({ rows, total }) => {
this.list = rows; this.list = rows
this.total = +total; this.total = +total
this.loading = false; this.loading = false
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false
}); })
}, },
}, },
}; }
</script> </script>
<template> <template>
<div class="page"> <div class="page">
<el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%"> <el-table
ref="multipleTable"
:data="list"
tooltip-effect="dark"
style="width: 100%"
>
<el-table-column prop="customerName" label="客户名称"></el-table-column> <el-table-column prop="customerName" label="客户名称"></el-table-column>
<el-table-column prop="takeUserName" label="接替员工"></el-table-column> <el-table-column prop="takeUserName" label="接替员工"></el-table-column>
<el-table-column prop="department" label="接替员工所属部门" show-overflow-tooltip></el-table-column> <el-table-column
<el-table-column prop="allocateTime" label="分配时间" show-overflow-tooltip></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"> <el-table-column label="操作" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['customerManage:dimission:edit']" v-hasPermi="['customerManage:dimission:edit']"
@click="$router.push({path: '/customerManage/customerDetail', query: {id: scope.row.id}})" @click="
$router.push({
path: '/customerManage/customerDetail',
query: { id: scope.row.id },
})
"
type="text" type="text"
size="small" size="small"
>查看</el-button> >查看</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total > 0"
:total="total" :total="total"
:page.sync="query.pageNum" :page.sync="query.pageNum"
:limit.sync="query.pageSize" :limit.sync="query.pageSize"
...@@ -84,5 +103,4 @@ export default { ...@@ -84,5 +103,4 @@ export default {
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -66,9 +66,12 @@ export default { ...@@ -66,9 +66,12 @@ export default {
methods: { methods: {
/** 查询 */ /** 查询 */
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = ''
this.query.endTime = ''
} }
page && (this.query.pageNum = page) page && (this.query.pageNum = page)
this.loading = true this.loading = true
...@@ -106,9 +109,10 @@ export default { ...@@ -106,9 +109,10 @@ export default {
<el-form-item label="离职日期"> <el-form-item label="离职日期">
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
value-format="yyyy-MM-dd"
type="daterange" type="daterange"
:picker-options="pickerOptions" :picker-options="pickerOptions"
range-separator="至" range-separator="-"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
align="right" align="right"
......
...@@ -73,9 +73,12 @@ export default { ...@@ -73,9 +73,12 @@ export default {
methods: { methods: {
/** 查询 */ /** 查询 */
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else {
this.query.beginTime = ''
this.query.endTime = ''
} }
page && (this.query.pageNum = page) page && (this.query.pageNum = page)
this.loading = true this.loading = true
...@@ -139,8 +142,9 @@ export default { ...@@ -139,8 +142,9 @@ export default {
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
type="daterange" type="daterange"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions" :picker-options="pickerOptions"
range-separator="至" range-separator="-"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
align="right" align="right"
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
methods: { methods: {
/** 查询 */ /** 查询 */
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
methods: { methods: {
getList(page) { getList(page) {
// console.log(this.dateRange); // console.log(this.dateRange);
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
class="top-search" class="top-search"
size="small" size="small"
> >
<el-form-item label="客户名称"> <el-form-item label="客户名称" prop="name">
<el-input v-model="query.name" placeholder="请输入"></el-input> <el-input v-model="query.name" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="添加人"> <el-form-item label="添加人">
...@@ -225,8 +225,9 @@ export default { ...@@ -225,8 +225,9 @@ export default {
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
type="daterange" type="daterange"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions" :picker-options="pickerOptions"
range-separator="至" range-separator="-"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
align="right" align="right"
......
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
style="width: 260px" style="width: 260px"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
type="daterange" type="daterange"
:clearable="false"
range-separator="-" range-separator="-"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
......
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
methods: { methods: {
getList(page) { getList(page) {
// console.log(this.dateRange); // console.log(this.dateRange);
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
}, },
methods: { methods: {
getList(page) { getList(page) {
if (this.dateRange[0]) { if (this.dateRange) {
this.query.beginTime = this.dateRange[0] this.query.beginTime = this.dateRange[0]
this.query.endTime = this.dateRange[1] this.query.endTime = this.dateRange[1]
} else { } else {
......
...@@ -39,6 +39,7 @@ module.exports = { ...@@ -39,6 +39,7 @@ module.exports = {
}, },
}, },
disableHostCheck: true, disableHostCheck: true,
// https: true,
}, },
css: { css: {
loaderOptions: { loaderOptions: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!