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 58e60025
authored
Dec 19, 2021
by
test
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug fixed
1 parent
2890412a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
linkwe-ui/src/components/SelectUser.vue
linkwe-ui/src/components/WelcomeContent.vue
linkwe-ui/src/views/drainageCode/staff/add.vue
linkwe-ui/src/views/friendCircle/publish.vue
linkwe-ui/src/components/SelectUser.vue
View file @
58e6002
...
...
@@ -168,14 +168,14 @@
// console.log(data, checked, indeterminate);
this
.
userList
=
this
.
unique
(
this
.
userList
)
},
unique
(
arr
){
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
){
for
(
var
j
=
i
+
1
;
j
<
arr
.
length
;
j
++
){
if
(
arr
[
i
].
userId
.
split
(
'_'
)[
0
]
==
arr
[
j
].
userId
.
split
(
'_'
)[
0
]){
arr
.
splice
(
j
,
1
);
j
--
;
}
unique
(
arr
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
for
(
var
j
=
i
+
1
;
j
<
arr
.
length
;
j
++
)
{
if
(
arr
[
i
].
userId
.
split
(
'_'
)[
0
]
==
arr
[
j
].
userId
.
split
(
'_'
)[
0
])
{
arr
.
splice
(
j
,
1
);
j
--
;
}
}
}
return
arr
;
},
...
...
@@ -200,7 +200,7 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
:xs=
"24"
>
<div
class=
"head-container"
>
<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>
<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>
</div>
</el-col>
<el-col
:span=
"12"
:xs=
"24"
class=
"user-list"
>
...
...
linkwe-ui/src/components/WelcomeContent.vue
View file @
58e6002
...
...
@@ -280,7 +280,7 @@
showMore
()
{
let
exit
=
true
if
(
this
.
isSingle
)
{
if
(
this
.
form
.
materialMsgList
.
length
===
3
)
{
if
(
this
.
form
.
materialMsgList
.
length
===
1
)
{
exit
=
false
}
}
...
...
@@ -316,12 +316,12 @@
if
(
val
)
{
const
textIndex
=
$textarea
.
selectionStart
if
(
textIndex
==
0
&&
document
.
activeElement
!=
$textarea
)
{
this
.
form
.
welcomeMsg
+=
'
#客户昵称#
'
this
.
form
.
welcomeMsg
+=
'
%客户昵称%
'
}
else
{
this
.
form
.
welcomeMsg
=
msg
.
slice
(
0
,
textIndex
)
+
'
#客户昵称#
'
+
msg
.
slice
(
textIndex
)
this
.
form
.
welcomeMsg
=
msg
.
slice
(
0
,
textIndex
)
+
'
%客户昵称%
'
+
msg
.
slice
(
textIndex
)
}
}
else
{
this
.
form
.
welcomeMsg
=
msg
.
replace
(
/
\
#
客户昵称
\#
/
,
''
)
this
.
form
.
welcomeMsg
=
msg
.
replace
(
/
\
%
客户昵称
\%
/
,
''
)
}
},
onChooseMaterial
(
materialType
,
rowIndex
)
{
...
...
linkwe-ui/src/views/drainageCode/staff/add.vue
View file @
58e6002
...
...
@@ -138,7 +138,7 @@
</SelectTag>
<!-- 选择使用员工弹窗 -->
<SelectUser
:key=
"codeForm.qrType"
:defaultValues=
"selectedUserList"
:visible
.
sync=
"dialogVisibleSelectUser"
title=
"选择使用员工"
:isOnlyLeaf=
"
codeForm.qrType !== 2
"
:isSigleSelect=
"codeForm.qrType == 1"
@
success=
"selectedUser"
></SelectUser>
<SelectUser
:key=
"codeForm.qrType"
:defaultValues=
"selectedUserList"
:visible
.
sync=
"dialogVisibleSelectUser"
title=
"选择使用员工"
:isOnlyLeaf=
"
true
"
:isSigleSelect=
"codeForm.qrType == 1"
@
success=
"selectedUser"
></SelectUser>
</div>
</template>
...
...
linkwe-ui/src/views/friendCircle/publish.vue
View file @
58e6002
...
...
@@ -210,6 +210,9 @@
}
})
this
.
$forceUpdate
()
if
(
this
.
form
.
otherContent
.
length
)
{
this
.
form
.
contentType
=
'text'
}
if
(
goto
)
{
gotoPublish
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
...
...
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