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 07b704a4
authored
Jun 09, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
b964ed0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
18 deletions
src/setup/qiankun.js
src/views/expert/components/selectMember.vue
src/views/expert/detail.vue
src/setup/qiankun.js
View file @
07b704a
...
...
@@ -17,8 +17,10 @@ Vue.use(ElementUI)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request_brand
,
request_common
,
request_merchant
,
sign_common
,
sign
,
secret
}
=
await
fetchConfig
()
// 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
// request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
// request_common.baseURL = 'https://scrm.test.glsx.com.cn'
// request_merchant.baseURL = 'https://rop-merchant.test.glsx.com.cn'
// request.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064'
Vue
.
prototype
.
$history
=
history
...
...
src/views/expert/components/selectMember.vue
View file @
07b704a
...
...
@@ -26,7 +26,7 @@
<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"
>
<div
slot=
"radio"
slot-scope=
"scope"
>
<el-radio
:disabled=
"scope.scope.staffId == staffId"
v-model=
"selectPerson"
:label=
"scope.scope"
>
</el-radio>
<el-radio
v-model=
"selectPerson"
:label=
"scope.scope"
>
</el-radio>
</div>
<div
slot=
"staffName"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
staffName
}}
</span>
...
...
@@ -62,7 +62,7 @@
import
url
from
'@/assets/empty.png'
export
default
{
name
:
'SelectMember'
,
props
:
[
'selectData'
,
'staffId'
],
props
:
[
'selectData'
],
data
()
{
return
{
url
:
url
,
...
...
@@ -143,7 +143,7 @@ export default {
listDepartmentTree
(
isFollowerStaff
)
{
const
params
=
{
addChildrensFlag
:
true
}
this
.
loading
=
true
params
.
isHavCustomer
=
tru
e
params
.
isHavCustomer
=
fals
e
params
.
isFollowerStaff
=
isFollowerStaff
this
.
$apis
.
customerTransform
.
listDepartmentTree
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
...
...
@@ -244,7 +244,6 @@ export default {
},
rowClick
(
row
)
{
// this.$refs.empTable.$refs.salelistMutiTable.toggleRowSelection(row)
if
(
row
.
staffId
===
this
.
staffId
)
return
this
.
selectPerson
=
row
},
checkChange
(
val
)
{
...
...
src/views/expert/detail.vue
View file @
07b704a
...
...
@@ -36,7 +36,7 @@
</el-form>
</div>
<glsx-dialog
class=
"numberDialog"
:title=
"'选择成员'"
btnSize=
"small"
:width=
"'850px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"membersVisible = !membersVisible"
>
<SelectMember
ref=
"membersForm"
:staffId=
"editStaffId"
v-if=
"membersVisible"
:selectData=
"selectData"
></SelectMember>
<SelectMember
ref=
"membersForm"
v-if=
"membersVisible"
:selectData=
"selectData"
></SelectMember>
</glsx-dialog>
<div
class=
"my-footer btn-box box"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSave"
>
提交
</el-button>
...
...
@@ -65,7 +65,6 @@ export default {
eventBus
:
new
Vue
(),
clientType
:
'升级客户'
,
expertId
:
''
,
editStaffId
:
''
,
btnList
:
[
{
id
:
1
,
...
...
@@ -143,7 +142,6 @@ export default {
getDetail
(
id
)
{
this
.
$apis
.
expert
.
expertDetail
({
id
}).
then
(
res
=>
{
if
(
res
?.
id
)
{
this
.
editStaffId
=
res
.
staffId
this
.
selectPerson
=
res
this
.
$refs
.
welcome
.
setDetail
(
res
.
welcomeInfo
)
this
.
clientType
=
res
.
businessTypeName
...
...
@@ -183,20 +181,20 @@ export default {
}
let
preList
=
[...
this
.
$refs
.
welcome
.
previewList
]
preList
.
forEach
(
item
=>
{
if
(
item
.
attType
==
1
&&
!
item
.
attContent
.
trim
())
{
if
(
item
.
attType
==
1
&&
!
item
.
attContent
.
trim
())
{
item
.
attContent
=
'\n'
}
else
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
}
else
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replaceAll
(
'@昵称'
,
'[@昵称]'
)
}
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
})
const
typeItem
=
preList
.
find
(
item
=>
{
return
item
.
attType
==
1
const
typeItem
=
preList
.
find
(
item
=>
{
return
item
.
attType
==
1
})
if
(
!
typeItem
)
{
preList
.
unshift
({
attType
:
'1'
,
attContent
:
'\n'
})
if
(
!
typeItem
)
{
preList
.
unshift
({
attType
:
'1'
,
attContent
:
'\n'
})
}
const
targetItem
=
this
.
numberTypeList
.
find
(
item
=>
{
return
item
.
dictLabel
==
this
.
clientType
...
...
@@ -317,8 +315,8 @@ export default {
}
.form
{
/deep/.el-form-item
{
&:nth-child(-n
+2)
{
height
:
36px
;
&:nth-child(-n
+
2)
{
height
:
36px
;
}
//
height
:
36px
;
line-height
:
36px
;
...
...
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