Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 b964ed0a
authored
Jun 08, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
线上bug修复
1 parent
422c85b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
src/views/expert/components/selectMember.vue
src/views/expert/components/welcomeWords.vue
src/views/expert/detail.vue
src/views/expert/components/selectMember.vue
View file @
b964ed0
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
class=
"table-content"
style=
"max-height: 456px;"
>
<div
class=
"table-content"
style=
"max-height: 456px;"
>
<GLTable
v-loading=
"loading"
ref=
"empTable"
:tableData=
"tableEmpData"
:tableParams=
"tableParams"
:hasNum=
"false"
:hasPage=
"false"
:noDataImg=
"url"
@
row-click=
"rowClick"
>
<GLTable
v-loading=
"loading"
ref=
"empTable"
:tableData=
"tableEmpData"
:tableParams=
"tableParams"
:hasNum=
"false"
:hasPage=
"false"
:noDataImg=
"url"
@
row-click=
"rowClick"
>
<div
slot=
"radio"
slot-scope=
"scope"
>
<div
slot=
"radio"
slot-scope=
"scope"
>
<el-radio
:disabled=
"scope.scope.
isOperationConfig == 0
"
v-model=
"selectPerson"
:label=
"scope.scope"
>
</el-radio>
<el-radio
:disabled=
"scope.scope.
staffId == staffId
"
v-model=
"selectPerson"
:label=
"scope.scope"
>
</el-radio>
</div>
</div>
<div
slot=
"staffName"
slot-scope=
"scope"
>
<div
slot=
"staffName"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
staffName
}}
</span>
<span>
{{
scope
.
scope
.
staffName
}}
</span>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
export
default
{
export
default
{
name
:
'SelectMember'
,
name
:
'SelectMember'
,
props
:
[
'selectData'
],
props
:
[
'selectData'
,
'staffId'
],
data
()
{
data
()
{
return
{
return
{
url
:
url
,
url
:
url
,
...
@@ -124,7 +124,6 @@ export default {
...
@@ -124,7 +124,6 @@ export default {
},
},
methods
:
{
methods
:
{
selectionTable
(
val
)
{
selectionTable
(
val
)
{
console
.
log
(
456
)
this
.
innerTags
=
val
this
.
innerTags
=
val
// this.$emit('selectTable', val)
// this.$emit('selectTable', val)
},
},
...
@@ -245,7 +244,7 @@ export default {
...
@@ -245,7 +244,7 @@ export default {
},
},
rowClick
(
row
)
{
rowClick
(
row
)
{
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
if
(
row
.
isOperationConfig
===
0
)
return
if
(
row
.
staffId
===
this
.
staffId
)
return
this
.
selectPerson
=
row
this
.
selectPerson
=
row
},
},
checkChange
(
val
)
{
checkChange
(
val
)
{
...
...
src/views/expert/components/welcomeWords.vue
View file @
b964ed0
...
@@ -171,6 +171,7 @@ export default {
...
@@ -171,6 +171,7 @@ export default {
})
})
},
},
setTextarea
(
val
)
{
setTextarea
(
val
)
{
if
(
val
==
'\n'
)
return
// let val = '[鄙视]@昵称@昵称[鄙视][做哼][ ]车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
// let val = '[鄙视]@昵称@昵称[鄙视][做哼][ ]车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let
reg1
=
/
\[(
.+
?)\]
/gi
let
reg1
=
/
\[(
.+
?)\]
/gi
let
arr
=
val
.
match
(
reg1
)
||
[]
let
arr
=
val
.
match
(
reg1
)
||
[]
...
@@ -188,7 +189,7 @@ export default {
...
@@ -188,7 +189,7 @@ export default {
val
=
val
.
replaceAll
(
item
,
img
)
val
=
val
.
replaceAll
(
item
,
img
)
}
}
})
})
val
=
val
.
replaceAll
(
'
@昵称
'
,
'<wise>@昵称</wise>'
)
val
=
val
.
replaceAll
(
'
[@昵称]
'
,
'<wise>@昵称</wise>'
)
let
welcomeStr
=
'车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let
welcomeStr
=
'车主朋友,您好!我是您的福利官,欢迎您领取电子质保卡,请点击下方链接进行领取及查看:https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/祝您用车愉快!'
let
text
=
'<br>车主朋友,您好!<br>我是您的福利官,欢迎您领取电子质保卡,<br>请点击下方链接进行领取及查看:<br><span style="color:#409eff;">https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/</span><br>祝您用车愉快!<br>'
let
text
=
'<br>车主朋友,您好!<br>我是您的福利官,欢迎您领取电子质保卡,<br>请点击下方链接进行领取及查看:<br><span style="color:#409eff;">https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/</span><br>祝您用车愉快!<br>'
val
=
val
.
replaceAll
(
welcomeStr
,
text
)
val
=
val
.
replaceAll
(
welcomeStr
,
text
)
...
...
src/views/expert/detail.vue
View file @
b964ed0
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
</el-form>
</el-form>
</div>
</div>
<glsx-dialog
class=
"numberDialog"
:title=
"'选择成员'"
btnSize=
"small"
:width=
"'850px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"membersVisible = !membersVisible"
>
<glsx-dialog
class=
"numberDialog"
:title=
"'选择成员'"
btnSize=
"small"
:width=
"'850px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"membersVisible = !membersVisible"
>
<SelectMember
ref=
"membersForm"
v-if=
"membersVisible"
:selectData=
"selectData"
></SelectMember>
<SelectMember
ref=
"membersForm"
:staffId=
"editStaffId"
v-if=
"membersVisible"
:selectData=
"selectData"
></SelectMember>
</glsx-dialog>
</glsx-dialog>
<div
class=
"my-footer btn-box box"
>
<div
class=
"my-footer btn-box box"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
...
@@ -65,6 +65,7 @@ export default {
...
@@ -65,6 +65,7 @@ export default {
eventBus
:
new
Vue
(),
eventBus
:
new
Vue
(),
clientType
:
'升级客户'
,
clientType
:
'升级客户'
,
expertId
:
''
,
expertId
:
''
,
editStaffId
:
''
,
btnList
:
[
btnList
:
[
{
{
id
:
1
,
id
:
1
,
...
@@ -142,6 +143,7 @@ export default {
...
@@ -142,6 +143,7 @@ export default {
getDetail
(
id
)
{
getDetail
(
id
)
{
this
.
$apis
.
expert
.
expertDetail
({
id
}).
then
(
res
=>
{
this
.
$apis
.
expert
.
expertDetail
({
id
}).
then
(
res
=>
{
if
(
res
?.
id
)
{
if
(
res
?.
id
)
{
this
.
editStaffId
=
res
.
staffId
this
.
selectPerson
=
res
this
.
selectPerson
=
res
this
.
$refs
.
welcome
.
setDetail
(
res
.
welcomeInfo
)
this
.
$refs
.
welcome
.
setDetail
(
res
.
welcomeInfo
)
this
.
clientType
=
res
.
businessTypeName
this
.
clientType
=
res
.
businessTypeName
...
@@ -183,6 +185,8 @@ export default {
...
@@ -183,6 +185,8 @@ export default {
preList
.
forEach
(
item
=>
{
preList
.
forEach
(
item
=>
{
if
(
item
.
attType
==
1
&&
!
item
.
attContent
.
trim
()){
if
(
item
.
attType
==
1
&&
!
item
.
attContent
.
trim
()){
item
.
attContent
=
'\n'
item
.
attContent
=
'\n'
}
else
if
(
item
.
attType
==
1
){
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
}
}
if
(
item
.
attType
==
7
)
{
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
...
...
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