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 ac1bb77a
authored
May 13, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
逻辑修改
1 parent
9b885edb
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
23 deletions
src/setup/qiankun.js
src/views/expert/components/tag-textarea.vue
src/views/expert/detail.vue
src/views/expert/index.vue
src/views/ghPreSale/writeOff/addwriteOff.vue
src/setup/qiankun.js
View file @
ac1bb77
...
...
@@ -15,8 +15,10 @@ Vue.use(GLTable)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request_brand
,
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.baseURL = 'http://192.168.1.78:8064'
// request_brand.baseURL = 'http://192.168.1.78:8064'
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
...
...
@@ -26,8 +28,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$defaultStartDate
=
'2021-07-01'
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_brand
=
new
common
.
Http
({
response
,
request
:
request_brand
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '
3c50d4be-7211-45c1-a2c6-9792bbb3c0d9
' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '
3c50d4be-7211-45c1-a2c6-9792bbb3c0d9
' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '
scrm-base-8e58ed43-8b98-43f1-932c-99ac788d426c-rop
' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '
scrm-base-8e58ed43-8b98-43f1-932c-99ac788d426c-rop
' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
...
...
src/views/expert/components/tag-textarea.vue
View file @
ac1bb77
...
...
@@ -111,15 +111,15 @@ export default {
this
.
$emit
(
'add'
,
type
)
},
addTag
(
text
)
{
//
//
创建模版标签
//
let node = document.createElement(this.tag)
//
if (navigator.userAgent.indexOf('Firefox') > 0) {
//
node.setAttribute('contenteditable', 'false')
//
}
//
node.innerText = text
//
//
添加id便于删除
//
node.id = this.getGuid()
//
this.insertNode(node)
// 创建模版标签
let
node
=
document
.
createElement
(
this
.
tag
)
if
(
navigator
.
userAgent
.
indexOf
(
'Firefox'
)
>
0
)
{
node
.
setAttribute
(
'contenteditable'
,
'false'
)
}
node
.
innerText
=
text
// 添加id便于删除
node
.
id
=
this
.
getGuid
()
this
.
insertNode
(
node
)
let
textarea
=
document
.
getElementsByClassName
(
'w-textarea_input'
)
console
.
log
(
textarea
[
0
].
childNodes
,
textarea
[
0
]?.
childNodes
?.
length
)
},
...
...
src/views/expert/detail.vue
View file @
ac1bb77
...
...
@@ -7,13 +7,18 @@
<div
class=
"detail-wrap"
>
<el-form
class=
"form"
ref=
"form"
:model=
"basicForm"
label-width=
"128px"
>
<el-form-item
label=
"客户类型:"
>
<span>
{{
clientType
==
1
?
'升级客户'
:
'战败客户'
}}
</span>
<span
class=
"client"
>
{{
clientType
==
1
?
'升级客户'
:
'战败客户'
}}
</span>
</el-form-item>
<el-form-item
required
label=
"轻改专家:"
>
<el-button
size=
"small"
icon=
"el-icon-plus"
@
click=
"openMembers"
>
<span
v-if=
"selectPerson && selectPerson.staffName"
class=
"tag-info"
>
<i
class=
"el-icon-user-solid person"
></i>
<span
class=
"client name"
>
{{
selectPerson
&&
selectPerson
.
staffName
}}
</span>
<i
class=
"el-icon-close del"
@
click=
"delPerson"
></i>
</span>
<el-button
v-else
size=
"small"
icon=
"el-icon-plus"
@
click=
"openMembers"
>
选择成员
</el-button>
<span
>
所属商户:xx门店
</span>
<span
v-if=
"selectPerson && selectPerson.departmentName"
class=
"depart-name"
>
{{
selectPerson
&&
selectPerson
.
departmentName
}}
</span>
</el-form-item>
<el-form-item
label=
"欢迎语:"
>
<!--
<label
slot=
"label"
class=
"required"
>
群发内容
</label>
-->
...
...
@@ -33,6 +38,10 @@
<glsx-dialog
:title=
"'选择成员'"
:width=
"'1142px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"membersVisible = !membersVisible"
>
<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>
<el-button
type=
"default"
size=
"small"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
</
template
>
...
...
@@ -109,6 +118,9 @@ export default {
},
methods
:
{
addConfig
()
{},
delPerson
()
{
this
.
selectPerson
=
null
},
// 成员弹窗
handleConfirm
()
{
console
.
log
(
this
.
$refs
.
membersForm
.
selectPerson
)
...
...
@@ -131,7 +143,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.expert-detail
{
background-color
:
#fff
;
height
:
calc
(
100
vh
-
80px
);
height
:
calc
(
100
%
-
80px
);
.header
{
height
:
56px
;
font-size
:
16px
;
...
...
@@ -150,6 +162,36 @@ export default {
}
.detail-wrap
{
padding
:
40px
;
.client
{
color
:
#333
;
}
.tag-info
{
display
:
inline-block
;
border
:
1px
solid
#e8e8ea
!important
;
border-radius
:
4px
;
width
:
94px
;
height
:
28px
;
line-height
:
28px
;
text-align
:
center
;
.name
{
margin
:
0
5px
;
}
.person
{
color
:
#75acff
;
}
.del
{
cursor
:
pointer
;
}
}
.depart-name
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
20px
;
margin-left
:
8px
;
}
.form
{
/deep/.el-form-item
{
&
>
.el-form-item__label
{
...
...
src/views/expert/index.vue
View file @
ac1bb77
...
...
@@ -16,7 +16,7 @@
<div
class=
"expert-wrap"
>
<glsx-combi-form
ref=
"expertRef"
labelWidth=
"72px"
defaultWidth=
"215px"
:formObj=
"batchListSearch"
:formData=
"expertForm"
>
<div
slot=
"department"
>
<el-cascader
popper-class=
"expert-cascader"
ref=
"cascaderRef1"
placeholder=
"请选择商户/门店"
@
change=
"getCurMerchant"
:show-all-levels=
"false"
v-model=
"batchListSearch.department
Name"
:props=
"mypropParam1"
:options=
"shopList"
size=
"small"
style=
"width: 320
px"
separator=
" "
filterable
>
<el-cascader
popper-class=
"expert-cascader"
ref=
"cascaderRef1"
placeholder=
"请选择商户/门店"
@
change=
"getCurMerchant"
:show-all-levels=
"false"
v-model=
"batchListSearch.department
Id"
:props=
"mypropParam1"
:options=
"shopList"
size=
"small"
style=
"width: 215
px"
separator=
" "
filterable
>
<template
slot-scope=
"
{ data }">
<el-tooltip
popper-class=
"myToolTipClass"
style=
"border: none"
:disabled=
"data.label.length > 12 ? false : true"
class=
"item"
effect=
"light"
:content=
"data.label"
placement=
"top-end"
>
<div
class=
"limitText"
style=
"width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis"
>
{{
data
.
label
}}
</div>
...
...
@@ -70,14 +70,14 @@ export default {
showClientType
:
false
,
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
batchListSearch
:
{
department
Name
:
''
,
department
Id
:
''
,
staffName
:
''
,
businessType
:
''
},
expertForm
:
[
{
label
:
'门店'
,
name
:
'department
Name
'
,
name
:
'department
Id
'
,
addHtml
:
'department'
},
{
...
...
@@ -184,7 +184,7 @@ export default {
getCurMerchant
(
val
)
{
console
.
log
(
val
,
7897
)
let
id
=
val
[
val
.
length
-
1
]
this
.
batchListSearch
.
department
Name
=
id
this
.
batchListSearch
.
department
Id
=
id
// let labels = this.$refs.cascaderRef1.getCheckedNodes()[0].pathLabels
// let curLabel = labels[labels.length - 1]
// this.curTempMerchant = {
...
...
@@ -328,7 +328,7 @@ export default {
margin-top
:
16px
;
padding
:
20px
20px
0
;
background-color
:
#fff
;
height
:
calc
(
100vh
-
148px
);
//
height
:
calc
(
100vh
-
148px
);
.select_wrapper
{
display
:
flex
;
align-items
:
center
;
...
...
src/views/ghPreSale/writeOff/addwriteOff.vue
View file @
ac1bb77
...
...
@@ -345,7 +345,8 @@ export default {
<
style
lang=
"scss"
scoped
>
.writeOff
{
margin-top
:
17px
;
height
:
calc
(
100vh
-
206px
);
//
height
:
calc
(
100vh
-
206px
);
margin-bottom
:
64px
;
background-color
:
#fff
;
.header
{
height
:
60px
;
...
...
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