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 5f423603
authored
Apr 15, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
229f2a6c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
8 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 @
5f42360
...
...
@@ -18,7 +18,7 @@ export const fetchConfig = function(isEnv = true) {
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
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
...
...
src/mixins/tag.js
View file @
5f42360
...
...
@@ -123,7 +123,8 @@ export default {
//导出
handleExport
()
{
const
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
({
tagLists
:
this
.
allListParams
}))
...
JSON
.
parse
(
JSON
.
stringify
({
tagLists
:
this
.
allListParams
})),
combineType
:
2
}
exportLabelList
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
...
...
@@ -153,6 +154,11 @@ export default {
if
(
this
.
tableTotal
==
0
)
{
this
.
$refs
.
viewCustomers
.
setTableHeightFun
()
}
if
(
tagLists
.
length
==
0
)
{
document
.
querySelector
(
'.noDataText'
).
innerText
=
'请选择标签'
}
else
{
document
.
querySelector
(
'.noDataText'
).
innerText
=
'暂无数据'
}
})
.
catch
(
err
=>
{
this
.
userLoading
=
false
...
...
src/views/crowdManage/crowdAdd.vue
View file @
5f42360
...
...
@@ -666,8 +666,7 @@ export default {
.container
{
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
height
:
calc
(
100vh
-
164px
);
overflow-y
:
auto
;
margin-bottom
:
80px
;
//
padding
:
20px
;
.title
{
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
5f42360
...
...
@@ -5,7 +5,7 @@
<span
@
click=
"resetTree"
>
重置
</span>
</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 }">
<span
:class=
"['tree-node', `node_$
{data.id}`]">
{{
node
.
label
}}
</span>
<span
v-if=
"data.labelType && data.labelType != '系统标签' && isShowEditBtn(data.labelDTO)"
@
click
.
stop=
"editTree(data)"
>
...
...
@@ -22,6 +22,7 @@ export default {
name
:
'tagGroup'
,
data
()
{
return
{
expandId
:
[],
loading
:
false
,
heightBox
:
200
,
dialogVisible
:
false
,
...
...
@@ -70,6 +71,7 @@ export default {
document
.
querySelector
(
'.tag-tree'
).
scrollTop
=
height
},
resetTree
()
{
this
.
$parent
.
searchForm
=
{}
this
.
$refs
.
tagTree
.
setCheckedKeys
([])
this
.
$nextTick
(()
=>
{
this
.
$emit
(
'getCheckItem'
,
this
.
$refs
.
tagTree
)
...
...
@@ -137,6 +139,13 @@ export default {
}
})
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
(()
=>
{
status
&&
this
.
updateTreeNode
()
})
...
...
src/views/tagsManage/index.vue
View file @
5f42360
...
...
@@ -184,7 +184,7 @@
个
</span>
<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>
...
...
@@ -658,7 +658,7 @@ export default {
break
case
'edit'
:
this
.
tagDialogTitle
=
'编辑标签组'
this
.
$set
(
this
.
tagDialogData
[
0
],
'disabled'
,
true
)
//
this.$set(this.tagDialogData[0], 'disabled', true)
this
.
editEvent
(
rowData
)
break
}
...
...
@@ -1414,4 +1414,4 @@ export default {
margin-bottom
:
5px
;
}
}
</
style
>
\ No newline at end of file
</
style
>
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