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