Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
170e1969
Commit
170e1969
authored
Sep 09, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改人群可见范围
parent
de6110da
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
16 deletions
+32
-16
edit-tag-dialog.vue
src/components/app/my-customer/edit-tag-dialog.vue
+9
-9
clerk-tag.vue
src/views/apps/customer-app/clerk-tag.vue
+3
-3
crowd-scene.vue
src/views/apps/customer-app/crowd-scene.vue
+20
-4
No files found.
src/components/app/my-customer/edit-tag-dialog.vue
View file @
170e1969
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
8 15:12:15
* @LastEditTime: 2020-09-0
9 09:24:47
-->
-->
<!--
<!--
...
@@ -34,16 +34,16 @@
...
@@ -34,16 +34,16 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"标签值"
prop=
"
child
List"
>
<el-form-item
label=
"标签值"
prop=
"
tagValueDTO
List"
>
<el-tag
<el-tag
:key=
"index+'tag'"
:key=
"index+'tag'"
v-for=
"(item, index) in form.
child
List"
v-for=
"(item, index) in form.
tagValueDTO
List"
closable
closable
:disable-transitions=
"false"
:disable-transitions=
"false"
@
close=
"handleDel(index)"
>
@
close=
"handleDel(index)"
>
{{
item
.
tagValue
}}
{{
item
.
tagValue
}}
</el-tag>
</el-tag>
<div
v-if=
"form.
child
List.length
<
20
"
class=
"m-t-5 input-tag-div"
>
<div
v-if=
"form.
tagValueDTO
List.length
<
20
"
class=
"m-t-5 input-tag-div"
>
<el-input
<el-input
class=
"input-new-tag"
class=
"input-new-tag"
v-model=
"inputValue"
v-model=
"inputValue"
...
@@ -103,7 +103,7 @@ export default {
...
@@ -103,7 +103,7 @@ export default {
tagName
:
''
,
tagName
:
''
,
linkId
:
''
,
linkId
:
''
,
categoryId
:
this
.
currentCategoryId
,
categoryId
:
this
.
currentCategoryId
,
child
List
:
[]
tagValueDTO
List
:
[]
},
},
rules
:
{
rules
:
{
tagName
:
[
tagName
:
[
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
categoryId
:
[
categoryId
:
[
{
required
:
true
,
message
:
'请选择所属分类'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择所属分类'
,
trigger
:
'change'
}
],
],
child
List
:
[
tagValueDTO
List
:
[
{
type
:
'array'
,
required
:
true
,
message
:
'请添加标签值'
,
trigger
:
'change'
}
{
type
:
'array'
,
required
:
true
,
message
:
'请添加标签值'
,
trigger
:
'change'
}
],
],
},
},
...
@@ -139,14 +139,14 @@ export default {
...
@@ -139,14 +139,14 @@ export default {
* @author: 无尘
* @author: 无尘
*/
*/
handleDel
(
index
)
{
handleDel
(
index
)
{
this
.
form
.
child
List
.
splice
(
index
,
1
);
this
.
form
.
tagValueDTO
List
.
splice
(
index
,
1
);
},
},
handleInputConfirm
()
{
handleInputConfirm
()
{
const
that
=
this
;
const
that
=
this
;
let
inputValue
=
emojiToStr
(
that
.
inputValue
);
let
inputValue
=
emojiToStr
(
that
.
inputValue
);
if
(
inputValue
)
{
if
(
inputValue
)
{
that
.
form
.
child
List
.
push
(
that
.
form
.
tagValueDTO
List
.
push
(
{
{
tagValueId
:
''
,
tagValueId
:
''
,
tagValue
:
inputValue
tagValue
:
inputValue
...
@@ -189,7 +189,7 @@ export default {
...
@@ -189,7 +189,7 @@ export default {
tagId
:
that
.
form
.
tagId
,
tagId
:
that
.
form
.
tagId
,
tagName
:
emojiToStr
(
that
.
form
.
tagName
),
tagName
:
emojiToStr
(
that
.
form
.
tagName
),
linkId
:
that
.
form
.
linkId
,
linkId
:
that
.
form
.
linkId
,
childList
:
JSON
.
stringify
(
that
.
form
.
child
List
),
tagValueDTOList
:
JSON
.
stringify
(
that
.
form
.
tagValueDTO
List
),
categoryId
:
that
.
form
.
categoryId
,
categoryId
:
that
.
form
.
categoryId
,
enterpriseId
:
that
.
brandId
,
enterpriseId
:
that
.
brandId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
wxEnterpriseId
:
that
.
wxEnterpriseId
...
...
src/views/apps/customer-app/clerk-tag.vue
View file @
170e1969
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-28 16:51:22
* @Date: 2020-08-28 16:51:22
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
8 18:09:06
* @LastEditTime: 2020-09-0
9 09:26:25
-->
-->
<
template
>
<
template
>
...
@@ -271,8 +271,8 @@ export default {
...
@@ -271,8 +271,8 @@ export default {
};
};
getTagVisiable
(
para
)
getTagVisiable
(
para
)
.
then
(
res
=>
{
.
then
(
res
=>
{
that
.
selectMode
=
res
.
result
.
storeMode
;
that
.
selectMode
=
String
(
res
.
result
.
storeMode
)
;
that
.
rangeData
=
res
.
result
.
bindRange
||
{}
;
that
.
rangeData
=
res
.
result
.
bindRange
?
JSON
.
parse
(
res
.
result
.
bindRange
)
:
[]
;
that
.
setItemId
=
tagId
;
that
.
setItemId
=
tagId
;
that
.
showTagVisiable
=
true
;
that
.
showTagVisiable
=
true
;
})
})
...
...
src/views/apps/customer-app/crowd-scene.vue
View file @
170e1969
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
8 18:08:51
* @LastEditTime: 2020-09-0
9 09:27:34
-->
-->
<
template
>
<
template
>
...
@@ -206,8 +206,8 @@ export default {
...
@@ -206,8 +206,8 @@ export default {
};
};
getVisiable
(
para
)
getVisiable
(
para
)
.
then
(
res
=>
{
.
then
(
res
=>
{
that
.
selectMode
=
res
.
result
.
storeMode
;
that
.
selectMode
=
String
(
res
.
result
.
storeMode
)
;
that
.
rangeData
=
res
.
result
.
bindRange
||
{}
;
that
.
rangeData
=
res
.
result
.
bindRange
?
JSON
.
parse
(
res
.
result
.
bindRange
)
:
[]
;
that
.
setItemId
=
sceneCrowdId
;
that
.
setItemId
=
sceneCrowdId
;
that
.
showSelectStore
=
true
;
that
.
showSelectStore
=
true
;
})
})
...
@@ -310,7 +310,11 @@ export default {
...
@@ -310,7 +310,11 @@ export default {
getGroupData
(
para
)
getGroupData
(
para
)
.
then
(
res
=>
{
.
then
(
res
=>
{
that
.
loading
=
false
;
that
.
loading
=
false
;
that
.
memberCrowdData
=
res
.
result
||
[];
if
(
!!
res
.
result
&&
!!
res
.
result
.
length
)
{
that
.
memberCrowdData
=
that
.
sortTable
(
res
.
result
);
}
else
{
that
.
memberCrowdData
=
[];
}
if
(
!
that
.
searchVal
&&
!
that
.
classifyId
&&
!!
res
.
result
&&
!!
res
.
result
.
length
)
{
if
(
!
that
.
searchVal
&&
!
that
.
classifyId
&&
!!
res
.
result
&&
!!
res
.
result
.
length
)
{
that
.
totalNum
=
res
.
result
.
length
;
that
.
totalNum
=
res
.
result
.
length
;
}
}
...
@@ -318,6 +322,18 @@ export default {
...
@@ -318,6 +322,18 @@ export default {
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
that
.
loading
=
false
;
that
.
loading
=
false
;
});
});
},
/**
* @description: 排序
* @param {Array} arr
* @returns {Array}
* @author: 无尘
*/
sortTable
(
arr
)
{
arr
.
sort
(
function
(
a
,
b
)
{
return
(
a
.
sort
-
b
.
sort
);
});
return
arr
;
}
}
},
},
watch
:
{
watch
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment