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