Commit e3bfccdd by jzou

Merge branch 'front_end_dev' of https://gitee.com/LinkWeChat/link-wechat into front_end_dev

2 parents f9ff47b3 e25abf26
...@@ -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 {
......
...@@ -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"
......
...@@ -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 {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!