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
c06b0e7e
Commit
c06b0e7e
authored
Sep 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改场景人群
parent
57da2a42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
184 additions
and
39 deletions
+184
-39
sync-crowd-dialog.vue
src/components/app/my-customer/sync-crowd-dialog.vue
+26
-5
crowd-scene.vue
src/views/apps/customer-app/crowd-scene.vue
+5
-3
customer-assign.vue
src/views/apps/customer-app/customer-assign.vue
+150
-29
customer-data-set.vue
src/views/apps/customer-app/customer-data-set.vue
+3
-2
No files found.
src/components/app/my-customer/sync-crowd-dialog.vue
View file @
c06b0e7e
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-28 10:31:09
* @Date: 2020-08-28 10:31:09
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
4 16:18:44
* @LastEditTime: 2020-09-0
7 09:45:16
-->
-->
<!--
<!--
<sync-crowd-dialog :brand-id="brandId" :total-num="totalNum" @refreshData="refreshData"></sync-crowd-dialog>
<sync-crowd-dialog :brand-id="brandId" :
select-ids="selectIds" :
total-num="totalNum" @refreshData="refreshData"></sync-crowd-dialog>
import syncCrowdDialog from '@/components/app/my-customer/sync-crowd-dialog.vue';
import syncCrowdDialog from '@/components/app/my-customer/sync-crowd-dialog.vue';
-->
-->
<
template
>
<
template
>
...
@@ -27,10 +27,10 @@
...
@@ -27,10 +27,10 @@
</div>
</div>
<div
class=
"m-t-20"
>
<div
class=
"m-t-20"
>
<el-table
class=
"select-table"
v-loading=
"loadingPage"
ref=
"multipleTable"
height=
"500"
:data=
"tableData"
tooltip-effect=
"dark"
:style=
"
{ width: '100%' }" @selection-change="handleSelectionChange">
<el-table
class=
"select-table"
v-loading=
"loadingPage"
ref=
"multipleTable"
height=
"500"
:data=
"tableData"
tooltip-effect=
"dark"
:style=
"
{ width: '100%' }" @selection-change="handleSelectionChange">
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
type=
"selection"
:selectable=
"selectable"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
""
label=
"人群名称"
show-overflow-tooltip
>
<el-table-column
prop=
""
label=
"人群名称"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
sceneCrowdName
||
'--'
}}
{{
selectIds
.
includes
(
scope
.
row
.
sceneCrowdId
)
?
'(已选择)'
:
''
}}{{
scope
.
row
.
sceneCrowdName
||
'--'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
""
label=
"所属分类"
show-overflow-tooltip
>
<el-table-column
prop=
""
label=
"所属分类"
show-overflow-tooltip
>
...
@@ -74,7 +74,13 @@ export default {
...
@@ -74,7 +74,13 @@ export default {
totalNum
:
{
totalNum
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
default
:
'0'
default
:
'0'
}
},
selectIds
:
{
type
:
Array
,
default
()
{
return
[];
}
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -103,6 +109,21 @@ export default {
...
@@ -103,6 +109,21 @@ export default {
},
},
methods
:
{
methods
:
{
/**
/**
* @description: 禁用当前已选数据
* @param {Object} row
* @param {Number} index
* @return {Boolean}
* @author: 无尘
*/
selectable
(
row
,
index
)
{
const
that
=
this
;
if
(
that
.
selectIds
.
includes
(
row
.
sceneCrowdId
)){
return
false
;
}
else
{
return
true
;
}
},
/**
* @description: 确定保存
* @description: 确定保存
* @param {String} form
* @param {String} form
* @returns {Boolean}
* @returns {Boolean}
...
...
src/views/apps/customer-app/crowd-scene.vue
View file @
c06b0e7e
...
@@ -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
4 15:44:48
* @LastEditTime: 2020-09-0
7 09:48:06
-->
-->
<
template
>
<
template
>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</el-table>
</el-table>
</div>
</div>
</div>
</div>
<sync-crowd-dialog
v-if=
"showSync"
:total-num=
"totalNum"
:brand-id=
"brandId"
@
refreshData=
"refreshData"
></sync-crowd-dialog>
<sync-crowd-dialog
v-if=
"showSync"
:
select-ids=
"selectIds"
:
total-num=
"totalNum"
:brand-id=
"brandId"
@
refreshData=
"refreshData"
></sync-crowd-dialog>
<edit-visiable
v-if=
"showSelectStore"
:brand-id=
"brandId"
:set-item-id=
"setItemId"
:set-type=
"'crowd'"
:select-mode=
"selectMode"
:range-data=
"rangeData"
@
refreshData=
"refreshData"
></edit-visiable>
<edit-visiable
v-if=
"showSelectStore"
:brand-id=
"brandId"
:set-item-id=
"setItemId"
:set-type=
"'crowd'"
:select-mode=
"selectMode"
:range-data=
"rangeData"
@
refreshData=
"refreshData"
></edit-visiable>
</div>
</div>
</template>
</template>
...
@@ -106,7 +106,8 @@ export default {
...
@@ -106,7 +106,8 @@ export default {
showSelectStore
:
false
,
// 可见范围显示
showSelectStore
:
false
,
// 可见范围显示
selectMode
:
''
,
// 选择类型 0:所有; 1:分组; 2:门店
selectMode
:
''
,
// 选择类型 0:所有; 1:分组; 2:门店
rangeData
:
[],
// 选择的分组或门店
rangeData
:
[],
// 选择的分组或门店
setItemId
:
''
// 选中的场景 id
setItemId
:
''
,
// 选中的场景 id
selectIds
:
[]
// 已选的所以场景 id
};
};
},
},
// 生命周期 - 挂载完成(访问DOM元素)
// 生命周期 - 挂载完成(访问DOM元素)
...
@@ -178,6 +179,7 @@ export default {
...
@@ -178,6 +179,7 @@ export default {
*/
*/
toSync
()
{
toSync
()
{
const
that
=
this
;
const
that
=
this
;
that
.
selectIds
=
that
.
memberCrowdData
.
map
(
ele
=>
ele
.
sceneCrowdId
)
||
[];
that
.
showSync
=
true
;
that
.
showSync
=
true
;
},
},
/**
/**
...
...
src/views/apps/customer-app/customer-assign.vue
View file @
c06b0e7e
This diff is collapsed.
Click to expand it.
src/views/apps/customer-app/customer-data-set.vue
View file @
c06b0e7e
...
@@ -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
4 10:10:29
* @LastEditTime: 2020-09-0
7 10:23:56
-->
-->
<
template
>
<
template
>
<div
class=
"common-app-right"
>
<div
class=
"common-app-right"
>
...
@@ -85,7 +85,8 @@ export default {
...
@@ -85,7 +85,8 @@ export default {
shopOrder
:
that
.
customerShowData
.
shopOrder
?
1
:
'0'
,
shopOrder
:
that
.
customerShowData
.
shopOrder
?
1
:
'0'
,
allowGuideMobile
:
that
.
customerShowData
.
allowGuideMobile
?
1
:
'0'
,
allowGuideMobile
:
that
.
customerShowData
.
allowGuideMobile
?
1
:
'0'
,
allowGuideMessage
:
that
.
customerShowData
.
allowGuideMessage
?
1
:
'0'
,
allowGuideMessage
:
that
.
customerShowData
.
allowGuideMessage
?
1
:
'0'
,
allowGuideOnlineChat
:
that
.
customerShowData
.
allowGuideOnlineChat
?
1
:
'0'
allowGuideOnlineChat
:
that
.
customerShowData
.
allowGuideOnlineChat
?
1
:
'0'
,
switchType
:
1
};
};
saveCustomerSet
(
para
)
saveCustomerSet
(
para
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
...
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