Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a1bccaec
authored
Dec 23, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
一客一群按钮权限
1 parent
e6f17ee6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
src/api/modules/groupGuest.js
src/views/guestGroup/add.vue
src/views/guestGroup/index.vue
src/api/modules/groupGuest.js
View file @
a1bccae
...
...
@@ -80,6 +80,17 @@ const nameVaild = params => {
})
}
const
updateNameVaild
=
params
=>
{
params
.
method
=
'entmicro.api.one.template.name.update.valid'
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
default
{
templateList
,
insert
,
...
...
@@ -87,5 +98,6 @@ export default {
status
,
update
,
listDepartmentTree
,
nameVaild
nameVaild
,
updateNameVaild
}
src/views/guestGroup/add.vue
View file @
a1bccae
...
...
@@ -145,8 +145,12 @@ export default {
const
params
=
{
templateName
:
value
}
if
(
this
.
$route
.
params
.
id
)
params
.
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
groupGuest
.
nameVaild
(
params
).
then
(
res
=>
{
let
api
=
'nameVaild'
if
(
this
.
$route
.
params
.
id
)
{
params
.
id
=
this
.
$route
.
params
.
id
api
=
'updateNameVaild'
}
this
.
$apis
.
groupGuest
[
api
](
params
).
then
(
res
=>
{
if
(
res
)
{
callback
(
new
Error
(
'群聊名称不可重复'
))
}
else
{
...
...
src/views/guestGroup/index.vue
View file @
a1bccae
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"btn-header"
>
<button
class=
"addBtn"
@
click=
"btnClick('create')"
>
新建群组
</button>
<!--
<el-button
class=
"addBtn"
@
click=
"btnClick('create')"
>
新建群组
</el-button>
-->
<GLButton
class=
"addBtn"
@
click=
"btnClick('create')"
fn=
"新建群组"
>
新建群组
</GLButton>
<span
class=
"toptips"
>
<span>
配置群聊不会自动拉群,邀请客户入群后群聊才会正式生效,一个客户默认拉一个群聊。
</span>
</span>
...
...
@@ -69,11 +70,13 @@
>
{{
scope
.
scope
.
status
==
'1'
?
'启用'
:
'停用'
}}
<
/span
>
<
/span
>
<
div
class
=
"table-btns"
slot
=
"optionBtns"
slot
-
scope
=
"scope"
>
<
el
-
button
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
>
修改
<
/el-button
>
<
el
-
button
<!--
<
el
-
button
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
>
修改
<
/el-button> --
>
<
GLButton
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
fn
=
"修改群组"
>
修改
<
/GLButton
>
<
GLButton
type
=
"text"
@
click
=
"btnClick('status', scope.scope)"
fn
=
"启用禁用"
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/GLButton
>
<!--
<
el
-
button
type
=
"text"
@
click
=
"btnClick('status', scope.scope)"
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/el-button
>
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/el-button>
--
>
<
/div
>
<
/GLTable
>
<!--
表格区域
end
-->
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment