Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 1f3a1cbb
authored
Dec 08, 2021
by
test
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug fixed
1 parent
26b9c021
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
253 additions
and
179 deletions
linkwe-ui/src/components/SelectTag.vue
linkwe-ui/src/components/SelectUser.vue
linkwe-ui/src/components/WelcomeContent.vue
linkwe-ui/src/views/drainageCode/staff/add.vue
linkwe-ui/src/views/drainageCode/staff/detail.vue
linkwe-ui/src/views/drainageCode/staff/list.vue
linkwe-ui/src/views/drainageCode/welcome/add.vue
linkwe-ui/src/views/drainageCode/welcome/components/Tab.vue
linkwe-ui/src/views/groupMessage/add.vue
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/views/groupMessage/record.vue
linkwe-ui/src/components/SelectTag.vue
View file @
1f3a1cb
<
script
>
<
script
>
import
{
getList
}
from
'@/api/customer/tag'
import
{
getList
}
from
'@/api/customer/tag'
export
default
{
export
default
{
name
:
'SelectTag'
,
name
:
'SelectTag'
,
components
:
{},
components
:
{},
props
:
{
props
:
{
// 添加标签显隐
// 添加标签显隐
visible
:
{
visible
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
,
},
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'选择标签'
default
:
'选择标签'
,
},
},
selected
:
{
// selected: {
type
:
Array
,
// type: Array,
default
:
()
=>
[]
// default: () => [],
},
// },
// add: 打标签,remove: 移除标签
type
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
'add'
default
:
'add'
,
},
destroyOnClose
:
Boolean
,
defaultValues
:
{
type
:
Array
,
default
:
()
=>
[]
}
}
},
},
data
()
{
data
()
{
return
{
return
{
list
:
[],
list
:
[],
listOneArray
:
[],
listOneArray
:
[],
selectedGroup
:
''
,
// 选择的标签分组
selectedGroup
:
''
,
// 选择的标签分组
removeTag
:
[],
removeTag
:
[],
Pselected
:
[]
Pselected
:
[],
selectedList
:
[]
}
}
},
},
watch
:
{
watch
:
{
// type(val) {
// type(val) {
// val === 'remove' && (this.removeTag = this.selected.slice())
// val === 'remove' && (this.removeTag = this.selected.slice())
// },
// },
selected
(
val
)
{
// selected(val) {
if
(
this
.
type
===
'add'
)
{
// if (this.type === 'add') {
this
.
Pselected
=
[]
// this.Pselected = []
val
.
forEach
((
element
)
=>
{
// val.forEach((element) => {
let
find
=
this
.
listOneArray
.
find
((
d
)
=>
{
// let find = this.listOneArray.find((d) => {
return
element
.
tagId
===
d
.
tagId
// return element.tagId === d.tagId
})
// })
this
.
Pselected
.
push
(
find
)
// this.Pselected.push(find)
})
// })
}
else
if
(
this
.
type
===
'remove'
)
{
// } else if (this.type === 'remove') {
this
.
removeTag
=
val
.
slice
()
// this.removeTag = val.slice()
this
.
Pselected
=
val
.
slice
()
// this.Pselected = val.slice()
}
// }
// this.list = JSON.parse(JSON.stringify(this.list))
// // this.list = JSON.parse(JSON.stringify(this.list))
},
// },
list
(
val
)
{
// list (val) {
if
(
this
.
type
===
'add'
)
{
// if (this.type === 'add') {
this
.
Pselected
=
[]
// this.Pselected = []
this
.
selected
.
forEach
((
element
)
=>
{
// this.selected.forEach((element) => {
let
find
=
this
.
listOneArray
.
find
((
d
)
=>
{
// let find = this.listOneArray.find((d) => {
return
element
.
tagId
===
d
.
tagId
// return element.tagId === d.tagId
})
// })
this
.
Pselected
.
push
(
find
)
// this.Pselected.push(find)
})
// })
}
else
if
(
this
.
type
===
'remove'
)
{
// } else if (this.type === 'remove') {
this
.
removeTag
=
this
.
selected
.
slice
()
// this.removeTag = this.selected.slice()
this
.
Pselected
=
this
.
selected
.
slice
()
// this.Pselected = this.selected.slice()
}
// }
// },
defaultValues
:
{
handler
(
val
=
[])
{
this
.
selectedList
=
[...
val
]
},
immediate
:
true
}
}
},
},
computed
:
{
computed
:
{
Pvisible
:
{
Pvisible
:
{
get
()
{
get
()
{
// this.getTree();
// this.getTree();
return
this
.
visible
return
this
.
visible
},
},
set
(
val
)
{
set
(
val
)
{
this
.
$emit
(
'update:visible'
,
val
)
this
.
$emit
(
'update:visible'
,
val
)
}
// this.$nextTick(()=> this.selectedList = [])
},
},
checkedTagMap
()
{
return
new
Set
(
this
.
selectedList
.
map
(
i
=>
i
.
tagId
||
(
typeof
i
==
'string'
&&
i
)))
}
}
},
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
},
},
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
getList
()
{
// getUserTags() {
// getUserTags(this, this.externalUserid)
// .then(res => {
// if(res.code == 200) {
// console.log(res)
// }
// })
// },
getList
()
{
getList
().
then
(({
rows
})
=>
{
getList
().
then
(({
rows
})
=>
{
// this.list = Object.freeze(rows)
// this.list = Object.freeze(rows)
this
.
list
=
rows
this
.
list
=
rows
...
@@ -95,58 +118,86 @@ export default {
...
@@ -95,58 +118,86 @@ export default {
})
})
})
})
},
},
submit
()
{
submit
()
{
if
(
!
this
.
Pselected
.
length
)
{
// if (!this.Pselected.length) {
this
.
msgError
(
'请至少选择一个标签'
)
// this.msgError('请至少选择一个标签')
return
// return
}
// }
this
.
$emit
(
'success'
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
selectedList
)))
this
.
Pvisible
=
false
this
.
Pvisible
=
false
this
.
$emit
(
'success'
,
this
.
Pselected
)
},
},
isChecked
(
unit
)
{
onSelectTag
(
tag
)
{
// debugger
const
existIdx
=
this
.
selectedList
.
findIndex
(
i
=>
i
.
tagId
===
tag
.
tagId
)
return
this
.
Pselected
.
some
((
el
)
=>
{
if
(
existIdx
>
-
1
)
{
return
unit
.
tagId
===
el
.
tagId
this
.
selectedList
.
splice
(
existIdx
,
1
)
})
}
else
{
this
.
selectedList
.
push
(
tag
)
}
},
},
toJson
(
data
)
{
toJson
(
data
)
{
return
JSON
.
stringify
(
data
)
return
JSON
.
stringify
(
data
)
},
setTagSelect
(
data
)
{
return
this
.
checkedTagMap
.
has
(
data
.
tagId
)
||
this
.
checkedTagMap
.
has
(
data
.
tagName
)
}
}
},
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<el-dialog
:title=
"title"
:visible
.
sync=
"Pvisible"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"Pvisible"
:destroy-on-close=
"destroyOnClose"
>
<div
class=
"dialog-content"
>
<div>
<span
class=
"mr20"
>
选择分组
</span>
<
!--
<
span
class=
"mr20"
>
选择分组
</span>
<el-select
v-model=
"selectedGroup"
placeholder=
"请选择"
>
<el-select
v-model=
"selectedGroup"
placeholder=
"请选择"
>
<el-option
label=
"所有标签"
value
></el-option>
<el-option
label=
"所有标签"
value
></el-option>
<el-option
v-for=
"(item, index) in list"
:key=
"index"
:label=
"item.gourpName"
:value=
"item.groupId"
></el-option>
<el-option
v-for=
"(item, index) in list"
:key=
"index"
:label=
"item.gourpName"
:value=
"item.groupId"
></el-option>
</el-select>
</el-select>
<slot></slot>
<div
class=
"mt20"
v-if=
"Pvisible"
>
<div
v-if=
"Pvisible"
>
<el-checkbox-group
v-if=
"type !== 'remove'"
v-model=
"Pselected"
>
<el-checkbox-group
v-if=
"type !== 'remove'"
v-model=
"Pselected"
>
<template
v-for=
"(item, index) in list"
>
<template
v-for=
"(item, index) in list"
>
<div
class=
"checkbox-li"
v-if=
"item.groupId === selectedGroup || !selectedGroup"
:key=
"index"
>
<div
<div
class=
"checkbox-group-title"
>
{{
item
.
gourpName
}}
</div>
class=
"bfc-d mr30"
v-if=
"item.groupId === selectedGroup || !selectedGroup"
:key=
"index"
>
<template
v-for=
"(unit, unique) in item.weTags"
>
<template
v-for=
"(unit, unique) in item.weTags"
>
<el-checkbox
v-if=
"unit.name.trim()"
:label=
"unit"
:key=
"index + '' + unique"
>
{{
<el-checkbox
unit
.
name
v-if=
"unit.name.trim()"
}}
</el-checkbox>
:label=
"unit"
:key=
"index + '' + unique"
>
{{
unit
.
name
}}
</el-checkbox
>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
</el-checkbox-group>
</el-checkbox-group>
<el-checkbox-group
class=
"mt20"
v-else
v-model=
"Pselected"
>
<el-checkbox-group
v-else
v-model=
"Pselected"
>
<
template
v-for=
"(item, index) in removeTag"
>
<
template
v-for=
"(item, index) in removeTag"
>
<el-checkbox
v-if=
"item.groupId === selectedGroup || !selectedGroup"
:label=
"item"
:key=
"index"
>
{{
<el-checkbox
item
.
name
.
trim
()
||
'(空的无效标签,请移除)'
v-if=
"item.groupId === selectedGroup || !selectedGroup"
}}
</el-checkbox>
:label=
"item"
:key=
"index"
>
{{
item
.
name
.
trim
()
||
'(空的无效标签,请移除)'
}}
</el-checkbox
>
</
template
>
</
template
>
</el-checkbox-group>
</el-checkbox-group>
</div>
-->
<section
class=
"label-group"
>
<div
v-for=
"item in list"
:key=
"item.groupId"
class=
"label-group-item"
>
<div
class=
"label-group-item-title"
>
{{ item.gourpName }}
</div>
<div
v-if=
"item.weTags"
class=
"label-group-item-body"
>
<el-tag
v-for=
"tag in item.weTags"
:key=
"tag.tagId"
:type=
"setTagSelect(tag) ? '' : 'info'"
@
click=
"onSelectTag(tag)"
>
{{ tag.name }}
</el-tag>
</div>
</div>
</div>
</div>
</section>
<slot></slot>
</div>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
@
click=
"Pvisible = false"
>
取 消
</el-button>
<el-button
@
click=
"Pvisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
确 定
</el-button>
...
@@ -155,28 +206,33 @@ export default {
...
@@ -155,28 +206,33 @@ export default {
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.user-list
{
.user-list
{
.el-row
{
.el-row
{
line-height
:
26px
;
line-height
:
26px
;
}
}
}
}
.mr30
{
.mr30
{
margin-right
:
30px
;
margin-right
:
30px
;
}
}
.dialog-content
{
.label-group
{
overflow
:
auto
;
max-height
:
400px
;
max-height
:
calc
(
85vh
-
150px
);
overflow-x
:
hidden
;
}
overflow-y
:
scroll
;
&-item
{
margin
:
10px
;
border-bottom
:
1px
solid
#f1f1f1
;
.checkbox-li
{
&-title
{
.checkbox-group-title
{
font-weight
:
700
;
font-size
:
16px
;
line-height
:
24px
;
margin-bottom
:
15px
;
}
color
:
#aaa
;
&
-body
{
padding
:
10px
0
;
}
.el-tag
{
cursor
:
pointer
;
}
}
}
padding
:
20px
0
15px
0
;
&
+
.checkbox-li
{
border-top
:
1px
solid
#eee
;
}
}
}
</
style
>
</
style
>
linkwe-ui/src/components/SelectUser.vue
View file @
1f3a1cb
<
script
>
<
script
>
import
{
getTree
,
getList
}
from
'@/api/organization'
import
{
getTree
,
getList
}
from
'@/api/organization'
import
{
createUniqueString
}
from
'@/utils'
import
{
createUniqueString
}
from
'@/utils'
export
default
{
export
default
{
name
:
'SelectUser'
,
name
:
'SelectUser'
,
components
:
{},
components
:
{},
props
:
{
props
:
{
// 添加标签显隐
// 添加标签显隐
visible
:
{
visible
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
,
},
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
'组织架构'
default
:
'组织架构'
,
},
},
// 是否 只选择叶子节点(人员节点)/禁止选择父节点(部门节点)
// 是否 只选择叶子节点(人员节点)/禁止选择父节点(部门节点)
isOnlyLeaf
:
{
isOnlyLeaf
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
,
},
},
// 是否单选
// 是否单选
isSigleSelect
:
{
isSigleSelect
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
,
},
},
defaultValues
:
{
defaultValues
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
}
},
},
data
()
{
destroyOnClose
:
Boolean
},
data
()
{
let
isOnlyLeaf
=
this
.
isOnlyLeaf
let
isOnlyLeaf
=
this
.
isOnlyLeaf
return
{
return
{
treeData
:
[],
treeData
:
[],
...
@@ -37,34 +38,41 @@ export default {
...
@@ -37,34 +38,41 @@ export default {
defaultProps
:
{
defaultProps
:
{
label
:
'name'
,
label
:
'name'
,
children
:
'children'
,
children
:
'children'
,
disabled
(
data
,
node
)
{
disabled
(
data
,
node
)
{
return
isOnlyLeaf
&&
!
data
.
userId
return
isOnlyLeaf
&&
!
data
.
userId
},
},
isLeaf
(
data
,
node
)
{
isLeaf
(
data
,
node
)
{
return
!!
data
.
userId
return
!
data
.
id
}
},
},
}
}
},
watch
:
{
defaultValues
(
value
)
{
if
(
this
.
$refs
.
tree
)
this
.
$refs
.
tree
.
setCheckedKeys
([])
}
}
},
},
watch
:
{},
computed
:
{
computed
:
{
Pvisible
:
{
Pvisible
:
{
get
()
{
get
()
{
// this.getTree();
// this.getTree();
return
this
.
visible
return
this
.
visible
},
},
set
(
val
)
{
set
(
val
)
{
this
.
$emit
(
'update:visible'
,
val
)
this
.
$emit
(
'update:visible'
,
val
)
}
},
},
defaultCheckedKeys
()
{
},
defaultCheckedKeys
()
{
const
checkedList
=
[]
const
checkedList
=
[]
const
checkedUserList
=
[]
const
checkedUserList
=
[]
if
(
!
Array
.
isArray
(
this
.
defaultValues
)
||
this
.
defaultValues
.
length
==
0
)
{
if
(
!
Array
.
isArray
(
this
.
defaultValues
)
||
this
.
defaultValues
.
length
==
0
)
{
this
.
userList
=
[]
this
.
userList
=
[]
}
else
{
}
else
{
this
.
defaultValues
.
forEach
((
i
)
=>
{
this
.
defaultValues
.
forEach
(
i
=>
{
const
id
=
this
.
isOnlyLeaf
?
i
.
userId
:
i
.
userId
||
i
.
id
const
id
=
this
.
isOnlyLeaf
?
i
.
userId
:
(
i
.
userId
||
i
.
id
)
if
(
id
)
{
if
(
id
)
{
checkedList
.
push
(
id
)
checkedList
.
push
(
id
)
checkedUserList
.
push
(
i
)
checkedUserList
.
push
(
i
)
...
@@ -75,20 +83,21 @@ export default {
...
@@ -75,20 +83,21 @@ export default {
return
checkedList
return
checkedList
}
}
},
},
created
()
{
},
created
()
{
},
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
loadNode
(
node
,
resolve
)
{
loadNode
(
node
,
resolve
)
{
if
(
node
.
level
===
0
)
{
if
(
node
.
level
===
0
)
{
if
(
!
Array
.
isArray
(
this
.
defaultValues
)
||
this
.
defaultValues
.
length
==
0
)
{
if
(
!
Array
.
isArray
(
this
.
defaultValues
)
||
this
.
defaultValues
.
length
==
0
)
{
this
.
userList
=
[]
this
.
userList
=
[]
}
}
getTree
().
then
(({
data
})
=>
{
getTree
().
then
(({
data
})
=>
{
data
.
forEach
((
element
)
=>
{
//
data.forEach((element) => {
element
.
key
=
createUniqueString
()
//
element.key = createUniqueString()
})
//
})
let
_data
=
this
.
handleTree
(
data
)
let
_data
=
this
.
handleTree
(
data
)
// console.log('d', data)
resolve
(
_data
)
resolve
(
_data
)
// api.getList({ department: _data[0].id }).then(({ rows, total }) => {
// api.getList({ department: _data[0].id }).then(({ rows, total }) => {
// _data && rows.unshift(..._data);
// _data && rows.unshift(..._data);
...
@@ -96,81 +105,79 @@ export default {
...
@@ -96,81 +105,79 @@ export default {
// });
// });
})
})
}
else
{
}
else
{
getList
({
department
:
node
.
data
.
id
,
isActivate
:
1
}).
then
(({
rows
})
=>
{
getList
({
department
:
node
.
data
.
id
,
isActivate
:
1
}).
then
(
rows
.
forEach
((
element
)
=>
{
({
rows
})
=>
{
element
.
key
=
createUniqueString
()
// rows.forEach((element) => {
})
// element.key = createUniqueString()
// })
node
.
data
.
children
&&
rows
.
push
(...
node
.
data
.
children
)
node
.
data
.
children
&&
rows
.
push
(...
node
.
data
.
children
)
resolve
(
rows
)
resolve
(
rows
)
})
}
}
)
}
},
handleTree
(
data
)
{
return
data
.
map
(
i
=>
{
if
(
i
.
id
)
{
i
.
userId
=
i
.
id
i
.
isParty
=
true
}
return
i
})
},
},
// 选择变化
// 选择变化
handleCheckChange
(
data
,
checked
,
indeterminate
)
{
handleCheckChange
(
data
,
checked
,
indeterminate
)
{
// debugger
// console.log(arguments)
if
(
checked
)
{
if
(
checked
)
{
if
(
this
.
isSigleSelect
)
{
if
(
this
.
isSigleSelect
)
{
// 单选情况
// 单选情况
this
.
$refs
.
tree
.
setCheckedKeys
([
data
.
key
])
this
.
$refs
.
tree
.
setCheckedKeys
([
data
.
userId
])
}
}
if
(
this
.
isOnlyLeaf
)
{
if
(
this
.
isOnlyLeaf
)
{
if
(
data
.
userId
)
{
if
(
data
.
userId
&&
!
data
.
isParty
)
{
this
.
userList
.
push
(
data
)
this
.
userList
.
push
(
data
)
}
}
}
else
{
}
else
{
this
.
userList
.
push
(
data
)
const
isExist
=
this
.
userList
.
findIndex
(
i
=>
i
.
userId
===
data
.
userId
)
>
-
1
!
isExist
&&
this
.
userList
.
push
(
data
)
}
}
}
else
{
}
else
{
let
index
=
this
.
userList
.
indexOf
(
data
)
//
let index = this.userList.indexOf(data)
let
index
=
this
.
userList
.
findIndex
(
i
=>
i
.
userId
===
data
.
userId
)
index
>
-
1
&&
this
.
userList
.
splice
(
index
,
1
)
index
>
-
1
&&
this
.
userList
.
splice
(
index
,
1
)
}
}
// console.log(data, checked, indeterminate);
// console.log(data, checked, indeterminate);
},
},
// 确 定
// 确 定
submit
()
{
submit
()
{
this
.
Pvisible
=
false
this
.
Pvisible
=
false
this
.
$emit
(
'success'
,
this
.
userList
)
this
.
$emit
(
'success'
,
[...
this
.
userList
]
)
},
},
// 取消选择
// 取消选择
cancle
(
key
)
{
cancle
(
key
)
{
this
.
$refs
.
tree
.
setChecked
(
key
,
false
)
this
.
$refs
.
tree
.
setChecked
(
key
,
false
)
let
index
=
this
.
userList
.
findIndex
(
i
=>
i
.
userId
===
key
)
index
>
-
1
&&
this
.
userList
.
splice
(
index
,
1
)
let
order
=
this
.
defaultValues
.
findIndex
(
i
=>
i
.
userId
===
key
)
order
>
-
1
&&
this
.
defaultValues
.
splice
(
order
,
1
)
},
},
}
}
}
}
</
script
>
</
script
>
setChecked
<
template
>
<
template
>
<el-dialog
:title=
"title"
:visible
.
sync=
"Pvisible"
:
close-on-click-modal=
"fal
se"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"Pvisible"
:
destroy-on-close=
"destroyOnClo
se"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<!--部门数据-->
<el-col
:span=
"12"
:xs=
"24"
>
<el-col
:span=
"12"
:xs=
"24"
>
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<!--
<div>
部门架构
</div>
-->
<el-tree
node-key=
"userId"
ref=
"tree"
lazy
accordion
show-checkbox
:check-on-click-node=
"false"
:expand-on-click-node=
"true"
:default-checked-keys=
"defaultCheckedKeys"
:load=
"loadNode"
:props=
"defaultProps"
:check-strictly=
"!isOnlyLeaf"
@
check-change=
"handleCheckChange"
></el-tree>
<!-- :filter-node-method="filterNode" -->
<el-tree
node-key=
"key"
ref=
"tree"
lazy
accordion
show-checkbox
:check-on-click-node=
"false"
:expand-on-click-node=
"true"
:load=
"loadNode"
:props=
"defaultProps"
:default-checked-keys=
"defaultCheckedKeys"
:check-strictly=
"!isOnlyLeaf"
@
check-change=
"handleCheckChange"
></el-tree>
</div>
</div>
</el-col>
</el-col>
<!--用户数据-->
<el-col
:span=
"12"
:xs=
"24"
class=
"user-list"
>
<el-col
:span=
"12"
:xs=
"24"
class=
"user-list"
>
<el-row
:gutter=
"10"
>
选择人员列表
</el-row>
<el-row
:gutter=
"10"
>
选择人员列表
</el-row>
<el-row
v-for=
"(item, index) in userList"
:key=
"index"
>
<el-row
v-for=
"(item, index) in userList"
:key=
"index"
>
<i
class=
"el-icon-user-solid"
></i>
<i
class=
"el-icon-user-solid"
></i>
{{
item
.
name
}}
{{
item
.
name
}}
<i
class=
"el-icon-minus fr cp"
title=
"取消选择"
@
click=
"cancle(item.
key
)"
></i>
<i
class=
"el-icon-minus fr cp"
title=
"取消选择"
@
click=
"cancle(item.
userId
)"
></i>
</el-row>
</el-row>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -182,9 +189,9 @@ setChecked
...
@@ -182,9 +189,9 @@ setChecked
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.user-list
{
.user-list
{
.el-row
{
.el-row
{
line-height
:
26px
;
line-height
:
26px
;
}
}
}
}
</
style
>
</
style
>
linkwe-ui/src/components/WelcomeContent.vue
View file @
1f3a1cb
...
@@ -402,7 +402,7 @@
...
@@ -402,7 +402,7 @@
/** 获取欢迎语列表 */
/** 获取欢迎语列表 */
getWelList
()
{
getWelList
()
{
this
.
welLoading
=
true
this
.
welLoading
=
true
getList
(
this
,
this
.
welQuery
).
then
(({
rows
})
=>
{
getList
(
this
.
welQuery
).
then
(({
rows
})
=>
{
this
.
welList
=
rows
this
.
welList
=
rows
this
.
$refs
.
table
.
$forceUpdate
()
this
.
$refs
.
table
.
$forceUpdate
()
this
.
welLoading
=
false
this
.
welLoading
=
false
...
...
linkwe-ui/src/views/drainageCode/staff/add.vue
View file @
1f3a1cb
...
@@ -199,7 +199,7 @@
...
@@ -199,7 +199,7 @@
weEmpleCodeUseScops
:
[],
weEmpleCodeUseScops
:
[],
empleCodeRosterDto
:
[
empleCodeRosterDto
:
[
{
{
type
:
1
,
type
:
0
,
weEmpleCodeUseScops
:
[],
// 员工
weEmpleCodeUseScops
:
[],
// 员工
weekday
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
],
// 周期
weekday
:
[
1
,
2
,
3
,
4
,
5
,
6
,
7
],
// 周期
qrRuleType
:
2
,
qrRuleType
:
2
,
...
@@ -590,7 +590,7 @@
...
@@ -590,7 +590,7 @@
this
.
codeForm
.
empleCodeRosterDto
.
push
({
this
.
codeForm
.
empleCodeRosterDto
.
push
({
weEmpleCodeUseScops
:
[],
// 员工
weEmpleCodeUseScops
:
[],
// 员工
weekday
:
[],
// 周期
weekday
:
[],
// 周期
type
:
2
,
type
:
1
,
startDate
:
''
,
// 开始时间
startDate
:
''
,
// 开始时间
endDate
:
''
,
// 结束时间
endDate
:
''
,
// 结束时间
})
})
...
@@ -630,9 +630,8 @@
...
@@ -630,9 +630,8 @@
}
}
myObj
.
attachments
.
push
(...
data
.
materialMsgList
)
myObj
.
attachments
.
push
(...
data
.
materialMsgList
)
if
(
this
.
codeForm
.
qrRuleType
===
1
)
{
if
(
this
.
codeForm
.
qrRuleType
===
1
)
{
console
.
log
(
this
.
codeForm
)
let
obj
=
{
let
obj
=
{
type
:
1
,
type
:
0
,
scopeId
:
this
.
codeForm
.
weEmpleCodeUseScops
[
0
].
scopeId
?
this
.
codeForm
.
weEmpleCodeUseScops
[
0
].
scopeId
:
''
,
scopeId
:
this
.
codeForm
.
weEmpleCodeUseScops
[
0
].
scopeId
?
this
.
codeForm
.
weEmpleCodeUseScops
[
0
].
scopeId
:
''
,
userIds
:
this
.
codeForm
.
weEmpleCodeUseScops
.
map
(
dd
=>
dd
.
businessId
)
userIds
:
this
.
codeForm
.
weEmpleCodeUseScops
.
map
(
dd
=>
dd
.
businessId
)
}
}
...
...
linkwe-ui/src/views/drainageCode/staff/detail.vue
View file @
1f3a1cb
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
methods
:
{
methods
:
{
editFn
()
{
editFn
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/
wechat/drainageCode/staff/'
+
'a
dd'
,
path
:
'/
drainageCode/'
+
'staffA
dd'
,
query
:
{
query
:
{
id
:
this
.
form
.
id
id
:
this
.
form
.
id
}
}
...
...
linkwe-ui/src/views/drainageCode/staff/list.vue
View file @
1f3a1cb
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
class=
"item-list"
>
<div
class=
"item-list"
>
<div
class=
"item"
:class=
"
{'active': groupIndex == key}" v-for="(group, key) in groupList" :key="group.id" @click="switchGroup(key, group)">
<div
class=
"item"
:class=
"
{'active': groupIndex == key}" v-for="(group, key) in groupList" :key="group.id" @click="switchGroup(key, group)">
<div
class=
"name"
>
{{
group
.
name
}}
</div>
<div
class=
"name"
>
{{
group
.
name
}}
</div>
<el-dropdown
v-if=
"groupIndex == key"
class=
"dropdown"
@
command=
"onGroupCommand($event, group)"
>
<el-dropdown
v-if=
"groupIndex == key
&& group.flag === 0
"
class=
"dropdown"
@
command=
"onGroupCommand($event, group)"
>
<span
class=
"dot"
>
<span
class=
"dot"
>
<!--
<img
:src=
"require('@/assets/drainageCode/more.png')"
alt=
""
>
-->
<!--
<img
:src=
"require('@/assets/drainageCode/more.png')"
alt=
""
>
-->
<i
class=
"el-icon-more"
></i>
<i
class=
"el-icon-more"
></i>
...
@@ -177,6 +177,8 @@
...
@@ -177,6 +177,8 @@
groupId
:
''
,
groupId
:
''
,
qrName
:
''
,
// 活码名称
qrName
:
''
,
// 活码名称
qrUserName
:
undefined
,
qrUserName
:
undefined
,
orderByColumn
:
'wqc.create_time'
,
isAsc
:
'desc'
},
},
userArray
:
[],
// 选择人员
userArray
:
[],
// 选择人员
userArrayStr
:
""
,
userArrayStr
:
""
,
...
...
linkwe-ui/src/views/drainageCode/welcome/add.vue
View file @
1f3a1cb
...
@@ -41,9 +41,13 @@
...
@@ -41,9 +41,13 @@
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
form
.
id
=
this
.
$route
.
query
.
id
this
.
form
.
id
=
this
.
$route
.
query
.
id
if
(
this
.
form
.
id
)
{
let
data
=
JSON
.
parse
(
localStorage
.
getItem
(
'obj'
))
let
data
=
JSON
.
parse
(
localStorage
.
getItem
(
'obj'
))
this
.
form
=
Object
.
assign
(
this
.
form
,
data
)
this
.
form
=
Object
.
assign
(
this
.
form
,
data
)
this
.
form
.
welcomeMsgTplType
=
this
.
form
.
welcomeMsgTplType
.
toString
()
this
.
form
.
welcomeMsgTplType
=
this
.
form
.
welcomeMsgTplType
.
toString
()
}
else
{
this
.
form
.
welcomeMsgTplType
=
this
.
$route
.
query
.
welcomeMsgTplType
}
this
.
name
=
this
.
form
.
welcomeMsgTplType
===
'1'
?
'活码'
:
this
.
form
.
welcomeMsgTplType
===
'2'
?
'员工'
:
'入群'
this
.
name
=
this
.
form
.
welcomeMsgTplType
===
'1'
?
'活码'
:
this
.
form
.
welcomeMsgTplType
===
'2'
?
'员工'
:
'入群'
this
.
type
=
this
.
form
.
id
?
'编辑'
:
'新建'
this
.
type
=
this
.
form
.
id
?
'编辑'
:
'新建'
this
.
$route
.
meta
.
title
=
(
this
.
form
.
id
?
'编辑'
:
'新建'
)
+
'欢迎语'
this
.
$route
.
meta
.
title
=
(
this
.
form
.
id
?
'编辑'
:
'新建'
)
+
'欢迎语'
...
...
linkwe-ui/src/views/drainageCode/welcome/components/Tab.vue
View file @
1f3a1cb
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"欢迎语"
align=
"center"
prop=
"welcomeMsg"
min-width=
"250"
show-overflow-tooltip
/>
<el-table-column
label=
"欢迎语"
align=
"center"
prop=
"welcomeMsg"
min-width=
"250"
show-overflow-tooltip
/>
<el-table-column
v-if=
"type === '2'"
label=
"员工"
prop=
"userNames"
align=
"center"
></el-table-column>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
...
@@ -148,11 +149,11 @@
...
@@ -148,11 +149,11 @@
goRoute
(
data
)
{
goRoute
(
data
)
{
let
query
=
{}
let
query
=
{}
if
(
data
)
{
if
(
data
)
{
localStorage
.
setItem
(
'obj'
,
JSON
.
stringify
(
data
))
query
.
id
=
data
.
id
query
.
id
=
data
.
id
}
else
{
}
else
{
query
.
welcomeMsgTplType
=
this
.
type
query
.
welcomeMsgTplType
=
this
.
type
}
}
localStorage
.
setItem
(
'obj'
,
JSON
.
stringify
(
data
))
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/drainageCode/welcomeAdd'
,
path
:
'/drainageCode/welcomeAdd'
,
query
:
query
query
:
query
...
...
linkwe-ui/src/views/groupMessage/add.vue
View file @
1f3a1cb
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<el-step
title=
"群发内容"
></el-step>
<el-step
title=
"群发内容"
></el-step>
</el-steps>
</el-steps>
</div>
</div>
<div
v-if=
"currentActive === 1"
>
<div
class=
"g-card g-pad20"
v-if=
"currentActive === 1"
>
<el-form
style=
"width: 60%;"
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form
style=
"width: 60%;
margin:0 auto;
"
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form-item
label=
"群发类型"
required
prop=
"chatType"
>
<el-form-item
label=
"群发类型"
required
prop=
"chatType"
>
<el-radio-group
v-model=
"form.chatType"
>
<el-radio-group
v-model=
"form.chatType"
>
<el-radio
:label=
1
>
群发客户
</el-radio>
<el-radio
:label=
1
>
群发客户
</el-radio>
...
@@ -283,7 +283,6 @@
...
@@ -283,7 +283,6 @@
nextStep
()
{
nextStep
()
{
this
.
$refs
.
form
.
validate
(
validate
=>
{
this
.
$refs
.
form
.
validate
(
validate
=>
{
if
(
!
validate
)
return
if
(
!
validate
)
return
if
(
this
.
form
.
chatType
===
1
)
{
if
(
this
.
form
.
chatType
===
1
)
{
let
data
=
{
let
data
=
{
userIds
:
''
,
userIds
:
''
,
...
@@ -302,7 +301,11 @@
...
@@ -302,7 +301,11 @@
data
.
trackState
=
this
.
form
.
trackState
data
.
trackState
=
this
.
form
.
trackState
getCustomerList
(
data
).
then
(
res
=>
{
getCustomerList
(
data
).
then
(
res
=>
{
this
.
form
.
customerList
=
res
.
data
this
.
form
.
customerList
=
res
.
data
if
(
res
.
data
&&
res
.
data
.
length
)
{
this
.
currentActive
=
2
this
.
currentActive
=
2
}
else
{
this
.
msgError
(
'未找到可发送客户!'
)
}
})
})
}
else
{
}
else
{
this
.
currentActive
=
2
this
.
currentActive
=
2
...
...
linkwe-ui/src/views/groupMessage/detail.vue
View file @
1f3a1cb
...
@@ -168,14 +168,14 @@
...
@@ -168,14 +168,14 @@
},
},
queryMember
:
{
queryMember
:
{
userName
:
''
,
userName
:
''
,
msgId
:
''
,
msg
Template
Id
:
''
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
status
:
''
status
:
''
},
},
queryCustomer
:
{
queryCustomer
:
{
customerName
:
''
,
customerName
:
''
,
msgId
:
''
,
msg
Template
Id
:
''
,
status
:
''
,
status
:
''
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
...
@@ -201,8 +201,8 @@
...
@@ -201,8 +201,8 @@
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
msgId
=
this
.
$route
.
query
.
id
this
.
msgId
=
this
.
$route
.
query
.
id
this
.
queryMember
.
msgId
=
this
.
msgId
this
.
queryMember
.
msg
Template
Id
=
this
.
msgId
this
.
queryCustomer
.
msgId
=
this
.
msgId
this
.
queryCustomer
.
msg
Template
Id
=
this
.
msgId
this
.
getDetail
()
this
.
getDetail
()
this
.
getMemberList
()
this
.
getMemberList
()
this
.
getCustomerList
()
this
.
getCustomerList
()
...
...
linkwe-ui/src/views/groupMessage/record.vue
View file @
1f3a1cb
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"发送类型"
prop=
"
timed
Task"
>
<el-form-item
label=
"发送类型"
prop=
"
is
Task"
>
<el-select
v-model=
"query.isTask"
placeholder=
"请选择发送类型"
size=
"mini"
>
<el-select
v-model=
"query.isTask"
placeholder=
"请选择发送类型"
size=
"mini"
>
<el-option
v-for=
"(value, key, index) in timedTask"
:label=
"value"
:value=
"key"
:key=
"index"
>
<el-option
v-for=
"(value, key, index) in timedTask"
:label=
"value"
:value=
"key"
:key=
"index"
>
</el-option>
</el-option>
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<!-- v-hasPermi="['enterpriseWechat:view']" -->
<!-- v-hasPermi="['enterpriseWechat:view']" -->
<el-button
size=
"mini"
type=
"text"
@
click=
"goRoute(scope.row.id, 'detail')"
>
详情
</el-button>
<el-button
size=
"mini"
type=
"text"
@
click=
"goRoute(scope.row.id, 'detail')"
>
详情
</el-button>
<el-divider
v-if=
"scope.row.isTask === 1"
direction=
"vertical"
></el-divider>
<el-divider
v-if=
"scope.row.isTask === 1
&& scope.row.status === 0
"
direction=
"vertical"
></el-divider>
<el-button
size=
"mini"
v-if=
"scope.row.isTask === 1"
type=
"text"
@
click=
"cancelSend(scope.row)"
>
取消发送
</el-button>
<el-button
size=
"mini"
v-if=
"scope.row.isTask === 1
&& scope.row.status === 0
"
type=
"text"
@
click=
"cancelSend(scope.row)"
>
取消发送
</el-button>
<!--
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
disabled=
""
<!--
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
disabled=
""
@
click=
"goRoute(scope.row, 1)"
>
编辑
</el-button>
@
click=
"goRoute(scope.row, 1)"
>
编辑
</el-button>
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
...
@@ -89,7 +89,9 @@
...
@@ -89,7 +89,9 @@
pageSize
:
10
,
pageSize
:
10
,
content
:
undefined
,
content
:
undefined
,
chatType
:
undefined
,
chatType
:
undefined
,
isTask
:
undefined
isTask
:
undefined
,
orderByColumn
:
'create_time'
,
isAsc
:
'desc'
},
},
pushType
:
{
pushType
:
{
1
:
'发给客户'
,
1
:
'发给客户'
,
...
...
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