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 36d923e2
authored
Jul 10, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改菜单结构,修改路由跳转为相对路径,便于后期路由扩展与变动,解决404问题,删除部分废弃文件等
1 parent
2340f0c8
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
285 additions
and
844 deletions
linkwe-mobile/vue.config.js
linkwe-ui/src/views/appTool/chatToolbar/list.vue
linkwe-ui/src/views/appTool/groupFission/aev.vue
linkwe-ui/src/views/appTool/groupFission/list.vue
linkwe-ui/src/views/appTool/selfApp/list.vue
linkwe-ui/src/views/appTool/task/aev.vue
linkwe-ui/src/views/appTool/task/list.vue
linkwe-ui/src/views/application/groupFission.vue
linkwe-ui/src/views/application/taskDetail/addTask.vue
linkwe-ui/src/views/application/taskGroup.vue
linkwe-ui/src/views/communityOperating/groupSOP/list.vue
linkwe-ui/src/views/communityOperating/keywords/list.vue
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
linkwe-ui/src/views/customerManage/customer.vue
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
linkwe-ui/src/views/customerManage/dimission/allocatedStaffList.vue
linkwe-ui/src/views/customerManage/dimission/index.vue
linkwe-ui/src/views/customerManage/group.vue
linkwe-ui/src/views/customerManage/lossRemind.vue
linkwe-ui/src/views/drainageCode/group/list.vue
linkwe-ui/src/views/drainageCode/staff/list.vue
linkwe-ui/src/views/groupMessage/record.vue
linkwe-ui/src/views/material/audio.vue
linkwe-ui/src/views/material/components/MaPage.vue
linkwe-ui/src/views/material/file.vue
linkwe-ui/src/views/material/image.vue
linkwe-ui/src/views/material/text.vue
linkwe-ui/src/views/material/video.vue
linkwe-mobile/vue.config.js
View file @
36d923e
...
...
@@ -13,7 +13,7 @@ process.env.VUE_APP_TITLE = require('./package.json').description
// 如果您的应用程序部署在子路径中,则需要在这指定子路径
// 例如:https://www.my-app.com/my-app/
// 需要将它改为'/my-app/'
const
BASE_URL
=
process
.
env
.
NODE_ENV
===
'development'
?
'/'
:
'/mobile'
const
BASE_URL
=
process
.
env
.
NODE_ENV
===
'development'
?
'/'
:
'/mobile
/
'
module
.
exports
=
{
publicPath
:
BASE_URL
,
...
...
linkwe-ui/src/views/appTool/chatToolbar/list.vue
View file @
36d923e
...
...
@@ -16,16 +16,16 @@ export default {
2
:
'视频'
,
3
:
'普通文件'
,
4
:
'文本'
,
5
:
'海报'
,
5
:
'海报'
}),
metarialParams
:
{
sideId
:
''
,
materialIds
:
[],
// '素材id列表',
mediaType
:
''
,
// '素材类型 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file) 4 文本 5 海报',
checkAll
:
'1'
,
// '是否全选 0 全选 1 非全选',
checkAll
:
'1'
// '是否全选 0 全选 1 非全选',
},
selectedMaterial
:
[]
,
selectedMaterial
:
[]
}
},
watch
:
{},
...
...
@@ -63,7 +63,7 @@ export default {
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
,
background
:
'rgba(0, 0, 0, 0.7)'
})
this
.
metarialParams
.
materialIds
=
this
.
selectedMaterial
.
map
((
d
)
=>
d
.
id
)
if
(
this
.
metarialParams
.
checkAll
==
0
)
{
...
...
@@ -92,8 +92,8 @@ export default {
.
catch
(()
=>
{
this
.
loading
=
false
})
}
,
}
,
}
}
}
</
script
>
<
template
>
...
...
@@ -103,9 +103,9 @@ export default {
<el-button
type=
"text"
@
click=
"$router.push('explain')"
>
图文详解
</el-button
>
<el-button
type=
"text"
@
click=
"$router.push(
{ path: 'config' })"
<
!--
<
el-button
type=
"text"
@
click=
"$router.push(
{ path: 'config' })"
>查看已配置信息
</el-button
>
>
-->
</div>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"素材类型"
align=
"center"
prop=
"mediaType"
>
...
...
linkwe-ui/src/views/appTool/groupFission/aev.vue
deleted
100644 → 0
View file @
2340f0c
<
script
>
export
default
{
components
:
{},
props
:
{},
data
()
{
return
{};
},
watch
:
{},
computed
:
{},
created
()
{},
mounted
()
{},
methods
:
{}
};
</
script
>
<
template
>
<div>
<img
src=
"@/assets/example/groupFission.jpg"
alt=
""
/>
</div>
</
template
>
<
style
lang=
"less"
scoped
></
style
>
linkwe-ui/src/views/appTool/groupFission/list.vue
deleted
100644 → 0
View file @
2340f0c
<
script
>
import
*
as
api
from
'@/api/customer'
// import clipboard from "clipboard";
export
default
{
components
:
{},
props
:
{},
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
},
dateRange
:
[],
// 添加日期
total
:
0
,
form
:
{},
list
:
[],
dialogVisible
:
false
,
disabled
:
false
,
loading
:
false
,
rules
:
Object
.
freeze
({
name
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpId
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
contactSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
}),
status
:
[
'正常'
,
'停用'
],
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
()
},
mounted
()
{
// new clipboard(".copy-btn");
},
methods
:
{
getList
(
page
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
api
.
getList
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
edit
(
data
,
type
)
{
this
.
form
=
Object
.
assign
({},
data
||
{})
this
.
dialogVisible
=
true
type
||
!
data
?
(
this
.
disabled
=
false
)
:
(
this
.
disabled
=
true
)
},
submit
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
api
[
this
.
form
.
id
?
'update'
:
'add'
](
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisible
=
false
this
.
getList
(
!
this
.
form
.
id
&&
1
)
})
.
catch
(()
=>
{
this
.
dialogVisible
=
false
})
}
})
},
goRoute
(
id
,
path
)
{
this
.
$router
.
push
({
path
:
'/appTool/groupFissionAev'
,
query
:
{
id
},
})
},
},
}
</
script
>
<
template
>
<div>
<div
class=
"top-search"
>
<el-form
inline
label-position=
"right"
:model=
"form"
label-width=
"80px"
>
<el-form-item
label=
"裂变名"
>
<el-input
v-model=
"query.name"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"活动日期"
>
<el-date-picker
v-model=
"dateRange"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
label
>
<el-button
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
<div
class=
"ar mb10"
>
<el-button
v-hasPermi=
"['enterpriseWechat:add']"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"goRoute()"
>
新建群裂变任务
</el-button
>
</div>
<!--
<el-card
shadow=
"never"
:body-style=
"
{padding: '20px 0 0'}">
</el-card>
-->
<el-table
v-loading=
"loading"
:data=
"list"
>
<!--
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
-->
<el-table-column
label=
"群裂变名称"
align=
"center"
prop=
"name"
:show-overflow-tooltip=
"true"
/>
<el-table-column
prop=
"createTime"
label=
"裂变客户数量"
align=
"center"
>
<template
slot-scope=
"scope"
>
{{
Math
.
floor
(
Math
.
random
()
*
10000
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"活动状态"
align=
"center"
>
已结束
</el-table-column>
<el-table-column
label=
"活动时间"
align=
"center"
prop=
"createTime"
width=
"160"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-hasPermi=
"['enterpriseWechat:view']"
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"edit(scope.row, 0)"
>
查看
</el-button
>
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"edit(scope.row, 1)"
>
编辑
</el-button
>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
<el-dialog
title=
"查看企业微信号"
:visible
.
sync=
"dialogVisible"
>
<el-form
ref=
"form"
label-position=
"right"
:model=
"form"
:rules=
"rules"
label-width=
"160px"
:disabled=
"disabled"
>
<el-form-item
label=
"企业名称"
prop=
"name"
>
<el-input
v-model=
"form.name"
:disabled=
"form.id"
></el-input>
</el-form-item>
<el-form-item
label=
"企业ID(CorpID)"
prop=
"corpId"
>
<el-input
:disabled=
"form.id"
v-model=
"form.corpId"
style=
"width: 80%"
placeholder=
"可在新闻公告应用的生日祝福等场景使用"
></el-input>
<el-link
class=
"fr"
type=
"primary"
>
如何获取?
</el-link>
</el-form-item>
<!-- <el-form-item label="Token">
<el-input disabled id="copy-input" v-model="form.name" placeholder="成员唯一标识,不支持更改,不支持中文"></el-input>
<el-button type="primary" class="copy-btn" data-clipboard-target="#copy-input">复制</el-button>
</el-form-item>
<el-form-item label="EncodingAESKey">
<el-input disabled id="copy-input1" v-model="form.name"></el-input>
<el-button type="primary" class="copy-btn" data-clipboard-target="#copy-input1">复制</el-button>
</el-form-item>-->
<el-form-item
label=
"服务商secret"
prop=
"providerSecret"
>
<el-input
v-model=
"form.providerSecret"
style=
"width: 80%"
></el-input>
<el-link
class=
"fr"
type=
"primary"
>
如何获取?
</el-link>
</el-form-item>
<el-form-item
label=
"通讯录管理secret"
prop=
"corpSecret"
>
<el-input
v-model=
"form.corpSecret"
style=
"width: 80%"
></el-input>
<el-link
class=
"fr"
type=
"primary"
>
如何获取?
</el-link>
</el-form-item>
<!-- <el-form-item label="通讯录事件服务">
<el-radio-group v-model="form.contactSecret">
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label=
"外部联系人管理secret"
prop=
"contactSecret"
>
<el-input
v-model=
"form.contactSecret"
></el-input>
</el-form-item>
<!-- <el-form-item label="通讯录事件服务">
<el-radio-group v-model="form.model">
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label=
"企业微信扫码登陆回调地址"
prop=
"wxQrLoginRedirectUri"
>
<el-input
v-model=
"form.wxQrLoginRedirectUri"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
v-show=
"!disabled"
>
确 定
</el-button
>
</div>
</el-dialog>
</div>
</template>
linkwe-ui/src/views/appTool/selfApp/list.vue
View file @
36d923e
...
...
@@ -10,7 +10,7 @@ export default {
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
name
:
''
},
dateRange
:
[],
// 添加日期
total
:
0
,
...
...
@@ -23,10 +23,10 @@ export default {
name
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpId
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
contactSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}]
,
contactSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}]
}),
status
:
[
'正常'
,
'停用'
],
dialogVisibleSelectMaterial
:
false
,
dialogVisibleSelectMaterial
:
false
}
},
watch
:
{},
...
...
@@ -87,8 +87,8 @@ export default {
},
goRoute
(
id
,
path
)
{
this
.
$router
.
push
({
path
:
'
/appTool/
taskAev'
,
query
:
{
id
}
,
path
:
'taskAev'
,
query
:
{
id
}
})
},
...
...
@@ -97,8 +97,8 @@ export default {
this
.
form
.
logoMediaid
=
image
.
id
this
.
form
.
squareLogoUrl
=
image
.
materialUrl
this
.
dialogVisibleSelectMaterial
=
false
}
,
}
,
}
}
}
</
script
>
...
...
@@ -237,13 +237,13 @@ export default {
</el-dialog>
<!-- 选择素材弹窗 -->
<SelectMaterial
<
!--
<
SelectMaterial
:visible
.
sync=
"dialogVisibleSelectMaterial"
type=
"1"
:showArr=
"[1]"
@
success=
"submitSelectMaterial"
>
</SelectMaterial>
</SelectMaterial>
-->
</div>
</
template
>
...
...
linkwe-ui/src/views/appTool/task/aev.vue
deleted
100644 → 0
View file @
2340f0c
<
script
>
export
default
{
components
:
{},
props
:
{},
data
()
{
return
{};
},
watch
:
{},
computed
:
{},
created
()
{},
mounted
()
{},
methods
:
{}
};
</
script
>
<
template
>
<div>
<img
src=
"@/assets/example/task.jpg"
alt=
""
/>
</div>
</
template
>
<
style
lang=
"less"
scoped
></
style
>
linkwe-ui/src/views/appTool/task/list.vue
deleted
100644 → 0
View file @
2340f0c
<
script
>
import
*
as
api
from
'@/api/customer'
// import clipboard from "clipboard";
export
default
{
components
:
{},
props
:
{},
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
},
dateRange
:
[],
// 添加日期
total
:
0
,
form
:
{},
list
:
[],
dialogVisible
:
false
,
disabled
:
false
,
loading
:
false
,
rules
:
Object
.
freeze
({
name
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpId
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
contactSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
}),
status
:
[
'正常'
,
'停用'
],
}
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
()
},
mounted
()
{
// new clipboard(".copy-btn");
},
methods
:
{
getList
(
page
)
{
if
(
this
.
dateRange
)
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
endTime
=
''
}
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
api
.
getList
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
edit
(
data
,
type
)
{
this
.
form
=
Object
.
assign
({},
data
||
{})
this
.
dialogVisible
=
true
type
||
!
data
?
(
this
.
disabled
=
false
)
:
(
this
.
disabled
=
true
)
},
submit
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
api
[
this
.
form
.
id
?
'update'
:
'add'
](
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
dialogVisible
=
false
this
.
getList
(
!
this
.
form
.
id
&&
1
)
})
.
catch
(()
=>
{
this
.
dialogVisible
=
false
})
}
})
},
goRoute
(
id
,
path
)
{
this
.
$router
.
push
({
path
:
'/appTool/taskAev'
,
query
:
{
id
},
})
},
},
}
</
script
>
<
template
>
<div>
<div
class=
"top-search"
>
<el-form
inline
label-position=
"right"
:model=
"form"
label-width=
"80px"
>
<el-form-item
label=
"任务名"
>
<el-input
v-model=
"query.name"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"活动日期"
>
<el-date-picker
v-model=
"dateRange"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"-"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
label
>
<el-button
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
<div
class=
"ar mb10"
>
<el-button
v-hasPermi=
"['enterpriseWechat:add']"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"goRoute()"
>
新建任务
</el-button
>
</div>
<!--
<el-card
shadow=
"never"
:body-style=
"
{padding: '20px 0 0'}">
</el-card>
-->
<el-table
v-loading=
"loading"
:data=
"list"
>
<!--
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
-->
<el-table-column
label=
"任务活动名称"
align=
"center"
prop=
"name"
:show-overflow-tooltip=
"true"
/>
<el-table-column
prop=
"createTime"
label=
"裂变客户数量"
align=
"center"
>
<template
slot-scope=
"scope"
>
{{
Math
.
floor
(
Math
.
random
()
*
10000
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"活动状态"
align=
"center"
>
已结束
</el-table-column>
<el-table-column
label=
"活动时间"
align=
"center"
prop=
"createTime"
width=
"160"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-hasPermi=
"['enterpriseWechat:view']"
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"edit(scope.row, 0)"
>
查看
</el-button
>
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"edit(scope.row, 1)"
>
编辑
</el-button
>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
<el-dialog
title=
"查看企业微信号"
:visible
.
sync=
"dialogVisible"
>
<el-form
ref=
"form"
label-position=
"right"
:model=
"form"
:rules=
"rules"
label-width=
"160px"
:disabled=
"disabled"
>
<el-form-item
label=
"企业名称"
prop=
"name"
>
<el-input
v-model=
"form.name"
:disabled=
"form.id"
></el-input>
</el-form-item>
<el-form-item
label=
"企业ID(CorpID)"
prop=
"corpId"
>
<el-input
:disabled=
"form.id"
v-model=
"form.corpId"
style=
"width: 80%"
placeholder=
"可在新闻公告应用的生日祝福等场景使用"
></el-input>
<el-link
class=
"fr"
type=
"primary"
>
如何获取?
</el-link>
</el-form-item>
<!-- <el-form-item label="Token">
<el-input disabled id="copy-input" v-model="form.name" placeholder="成员唯一标识,不支持更改,不支持中文"></el-input>
<el-button type="primary" class="copy-btn" data-clipboard-target="#copy-input">复制</el-button>
</el-form-item>
<el-form-item label="EncodingAESKey">
<el-input disabled id="copy-input1" v-model="form.name"></el-input>
<el-button type="primary" class="copy-btn" data-clipboard-target="#copy-input1">复制</el-button>
</el-form-item>-->
<el-form-item
label=
"服务商secret"
prop=
"providerSecret"
>
<el-input
v-model=
"form.providerSecret"
style=
"width: 80%"
></el-input>
<el-link
class=
"fr"
type=
"primary"
>
如何获取?
</el-link>
</el-form-item>
<el-form-item
label=
"通讯录管理secret"
prop=
"corpSecret"
>
<el-input
v-model=
"form.corpSecret"
style=
"width: 80%"
></el-input>
<el-link
class=
"fr"
type=
"primary"
>
如何获取?
</el-link>
</el-form-item>
<!-- <el-form-item label="通讯录事件服务">
<el-radio-group v-model="form.contactSecret">
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将成员、部门的增删改以及成员的标签变更实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label=
"外部联系人管理secret"
prop=
"contactSecret"
>
<el-input
v-model=
"form.contactSecret"
></el-input>
</el-form-item>
<!-- <el-form-item label="通讯录事件服务">
<el-radio-group v-model="form.model">
<el-radio label="label">开启</el-radio>
<el-radio label="label">不开启</el-radio>
</el-radio-group>
<div>开启后,可以将企业客户的添加、编辑以及主动删除客户和被动被客户删除实时的同步到仟微SCRM,无需手动更新同步。</div>
</el-form-item>-->
<el-form-item
label=
"企业微信扫码登陆回调地址"
prop=
"wxQrLoginRedirectUri"
>
<el-input
v-model=
"form.wxQrLoginRedirectUri"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
v-show=
"!disabled"
>
确 定
</el-button
>
</div>
</el-dialog>
</div>
</template>
linkwe-ui/src/views/application/groupFission.vue
View file @
36d923e
...
...
@@ -11,12 +11,12 @@ export default {
taskName
:
''
,
startTime
:
''
,
overTime
:
''
,
fissionType
:
2
,
fissionType
:
2
},
dateRange
:
[],
tableData
:
[],
total
:
0
,
loading
:
false
loading
:
false
}
},
created
()
{
...
...
@@ -42,20 +42,20 @@ export default {
resetForm
()
{},
toDetail
(
row
)
{
this
.
$router
.
push
({
path
:
`
/application/fissionDetail?id=
${
row
.
id
}
`
,
path
:
`
fissionDetail?id=
${
row
.
id
}
`
})
},
newAdd
()
{
this
.
$router
.
push
({
path
:
'
/application/addFission'
,
path
:
'
addFission'
})
},
toEdit
(
row
)
{
this
.
$router
.
push
({
path
:
`
/application/addFission?id=
${
row
.
id
}
`
,
path
:
`
addFission?id=
${
row
.
id
}
`
})
}
,
}
,
}
}
}
</
script
>
...
...
@@ -119,8 +119,7 @@ export default {
size=
"medium"
type=
"text"
icon=
"el-icon-view"
></el-button
>
></el-button>
<el-button
v-if=
"scope.row.fissStatus != 2"
@
click=
"toEdit(scope.row)"
...
...
@@ -129,8 +128,7 @@ export default {
type=
"text"
icon=
"el-icon-edit-outline"
style=
"color:#E74E59"
></el-button
>
></el-button>
</
template
>
</el-table-column>
</el-table>
...
...
linkwe-ui/src/views/application/taskDetail/addTask.vue
View file @
36d923e
...
...
@@ -10,7 +10,7 @@ export default {
SelectUser
,
SelectTag
,
SelectPoster
,
TargetSelectUser
:
SelectUser
,
TargetSelectUser
:
SelectUser
},
data
()
{
return
{
...
...
@@ -18,7 +18,7 @@ export default {
taskName
:
''
,
fissInfo
:
''
,
fissNum
:
''
,
dateRange
:
''
,
dateRange
:
''
},
groupForm
:
{
taskFissionStaffs
:
[],
...
...
@@ -33,7 +33,7 @@ export default {
welcomeMsg
:
''
,
rewardUrl
:
''
,
rewardImageUrl
:
''
,
rewardRule
:
''
,
rewardRule
:
''
},
rewardImageUrlTemp
:
''
,
action
:
...
...
@@ -43,17 +43,19 @@ export default {
headers
:
window
.
CONFIG
.
headers
,
ruleForm
:
{
taskName
:
[
{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'blur'
}
,
{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'blur'
}
],
postersId
:
[{
required
:
true
,
message
:
'请输入海报'
,
trigger
:
'blur'
}],
fissionTargetId
:
[{
required
:
true
,
message
:
'请选择员工'
,
trigger
:
'blur'
}],
fissionTargetId
:
[
{
required
:
true
,
message
:
'请选择员工'
,
trigger
:
'blur'
}
],
fissNum
:
[
{
required
:
true
,
message
:
'请输入数量'
,
trigger
:
'blur'
},
{
pattern
:
/^
[
1-9
]
+$/
,
message
:
'请输入数字'
,
trigger
:
'blur'
}
,
{
pattern
:
/^
[
1-9
]
+$/
,
message
:
'请输入数字'
,
trigger
:
'blur'
}
],
dateRange
:
[
{
required
:
true
,
message
:
'时间不可为空'
,
trigger
:
'blur'
}
,
]
,
{
required
:
true
,
message
:
'时间不可为空'
,
trigger
:
'blur'
}
]
},
dialogVisibleSelectUser
:
false
,
dialogVisibleSelectTag
:
false
,
...
...
@@ -61,7 +63,7 @@ export default {
dialogVisibleTargetStff
:
false
,
selectTagType
:
''
,
pageType
:
'add'
,
taskDetail
:
{}
,
taskDetail
:
{}
}
},
created
()
{
...
...
@@ -88,7 +90,7 @@ export default {
console
.
log
(
'验证通过,提交表单'
)
let
params
=
{
...
this
.
query
,
...
this
.
groupForm
,
...
this
.
groupForm
}
params
.
startTime
=
params
.
dateRange
[
0
]
params
.
overTime
=
params
.
dateRange
[
1
]
...
...
@@ -99,8 +101,8 @@ export default {
{
staffId
:
''
,
staffName
:
''
,
staffType
:
3
,
}
,
staffType
:
3
}
]
}
delete
params
.
sendType
...
...
@@ -129,11 +131,11 @@ export default {
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
'新增成功'
,
type
:
'success'
,
type
:
'success'
})
taskApi
.
sendFission
(
JSON
.
parse
(
res
.
msg
).
id
)
this
.
$router
.
push
({
path
:
'
/application/taskGroup'
,
path
:
'
taskGroup'
})
}
//
...
...
@@ -144,10 +146,10 @@ export default {
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
'修改成功'
,
type
:
'success'
,
type
:
'success'
})
this
.
$router
.
push
({
path
:
'
/application/taskGroup'
,
path
:
'
taskGroup'
})
// taskApi.sendFission(JSON.parse(res.msg).id)
}
...
...
@@ -168,8 +170,8 @@ export default {
fissNum
:
res
.
data
.
fissNum
,
dateRange
:
[
res
.
data
.
startTime
+
' 00:00:00'
,
res
.
data
.
overTime
+
' 00:00:00'
,
]
,
res
.
data
.
overTime
+
' 00:00:00'
]
}
this
.
query
=
query
this
.
groupForm
=
{
...
...
@@ -195,7 +197,7 @@ export default {
welcomeMsg
:
res
.
data
.
welcomeMsg
,
rewardUrl
:
res
.
data
.
rewardUrl
,
rewardImageUrl
:
res
.
data
.
rewardImageUrl
,
rewardRule
:
res
.
data
.
rewardRule
,
rewardRule
:
res
.
data
.
rewardRule
}
})
},
...
...
@@ -207,13 +209,13 @@ export default {
selectParam
=
{
staffId
:
item
.
userId
,
staffName
:
item
.
name
,
staffType
:
2
,
staffType
:
2
}
}
else
{
selectParam
=
{
staffId
:
item
.
id
,
staffName
:
item
.
name
,
staffType
:
1
,
staffType
:
1
}
}
return
selectParam
...
...
@@ -255,8 +257,8 @@ export default {
}
return
isJPG
||
isPNG
}
,
}
,
}
}
}
</
script
>
...
...
linkwe-ui/src/views/application/taskGroup.vue
View file @
36d923e
...
...
@@ -11,12 +11,12 @@ export default {
taskName
:
''
,
startTime
:
''
,
overTime
:
''
,
fissionType
:
1
,
fissionType
:
1
},
dateRange
:
[],
tableData
:
[],
total
:
0
,
loading
:
false
loading
:
false
}
},
created
()
{
...
...
@@ -42,20 +42,20 @@ export default {
resetForm
()
{},
toDetail
(
row
)
{
this
.
$router
.
push
({
path
:
`
/application/taskDetail?id=
${
row
.
id
}
`
,
path
:
`
taskDetail?id=
${
row
.
id
}
`
})
},
newAdd
()
{
this
.
$router
.
push
({
path
:
'
/application/addTask'
,
path
:
'
addTask'
})
},
toEdit
(
row
)
{
this
.
$router
.
push
({
path
:
`
/application/addTask?id=
${
row
.
id
}
`
,
path
:
`
addTask?id=
${
row
.
id
}
`
})
}
,
}
,
}
}
}
</
script
>
...
...
@@ -119,8 +119,7 @@ export default {
size=
"medium"
type=
"text"
icon=
"el-icon-view"
></el-button
>
></el-button>
<el-button
v-if=
"scope.row.fissStatus != 2"
@
click=
"toEdit(scope.row)"
...
...
@@ -129,8 +128,7 @@ export default {
type=
"text"
icon=
"el-icon-edit-outline"
style=
"color:#E74E59"
></el-button
>
></el-button>
</
template
>
</el-table-column>
</el-table>
...
...
linkwe-ui/src/views/communityOperating/groupSOP/list.vue
View file @
36d923e
...
...
@@ -10,13 +10,13 @@ export default {
ruleName
:
''
,
// 规则名称
createBy
:
''
,
// 创建人
beginTime
:
''
,
// 创建开始时间
endTime
:
''
,
// 创建结束时间
endTime
:
''
// 创建结束时间
},
dateRange
:
[],
// 添加日期
total
:
0
,
// 群SOP数据总量
list
:
[],
// 群SOP数据
multiSelect
:
[],
// 多选数据
loading
:
false
,
loading
:
false
}
},
watch
:
{
...
...
@@ -28,7 +28,7 @@ export default {
}
else
{
;[
this
.
query
.
beginTime
,
this
.
query
.
endTime
]
=
dateRange
}
}
,
}
},
created
()
{
this
.
getList
()
...
...
@@ -59,8 +59,8 @@ export default {
// 新增/编辑群SOP
goRoute
(
id
)
{
this
.
$router
.
push
({
path
:
'
/communityOperating/
groupSOPAev'
,
query
:
{
id
:
id
}
,
path
:
'groupSOPAev'
,
query
:
{
id
:
id
}
})
},
// 重置查询参数
...
...
@@ -77,7 +77,7 @@ export default {
this
.
$confirm
(
'确认删除当前数据?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
const
ids
=
this
.
multiSelect
.
map
((
r
)
=>
r
.
ruleId
)
...
...
@@ -96,7 +96,7 @@ export default {
this
.
$confirm
(
'确认删除当前数据?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
remove
(
id
+
''
).
then
((
res
)
=>
{
...
...
@@ -117,8 +117,8 @@ export default {
const
groups
=
row
.
groupList
.
map
((
g
)
=>
g
.
groupName
)
return
groups
.
join
(
' '
)
}
,
}
,
}
}
}
</
script
>
...
...
linkwe-ui/src/views/communityOperating/keywords/list.vue
View file @
36d923e
...
...
@@ -16,7 +16,7 @@ export default {
createBy
:
''
,
// 创建人
keyword
:
''
,
// 关键词
beginTime
:
''
,
// 创建开始时间
endTime
:
''
,
// 创建结束时间
endTime
:
''
// 创建结束时间
},
queryCreateByName
:
''
,
dateRange
:
[],
// 添加日期
...
...
@@ -27,7 +27,7 @@ export default {
dialogHowToConfig
:
false
,
disabled
:
false
,
loading
:
false
,
clipboard
:
null
,
clipboard
:
null
}
},
watch
:
{
...
...
@@ -39,7 +39,7 @@ export default {
}
else
{
;[
this
.
query
.
beginTime
,
this
.
query
.
endTime
]
=
dateRange
}
}
,
}
},
created
()
{
this
.
getList
(
1
)
...
...
@@ -57,7 +57,7 @@ export default {
this
.
$notify
({
title
:
'成功'
,
message
:
'链接已复制到剪切板,可粘贴。'
,
type
:
'success'
,
type
:
'success'
})
})
...
...
@@ -87,8 +87,8 @@ export default {
// 新增/编辑关键词拉群
goRoute
(
id
)
{
this
.
$router
.
push
({
path
:
'
/communityOperating/
keywordsAev'
,
query
:
{
id
:
id
}
,
path
:
'keywordsAev'
,
query
:
{
id
:
id
}
})
},
// 重置查询参数
...
...
@@ -105,7 +105,7 @@ export default {
this
.
$confirm
(
'确认删除当前数据?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
const
ids
=
this
.
multiSelect
.
map
((
t
)
=>
t
.
taskId
)
...
...
@@ -124,7 +124,7 @@ export default {
this
.
$confirm
(
'确认删除当前数据?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
remove
(
id
+
''
).
then
((
res
)
=>
{
...
...
@@ -153,8 +153,8 @@ export default {
// 处理多选
handleSelectionChange
(
val
)
{
this
.
multiSelect
=
val
}
,
}
,
}
}
}
</
script
>
...
...
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
View file @
36d923e
...
...
@@ -3,7 +3,7 @@ import {
getList
,
remove
,
download
,
downloadBatch
,
downloadBatch
}
from
'@/api/communityOperating/newCustomer'
export
default
{
...
...
@@ -14,10 +14,10 @@ export default {
query
:
{
pageNum
:
1
,
pageSize
:
10
,
emplCodeName
:
''
,
// 活码名称
emplCodeName
:
''
,
// 活码名称
createBy
:
''
,
// 创建人
beginTime
:
''
,
// 开始日期
endTime
:
''
,
// 结束日期
endTime
:
''
// 结束日期
},
dateRange
:
[],
// 添加日期
total
:
0
,
// 数据总量
...
...
@@ -29,10 +29,10 @@ export default {
status
:
[
'正常'
,
'停用'
],
pushType
:
{
0
:
'发给客户'
,
1
:
'发给客户群'
,
1
:
'发给客户群'
},
queryUser
:
[],
// 搜索框选择的添加人
ids
:
[]
,
ids
:
[]
}
},
computed
:
{},
...
...
@@ -45,7 +45,7 @@ export default {
}
else
{
;[
this
.
query
.
beginTime
,
this
.
query
.
endTime
]
=
dateRange
}
}
,
}
},
created
()
{
this
.
getList
()
...
...
@@ -78,8 +78,8 @@ export default {
// 新建/编辑新客数据
goRoute
(
id
)
{
this
.
$router
.
push
({
path
:
'
/communityOperating/
newCustomerAev'
,
query
:
{
id
}
,
path
:
'newCustomerAev'
,
query
:
{
id
}
})
},
// 多选框选中数据
...
...
@@ -92,7 +92,7 @@ export default {
this
.
$confirm
(
'是否确认删除?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(
function
()
{
return
remove
(
ids
)
...
...
@@ -106,25 +106,24 @@ export default {
// 下载
download
(
data
)
{
let
name
=
data
.
codeName
+
'.png'
download
(
data
.
id
)
.
then
((
res
)
=>
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
const
link
=
document
.
createElement
(
'a'
)
// 创建a标签
link
.
href
=
url
link
.
download
=
name
// 重命名文件
link
.
click
()
URL
.
revokeObjectURL
(
url
)
// 释放内存
}
})
download
(
data
.
id
).
then
((
res
)
=>
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
const
link
=
document
.
createElement
(
'a'
)
// 创建a标签
link
.
href
=
url
link
.
download
=
name
// 重命名文件
link
.
click
()
URL
.
revokeObjectURL
(
url
)
// 释放内存
}
})
},
// 批量下载
downloadBatch
()
{
this
.
$confirm
(
'是否确认下载所有活码图片吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
return
downloadBatch
(
this
.
ids
+
''
)
...
...
@@ -151,7 +150,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
getList
(
1
)
})
}
,
}
}
}
</
script
>
...
...
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
View file @
36d923e
...
...
@@ -14,7 +14,7 @@ export default {
sendType
:
''
,
// 发送方式
createBy
:
''
,
// 创建人
beginTime
:
''
,
// 创建开始时间
endTime
:
''
,
// 创建结束时间
endTime
:
''
// 创建结束时间
},
total
:
0
,
// 老客标签建群总数据量
loading
:
false
,
// 主页table加载状态
...
...
@@ -22,7 +22,7 @@ export default {
// 可用的发送方式数据
sendTypeOptions
:
[
{
label
:
'企业群发'
,
value
:
0
},
{
label
:
'个人群发'
,
value
:
1
}
,
{
label
:
'个人群发'
,
value
:
1
}
],
dateRange
:
[],
// 创建日期[开始时间, 结束时间]
multiSelect
:
[],
// 多选数据
...
...
@@ -33,7 +33,7 @@ export default {
pageSize
:
10
,
customerName
:
''
,
// 客户名称
isInGroup
:
''
,
// 是否在群
isSent
:
''
,
// 是否送达
isSent
:
''
// 是否送达
},
customerTotal
:
0
,
// 客户统计总数据量
customerLoading
:
false
,
// 客户统计table加载状态
...
...
@@ -42,14 +42,14 @@ export default {
// 是否在群选择项
inGroupOptions
:
[
{
label
:
'在群'
,
value
:
1
},
{
label
:
'不在群'
,
value
:
0
}
,
{
label
:
'不在群'
,
value
:
0
}
],
// 是否送达选择项
sendStatusOptions
:
[
{
label
:
'已送达'
,
value
:
1
},
{
label
:
'未送达'
,
value
:
0
}
,
{
label
:
'未送达'
,
value
:
0
}
],
dialogVisible
:
false
,
// 客户统计会话
dialogVisible
:
false
// 客户统计会话
}
},
watch
:
{
...
...
@@ -66,7 +66,7 @@ export default {
if
(
!
val
)
this
.
$refs
[
'customerForm'
].
resetFields
()
this
.
customerList
=
[]
this
.
customerTotal
=
0
}
,
}
},
created
()
{
this
.
getList
(
1
)
...
...
@@ -112,8 +112,8 @@ export default {
// 新增/编辑老客数据
goRoute
(
id
)
{
this
.
$router
.
push
({
path
:
'
/communityOperating/
oldCustomerAev'
,
query
:
{
id
:
id
}
,
path
:
'oldCustomerAev'
,
query
:
{
id
:
id
}
})
},
// 重置查询参数
...
...
@@ -136,7 +136,7 @@ export default {
this
.
$confirm
(
'确认删除当前数据?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
const
ids
=
this
.
multiSelect
.
map
((
t
)
=>
t
.
taskId
)
...
...
@@ -155,7 +155,7 @@ export default {
this
.
$confirm
(
'确认删除当前数据?删除操作无法撤销,请谨慎操作。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
remove
(
id
+
''
).
then
((
res
)
=>
{
...
...
@@ -217,8 +217,8 @@ export default {
// this.getStat(1)
this
.
customerFilter
()
}
,
}
,
}
}
}
</
script
>
...
...
linkwe-ui/src/views/customerManage/customer.vue
View file @
36d923e
...
...
@@ -19,7 +19,7 @@ export default {
userIds
:
''
,
// "添加人id",
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
endTime
:
''
// "结束时间"
},
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
...
...
@@ -30,7 +30,7 @@ export default {
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[]
,
weTags
:
[]
},
list
:
[],
// 客户列表
listOrganization
:
[],
// 组织架构列表
...
...
@@ -43,8 +43,8 @@ export default {
removeTag
:
[],
// 可移除的标签
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
type
:
''
,
// 弹窗类型
}
,
type
:
''
// 弹窗类型
}
}
},
watch
:
{},
...
...
@@ -98,7 +98,7 @@ export default {
this
.
$refs
.
selectTag
.
getList
()
this
.
form
=
{
gourpName
:
''
,
weTags
:
[]
,
weTags
:
[]
}
}
})
...
...
@@ -112,7 +112,7 @@ export default {
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
title
:
'选择标签'
,
type
:
'query'
,
type
:
'query'
}
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
...
...
@@ -169,7 +169,7 @@ export default {
title
:
(
type
===
'add'
?
'增加标签'
:
'移出标签'
)
+
(
repeat
.
length
?
'(重复的标签已去重显示)'
:
''
),
type
:
type
,
type
:
type
}
this
.
dialogVisible
=
true
// this.$refs.selectTag.$forceUpdate()
...
...
@@ -179,7 +179,7 @@ export default {
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
,
background
:
'rgba(0, 0, 0, 0.7)'
})
api
.
sync
()
...
...
@@ -198,7 +198,7 @@ export default {
this
.
$confirm
(
'是否确认导出所有客户数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(
function
()
{
return
api
.
exportCustomer
(
queryParams
)
...
...
@@ -221,11 +221,11 @@ export default {
}
else
{
let
data
=
{
externalUserid
:
this
.
multipleSelection
[
0
].
externalUserid
,
addTag
:
selected
,
addTag
:
selected
}
let
apiType
=
{
add
:
'makeLabel'
,
remove
:
'removeLabel'
,
remove
:
'removeLabel'
}
api
[
apiType
[
this
.
tagDialogType
.
type
]](
data
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
...
...
@@ -251,8 +251,8 @@ export default {
this
.
$refs
.
table
.
clearSelection
()
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
true
)
})
}
,
}
,
}
}
}
</
script
>
...
...
@@ -387,7 +387,7 @@ export default {
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
scope
.
row
.
gender
]
,
{
1
:
'man'
,
2
:
'woman'
}
[
scope
.
row
.
gender
]
]
"
></i>
</template>
...
...
@@ -432,8 +432,8 @@ export default {
v
-
hasPermi
=
"['customerManage:customer:view']"
@
click
=
"
$router
.
push
({
path
:
'
/customerManage/
customerDetail'
,
query
:
{
id
:
scope
.
row
.
externalUserid
}
,
path
:
'customerDetail'
,
query
:
{
id
:
scope
.
row
.
externalUserid
}
}
)
"
type="
text
"
...
...
linkwe-ui/src/views/customerManage/dimission/allocatedStaffDetailList.vue
View file @
36d923e
...
...
@@ -7,8 +7,8 @@ export default {
props
:
{
dateRange
:
{
type
:
Array
,
default
:
()
=>
[]
,
}
,
default
:
()
=>
[]
}
},
data
()
{
return
{
...
...
@@ -18,11 +18,11 @@ export default {
pageSize
:
10
,
handoverUserId
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
loading
:
false
,
total
:
0
,
list
:
[]
,
list
:
[]
}
},
watch
:
{},
...
...
@@ -50,8 +50,8 @@ export default {
.
catch
(()
=>
{
this
.
loading
=
false
})
}
,
}
,
}
}
}
</
script
>
...
...
@@ -81,8 +81,8 @@ export default {
v-hasPermi=
"['customerManage:dimission:edit']"
@
click=
"
$router.push(
{
path: '
/customerManage/
customerDetail',
query: { id: scope.row.id }
,
path: 'customerDetail',
query: { id: scope.row.id }
})
"
type="text"
...
...
linkwe-ui/src/views/customerManage/dimission/allocatedStaffList.vue
View file @
36d923e
...
...
@@ -13,13 +13,13 @@ export default {
pageSize
:
10
,
userName
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
loading
:
false
,
total
:
0
,
list
:
[],
dialogVisibleSelectUser
:
false
,
dateRange
:
[]
,
// 离职日期
dateRange
:
[]
// 离职日期
}
},
watch
:
{},
...
...
@@ -53,8 +53,8 @@ export default {
resetForm
(
formName
)
{
this
.
dateRange
=
[]
this
.
$refs
[
'queryForm'
].
resetFields
()
}
,
}
,
}
}
}
</
script
>
...
...
@@ -131,8 +131,8 @@ export default {
v-hasPermi=
"['customerManage:dimission:edit']"
@
click=
"
$router.push(
{
path: '
/customerManage/
allocatedStaffDetail',
query: { userId: scope.row.userId }
,
path: 'allocatedStaffDetail',
query: { userId: scope.row.userId }
})
"
type="text"
...
...
linkwe-ui/src/views/customerManage/dimission/index.vue
View file @
36d923e
...
...
@@ -14,19 +14,19 @@ export default {
pageSize
:
10
,
userName
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
loading
:
false
,
isMoreFilter
:
false
,
total
:
0
,
form
:
{
user
:
''
,
region
:
''
,
region
:
''
},
list
:
[],
currentRow
:
{},
dialogVisibleSelectUser
:
false
,
dateRange
:
[]
,
// 离职日期
dateRange
:
[]
// 离职日期
}
},
watch
:
{},
...
...
@@ -83,7 +83,7 @@ export default {
api
.
allocate
({
handoverUserid
:
this
.
currentRow
.
userId
,
takeoverUserid
:
userlist
[
0
].
userId
,
takeoverUserid
:
userlist
[
0
].
userId
})
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
...
...
@@ -92,8 +92,8 @@ export default {
// 选中数据
handleCurrentChange
(
val
)
{
this
.
currentRow
=
val
}
,
}
,
}
}
}
</
script
>
...
...
@@ -144,7 +144,7 @@ export default {
<el-button
v-hasPermi=
"['customerManage:dimission:filter']"
type=
"primary"
@
click=
"$router.push(
{ path: '
/customerManage/
allocatedStaffList' })"
@
click=
"$router.push(
{ path: 'allocatedStaffList' })"
>已分配的离职员工
</el-button
>
<el-button
...
...
linkwe-ui/src/views/customerManage/group.vue
View file @
36d923e
...
...
@@ -11,7 +11,7 @@ export default {
pageSize
:
10
,
groupName
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
// 日期范围
dateRange
:
[],
...
...
@@ -24,7 +24,7 @@ export default {
// 总条数
total
:
0
,
// 表格数据
list
:
[]
,
list
:
[]
}
},
created
()
{
...
...
@@ -63,7 +63,7 @@ export default {
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
,
background
:
'rgba(0, 0, 0, 0.7)'
})
api
.
sync
().
then
((
r
)
=>
{
loading
.
close
()
...
...
@@ -90,8 +90,8 @@ export default {
// this.download(response.msg);
// })
// .catch(function () {});
}
,
}
,
}
}
}
</
script
>
...
...
@@ -199,8 +199,8 @@ export default {
icon=
"el-icon-view"
@
click=
"
$router.push(
{
path: '
/customerManage/
groupDetail',
query: scope.row
,
path: 'groupDetail',
query: scope.row
})
"
v-hasPermi="['customerManage:group:view']"
...
...
linkwe-ui/src/views/customerManage/lossRemind.vue
View file @
36d923e
...
...
@@ -3,7 +3,7 @@ import {
getList
,
exportCustomer
,
lossRemind
,
getLossRemindStatus
,
getLossRemindStatus
}
from
'@/api/customer'
import
{
getList
as
getListTag
}
from
'@/api/customer/tag'
import
{
getList
as
getListOrganization
}
from
'@/api/organization'
...
...
@@ -24,7 +24,7 @@ export default {
tagIds
:
''
,
// "标签id,多个标签,id使用逗号隔开",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
status
:
1
,
status
:
1
},
queryTag
:
[],
// 搜索框选择的标签
queryUser
:
[],
// 搜索框选择的添加人
...
...
@@ -35,7 +35,7 @@ export default {
// 添加标签表单
form
:
{
gourpName
:
''
,
weTags
:
[]
,
weTags
:
[]
},
list
:
[],
// 客户列表
listOrganization
:
[],
// 组织架构列表
...
...
@@ -47,9 +47,9 @@ export default {
removeTag
:
[],
// 可移除的标签
tagDialogType
:
{
title
:
''
,
// 选择标签弹窗标题
type
:
''
,
// 弹窗类型
type
:
''
// 弹窗类型
},
isNotice
:
'0'
,
isNotice
:
'0'
}
},
watch
:
{},
...
...
@@ -115,7 +115,7 @@ export default {
this
.
selectedTag
=
this
.
queryTag
this
.
tagDialogType
=
{
title
:
'选择标签'
,
type
:
'query'
,
type
:
'query'
}
this
.
dialogVisible
=
true
},
...
...
@@ -125,7 +125,7 @@ export default {
this
.
$confirm
(
'是否确认导出所有客户数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(
function
()
{
return
exportCustomer
(
queryParams
)
...
...
@@ -162,8 +162,8 @@ export default {
lossRemind
(
val
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
})
}
,
}
,
}
}
}
</
script
>
...
...
@@ -279,7 +279,7 @@ export default {
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
scope
.
row
.
gender
]
,
{
1
:
'man'
,
2
:
'woman'
}
[
scope
.
row
.
gender
]
]
"
></i>
</template>
...
...
@@ -320,8 +320,8 @@ export default {
v
-
hasPermi
=
"['customerManage:customer:view']"
@
click
=
"
$router
.
push
({
path
:
'
/customerManage/
customerDetail'
,
query
:
{
id
:
scope
.
row
.
externalUserid
}
,
path
:
'customerDetail'
,
query
:
{
id
:
scope
.
row
.
externalUserid
}
}
)
"
type="
text
"
...
...
linkwe-ui/src/views/drainageCode/group/list.vue
View file @
36d923e
...
...
@@ -4,7 +4,7 @@ import {
getList
,
remove
,
downloadBatch
,
download
,
download
}
from
'@/api/drainageCode/group'
import
ClipboardJS
from
'clipboard'
...
...
@@ -18,7 +18,7 @@ export default {
activityName
:
''
,
createBy
:
''
,
beginTime
:
''
,
endTime
:
''
,
endTime
:
''
},
loading
:
false
,
searchDate
:
''
,
// 查询日期
...
...
@@ -28,7 +28,7 @@ export default {
realCodeDialog
:
false
,
// 实际群码总数dialog
openGroupCodeId
:
null
,
// 打开实际群码关联的群活码ID
openGroupCodeStatus
:
-
1
,
// 打开实际群码的检索状态
clipboard
:
null
,
// 拷贝对象
clipboard
:
null
// 拷贝对象
}
},
watch
:
{
...
...
@@ -43,7 +43,7 @@ export default {
// 如果实际群码弹出框关闭,刷新数据
realCodeDialog
(
val
)
{
if
(
val
===
false
)
this
.
getGroupCodes
()
}
,
}
},
mounted
()
{
this
.
clipboard
=
new
ClipboardJS
(
'.copy-btn'
)
...
...
@@ -52,7 +52,7 @@ export default {
this
.
$notify
({
title
:
'成功'
,
message
:
'链接已复制到剪切板,可粘贴。'
,
type
:
'success'
,
type
:
'success'
})
})
...
...
@@ -113,7 +113,7 @@ export default {
this
.
$confirm
(
'是否确认下载所有图片吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
return
downloadBatch
(
ids
+
''
)
...
...
@@ -139,19 +139,18 @@ export default {
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
}
)
.
then
(()
=>
{
const
ids
=
this
.
multiGroupCode
.
map
((
group
)
=>
group
.
id
)
remove
(
ids
+
''
)
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
getGroupCodes
()
}
else
{
}
})
remove
(
ids
+
''
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
getGroupCodes
()
}
else
{
}
})
})
.
catch
(()
=>
{})
},
...
...
@@ -159,18 +158,17 @@ export default {
handleDownload
(
codeId
,
activityName
)
{
const
name
=
activityName
+
'.png'
download
(
codeId
)
.
then
((
res
)
=>
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
const
link
=
document
.
createElement
(
'a'
)
// 创建a标签
link
.
href
=
url
link
.
download
=
name
// 重命名文件
link
.
click
()
URL
.
revokeObjectURL
(
url
)
// 释放内存
}
})
download
(
codeId
).
then
((
res
)
=>
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
const
link
=
document
.
createElement
(
'a'
)
// 创建a标签
link
.
href
=
url
link
.
download
=
name
// 重命名文件
link
.
click
()
URL
.
revokeObjectURL
(
url
)
// 释放内存
}
})
},
// 删除
handleRemove
(
codeId
)
{
...
...
@@ -180,17 +178,16 @@ export default {
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
}
)
.
then
(()
=>
{
remove
(
codeId
)
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
getGroupCodes
()
}
else
{
}
})
remove
(
codeId
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
getGroupCodes
()
}
else
{
}
})
})
.
catch
(()
=>
{})
},
...
...
@@ -203,7 +200,7 @@ export default {
this
.
openGroupCodeId
=
groupCodeId
this
.
openGroupCodeStatus
=
status
this
.
realCodeDialog
=
true
}
,
}
}
}
</
script
>
...
...
@@ -368,8 +365,8 @@ export default {
size=
"mini"
@
click=
"
$router.push(
{
path: '
/drainageCode/
customerGroupDetail',
query: { groupCodeId: row.id }
,
path: 'customerGroupDetail',
query: { groupCodeId: row.id }
})
"
>编辑
</el-button
...
...
@@ -387,10 +384,7 @@ export default {
:data-clipboard-text=
"row.codeUrl"
>
复制
</el-button
>
<el-button
type=
"text"
size=
"mini"
@
click=
"handleRemove(row.id)"
<el-button
type=
"text"
size=
"mini"
@
click=
"handleRemove(row.id)"
>
删除
</el-button
>
</
template
>
...
...
linkwe-ui/src/views/drainageCode/staff/list.vue
View file @
36d923e
...
...
@@ -4,7 +4,7 @@ import {
remove
,
batchAdd
,
downloadBatch
,
download
,
download
}
from
'@/api/drainageCode/staff'
import
SelectUser
from
'@/components/SelectUser'
import
ClipboardJS
from
'clipboard'
...
...
@@ -22,7 +22,7 @@ export default {
scenario
:
undefined
,
createBy
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
// 日期范围
dateRange
:
[],
...
...
@@ -41,8 +41,8 @@ export default {
qrcode
:
''
,
isJoinConfirmFriends
:
0
,
weEmpleCodeTags
:
[],
weEmpleCodeUseScops
:
[]
,
}
,
weEmpleCodeUseScops
:
[]
}
}
},
created
()
{
...
...
@@ -60,7 +60,7 @@ export default {
this
.
$notify
({
title
:
'成功'
,
message
:
'链接已复制到剪切板,可粘贴。'
,
type
:
'success'
,
type
:
'success'
})
})
clipboard
.
on
(
'error'
,
(
e
)
=>
{
...
...
@@ -97,7 +97,7 @@ export default {
this
.
getList
(
1
)
},
goRoute
(
path
,
id
)
{
this
.
$router
.
push
({
path
:
'/drainageCode/'
+
path
,
query
:
{
id
}
})
this
.
$router
.
push
({
path
:
path
,
query
:
{
id
}
})
},
// 多选框选中数据
...
...
@@ -110,7 +110,7 @@ export default {
this
.
$confirm
(
'是否确认删除?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(
function
()
{
return
remove
(
ids
)
...
...
@@ -127,7 +127,7 @@ export default {
return
{
businessId
:
d
.
id
||
d
.
userId
,
businessName
:
d
.
name
,
businessIdType
:
d
.
userId
?
2
:
1
,
businessIdType
:
d
.
userId
?
2
:
1
}
})
batchAdd
(
this
.
form
).
then
(({
data
})
=>
{
...
...
@@ -154,7 +154,7 @@ export default {
this
.
$confirm
(
'是否确认下载所有图片吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
})
.
then
(()
=>
{
return
downloadBatch
(
this
.
ids
+
''
)
...
...
@@ -172,8 +172,8 @@ export default {
}
})
.
catch
(
function
()
{})
}
,
}
,
}
}
}
</
script
>
...
...
linkwe-ui/src/views/groupMessage/record.vue
View file @
36d923e
...
...
@@ -10,7 +10,7 @@ export default {
let
unit
=
data
.
expectSend
==
1
?
'个群'
:
'人'
return
`预计发送
${
data
.
expectSend
}${
unit
}
,已成功发送
${
data
.
actualSend
}${
unit
}
`
}
}
,
}
},
data
()
{
return
{
...
...
@@ -32,17 +32,17 @@ export default {
content
:
undefined
,
pushType
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
pushType
:
{
0
:
'发给客户'
,
1
:
'发给客户群'
,
1
:
'发给客户群'
},
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
// 选当前时间之前的时间
}
,
}
,
}
}
}
},
created
()
{
...
...
@@ -89,7 +89,7 @@ export default {
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
}
)
.
then
(
function
()
{})
...
...
@@ -101,8 +101,8 @@ export default {
},
goRoute
(
id
,
path
)
{
this
.
$router
.
push
({
path
:
'/customerMaintain/groupMessage/'
+
path
,
query
:
{
id
}
,
path
:
path
,
query
:
{
id
}
})
},
syncMsg
(
data
)
{
...
...
@@ -119,8 +119,8 @@ export default {
.
catch
(()
=>
{
// this.loading = false
})
}
,
}
,
}
}
}
</
script
>
<
template
>
...
...
linkwe-ui/src/views/material/audio.vue
View file @
36d923e
...
...
@@ -6,7 +6,7 @@ export default {
components
:
{
MaPage
},
data
()
{
return
{
ids
:
[]
,
// 选中数组
ids
:
[]
// 选中数组
}
},
watch
:
{},
...
...
@@ -15,8 +15,8 @@ export default {
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
}
,
}
,
}
}
}
</
script
>
...
...
@@ -40,22 +40,19 @@ export default {
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"$refs.page.download(scope.row)"
v-hasPermi=
"['material:download']"
<el-button
type=
"text"
@
click=
"$refs.page.download(scope.row)"
>
下载
</el-button
>
<el-button
type=
"text"
@
click=
"$refs.page.edit(scope.row)"
v-hasPermi=
"['material:edit']"
v-hasPermi=
"['
wechat:
material:edit']"
>
修改
</el-button
>
<el-button
type=
"text"
@
click=
"$refs.page.remove(scope.row.id)"
v-hasPermi=
"['material:remove']"
v-hasPermi=
"['
wechat:
material:remove']"
>
删除
</el-button
>
</
template
>
...
...
linkwe-ui/src/views/material/components/MaPage.vue
View file @
36d923e
...
...
@@ -10,7 +10,7 @@ import {
add
,
update
,
remove
,
moveGroup
,
moveGroup
}
from
'@/api/material'
// import {
...
...
@@ -24,13 +24,13 @@ export default {
// "0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file) 4 文本 5 海报 6 海报字体",
type
:
{
type
:
String
,
default
:
'0'
,
default
:
'0'
},
// 选中的素材ids
selected
:
{
type
:
[
Array
,
String
],
default
:
''
,
}
,
default
:
''
}
},
data
()
{
return
{
...
...
@@ -41,7 +41,7 @@ export default {
pageSize
:
10
,
categoryId
:
''
,
search
:
''
,
mediaType
:
'0'
,
mediaType
:
'0'
},
list
:
[],
// 列表
total
:
0
,
// 总条数
...
...
@@ -49,7 +49,7 @@ export default {
// 树props
treeProps
:
{
children
:
'children'
,
label
:
'name'
,
label
:
'name'
},
treeForm
:
{},
// 树表格
treeDialogVisible
:
false
,
// 树表格对话框显隐
...
...
@@ -63,7 +63,7 @@ export default {
children
:
'children'
,
label
:
'name'
,
value
:
'id'
,
emitPath
:
false
,
emitPath
:
false
},
typeTitle
:
[
'图片'
,
'语音'
,
'视频'
,
'文件'
,
'文本'
,
'海报'
,
'海报字体'
],
...
...
@@ -72,18 +72,18 @@ export default {
// 表单校验
rules
:
Object
.
freeze
({
categoryId
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'change'
}
,
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'change'
}
],
content
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}],
materialUrl
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'change'
}
,
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'change'
}
],
materialName
:
[
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
,
{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}
],
digest
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}],
coverUrl
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}]
,
})
,
coverUrl
:
[{
required
:
true
,
message
:
'不能为空'
,
trigger
:
'blur'
}]
})
}
},
watch
:
{},
...
...
@@ -105,8 +105,8 @@ export default {
parentId
:
'0'
,
hasParent
:
false
,
hasChildren
:
true
,
children
:
data
||
[]
,
}
,
children
:
data
||
[]
}
]
})
},
...
...
@@ -159,7 +159,7 @@ export default {
// 类目树节点删除
treeRemove
(
id
)
{
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
type
:
'warning'
,
type
:
'warning'
})
.
then
(
function
()
{
return
removeTree
(
id
)
...
...
@@ -214,7 +214,7 @@ export default {
remove
(
id
)
{
const
Ids
=
id
||
this
.
selected
+
''
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
type
:
'warning'
,
type
:
'warning'
})
.
then
(
function
()
{
return
remove
(
Ids
)
...
...
@@ -235,8 +235,8 @@ export default {
// 下载
download
(
data
)
{
window
.
open
(
data
.
materialUrl
)
}
,
}
,
}
}
}
</
script
>
...
...
@@ -246,7 +246,7 @@ export default {
<el-col
:span=
"6"
>
<div>
<el-button
v-hasPermi=
"['
material:addType
']"
v-hasPermi=
"['
wechat:category:add
']"
slot=
"reference"
type=
"primary"
@
click=
"treeEdit(
{}, 0)"
...
...
@@ -269,19 +269,19 @@ export default {
<span>
{{
node
.
label
}}
</span>
<span
class=
"fr"
v-if=
"data.id"
>
<i
v-hasPermi=
"['
material:editType
']"
v-hasPermi=
"['
wechat:category:edit
']"
class=
"el-icon-edit-outline"
title=
"编辑"
@
click
.
stop=
"treeEdit(data, 1)"
></i>
<i
v-hasPermi=
"['
material:addType
']"
v-hasPermi=
"['
wechat:category:edit
']"
class=
"el-icon-circle-plus-outline"
title=
"添加子分类"
@
click
.
stop=
"treeEdit(data, 0)"
></i>
<i
v-hasPermi=
"['
material:removeTyp
e']"
v-hasPermi=
"['
wechat:category:remov
e']"
class=
"el-icon-delete"
title=
"删除"
@
click
.
stop=
"treeRemove(data.id)"
...
...
@@ -307,9 +307,14 @@ export default {
prefix-icon=
"el-icon-search"
style=
"width: 300px;"
/>
<el-button
class=
"ml10"
@
click=
"getList(1)"
>
搜索
</el-button>
<el-button
v-hasPermi=
"['material:remove']"
class=
"ml10"
@
click=
"getList(1)"
v-hasPermi=
"['wecom:material:list']"
>
搜索
</el-button
>
<el-button
v-hasPermi=
"['wechat:material:remove']"
@
click=
"remove()"
:disabled=
"selected.length === 0"
>
删除
</el-button
...
...
@@ -332,7 +337,7 @@ export default {
>
</div>
<el-button
v-hasPermi=
"['
material:edit
']"
v-hasPermi=
"['
wechat:material:resetCategory
']"
slot=
"reference"
class=
"ml10"
:disabled=
"selected.length === 0"
...
...
@@ -342,7 +347,7 @@ export default {
<div
class=
"fr"
>
<el-button
v-hasPermi=
"['material:add']"
v-hasPermi=
"['
wechat:
material:add']"
type=
"primary"
@
click=
"edit(1, ~~type)"
>
添加
{{
typeTitle
[
type
]
}}
</el-button
...
...
linkwe-ui/src/views/material/file.vue
View file @
36d923e
...
...
@@ -6,7 +6,7 @@ export default {
components
:
{
MaPage
},
data
()
{
return
{
ids
:
[]
,
// 选中数组
ids
:
[]
// 选中数组
}
},
watch
:
{},
...
...
@@ -15,8 +15,8 @@ export default {
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
}
,
}
,
}
}
}
</
script
>
...
...
@@ -41,22 +41,19 @@ export default {
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"$refs.page.download(scope.row)"
v-hasPermi=
"['material:download']"
<el-button
type=
"text"
@
click=
"$refs.page.download(scope.row)"
>
下载
</el-button
>
<el-button
type=
"text"
@
click=
"$refs.page.edit(scope.row)"
v-hasPermi=
"['material:edit']"
v-hasPermi=
"['
wechat:
material:edit']"
>
修改
</el-button
>
<el-button
type=
"text"
@
click=
"$refs.page.remove(scope.row.id)"
v-hasPermi=
"['material:remove']"
v-hasPermi=
"['
wechat:
material:remove']"
>
删除
</el-button
>
</
template
>
...
...
linkwe-ui/src/views/material/image.vue
View file @
36d923e
...
...
@@ -7,7 +7,7 @@ export default {
data
()
{
return
{
srcList
:
[],
ids
:
[]
,
// 选中数组
ids
:
[]
// 选中数组
}
},
watch
:
{},
...
...
@@ -15,8 +15,8 @@ export default {
methods
:
{
listChange
(
data
)
{
this
.
srcList
=
data
.
map
((
item
)
=>
item
.
materialUrl
)
}
,
}
,
}
}
}
</
script
>
...
...
@@ -44,12 +44,12 @@ export default {
></el-image>
<div
class=
"actions"
>
<i
v-hasPermi=
"['material:edit']"
v-hasPermi=
"['
wechat:
material:edit']"
class=
"el-icon-edit cp"
@
click=
"$refs.page.edit(item)"
></i>
<i
v-hasPermi=
"['material:remove']"
v-hasPermi=
"['
wechat:
material:remove']"
class=
"el-icon-delete cp"
@
click=
"$refs.page.remove(item.id)"
></i>
...
...
linkwe-ui/src/views/material/text.vue
View file @
36d923e
...
...
@@ -6,7 +6,7 @@ export default {
components
:
{
MaPage
},
data
()
{
return
{
ids
:
[]
,
// 选中数组
ids
:
[]
// 选中数组
}
},
watch
:
{},
...
...
@@ -16,8 +16,8 @@ export default {
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
}
,
}
,
}
}
}
</
script
>
...
...
@@ -45,13 +45,13 @@ export default {
<el-button
type=
"text"
@
click=
"$refs.page.edit(scope.row)"
v-hasPermi=
"['material:edit']"
v-hasPermi=
"['
wechat:
material:edit']"
>
修改
</el-button
>
<el-button
type=
"text"
@
click=
"$refs.page.remove(scope.row.id)"
v-hasPermi=
"['material:remove']"
v-hasPermi=
"['
wechat:
material:remove']"
>
删除
</el-button
>
</
template
>
...
...
linkwe-ui/src/views/material/video.vue
View file @
36d923e
...
...
@@ -5,16 +5,16 @@ import Video from 'video.js'
export
default
{
name
:
'Video'
,
components
:
{
MaPage
,
MaPage
},
data
()
{
return
{
ids
:
[]
,
// 选中数组
ids
:
[]
// 选中数组
}
},
watch
:
{},
created
()
{},
methods
:
{}
,
methods
:
{}
}
</
script
>
...
...
@@ -43,17 +43,16 @@ export default {
</video>
<div
class=
"actions"
>
<i
v-hasPermi=
"['material:download']"
class=
"el-icon-download"
@
click=
"$refs.page.download(item)"
></i>
<i
v-hasPermi=
"['material:edit']"
v-hasPermi=
"['
wechat:
material:edit']"
class=
"el-icon-edit cp"
@
click=
"$refs.page.edit(item)"
></i>
<i
v-hasPermi=
"['material:remove']"
v-hasPermi=
"['
wechat:
material:remove']"
class=
"el-icon-delete cp"
@
click=
"$refs.page.remove(item.id)"
></i>
...
...
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