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