提交 e0e49680 authored 作者: pengxiaohui's avatar pengxiaohui
...@@ -28,4 +28,4 @@ export default { ...@@ -28,4 +28,4 @@ export default {
this._props = Object.assign(this.defaultProps, this.props) this._props = Object.assign(this.defaultProps, this.props)
} }
} }
</script> </script>
\ No newline at end of file
const options = [ const options = [
{ {
name: '本科', id: 1, name: '本科',
id: 1,
children: [ children: [
{ {
name: '985/211', name: '985/211',
...@@ -35,7 +36,7 @@ const options = [ ...@@ -35,7 +36,7 @@ const options = [
{ {
name: '双高', name: '双高',
id: 201 id: 201
}, },
{ {
name: '非双高', name: '非双高',
id: 202 id: 202
......
...@@ -9,7 +9,12 @@ ...@@ -9,7 +9,12 @@
:loading="searchUsersloading" :loading="searchUsersloading"
@change="handleChange" @change="handleChange"
> >
<el-option :label="user.realname || user.nickname || user.username" :value="user.id" v-for="user in userList" :key="user.id"> <el-option
:label="user.realname || user.nickname || user.username"
:value="user.id"
v-for="user in userList"
:key="user.id"
>
<span style="float: left"> <span style="float: left">
{{ user.realname || user.nickname || user.username }} {{ user.realname || user.nickname || user.username }}
<template v-if="user.mobile">(手机号:{{ user.mobile }})</template> <template v-if="user.mobile">(手机号:{{ user.mobile }})</template>
......
...@@ -149,10 +149,6 @@ export default { ...@@ -149,10 +149,6 @@ export default {
project_tag: '', project_tag: '',
project_status: '', project_status: '',
project_sso_id: '', project_sso_id: '',
// last_record_start_time: '',
// last_record_end_time: '',
// created_start_time: '',
// created_end_time: '',
create_date: '', create_date: '',
follow_date: '', follow_date: '',
college_type: '', college_type: '',
...@@ -218,7 +214,6 @@ export default { ...@@ -218,7 +214,6 @@ export default {
{ prop: 'group_id', slots: 'filter-customerGroup', label: '所属分组:' } { prop: 'group_id', slots: 'filter-customerGroup', label: '所属分组:' }
], ],
columns: [ columns: [
// { type: 'selection', minWidth: '40px' },
{ prop: 'name', label: '客户名称', minWidth: '140px' }, { prop: 'name', label: '客户名称', minWidth: '140px' },
{ {
prop: 'source', prop: 'source',
...@@ -257,7 +252,6 @@ export default { ...@@ -257,7 +252,6 @@ export default {
{ prop: 'last_record_time', label: '最近跟进时间', minWidth: '150px' }, { prop: 'last_record_time', label: '最近跟进时间', minWidth: '150px' },
{ prop: 'project_count', label: '合作项目', minWidth: '80px' }, { prop: 'project_count', label: '合作项目', minWidth: '80px' },
{ prop: 'contact_count', label: '联系人', minWidth: '80px' }, { prop: 'contact_count', label: '联系人', minWidth: '80px' },
// { prop: 'created_by.realname', label: '创建员工', minWidth: '100px' },
{ {
prop: 'created_by', prop: 'created_by',
label: '创建员工', label: '创建员工',
......
...@@ -79,11 +79,9 @@ export default { ...@@ -79,11 +79,9 @@ export default {
}, },
// 添加员工 // 添加员工
submit() { submit() {
const param = this.multipleSelection
const arr = param.map(item => item.id)
const params = { group_id: this.id, customer_ids: arr }
this.btnDisabled = true this.btnDisabled = true
createCustomer(params) const arr = this.multipleSelection.map(item => item.id)
createCustomer({ group_id: this.id, customer_ids: arr })
.then(res => { .then(res => {
if (res.code === 0) { if (res.code === 0) {
this.$message.success('添加客户成功') this.$message.success('添加客户成功')
......
...@@ -60,8 +60,8 @@ export default { ...@@ -60,8 +60,8 @@ export default {
}, },
// 编辑/更新客户组 // 编辑/更新客户组
edit() { edit() {
const params = Object.assign({ id: this.data.id }, this.form)
this.btnDisabled = true this.btnDisabled = true
const params = Object.assign({ id: this.data.id }, this.form)
editCustomerGroup(params) editCustomerGroup(params)
.then(res => { .then(res => {
this.$message.success('客户组更新成功') this.$message.success('客户组更新成功')
......
...@@ -98,8 +98,8 @@ export default { ...@@ -98,8 +98,8 @@ export default {
this.$refs.form this.$refs.form
.validate() .validate()
.then(() => { .then(() => {
const params = Object.assign({ group_id: this.id, staff_ids: this.form.id })
this.btnDisabled = true this.btnDisabled = true
const params = Object.assign({ group_id: this.id, staff_ids: this.form.id })
createEmployee(params).then(res => { createEmployee(params).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.$message.success('添加员工成功') this.$message.success('添加员工成功')
......
<template> <template>
<app-card> <app-list v-bind="tableOptions" ref="list">
<app-list v-bind="tableOptions" ref="list"> <template>
<template> <el-row style="margin-bottom: 20px">
<el-row style="margin-bottom: 20px"> <el-button type="primary" icon="el-icon-plus" size="mini" @click="isShowDialog = true" v-if="btnCreate"
<el-button type="primary" icon="el-icon-plus" size="mini" @click="isShowDialog = true" v-if="btnCreate" >添加客户</el-button
>添加客户</el-button >
> </el-row>
</el-row> </template>
</template> <template v-slot:table-x="{ row }">
<template v-slot:table-x="{ row }"> <el-button type="text" @click="onRemove(row)" v-if="btnDelete">删除</el-button>
<el-button type="text" @click="onRemove(row)" v-if="btnDelete">删除</el-button> </template>
</template>
</app-list>
<AddCustomer :visible.sync="isShowDialog" @success="success" :id="id" /> <AddCustomer :visible.sync="isShowDialog" @success="success" :id="id" />
</app-card> </app-list>
</template> </template>
<script> <script>
...@@ -96,5 +94,3 @@ export default { ...@@ -96,5 +94,3 @@ export default {
} }
} }
</script> </script>
<style></style>
<template> <template>
<app-card> <app-list v-bind="tableOptions" ref="list">
<app-list v-bind="tableOptions" ref="list"> <template>
<template> <el-row style="margin-bottom: 20px">
<el-row style="margin-bottom: 20px"> <el-button type="primary" icon="el-icon-plus" size="mini" @click="isShowDialog = true" v-if="btnCreate"
<el-button type="primary" icon="el-icon-plus" size="mini" @click="isShowDialog = true" v-if="btnCreate" >添加员工</el-button
>添加员工</el-button >
> </el-row>
</el-row> </template>
</template> <template v-slot:table-x="{ row }">
<template v-slot:table-x="{ row }"> <el-button type="text" @click="onRemove(row)" v-if="btnDelete">删除</el-button>
<el-button type="text" @click="onRemove(row)" v-if="btnDelete">删除</el-button> </template>
</template>
</app-list>
<AddEmployees :visible.sync="isShowDialog" @success="success" :id="id" v-if="isShowDialog" /> <AddEmployees :visible.sync="isShowDialog" @success="success" :id="id" v-if="isShowDialog" />
</app-card> </app-list>
</template> </template>
<script> <script>
import AppList from '@/components/base/AppList.vue'
import AppCard from '@/components/base/AppCard.vue'
import AddEmployees from '../components/AddEmployees.vue' import AddEmployees from '../components/AddEmployees.vue'
import { employeeDetail, delEmployee } from '../api' import { employeeDetail, delEmployee } from '../api'
export default { export default {
...@@ -27,7 +23,7 @@ export default { ...@@ -27,7 +23,7 @@ export default {
isShowDialog: false isShowDialog: false
} }
}, },
components: { AppList, AppCard, AddEmployees }, components: { AddEmployees },
props: { props: {
id: { id: {
type: String, type: String,
...@@ -47,7 +43,6 @@ export default { ...@@ -47,7 +43,6 @@ export default {
// 列表配置 // 列表配置
tableOptions() { tableOptions() {
return { return {
// data: this.detail,
remote: { remote: {
httpRequest: employeeDetail, httpRequest: employeeDetail,
params: { params: {
...@@ -105,5 +100,3 @@ export default { ...@@ -105,5 +100,3 @@ export default {
} }
} }
</script> </script>
<style></style>
<template> <template>
<div> <app-card>
<el-card> <h4 class="title" style="margin-bottom: 20px">{{ title || '' }}</h4>
<h4 class="title" style="margin-bottom: 20px">{{ title || '' }}</h4> <el-tabs v-model="tabsActive">
<el-tabs v-model="tabsActive"> <el-tab-pane label="客户" name="customer"> <Customer :id="id" /> </el-tab-pane>
<el-tab-pane label="客户" name="customer"> <Customer :id="id" /> </el-tab-pane> <el-tab-pane label="员工" name="employees" lazy><Employees :id="id" /> </el-tab-pane>
<el-tab-pane label="员工" name="employees" lazy><Employees :id="id" /> </el-tab-pane> </el-tabs>
</el-tabs> </app-card>
</el-card>
</div>
</template> </template>
<script> <script>
...@@ -33,5 +31,3 @@ export default { ...@@ -33,5 +31,3 @@ export default {
} }
} }
</script> </script>
<style></style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论