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