Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 d812e4aa
authored
Apr 15, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.1.0' of
http://192.168.3.233:8090/saas/scrm-micro-custom
into xuyl_dev_2.1.0
2 parents
be2f766e
b5704aab
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
src/config/index.js
src/mixins/tag.js
src/views/crowdManage/crowdAdd.vue
src/views/tagsManage/components/tagGroup.vue
src/views/tagsManage/index.vue
src/config/index.js
View file @
d812e4a
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
return
Promise
.
resolve
(
cfg
)
return
Promise
.
resolve
(
cfg
)
}
}
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.
dev
.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.
test
.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
//开发环境mock
//开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
}
...
...
src/mixins/tag.js
View file @
d812e4a
...
@@ -123,7 +123,8 @@ export default {
...
@@ -123,7 +123,8 @@ export default {
//导出
//导出
handleExport
()
{
handleExport
()
{
const
params
=
{
const
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
({
tagLists
:
this
.
allListParams
}))
...
JSON
.
parse
(
JSON
.
stringify
({
tagLists
:
this
.
allListParams
})),
combineType
:
2
}
}
exportLabelList
(
params
).
then
(
res
=>
{
exportLabelList
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
this
.
$Utils
.
exportFn
(
res
)
...
@@ -153,6 +154,11 @@ export default {
...
@@ -153,6 +154,11 @@ export default {
if
(
this
.
tableTotal
==
0
)
{
if
(
this
.
tableTotal
==
0
)
{
this
.
$refs
.
viewCustomers
.
setTableHeightFun
()
this
.
$refs
.
viewCustomers
.
setTableHeightFun
()
}
}
if
(
tagLists
.
length
==
0
)
{
document
.
querySelector
(
'.noDataText'
).
innerText
=
'请选择标签'
}
else
{
document
.
querySelector
(
'.noDataText'
).
innerText
=
'暂无数据'
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
this
.
userLoading
=
false
this
.
userLoading
=
false
...
...
src/views/crowdManage/crowdAdd.vue
View file @
d812e4a
...
@@ -666,8 +666,7 @@ export default {
...
@@ -666,8 +666,7 @@ export default {
.container
{
.container
{
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
height
:
calc
(
100vh
-
164px
);
margin-bottom
:
80px
;
overflow-y
:
auto
;
//
padding
:
20px
;
//
padding
:
20px
;
.title
{
.title
{
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
d812e4a
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<span
@
click=
"resetTree"
>
重置
</span>
<span
@
click=
"resetTree"
>
重置
</span>
</div>
</div>
<el-tree
@
check=
"checkChange"
class=
"tag-tree"
ref=
"tagTree"
:data=
"labelTree"
:props=
"defaultProps"
@
node-click=
"nodeClick"
show-checkbox
node-key=
"id"
default-expand-all
:expand-on-click-node=
"false"
:filter-node-method=
"filterNode"
>
<el-tree
@
check=
"checkChange"
class=
"tag-tree"
ref=
"tagTree"
:data=
"labelTree"
:props=
"defaultProps"
@
node-click=
"nodeClick"
show-checkbox
node-key=
"id"
:default-expanded-keys=
"expandId"
:expand-on-click-node=
"false"
:filter-node-method=
"filterNode"
>
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span
:class=
"['tree-node', `node_$
{data.id}`]">
{{
node
.
label
}}
</span>
<span
:class=
"['tree-node', `node_$
{data.id}`]">
{{
node
.
label
}}
</span>
<span
v-if=
"data.labelType && data.labelType != '系统标签' && isShowEditBtn(data.labelDTO)"
@
click
.
stop=
"editTree(data)"
>
<span
v-if=
"data.labelType && data.labelType != '系统标签' && isShowEditBtn(data.labelDTO)"
@
click
.
stop=
"editTree(data)"
>
...
@@ -22,6 +22,7 @@ export default {
...
@@ -22,6 +22,7 @@ export default {
name
:
'tagGroup'
,
name
:
'tagGroup'
,
data
()
{
data
()
{
return
{
return
{
expandId
:
[],
loading
:
false
,
loading
:
false
,
heightBox
:
200
,
heightBox
:
200
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -70,6 +71,7 @@ export default {
...
@@ -70,6 +71,7 @@ export default {
document
.
querySelector
(
'.tag-tree'
).
scrollTop
=
height
document
.
querySelector
(
'.tag-tree'
).
scrollTop
=
height
},
},
resetTree
()
{
resetTree
()
{
this
.
$parent
.
searchForm
=
{}
this
.
$refs
.
tagTree
.
setCheckedKeys
([])
this
.
$refs
.
tagTree
.
setCheckedKeys
([])
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$emit
(
'getCheckItem'
,
this
.
$refs
.
tagTree
)
this
.
$emit
(
'getCheckItem'
,
this
.
$refs
.
tagTree
)
...
@@ -137,6 +139,13 @@ export default {
...
@@ -137,6 +139,13 @@ export default {
}
}
})
})
this
.
labelTree
=
this
.
labelTree
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
)
this
.
labelTree
=
this
.
labelTree
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
)
this
.
expandId
=
[]
if
(
this
.
labelTree
&&
this
.
labelTree
.
length
)
{
this
.
labelTree
[
0
].
children
.
forEach
(
item
=>
{
this
.
expandId
.
push
(
item
.
id
)
})
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
status
&&
this
.
updateTreeNode
()
status
&&
this
.
updateTreeNode
()
})
})
...
...
src/views/tagsManage/index.vue
View file @
d812e4a
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
个
个
</span>
</span>
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '编辑标签组'"
>
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '编辑标签组'"
>
{{ tagForm.initTagsGroup == 1 ? (
this.$globalState.session.
merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签' }}最多3000个,已创建
{{ tagForm.initTagsGroup == 1 ? (merchantModel == 1 ? '集团标签' : '企业标签') : '自店标签' }}最多3000个,已创建
<span
class=
"pure-blue-text"
>
{{ tagForm.initTagsGroup == 1 ? numberObj.bizLabelCount : numberObj.rcLabelCount }}
</span>
<span
class=
"pure-blue-text"
>
{{ tagForm.initTagsGroup == 1 ? numberObj.bizLabelCount : numberObj.rcLabelCount }}
</span>
个
个
</span>
</span>
...
@@ -658,7 +658,7 @@ export default {
...
@@ -658,7 +658,7 @@ export default {
break
break
case
'edit'
:
case
'edit'
:
this
.
tagDialogTitle
=
'编辑标签组'
this
.
tagDialogTitle
=
'编辑标签组'
this
.
$set
(
this
.
tagDialogData
[
0
],
'disabled'
,
true
)
//
this.$set(this.tagDialogData[0], 'disabled', true)
this
.
editEvent
(
rowData
)
this
.
editEvent
(
rowData
)
break
break
}
}
...
...
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