Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
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 2e0dd5d2
authored
Jan 15, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
41af4786
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
153 additions
and
160 deletions
package-lock.json
package.json
src/api/modules/common.js
src/main.js
src/mixins/config.js
src/setup/qiankun.js
src/views/journeyConfig/components/CollapseItem.vue
src/views/journeyConfig/components/Model.vue
src/views/journeyConfig/components/selectTag.vue
package-lock.json
View file @
2e0dd5d
...
@@ -1879,51 +1879,6 @@
...
@@ -1879,51 +1879,6 @@
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"integrity"
:
"sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A=="
,
"dev"
:
true
"dev"
:
true
},
},
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"ssri"
:
{
"ssri"
:
{
"version"
:
"8.0.1"
,
"version"
:
"8.0.1"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
"resolved"
:
"https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz"
,
...
@@ -1932,28 +1887,6 @@
...
@@ -1932,28 +1887,6 @@
"requires"
:
{
"requires"
:
{
"minipass"
:
"^3.1.1"
"minipass"
:
"^3.1.1"
}
}
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
}
}
}
}
}
},
},
...
@@ -13320,6 +13253,75 @@
...
@@ -13320,6 +13253,75 @@
}
}
}
}
},
},
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"chalk"
:
"^4.1.0"
,
"hash-sum"
:
"^2.0.0"
,
"loader-utils"
:
"^2.0.0"
},
"dependencies"
:
{
"ansi-styles"
:
{
"version"
:
"4.3.0"
,
"resolved"
:
"https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
,
"integrity"
:
"sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-convert"
:
"^2.0.1"
}
},
"chalk"
:
{
"version"
:
"4.1.2"
,
"resolved"
:
"https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
,
"integrity"
:
"sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"ansi-styles"
:
"^4.1.0"
,
"supports-color"
:
"^7.1.0"
}
},
"color-convert"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
,
"integrity"
:
"sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"color-name"
:
"~1.1.4"
}
},
"color-name"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
,
"integrity"
:
"sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
,
"dev"
:
true
,
"optional"
:
true
},
"has-flag"
:
{
"version"
:
"4.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz"
,
"integrity"
:
"sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
,
"dev"
:
true
,
"optional"
:
true
},
"supports-color"
:
{
"version"
:
"7.2.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz"
,
"integrity"
:
"sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"has-flag"
:
"^4.0.0"
}
}
}
},
"vue-style-loader"
:
{
"vue-style-loader"
:
{
"version"
:
"4.1.3"
,
"version"
:
"4.1.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz"
,
...
@@ -14097,9 +14099,9 @@
...
@@ -14097,9 +14099,9 @@
}
}
},
},
"word-edit"
:
{
"word-edit"
:
{
"version"
:
"1.3.
4
"
,
"version"
:
"1.3.
5
"
,
"resolved"
:
"https://registry.npmjs.org/word-edit/-/word-edit-1.3.
4
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/word-edit/-/word-edit-1.3.
5
.tgz"
,
"integrity"
:
"sha512-
bKrEsBiqeadYsUuwVyLx95z64Fk2aNk+0II4dqE4HtAL92ejd/Jpz6SemZbpbM3UdsoYA3PeFG9/hHopI+AyBQ
=="
,
"integrity"
:
"sha512-
9vc+0V3l+QNXrmsZQd800DuE2aftlNxloFPCgJz6hnn68DrimH3IP9UM2xliBkld8I6FHtHAMLZWhlMuJ6f5Nw
=="
,
"requires"
:
{
"requires"
:
{
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
...
...
package.json
View file @
2e0dd5d
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"glsx-common"
:
"^2.0.4"
,
"glsx-common"
:
"^2.0.4"
,
"glsx-components"
:
"^1.2.5"
,
"glsx-components"
:
"^1.2.5"
,
"word-edit"
:
"^1.3.
4
"
"word-edit"
:
"^1.3.
5
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
...
...
src/api/modules/common.js
View file @
2e0dd5d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* @FilePath: \live\src\api\modules\common.js
* @FilePath: \live\src\api\modules\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
import
{
http_common
,
http
}
from
'@/main'
import
{
http_common
,
http
_upload
}
from
'@/main'
const
pictureUpload
=
params
=>
{
const
pictureUpload
=
params
=>
{
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
http_common
({
return
http_common
({
...
@@ -21,7 +21,7 @@ const compressVideo = params => {
...
@@ -21,7 +21,7 @@ const compressVideo = params => {
// params.method = '/video/compression/upload'
// params.method = '/video/compression/upload'
// params.sessionId = session
// params.sessionId = session
// let paramsVideo = JSON.(params)
// let paramsVideo = JSON.(params)
return
http
({
return
http
_upload
({
url
:
'/rpc-scrm-entmicro-container/video/compression/upload'
,
url
:
'/rpc-scrm-entmicro-container/video/compression/upload'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
...
...
src/main.js
View file @
2e0dd5d
...
@@ -23,3 +23,5 @@ export const http = params => Vue.prototype.$http(params)
...
@@ -23,3 +23,5 @@ export const http = params => Vue.prototype.$http(params)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_sop
=
params
=>
Vue
.
prototype
.
$http_sop
(
params
)
export
const
http_sop
=
params
=>
Vue
.
prototype
.
$http_sop
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
export
const
http_upload
=
params
=>
Vue
.
prototype
.
$http_upload
(
params
)
src/mixins/config.js
View file @
2e0dd5d
...
@@ -124,6 +124,7 @@ export default {
...
@@ -124,6 +124,7 @@ export default {
methods
:
{
methods
:
{
getDetail
(
order
)
{
getDetail
(
order
)
{
this
.
$apis
.
journeyConfig
.
getInstIdDetail
({
instId
:
this
.
query
.
instId
}).
then
(
res
=>
{
this
.
$apis
.
journeyConfig
.
getInstIdDetail
({
instId
:
this
.
query
.
instId
}).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
const
instParam
=
JSON
.
parse
(
res
.
instParam
)
const
instParam
=
JSON
.
parse
(
res
.
instParam
)
this
.
dataTypeCode
=
instParam
.
dataTypeCode
this
.
dataTypeCode
=
instParam
.
dataTypeCode
//xbpzj 关联续保膨胀金
//xbpzj 关联续保膨胀金
...
@@ -148,7 +149,7 @@ export default {
...
@@ -148,7 +149,7 @@ export default {
if
(
instStatus
==
-
1
)
{
if
(
instStatus
==
-
1
)
{
this
.
journeyStatus
=
4
this
.
journeyStatus
=
4
}
}
const
nodes
=
res
.
nodes
const
nodes
=
res
.
nodes
.
filter
(
item
=>
item
.
nodeSkip
!=
1
)
const
configList
=
[]
const
configList
=
[]
for
(
let
k
in
stages
)
{
for
(
let
k
in
stages
)
{
let
list
=
[]
let
list
=
[]
...
...
src/setup/qiankun.js
View file @
2e0dd5d
...
@@ -35,6 +35,14 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -35,6 +35,14 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$http_sop
=
new
common
.
Http
({
response
:
response_sop
,
request
:
request_sop
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
,
'Content-Type'
:
'application/json'
}
})
Vue
.
prototype
.
$http_sop
=
new
common
.
Http
({
response
:
response_sop
,
request
:
request_sop
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
,
'Content-Type'
:
'application/json'
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_upload
=
new
common
.
Http
({
response
:
{
...
response
,
data_key
:
'result'
,
code_success_value
:
true
,
code_key
:
'success'
},
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
,
'Content-Type'
:
'multipart/form-data'
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue
.
use
(
GLButton
,
{
permissions
:
globalState
.
permissions
||
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
Vue
.
use
(
GLButton
,
{
permissions
:
globalState
.
permissions
||
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
src/views/journeyConfig/components/CollapseItem.vue
View file @
2e0dd5d
...
@@ -276,8 +276,6 @@ export default {
...
@@ -276,8 +276,6 @@ export default {
},
},
created
()
{},
created
()
{},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
stepItem
)
console
.
log
(
this
.
activityInfo
)
},
},
methods
:
{
methods
:
{
//获取已选择标签
//获取已选择标签
...
@@ -384,7 +382,6 @@ export default {
...
@@ -384,7 +382,6 @@ export default {
showEdit
(
v
,
k
)
{
showEdit
(
v
,
k
)
{
const
{
title
}
=
this
.
$route
.
query
,
const
{
title
}
=
this
.
$route
.
query
,
{
label
,
conditionsList
,
editable
,
flag
}
=
this
.
stepItem
{
label
,
conditionsList
,
editable
,
flag
}
=
this
.
stepItem
console
.
log
(
conditionsList
,
8
)
this
.
conditionInfo
=
{
this
.
conditionInfo
=
{
title
,
title
,
flag
,
flag
,
...
...
src/views/journeyConfig/components/Model.vue
View file @
2e0dd5d
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</
template
>
</
template
>
<el-form-item
:label=
"labelName + ':'"
>
<el-form-item
:label=
"labelName + ':'"
>
<GLEditor
ref=
"welcome"
:form=
"'customer'"
:mapList=
"mapList"
style=
"line-height: 12px; width: 580px"
:maxNum=
"
60
"
boxHeight=
"200"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor>
<GLEditor
ref=
"welcome"
:form=
"'customer'"
:mapList=
"mapList"
style=
"line-height: 12px; width: 580px"
:maxNum=
"
maxNum
"
boxHeight=
"200"
:btnList=
"btnList"
@
previewWord=
"previewForm"
></GLEditor>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"explain"
v-show=
"taskType == 8 || taskType == 9"
>
<div
class=
"explain"
v-show=
"taskType == 8 || taskType == 9"
>
...
@@ -68,6 +68,7 @@ export default {
...
@@ -68,6 +68,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
visible
:
false
,
visible
:
false
,
maxNum
:
50
,
labelName
:
''
,
labelName
:
''
,
tplForm
:
{
tplForm
:
{
followerTypeId
:
''
,
followerTypeId
:
''
,
...
@@ -102,25 +103,28 @@ export default {
...
@@ -102,25 +103,28 @@ export default {
}
}
},
},
taskType
(
newVal
)
{
taskType
(
newVal
)
{
console
.
log
(
newVal
)
this
.
changeEdit
(
newVal
)
this
.
changeEdit
(
newVal
)
switch
(
this
.
taskType
)
{
switch
(
this
.
taskType
)
{
case
7
:
case
7
:
this
.
title
=
'企微提醒模版'
this
.
title
=
'企微提醒模版'
this
.
labelName
=
'提醒内容'
this
.
labelName
=
'提醒内容'
this
.
maxNum
=
50
break
break
case
5
:
case
5
:
this
.
title
=
'门店助手提醒模版'
this
.
title
=
'门店助手提醒模版'
this
.
labelName
=
'提醒内容'
this
.
labelName
=
'提醒内容'
this
.
maxNum
=
50
break
break
case
8
:
case
8
:
case
9
:
case
9
:
this
.
title
=
'营销模板'
this
.
title
=
'营销模板'
this
.
labelName
=
'营销内容'
this
.
labelName
=
'营销内容'
this
.
maxNum
=
200
break
break
case
10
:
case
10
:
this
.
title
=
'短信模版'
this
.
title
=
'短信模版'
this
.
labelName
=
'短信内容'
this
.
labelName
=
'短信内容'
this
.
maxNum
=
50
break
break
}
}
}
}
...
@@ -413,6 +417,6 @@ export default {
...
@@ -413,6 +417,6 @@ export default {
font-size
:
14px
;
font-size
:
14px
;
color
:
#999999
;
color
:
#999999
;
line-height
:
22px
;
line-height
:
22px
;
margin
:
12px
0
0
154px
;
margin
:
-
12px
0
0
154px
;
}
}
</
style
>
</
style
>
src/views/journeyConfig/components/selectTag.vue
View file @
2e0dd5d
<
template
>
<
template
>
<div
class=
"tag-main select-tag"
>
<div
class=
"tag-main select-tag"
>
<GLDialog
bigTitle=
"选择标签"
<GLDialog
bigTitle=
"选择标签"
mode=
"big"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
>
mode=
"big"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
选择标签
</div>
<div
class=
"tag-title"
>
选择标签
</div>
<div
class=
"tag-select-box"
>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
<div
class=
"tag-box-header"
>
<el-input
size=
"small"
<el-input
size=
"small"
v-model=
"labelGroupName"
placeholder=
"请输入搜索内容"
></el-input>
v-model=
"labelGroupName"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
placeholder=
"请输入搜索内容"
></el-input>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</div>
</div>
<div
class=
"checkbox-group-box"
<div
class=
"checkbox-group-box"
:style=
"
{ height: heightBox + 'px' }" v-loading="loading">
:style=
"
{ height: heightBox + 'px' }"
<div
style=
"margin-bottom: 8px"
v-for=
"(item, index) in labelTreeRets"
:key=
"index"
>
v-loading="loading">
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked }" @click.self="item.checked = !item.checked">
</span>
<div
style=
"margin-bottom: 8px"
<el-checkbox
:indeterminate=
"item.isIndeterminate"
v-model=
"item.checkAll"
@
change=
"handleCheckAllChange(item.checkAll, index)"
>
{{
item
.
labelGroup
.
name
}}
(
{{
item
.
tagChecked
.
length
}}
/
{{
item
.
labelList
.
length
}}
项)
</el-checkbox>
v-for=
"(item, index) in labelTreeRets"
:key=
"index"
>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked }"
@click.self="item.checked = !item.checked">
</span>
<el-checkbox
:indeterminate=
"item.isIndeterminate"
v-model=
"item.checkAll"
@
change=
"handleCheckAllChange(item.checkAll, index)"
>
{{
item
.
labelGroup
.
name
}}
(
{{
item
.
tagChecked
.
length
}}
/
{{
item
.
labelList
.
length
}}
项)
</el-checkbox>
<div
style=
"margin: 15px 0"
></div>
<div
style=
"margin: 15px 0"
></div>
<el-checkbox-group
class=
"tag-group"
<el-checkbox-group
class=
"tag-group"
v-model=
"item.tagChecked"
@
change=
"handleCheckedChange(item.tagChecked, index)"
v-if=
"item.checked"
>
v-model=
"item.tagChecked"
<el-checkbox
v-for=
"(itm, idx) in item.labelList"
:label=
"itm"
:key=
"idx"
>
{{
itm
.
name
}}
</el-checkbox>
@
change=
"handleCheckedChange(item.tagChecked, index)"
v-if=
"item.checked"
>
<el-checkbox
v-for=
"(itm, idx) in item.labelList"
:label=
"itm"
:key=
"idx"
>
{{
itm
.
name
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"tag-panel-selected"
>
<div
class=
"tag-panel-selected"
>
<div
class=
"tag-title"
>
已选标签
<div
class=
"tag-title"
>
已选标签
<!--
<image
src=
"@/assets/icon-info.png"
/>
-->
<!--
<image
src=
"@/assets/icon-info.png"
/>
-->
<el-tooltip
effect=
"light"
<el-tooltip
effect=
"light"
popper-class=
"tool-gltip"
>
popper-class=
"tool-gltip"
>
<img
class=
"tag-img"
src=
"@/assets/icon-tip.png"
alt=
""
/>
<img
class=
"tag-img"
src=
"@/assets/icon-tip.png"
alt=
""
/>
<div
slot=
"content"
>
<div
slot=
"content"
>
<div
class=
"tag-content"
>
<div
class=
"tag-content"
>
<p
class=
"tag-ex"
>
说明:
</p>
<p
class=
"tag-ex"
>
说明:
</p>
<p>
标签组内已选标签取
<span
class=
"tag-ex"
>
并集(或)
</span>
,即满足一个条件即可、标签组之间取
<span
<p>
class=
"tag-ex"
>
交集(且)
</span>
,即同时满足标签组条件。
</p>
标签组内已选标签取
<img
src=
"@/assets/groupTips.png"
<span
class=
"tag-ex"
>
并集(或)
</span>
alt=
""
/>
,即满足一个条件即可、标签组之间取
<span
class=
"tag-ex"
>
交集(且)
</span>
,即同时满足标签组条件。
</p>
<img
src=
"@/assets/groupTips.png"
alt=
""
/>
</div>
</div>
</div>
</div>
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
class=
"tag-select-box"
>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-box-header"
>
<div
class=
"tag-selected-box"
标签名称(
{{
selectNum
}}
项)
:style=
"
{ height: heightBox + 'px' }"
>
<span
@
click=
"clearTag"
>
清空
</span
>
<div
v-show=
"!!selectNum"
</div>
class=
"tag-line-and"
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
:style=
"
{ height: heightBox + 'px' }">
<div
v-show=
"!!selectNum"
class=
"tag-line-and"
:style=
"
{ height: heightBox + 'px' }">
<p
class=
"tag-line"
></p>
<p
class=
"tag-line"
></p>
<p
class=
"tag-and"
<p
class=
"tag-and"
:style=
"
{ top: heightBox / 2 - 20 + 'px' }">且
</p>
:style=
"
{ top: heightBox / 2 - 20 + 'px' }">且
</p>
</div>
</div>
<div
class=
"label-box"
>
<div
class=
"label-box"
>
<div
v-for=
"(item, index) in labelTreeRetSelect"
<div
v-for=
"(item, index) in labelTreeRetSelect"
:key=
"index"
>
:key=
"index"
>
<p
class=
"tag-selected-label"
v-show=
"item.tagChecked.length"
>
{{
item
.
labelGroup
.
name
}}
:
</p>
<p
class=
"tag-selected-label"
<span
v-for=
"(tag, idx) in item.tagChecked"
:key=
"idx"
>
v-show=
"item.tagChecked.length"
>
{{
item
.
labelGroup
.
name
}}
:
</p>
<span
class=
"tag-txt"
v-show=
"idx != 0"
>
或
</span>
<span
v-for=
"(tag, idx) in item.tagChecked"
<el-tag
:title=
"tag.name"
type=
"info"
class=
"customer-tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
:key=
"idx"
>
<span
class=
"tag-txt"
v-show=
"idx != 0"
>
或
</span>
<el-tag
:title=
"tag.name"
type=
"info"
class=
"customer-tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
{{
tag
.
name
.
length
>
11
?
tag
.
name
.
slice
(
0
,
11
)
+
'...'
:
tag
.
name
}}
{{
tag
.
name
.
length
>
11
?
tag
.
name
.
slice
(
0
,
11
)
+
'...'
:
tag
.
name
}}
</el-tag>
</el-tag>
</span>
</span>
...
@@ -101,18 +68,10 @@
...
@@ -101,18 +68,10 @@
</div>
</div>
</div>
</div>
</div>
</div>
<span
slot=
"footer"
<span
slot=
"footer"
class=
"dialog-footer"
>
class=
"dialog-footer"
>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
v-if=
"this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2"
>
没有意向标签?点我创建
</a>
<a
class=
"dialog-jump"
<el-button
size=
"small"
@
click=
"handleClose"
>
取 消
</el-button>
@
click=
"jumpUrl"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
v-if=
"this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2"
>
没有意向标签?点我创建
</a>
<el-button
size=
"small"
@
click=
"handleClose"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
</span>
</span>
</GLDialog>
</GLDialog>
</div>
</div>
...
@@ -158,6 +117,19 @@ export default {
...
@@ -158,6 +117,19 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
clearTag
()
{
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
item
.
tagChecked
=
[];
itm
.
tagChecked
=
[]
})
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
,
1
)
})
})
},
jumpUrl
()
{
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
util
.
openUrl
(
location
.
origin
+
'/custom/tagsManage/index'
)
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
...
@@ -173,7 +145,6 @@ export default {
...
@@ -173,7 +145,6 @@ export default {
this
.
querylabeltree
()
this
.
querylabeltree
()
},
},
querylabeltree
(
selectItem
)
{
querylabeltree
(
selectItem
)
{
console
.
log
(
'selectItem'
,
selectItem
);
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
journeyConfig
this
.
$apis
.
journeyConfig
.
querylabeltree
({
.
querylabeltree
({
...
@@ -362,6 +333,9 @@ export default {
...
@@ -362,6 +333,9 @@ export default {
margin-left
:
42px
;
margin-left
:
42px
;
height
:
100%
;
height
:
100%
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
.el-tag
{
margin-right
:
0px
;
}
}
}
.tag-selected-label
{
.tag-selected-label
{
...
@@ -426,11 +400,16 @@ export default {
...
@@ -426,11 +400,16 @@ export default {
margin-left
:
10px
;
margin-left
:
10px
;
.tag-box-header
{
.tag-box-header
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#333333
;
color
:
#333333
;
line-height
:
20px
;
line-height
:
20px
;
padding-left
:
20px
!important
;
padding
:
0
16px
!important
;
span
{
color
:
#5850ff
;
}
}
}
}
}
...
...
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