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 1d4ec67a
authored
Dec 13, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉console
1 parent
07c0dc50
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
28 deletions
src/views/guestGroup/add.vue
src/views/guestGroup/components/preview.vue
src/views/guestGroup/components/selectEmp.vue
src/views/guestGroup/components/selectMembers.vue
src/views/guestGroup/index.vue
src/views/guestGroup/add.vue
View file @
1d4ec67
...
...
@@ -115,7 +115,6 @@ export default {
},
data
()
{
const
validatorUser
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
,
!
this
.
$route
.
params
.
id
)
if
(
!
this
.
$route
.
params
.
id
)
{
if
(
this
.
$refs
.
membersForm
)
this
.
basicForm
.
userList
=
this
.
$refs
.
membersForm
.
innerTags
if
(
this
.
basicForm
.
userList
)
{
...
...
@@ -158,7 +157,6 @@ export default {
},
watch
:
{
$route
(
val
)
{
console
.
log
(
val
.
params
)
if
(
val
.
params
)
{
const
id
=
val
.
params
.
id
if
(
id
&&
id
!=
-
1
)
{
...
...
@@ -166,7 +164,6 @@ export default {
}
else
{
if
(
this
.
$refs
.
groupForm
)
this
.
$refs
.
groupForm
.
clearValidate
()
this
.
selectData
=
[]
console
.
log
(
'this.basicForm'
,
this
.
basicForm
,
'this.selectData'
,
this
.
selectData
)
}
}
}
...
...
@@ -214,7 +211,6 @@ export default {
staffId
:
item
.
staffId
}
})
console
.
log
(
params
)
let
apiName
=
'insert'
if
(
this
.
basicForm
.
id
)
{
apiName
=
'update'
...
...
@@ -222,7 +218,6 @@ export default {
}
this
.
$apis
.
groupGuest
[
apiName
](
params
)
.
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
$message
({
type
:
'success'
,
...
...
@@ -253,7 +248,6 @@ export default {
}
// this.$refs.welcome.updateList(res.attachmentList)
this
.
selectData
=
res
.
userList
console
.
log
(
res
.
userList
.
find
(
i
=>
i
.
masterStatus
==
1
))
}
})
},
...
...
@@ -267,7 +261,6 @@ export default {
remove
(
val
,
idx
)
{
if
(
this
.
$refs
.
membersForm
)
{
this
.
$refs
.
membersForm
.
remove
(
val
)
console
.
log
(
this
.
$refs
.
membersForm
.
innerTags
)
this
.
$set
(
this
.
basicForm
,
'userList'
,
this
.
$refs
.
membersForm
.
innerTags
)
this
.
key
=
new
Date
()
}
else
{
...
...
@@ -278,7 +271,6 @@ export default {
},
// 成员弹窗
handleConfirm
()
{
console
.
log
(
this
.
$refs
.
membersForm
.
innerTags
)
if
(
this
.
$refs
.
membersForm
.
innerTags
.
length
==
0
)
{
this
.
$message
({
type
:
'error'
,
...
...
src/views/guestGroup/components/preview.vue
View file @
1d4ec67
...
...
@@ -3,14 +3,14 @@
<div
class=
"preview-content"
>
<div
class=
"preview-time"
>
{{
currentTime
}}
</div>
<div
class=
"preview-info"
v-for=
"item in previewList"
:key=
"item.id"
>
<img
class=
"avatar"
src=
"@/assets/logo.png"
alt
=
""
/>
<img
class=
"avatar"
src=
"@/assets/logo.png"
alt
/>
<template
v-if=
"item.attType == 1"
>
<div
class=
"preview-text text"
>
{{
item
.
attContent
}}
</div>
</
template
>
<
template
v-else-if=
"item.attType == 4"
>
<div
class=
"preview-text preview-link"
>
{{
item
.
attContent
.
url
}}
<img
src=
"@/assets/guestCustom/preview-link.png"
alt
=
""
/>
<img
src=
"@/assets/guestCustom/preview-link.png"
alt
/>
</div>
</
template
>
<
template
v-else-if=
"item.attType == 2"
>
...
...
@@ -23,7 +23,7 @@
<
template
v-else-if=
"item.attType == 5"
>
<div
class=
"preview-text text preview-applet"
>
<div
class=
"preview-applet-title"
>
<img
:src=
"item.attContent.picUrl"
alt
=
""
/>
<img
:src=
"item.attContent.picUrl"
alt
/>
<span>
{{
item
.
attContent
.
title
}}
</span>
</div>
{{
item
.
attContent
.
page
}}
...
...
@@ -46,7 +46,6 @@ export default {
},
created
()
{
this
.
eventBus
.
$on
(
'update'
,
val
=>
{
console
.
log
(
val
)
this
.
previewList
=
val
})
},
...
...
src/views/guestGroup/components/selectEmp.vue
View file @
1d4ec67
...
...
@@ -96,11 +96,9 @@ export default {
this
.
listTree
=
res
this
.
loading
=
false
// this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
console
.
log
(
this
.
listTree
)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
this
.
selectData
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
id
==
i
.
staffId
)
console
.
log
(
row
)
this
.
clearSelect
(
row
)
})
this
.
$nextTick
(()
=>
{
...
...
@@ -110,7 +108,6 @@ export default {
})
},
clearSelect
(
row
)
{
console
.
log
(
row
,
'2222'
)
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
},
clearSelection
()
{
...
...
@@ -139,9 +136,7 @@ export default {
const
arr
=
[]
if
(
this
.
currentArr
&&
this
.
currentArr
.
length
!=
0
)
{
this
.
currentArr
.
forEach
(
item
=>
{
console
.
log
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
if
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
{
console
.
log
(
item
)
arr
.
push
(
item
)
}
})
...
...
@@ -161,7 +156,6 @@ export default {
// }
},
mounted
()
{
console
.
log
(
'islord'
,
this
.
islord
)
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
treeHeight
=
clientHeight
-
700
this
.
listDepartmentTree
()
...
...
src/views/guestGroup/components/selectMembers.vue
View file @
1d4ec67
...
...
@@ -84,7 +84,6 @@ export default {
}
},
remove
(
row
)
{
console
.
log
(
row
,
'111'
)
this
.
$refs
.
selectEmpTabel
.
clearSelect
(
row
)
},
//查询
...
...
@@ -109,10 +108,7 @@ export default {
// this.$emit('closeDrawer')
// }
},
mounted
()
{
console
.
log
(
111
)
// this.listEntFollowerType()
}
mounted
()
{}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/guestGroup/index.vue
View file @
1d4ec67
...
...
@@ -41,7 +41,7 @@
<
/el-tag
>
<
el
-
tag
type
=
"info"
v
-
if
=
"scope.scope.userList.length > 9 && idx == 9"
>
<
el
-
popover
placement
=
"top
-start
"
placement
=
"top"
width
=
"600"
trigger
=
"hover"
content
=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
...
...
@@ -230,7 +230,6 @@ export default {
}
,
watch
:
{
$route
(
val
)
{
console
.
log
(
val
)
if
(
val
.
path
==
'/guestGroup/index'
)
this
.
searchTable
()
}
}
,
...
...
@@ -238,11 +237,9 @@ export default {
methods
:
{
//搜索表格
searchTable
()
{
console
.
log
(
this
.
searchForm
)
this
.
$refs
.
gueastGroup
.
refreshTable
()
}
,
btnClick
(
name
,
rowData
)
{
console
.
log
(
name
)
switch
(
name
)
{
case
'create'
:
this
.
$router
.
push
(
'/guestGroup/add'
)
...
...
@@ -265,7 +262,6 @@ export default {
this
.
$apis
.
groupGuest
.
status
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
searchTable
()
this
.
$message
({
...
...
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