Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 6a9a918c
authored
Jun 08, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客群创建时间调整
1 parent
5f081daa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
linkwe-pc/src/views/customerManage/group.vue
linkwe-pc/src/views/customerManage/group.vue
View file @
6a9a918
<
script
>
<
script
>
import
*
as
api
from
'@/api/customer/group'
import
*
as
api
from
'@/api/customer/group'
// import * as api from '@/api/customer/tag'
// import * as api from '@/api/customer/tag'
import
SelectTag
from
'@/components/SelectTag'
import
SelectTag
from
'@/components/SelectTag'
export
default
{
export
default
{
name
:
'Group'
,
name
:
'Group'
,
components
:
{
SelectTag
},
components
:
{
SelectTag
},
data
()
{
data
()
{
...
@@ -16,7 +16,7 @@ export default {
...
@@ -16,7 +16,7 @@ export default {
groupLeaderName
:
undefined
,
groupLeaderName
:
undefined
,
tagIds
:
undefined
,
tagIds
:
undefined
,
beginTime
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
},
// 日期范围
// 日期范围
dateRange
:
[],
dateRange
:
[],
...
@@ -36,9 +36,9 @@ export default {
...
@@ -36,9 +36,9 @@ export default {
selectedTag
:
[],
// 选择的标签
selectedTag
:
[],
// 选择的标签
tagDialogType
:
{
tagDialogType
:
{
title
:
'选择标签'
,
// 选择标签弹窗标题
title
:
'选择标签'
,
// 选择标签弹窗标题
type
:
''
,
// 弹窗类型
type
:
''
// 弹窗类型
},
},
makeLabelCustomerList
:
[],
makeLabelCustomerList
:
[]
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -83,7 +83,7 @@ export default {
...
@@ -83,7 +83,7 @@ export default {
this
.
selectedTag
=
this
.
queryTag
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
this
.
tagDialogType
=
{
title
:
'选择标签'
,
title
:
'选择标签'
,
type
:
'query'
,
type
:
'query'
}
}
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
// this.$refs.selectTag.$forceUpdate()
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
curTags
=
data
.
tags
.
map
((
i
,
idx
)
=>
({
curTags
=
data
.
tags
.
map
((
i
,
idx
)
=>
({
name
:
i
,
name
:
i
,
tagName
:
i
,
tagName
:
i
,
tagId
:
data
.
tagIds
[
idx
],
tagId
:
data
.
tagIds
[
idx
]
}))
}))
}
}
this
.
selectedTag
=
curTags
this
.
selectedTag
=
curTags
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
chatId
:
this
.
makeLabelCustomerList
.
chatId
,
chatId
:
this
.
makeLabelCustomerList
.
chatId
,
tagIds
:
selected
.
map
((
row
)
=>
{
tagIds
:
selected
.
map
((
row
)
=>
{
return
row
.
tagId
return
row
.
tagId
}),
})
}
}
api
api
.
makeGroupTag
(
data
)
.
makeGroupTag
(
data
)
...
@@ -154,7 +154,7 @@ export default {
...
@@ -154,7 +154,7 @@ export default {
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
multiple
=
!
selection
.
length
this
.
multiple
=
!
selection
.
length
},
}
// /** 导出按钮操作 */
// /** 导出按钮操作 */
// handleExport() {
// handleExport() {
// const query = this.query;
// const query = this.query;
...
@@ -171,8 +171,8 @@ export default {
...
@@ -171,8 +171,8 @@ export default {
// })
// })
// .catch(function () {});
// .catch(function () {});
// }
// }
},
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -201,7 +201,8 @@ export default {
...
@@ -201,7 +201,8 @@ export default {
:picker-options=
"pickerOptions"
:picker-options=
"pickerOptions"
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<!-- v-hasPermi="['customerManage:group:query']" -->
<!-- v-hasPermi="['customerManage:group:query']" -->
...
@@ -218,7 +219,7 @@ export default {
...
@@ -218,7 +219,7 @@ export default {
<div
class=
"g-card-title mid-action"
>
<div
class=
"g-card-title mid-action"
>
<div
class=
""
>
<div
class=
""
>
共
共
<span
class=
"g-color"
style=
"color: var(--color)"
>
{{ total }}
</span>
<span
class=
"g-color"
style=
"color: var(--color)
;
"
>
{{ total }}
</span>
个客户群
个客户群
</div>
</div>
<div>
<div>
...
@@ -253,7 +254,7 @@ export default {
...
@@ -253,7 +254,7 @@ export default {
</div>
</div>
<span
v-else
>
无标签
</span>
<span
v-else
>
无标签
</span>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"
create
Time"
width=
"180"
></el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"
add
Time"
width=
"180"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -261,9 +262,10 @@ export default {
...
@@ -261,9 +262,10 @@ export default {
@
click=
"
@
click=
"
$router.push(
{
$router.push(
{
path: './groupDetail',
path: './groupDetail',
query: { chatId: scope.row.chatId }
,
query: { chatId: scope.row.chatId }
})
})
">
"
>
查看详情
查看详情
</el-button>
</el-button>
<!-- v-hasPermi="['customerManage:group:view']" -->
<!-- v-hasPermi="['customerManage:group:view']" -->
...
@@ -278,7 +280,8 @@ export default {
...
@@ -278,7 +280,8 @@ export default {
:total=
"total"
:total=
"total"
:page
.
sync=
"query.pageNum"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
@
pagination=
"getList()"
/>
</div>
</div>
<!-- 选择标签弹窗 -->
<!-- 选择标签弹窗 -->
...
@@ -288,7 +291,8 @@ export default {
...
@@ -288,7 +291,8 @@ export default {
type=
"2"
type=
"2"
:title=
"tagDialogType.title"
:title=
"tagDialogType.title"
:defaultValues=
"selectedTag"
:defaultValues=
"selectedTag"
@
success=
"submitSelectTag"
></SelectTag>
@
success=
"submitSelectTag"
></SelectTag>
</div>
</div>
</template>
</template>
...
...
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