Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
customer-admin
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
customer-admin
Commits
28b243ff
提交
28b243ff
authored
10月 27, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitlab.ezijing.com/webapp/customer-admin
上级
7159c0fd
3bc0a244
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
160 行增加
和
62 行删除
+160
-62
index.js
src/modules/exception/index.js
+13
-0
401.vue
src/modules/exception/views/401.vue
+0
-0
browser.vue
src/modules/exception/views/browser.vue
+108
-0
AddCustomer.vue
src/modules/system/customergroup/components/AddCustomer.vue
+8
-11
AddCustomerGroup.vue
...ules/system/customergroup/components/AddCustomerGroup.vue
+5
-9
AddEmployees.vue
src/modules/system/customergroup/components/AddEmployees.vue
+8
-12
Customer.vue
src/modules/system/customergroup/components/Customer.vue
+6
-10
Employees.vue
src/modules/system/customergroup/components/Employees.vue
+6
-10
List.vue
src/modules/system/customergroup/views/List.vue
+6
-10
没有找到文件。
src/modules/exception/index.js
0 → 100644
浏览文件 @
28b243ff
const
routes
=
[
{
path
:
'/401'
,
component
:
()
=>
import
(
'./views/401.vue'
)
},
{
name
:
'browser'
,
path
:
'/browser'
,
component
:
()
=>
import
(
'./views/browser.vue'
)
}
]
export
{
routes
}
src/modules/exception/views/401.vue
0 → 100644
浏览文件 @
28b243ff
差异被折叠。
点击展开。
src/modules/exception/views/browser.vue
0 → 100644
浏览文件 @
28b243ff
<
template
>
<div
class=
"container"
>
<div
class=
"box"
>
<h1
class=
"tips"
>
你的浏览器版本较低,请升级你的浏览器。
</h1>
<div
class=
"list"
>
<ul>
<li
v-for=
"item in browserList"
:key=
"item.name"
>
<a
:href=
"item.href"
target=
"_blank"
>
<img
:src=
"item.logoUrl"
/>
<p
class=
"t1"
>
{{
item
.
name
}}
</p>
<p
class=
"t2"
>
{{
item
.
company
}}
</p>
</a>
</li>
</ul>
</div>
</div>
<p
class=
"ua"
>
{{
UA
}}
</p>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
const
UA
=
window
.
navigator
.
userAgent
const
isIe
=
window
.
ActiveXObject
||
'ActiveXObject'
in
window
return
{
UA
,
isIe
,
browserList
:
[
{
name
:
'Chrome'
,
company
:
'Google'
,
href
:
'https://www.google.cn/chrome'
,
logoUrl
:
'https://webapp-pub.ezijing.com/website/base/images/chrome.png'
},
{
name
:
'Edge'
,
company
:
'Microsoft'
,
href
:
'https://www.microsoft.com/edge'
,
logoUrl
:
'https://webapp-pub.ezijing.com/website/base/images/edge.png'
},
{
name
:
'Firefox'
,
company
:
'Mozilla Foundation'
,
href
:
'https://download.mozilla.org'
,
logoUrl
:
'https://webapp-pub.ezijing.com/website/base/images/firefox.png'
}
]
}
},
beforeMount
()
{
!
this
.
isIe
&&
this
.
$router
.
replace
(
'/'
)
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.container
{
height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.box
{
width
:
700px
;
background-color
:
#f4f5f7
;
border-radius
:
10px
;
}
.tips
{
margin
:
30px
;
font-size
:
24px
;
color
:
#172b4d
;
text-align
:
center
;
}
ul
{
margin
:
0
;
padding
:
0
;
display
:
flex
;
list-style
:
none
;
li
{
flex
:
1
;
padding
:
40px
;
text-align
:
center
;
}
img
{
width
:
100px
;
}
p
{
margin
:
0
;
text-align
:
center
;
}
.t1
{
color
:
#e25600
;
}
.t2
{
color
:
#aaa
;
text-decoration
:
none
;
}
a
{
text-decoration
:
none
;
}
}
.ua
{
font-size
:
12px
;
margin
:
20px
;
}
</
style
>
src/modules/system/customergroup/components/AddCustomer.vue
浏览文件 @
28b243ff
...
...
@@ -73,17 +73,14 @@ export default {
const
param
=
this
.
multipleSelection
const
arr
=
param
.
map
(
item
=>
item
.
id
)
const
params
=
{
group_id
:
this
.
id
,
customer_ids
:
arr
}
createCustomer
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'添加客户成功'
)
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
)
}
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
})
createCustomer
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'添加客户成功'
)
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
)
this
.
$refs
.
list
.
refetch
()
}
})
}
}
}
...
...
src/modules/system/customergroup/components/AddCustomerGroup.vue
浏览文件 @
28b243ff
...
...
@@ -60,15 +60,11 @@ export default {
// 编辑/更新客户组
edit
()
{
const
params
=
Object
.
assign
({
id
:
this
.
data
.
id
},
this
.
form
)
editCustomerGroup
(
params
)
.
then
(
res
=>
{
this
.
$message
.
success
(
'客户组更新成功'
)
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
,
res
.
data
)
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
})
editCustomerGroup
(
params
).
then
(
res
=>
{
this
.
$message
.
success
(
'客户组更新成功'
)
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
,
res
.
data
)
})
},
// 新建客户组
create
()
{
...
...
src/modules/system/customergroup/components/AddEmployees.vue
浏览文件 @
28b243ff
...
...
@@ -53,7 +53,7 @@ export default {
id
:
''
},
rules
:
{
id
:
[{
required
:
true
,
trigger
:
'blur'
}]
id
:
[{
required
:
true
,
message
:
'请输入员工姓名/手机号码'
,
trigger
:
'blur'
}]
},
employeeList
:
[]
}
...
...
@@ -108,17 +108,13 @@ export default {
submit
()
{
this
.
$refs
.
form
.
validate
().
then
(()
=>
{
const
params
=
Object
.
assign
({
group_id
:
this
.
id
,
staff_ids
:
this
.
form
.
id
})
createEmployee
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'添加员工成功'
)
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
)
}
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
})
createEmployee
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'添加员工成功'
)
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
)
}
})
})
}
}
...
...
src/modules/system/customergroup/components/Customer.vue
浏览文件 @
28b243ff
...
...
@@ -80,16 +80,12 @@ export default {
handleRemove
(
row
)
{
const
arr
=
[]
arr
.
push
(
row
.
id
)
delCustomer
({
ids
:
arr
})
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
})
this
.
$refs
.
list
.
refetch
()
}
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
})
delCustomer
({
ids
:
arr
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
})
this
.
$refs
.
list
.
refetch
()
}
})
}
}
}
...
...
src/modules/system/customergroup/components/Employees.vue
浏览文件 @
28b243ff
...
...
@@ -72,16 +72,12 @@ export default {
handleRemove
(
row
)
{
const
arr
=
[]
arr
.
push
(
row
.
id
)
delEmployee
({
ids
:
arr
})
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
})
this
.
success
()
}
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
})
delEmployee
({
ids
:
arr
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
})
this
.
success
()
}
})
}
}
}
...
...
src/modules/system/customergroup/views/List.vue
浏览文件 @
28b243ff
...
...
@@ -112,16 +112,12 @@ export default {
},
// 删除
handleRemove
(
row
)
{
deleteGroup
({
id
:
row
.
id
})
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
})
this
.
$refs
.
list
.
refetch
()
}
})
.
catch
(
error
=>
{
this
.
$message
.
error
(
error
.
message
)
})
deleteGroup
({
id
:
row
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功'
})
this
.
$refs
.
list
.
refetch
()
}
})
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论