Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
customer-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
customer-admin
Commits
16e7e558
提交
16e7e558
authored
10月 26, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitlab.ezijing.com/webapp/customer-admin
上级
d74127ee
e359febc
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
66 行增加
和
29 行删除
+66
-29
CreateContact.vue
src/modules/customer/components/CreateContact.vue
+3
-3
CreateCoopProject.vue
src/modules/customer/components/CreateCoopProject.vue
+6
-6
Project.vue
src/modules/customer/components/Project.vue
+5
-7
AddCustomer.vue
src/modules/system/customergroup/components/AddCustomer.vue
+1
-1
AddCustomerGroup.vue
...ules/system/customergroup/components/AddCustomerGroup.vue
+3
-3
AddEmployees.vue
src/modules/system/customergroup/components/AddEmployees.vue
+12
-1
Customer.vue
src/modules/system/customergroup/components/Customer.vue
+13
-2
index.js
src/modules/system/customergroup/index.js
+3
-0
List.vue
src/modules/system/customergroup/views/List.vue
+20
-6
没有找到文件。
src/modules/customer/components/CreateContact.vue
浏览文件 @
16e7e558
<
template
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
top=
"20vh"
:title=
"title"
width=
"60%"
>
<el-dialog
:close-on-click-modal=
"false"
v-bind=
"$attrs"
v-on=
"$listeners"
top=
"20vh"
:title=
"title"
width=
"60%"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-row>
<el-col
:span=
"12"
>
...
...
@@ -75,8 +75,8 @@ export default {
qq
:
''
},
rules
:
{
name
:
[{
required
:
true
,
message
:
''
,
trigger
:
'blur'
}],
mobile
:
[{
required
:
true
,
message
:
''
,
trigger
:
'blur'
}]
name
:
[{
required
:
true
,
message
:
'
请输入姓名
'
,
trigger
:
'blur'
}],
mobile
:
[{
required
:
true
,
message
:
'
请输入电话
'
,
trigger
:
'blur'
}]
}
}
},
...
...
src/modules/customer/components/CreateCoopProject.vue
浏览文件 @
16e7e558
<
template
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
top=
"20vh"
:title=
"title"
width=
"60%"
>
<el-dialog
:close-on-click-modal=
"false"
v-bind=
"$attrs"
v-on=
"$listeners"
top=
"20vh"
:title=
"title"
width=
"60%"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"12"
>
...
...
@@ -12,7 +12,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"项目进度"
prop=
"status"
>
<el-select
v-model=
"form.status"
placeholder=
"请选择进度"
size=
"small"
style=
"width: 100%"
>
<el-select
v-model=
"form.status"
placeholder=
"请选择
项目
进度"
size=
"small"
style=
"width: 100%"
>
<el-option
label=
"待跟进"
:value=
"1"
></el-option>
<el-option
label=
"跟进中"
:value=
"2"
></el-option>
<el-option
label=
"待签约"
:value=
"3"
></el-option>
...
...
@@ -84,10 +84,10 @@ export default {
project_sso_ids
:
[]
},
rules
:
{
tag
:
[{
required
:
true
,
message
:
''
,
trigger
:
'change'
}],
status
:
[{
required
:
true
,
message
:
''
,
trigger
:
'change'
}],
project_sso_ids
:
[{
required
:
true
,
message
:
''
,
trigger
:
'change'
}],
cooperation_intention
:
[{
required
:
true
,
message
:
''
,
trigger
:
'change'
}]
tag
:
[{
required
:
true
,
message
:
'
请选择项目
'
,
trigger
:
'change'
}],
status
:
[{
required
:
true
,
message
:
'
请选择项目进度
'
,
trigger
:
'change'
}],
project_sso_ids
:
[{
required
:
true
,
message
:
'
负责人
'
,
trigger
:
'change'
}],
cooperation_intention
:
[{
required
:
true
,
message
:
'
请选择合作意向度
'
,
trigger
:
'change'
}]
}
}
},
...
...
src/modules/customer/components/Project.vue
浏览文件 @
16e7e558
...
...
@@ -4,6 +4,10 @@
<el-button
v-if=
"btnCreate"
type=
"primary"
size=
"small"
@
click=
"handleAdd"
>
添加合作项目
</el-button>
</div>
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template
v-slot:table-person=
"
{ row }">
<p
v-for=
"(item, index) in row.charge_persons"
:key=
"index"
>
{{
item
.
username
}}
</p>
<!--
{{
row
.
charge_persons
}}
-->
</
template
>
<!-- 操作 -->
<
template
v-slot:table-operate=
"{ row }"
>
<template>
...
...
@@ -85,13 +89,7 @@ export default {
prop
:
'charge_persons'
,
label
:
'负责人'
,
align
:
'center'
,
computed
({
row
})
{
const
userName
=
[]
row
.
charge_persons
.
forEach
(
item
=>
{
userName
.
push
(
item
.
username
)
})
return
userName
.
join
(
'
\
n'
)
}
slots
:
'table-person'
},
{
prop
:
'status'
,
...
...
src/modules/system/customergroup/components/AddCustomer.vue
浏览文件 @
16e7e558
<
template
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
width=
"70%"
title=
"添加客户"
>
<el-dialog
:close-on-click-modal=
"false"
v-bind=
"$attrs"
v-on=
"$listeners"
width=
"70%"
title=
"添加客户"
>
<app-card>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<template
v-slot:filter-userSearch=
"
{ params }">
...
...
src/modules/system/customergroup/components/AddCustomerGroup.vue
浏览文件 @
16e7e558
<
template
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
width=
"40%"
top=
"30vh"
:title=
"title"
>
<el-dialog
:close-on-click-modal=
"false"
v-bind=
"$attrs"
v-on=
"$listeners"
width=
"40%"
top=
"30vh"
:title=
"title"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
label-position=
"top"
>
<el-form-item
label=
"客户组名称"
prop=
"name"
label-width=
"100px"
>
<el-input
v-model=
"form.name"
/>
...
...
@@ -59,10 +59,10 @@ export default {
},
// 编辑/更新客户组
edit
()
{
const
params
=
Object
.
assign
({
id
:
this
.
row
.
id
},
this
.
form
)
const
params
=
Object
.
assign
({
id
:
this
.
data
.
id
},
this
.
form
)
editCustomerGroup
(
params
)
.
then
(
res
=>
{
this
.
$message
.
success
(
'客户组
创建
成功'
)
this
.
$message
.
success
(
'客户组
更新
成功'
)
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
,
res
.
data
)
})
...
...
src/modules/system/customergroup/components/AddEmployees.vue
浏览文件 @
16e7e558
<
template
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
width=
"40%"
top=
"30vh"
title=
"添加员工"
>
<el-dialog
:close-on-click-modal=
"false"
v-bind=
"$attrs"
v-on=
"$listeners"
width=
"40%"
top=
"30vh"
title=
"添加员工"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-position=
"top"
>
<el-form-item
label=
"员工名称"
prop=
"id"
size=
"medium"
label-width=
"100px"
>
<el-select
...
...
@@ -58,6 +58,17 @@ export default {
employeeList
:
[]
}
},
computed
:
{
btnPermissions
()
{
return
this
.
$store
.
state
.
permissions
.
filter
(
item
=>
item
.
type
===
4
)
},
btnCreate
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_addStaff'
)
},
btnDelete
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_removeStaff'
)
}
},
mounted
()
{
console
.
log
(
this
.
id
)
...
...
src/modules/system/customergroup/components/Customer.vue
浏览文件 @
16e7e558
...
...
@@ -3,11 +3,13 @@
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template>
<el-row
style=
"margin-bottom: 20px"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"isShowDialog = true"
>
添加客户
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"isShowDialog = true"
v-if=
"btnCreate"
>
添加客户
</el-button
>
</el-row>
</
template
>
<
template
v-slot:table-x=
"{ row }"
>
<el-button
type=
"text"
@
click=
"onRemove(row)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"onRemove(row)"
v-if=
"btnDelete"
>
删除
</el-button>
</
template
>
</app-list>
<AddCustomer
:visible
.
sync=
"isShowDialog"
@
success=
"success"
:id=
"id"
/>
...
...
@@ -32,6 +34,15 @@ export default {
},
computed
:
{
btnPermissions
()
{
return
this
.
$store
.
state
.
permissions
.
filter
(
item
=>
item
.
type
===
4
)
},
btnCreate
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_addCustomer'
)
},
btnDelete
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_removeCustomer'
)
},
// 列表配置
tableOptions
()
{
return
{
...
...
src/modules/system/customergroup/index.js
浏览文件 @
16e7e558
...
...
@@ -3,6 +3,9 @@ const routes = [
path
:
'/system'
,
component
:
()
=>
import
(
'@/components/layout/Index.vue'
),
meta
:
{
title
:
'系统设置'
},
redirect
:
{
path
:
'/system/customergroup'
},
children
:
[
{
path
:
'customergroup'
,
...
...
src/modules/system/customergroup/views/List.vue
浏览文件 @
16e7e558
...
...
@@ -3,13 +3,15 @@
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template>
<el-row
style=
"margin-bottom: 20px"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"addGroup"
>
新建客户组
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"addGroup"
v-if=
"btnCreate"
>
新建客户组
</el-button
>
</el-row>
</
template
>
<
template
v-slot:table-x=
"{ row }"
>
<el-button
type=
"text"
style=
"margin-left: 10px"
@
click=
"toDetail(row)"
>
查看
</el-button>
<el-button
type=
"text"
style=
"margin-left: 10px"
@
click=
"edit(row)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"onRemove(row)"
style=
"margin-left: 10px"
>
删除
</el-button>
<el-button
type=
"text"
style=
"margin-left: 10px"
@
click=
"toDetail(row)"
v-if=
"btnDetail"
>
查看
</el-button>
<el-button
type=
"text"
style=
"margin-left: 10px"
@
click=
"edit(row)"
v-if=
"btnEdit"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"onRemove(row)"
style=
"margin-left: 10px"
v-if=
"btnDelete"
>
删除
</el-button>
</
template
>
</app-list>
<!-- 新建客户组弹框 -->
...
...
@@ -40,6 +42,18 @@ export default {
btnPermissions
()
{
return
this
.
$store
.
state
.
permissions
.
filter
(
item
=>
item
.
type
===
4
)
},
btnCreate
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_create'
)
},
btnDetail
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_details'
)
},
btnDelete
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_delete'
)
},
btnEdit
()
{
return
!!
this
.
btnPermissions
.
find
(
item
=>
item
.
tag
===
'btn_customerGroup_edit'
)
},
// 列表配置
tableOptions
()
{
return
{
...
...
@@ -72,13 +86,13 @@ export default {
},
// 新建
addGroup
()
{
this
.
Edit
=
false
this
.
is
Edit
=
false
this
.
data
=
{}
this
.
isShowDialog
=
true
},
// 编辑
edit
(
row
)
{
this
.
Edit
=
true
this
.
is
Edit
=
true
this
.
data
=
row
this
.
isShowDialog
=
true
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论