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 bf57f925
authored
Dec 30, 2020
by
xinlaa
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加后续功能菜单
1 parent
61484a88
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1880 additions
and
274 deletions
linkwe-ui/src/router/index.js
linkwe-ui/src/views/appTool/chatToolbar/list.vue
linkwe-ui/src/views/appTool/friendCircle/list.vue
linkwe-ui/src/views/appTool/groupFission/list.vue
linkwe-ui/src/views/appTool/task/list.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/enterpriseWechat/list.vue
linkwe-ui/src/views/groupMessage/add.vue
linkwe-ui/src/views/groupMessage/record.vue
linkwe-ui/src/router/index.js
View file @
bf57f92
import
Vue
from
'vue'
import
Vue
from
"vue"
;
import
Router
from
'vue-router'
import
Router
from
"vue-router"
;
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
;
/* Layout */
/* Layout */
import
Layout
from
'@/layout'
import
Layout
from
"@/layout"
;
/**
/**
* Note: 路由配置项
* Note: 路由配置项
...
@@ -27,43 +27,43 @@ import Layout from '@/layout'
...
@@ -27,43 +27,43 @@ import Layout from '@/layout'
// 公共路由
// 公共路由
export
const
constantRoutes
=
[
export
const
constantRoutes
=
[
{
{
path
:
'/redirect'
,
path
:
"/redirect"
,
component
:
Layout
,
component
:
Layout
,
hidden
:
true
,
hidden
:
true
,
children
:
[
children
:
[
{
{
path
:
'/redirect/:path(.*)'
,
path
:
"/redirect/:path(.*)"
,
component
:
(
resolve
)
=>
require
([
'@/views/redirect'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/redirect"
],
resolve
)
}
,
}
]
,
]
},
},
{
{
path
:
''
,
path
:
""
,
component
:
Layout
,
component
:
Layout
,
redirect
:
'/index'
,
redirect
:
"/index"
,
children
:
[
children
:
[
{
{
path
:
'/index'
,
path
:
"/index"
,
component
:
(
resolve
)
=>
require
([
'@/views/index'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/index"
],
resolve
),
name
:
'首页'
,
name
:
"首页"
,
meta
:
{
meta
:
{
title
:
'首页'
,
title
:
"首页"
,
icon
:
'dashboard'
,
icon
:
"dashboard"
,
noCache
:
true
,
noCache
:
true
,
affix
:
true
,
affix
:
true
}
,
}
}
,
}
]
,
]
},
},
{
{
path
:
'/login'
,
path
:
"/login"
,
component
:
(
resolve
)
=>
require
([
'@/views/login'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/login"
],
resolve
),
hidden
:
true
,
hidden
:
true
},
},
{
{
path
:
'/authCallback'
,
path
:
"/authCallback"
,
component
:
(
resolve
)
=>
require
([
'@/views/authCallback'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/authCallback"
],
resolve
),
hidden
:
true
,
hidden
:
true
},
},
// {
// {
// path: '/customerManage',
// path: '/customerManage',
...
@@ -117,6 +117,42 @@ export const constantRoutes = [
...
@@ -117,6 +117,42 @@ export const constantRoutes = [
// ]
// ]
// },
// },
// {
// {
// path: "/communityOperating",
// component: Layout,
// redirect: "/communityOperating/newCustomer",
// meta: { title: "社群运营", icon: "peoples" },
// children: [
// {
// path: "newCustomer",
// name: "newCustomer",
// component: resolve =>
// require(["@/views/communityOperating/newCustomer/list"], resolve),
// meta: { title: "新客自动拉群", icon: "" }
// },
// {
// path: "oldCustomer",
// name: "oldCustomer",
// component: resolve =>
// require(["@/views/communityOperating/oldCustomer/list"], resolve),
// meta: { title: "老客标签建群", icon: "" }
// },
// {
// path: "keywords",
// name: "keywords",
// component: resolve =>
// require(["@/views/communityOperating/keywords/list"], resolve),
// meta: { title: "关键词拉群", icon: "" }
// },
// {
// path: "groupSOP",
// name: "groupSOP",
// component: resolve =>
// require(["@/views/communityOperating/groupSOP/list"], resolve),
// meta: { title: "群SOP", icon: "" }
// }
// ]
// },
// {
// path: '/groupMessage',
// path: '/groupMessage',
// component: Layout,
// component: Layout,
// redirect: '/groupMessage/add',
// redirect: '/groupMessage/add',
...
@@ -288,53 +324,75 @@ export const constantRoutes = [
...
@@ -288,53 +324,75 @@ export const constantRoutes = [
// ],
// ],
// },
// },
// {
// {
// path:
'/appTool'
,
// path:
"/appTool"
,
// component: Layout,
// component: Layout,
// redirect:
'/appTool/text'
,
// redirect:
"/appTool/text"
,
// meta: { title:
'应用工具', icon: 'app'
},
// meta: { title:
"应用工具", icon: "app"
},
// children: [
// children: [
// {
// {
// path: 'chatToolbar',
// path: "chatToolbar",
// name: 'ChatToolbar',
// name: "ChatToolbar",
// component: (resolve) => require(['@/views/appTool/chatToolbar/list'], resolve),
// component: resolve =>
// meta: { title: '聊天工具栏', icon: '' }
// require(["@/views/appTool/chatToolbar/list"], resolve),
// meta: { title: "聊天工具栏", icon: "" }
// },
// },
// {
// {
// path:
'explain'
,
// path:
"explain"
,
// hidden: true,
// hidden: true,
// component: (resolve) => require(['@/views/appTool/chatToolbar/explain'], resolve),
// component: resolve =>
// meta: { title: '图文详解', icon: '' }
// require(["@/views/appTool/chatToolbar/explain"], resolve),
// meta: { title: "图文详解", icon: "" }
// },
// },
// {
// {
// path:
'config'
,
// path:
"config"
,
// hidden: true,
// hidden: true,
// component: (resolve) => require(['@/views/appTool/chatToolbar/config'], resolve),
// component: resolve =>
// meta: { title: '查看已配置信息', icon: '' }
// require(["@/views/appTool/chatToolbar/config"], resolve),
// meta: { title: "查看已配置信息", icon: "" }
// },
// },
// {
// {
// path: 'friendCircle',
// path: "friendCircle",
// name: 'FriendCircle',
// name: "FriendCircle",
// component: (resolve) => require(['@/views/appTool/friendCircle/list'], resolve),
// component: resolve =>
// meta: { title: '朋友圈', icon: '' }
// require(["@/views/appTool/friendCircle/list"], resolve),
// meta: { title: "朋友圈", icon: "" }
// },
// },
// {
// {
// path:
'friendIntroduce'
,
// path:
"friendIntroduce"
,
// hidden: true,
// hidden: true,
// component: (resolve) => require(['@/views/appTool/friendCircle/introduce'], resolve),
// component: resolve =>
// meta: { title: '功能介绍', icon: '' }
// require(["@/views/appTool/friendCircle/introduce"], resolve),
// meta: { title: "功能介绍", icon: "" }
// },
// },
// {
// {
// path:
'friendPublish'
,
// path:
"friendPublish"
,
// hidden: true,
// hidden: true,
// component: (resolve) => require(['@/views/appTool/friendCircle/publish'], resolve),
// component: resolve =>
// meta: { title: '发布动态', icon: '' }
// require(["@/views/appTool/friendCircle/publish"], resolve),
// meta: { title: "发布动态", icon: "" }
// },
// },
// {
// {
// path:
'friendBackground'
,
// path:
"friendBackground"
,
// hidden: true,
// hidden: true,
// component: (resolve) => require(['@/views/appTool/friendCircle/background'], resolve),
// component: resolve =>
// meta: { title: '设置顶部背景', icon: '' }
// require(["@/views/appTool/friendCircle/background"], resolve),
// meta: { title: "设置顶部背景", icon: "" }
// },
// },
// {
// path: "task",
// name: "Task",
// component: resolve => require(["@/views/appTool/task/list"], resolve),
// meta: { title: "任务宝", icon: "" }
// },
// {
// path: "groupFission",
// name: "groupFission",
// component: resolve =>
// require(["@/views/appTool/groupFission/list"], resolve),
// meta: { title: "群裂变", icon: "" }
// }
// ]
// ]
// },
// },
// {
// {
...
@@ -366,59 +424,58 @@ export const constantRoutes = [
...
@@ -366,59 +424,58 @@ export const constantRoutes = [
// },
// },
{
{
path
:
'/user'
,
path
:
"/user"
,
component
:
Layout
,
component
:
Layout
,
hidden
:
true
,
hidden
:
true
,
redirect
:
'noredirect'
,
redirect
:
"noredirect"
,
children
:
[
children
:
[
{
{
path
:
'profile'
,
path
:
"profile"
,
component
:
(
resolve
)
=>
component
:
resolve
=>
require
([
'@/views/system/user/profile/index'
],
resolve
),
require
([
"@/views/system/user/profile/index"
],
resolve
),
name
:
'Profile'
,
name
:
"Profile"
,
meta
:
{
title
:
'个人中心'
,
icon
:
'user'
},
meta
:
{
title
:
"个人中心"
,
icon
:
"user"
}
}
,
}
]
,
]
},
},
{
{
path
:
'/dict'
,
path
:
"/dict"
,
component
:
Layout
,
component
:
Layout
,
hidden
:
true
,
hidden
:
true
,
children
:
[
children
:
[
{
{
path
:
'type/data/:dictId(\\d+)'
,
path
:
"type/data/:dictId(\\d+)"
,
component
:
(
resolve
)
=>
require
([
'@/views/system/dict/data'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/system/dict/data"
],
resolve
),
name
:
'Data'
,
name
:
"Data"
,
meta
:
{
title
:
'字典数据'
,
icon
:
''
},
meta
:
{
title
:
"字典数据"
,
icon
:
""
}
}
,
}
]
,
]
},
},
{
{
path
:
'/job'
,
path
:
"/job"
,
component
:
Layout
,
component
:
Layout
,
hidden
:
true
,
hidden
:
true
,
children
:
[
children
:
[
{
{
path
:
'log'
,
path
:
"log"
,
component
:
(
resolve
)
=>
require
([
'@/views/monitor/job/log'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/monitor/job/log"
],
resolve
),
name
:
'JobLog'
,
name
:
"JobLog"
,
meta
:
{
title
:
'调度日志'
},
meta
:
{
title
:
"调度日志"
}
}
,
}
]
,
]
},
},
{
{
path
:
'/gen'
,
path
:
"/gen"
,
component
:
Layout
,
component
:
Layout
,
hidden
:
true
,
hidden
:
true
,
children
:
[
children
:
[
{
{
path
:
'edit/:tableId(\\d+)'
,
path
:
"edit/:tableId(\\d+)"
,
component
:
(
resolve
)
=>
component
:
resolve
=>
require
([
"@/views/tool/gen/editTable"
],
resolve
),
require
([
'@/views/tool/gen/editTable'
],
resolve
),
name
:
"GenEdit"
,
name
:
'GenEdit'
,
meta
:
{
title
:
"修改生成配置"
}
meta
:
{
title
:
'修改生成配置'
},
}
},
]
],
},
},
// {
// {
// path: '/test',
// path: '/test',
...
@@ -426,19 +483,19 @@ export const constantRoutes = [
...
@@ -426,19 +483,19 @@ export const constantRoutes = [
// hidden: true,
// hidden: true,
// },
// },
{
{
path
:
'/404'
,
path
:
"/404"
,
component
:
(
resolve
)
=>
require
([
'@/views/error/404'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/error/404"
],
resolve
),
hidden
:
true
,
hidden
:
true
},
},
{
{
path
:
'/401'
,
path
:
"/401"
,
component
:
(
resolve
)
=>
require
([
'@/views/error/401'
],
resolve
),
component
:
resolve
=>
require
([
"@/views/error/401"
],
resolve
),
hidden
:
true
,
hidden
:
true
}
,
}
]
]
;
export
default
new
Router
({
export
default
new
Router
({
// mode: 'history',
// mode: 'history',
scrollBehavior
:
()
=>
({
y
:
0
}),
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRoutes
,
routes
:
constantRoutes
})
})
;
linkwe-ui/src/views/appTool/chatToolbar/list.vue
View file @
bf57f92
<
style
lang=
"scss"
scoped
>
<
script
>
.chat-preview
{
export
default
{
border-radius
:
4px
;
components
:
{},
position
:
relative
;
props
:
{},
margin-left
:
40px
;
data
()
{
display
:
inline-block
;
return
{
width
:
150px
;
dialogVisible
:
false
min-height
:
263px
;
};
background-repeat
:
no-repeat
;
},
background-size
:
cover
;
watch
:
{},
top
:
15px
;
computed
:
{},
.logo
{
created
()
{},
width
:
40px
;
mounted
()
{},
height
:
40px
;
methods
:
{}
position
:
absolute
;
};
top
:
18px
;
</
script
>
left
:
50%
;
transform
:
translateX
(
-50%
);
border-radius
:
50%
;
}
.company-name
{
font-size
:
12px
;
position
:
absolute
;
top
:
70px
;
text-align
:
center
;
color
:
#ffe7be
;
width
:
100%
;
}
}
</
style
>
<
template
>
<
template
>
<div>
<div>
<div>
<div>
配置聊天工具栏,方便成员在外部会话中查看和使用,提高服务效率。
配置聊天工具栏,方便成员在外部会话中查看和使用,提高服务效率。
<el-button
type=
"text"
@
click=
"$router.push('/appTool/explain')"
>
图文详解
</el-button>
<el-button
type=
"text"
@
click=
"$router.push('/appTool/explain')"
<el-button
type=
"text"
@
click=
"$router.push('/appTool/config')"
>
查看已配置信息
</el-button>
>
图文详解
</el-button
>
<el-button
type=
"text"
@
click=
"$router.push('/appTool/config')"
>
查看已配置信息
</el-button
>
</div>
</div>
<div>
<el-card
shadow=
"never"
header=
"红包工具栏"
>
<div
slot=
"header"
>
<span>
抓取快捷回复素材
</span>
素材抓取后,即可在聊天工具栏使用
<span>
抓取快捷回复素材
</span>
素材抓取后,即可在聊天工具栏使用
</div>
</div>
<el-table
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"素材类型"
align=
"center"
prop=
"operId"
/>
<el-table-column
label=
"素材类型"
align=
"center"
prop=
"operId"
/>
<el-table-column
label=
"聊天工具栏名称"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"聊天工具栏名称"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"已抓取素材数量"
align=
"center"
prop=
"businessType"
:formatter=
"typeFormat"
/>
<el-table-column
<el-table-column
label=
"是否启用"
align=
"center"
prop=
"operTime"
width=
"180"
>
label=
"已抓取素材数量"
align=
"center"
prop=
"businessType"
:formatter=
"typeFormat"
/>
<el-table-column
label=
"是否启用"
align=
"center"
prop=
"operTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
</
template
>
</
template
>
...
@@ -56,13 +59,15 @@
...
@@ -56,13 +59,15 @@
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row, scope.index)"
>
抓取素材
</el-button>
>
抓取素材
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</el-card>
<el-card
shadow=
"never"
header=
"红包工具栏"
>
<el-card
class=
"mt20"
shadow=
"never"
header=
"红包工具栏"
>
<!-- <div slot="header"></div> -->
<!-- <div slot="header"></div> -->
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
...
@@ -83,7 +88,12 @@
...
@@ -83,7 +88,12 @@
</div>
</div>
<el-form
ref=
"form"
:model=
"form"
label-width=
"100px"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"100px"
>
<el-form-item
label=
"企业logo"
>
<el-form-item
label=
"企业logo"
>
<el-upload
action
:show-file-list=
"false"
:on-success=
"d"
:before-upload=
"d"
>
<el-upload
action
:show-file-list=
"false"
:on-success=
"d"
:before-upload=
"d"
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
/>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
...
@@ -100,7 +110,7 @@
...
@@ -100,7 +110,7 @@
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
<div
class=
"chat-preview"
class=
"chat-preview"
style=
"background-image: url("https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/red-packet.png");"
style=
'background-image: url("https://wscos-1253767630.cos.ap-nanjing.myqcloud.com/wework/assets/red-packet.png");'
>
>
<div
class=
"el-image logo"
style
>
<div
class=
"el-image logo"
style
>
<div
class=
"el-image__error"
>
加载失败
</div>
<div
class=
"el-image__error"
>
加载失败
</div>
...
@@ -132,32 +142,56 @@
...
@@ -132,32 +142,56 @@
</div>
</div>
<el-table
:data=
"data"
style=
"width: 100%"
>
<el-table
:data=
"data"
style=
"width: 100%"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
prop=
"prop"
label=
"文本内容"
width=
"width"
></el-table-column>
<el-table-column
<el-table-column
prop=
"prop"
label=
"时间"
width=
"width"
></el-table-column>
prop=
"prop"
label=
"文本内容"
width=
"width"
></el-table-column>
<el-table-column
prop=
"prop"
label=
"时间"
width=
"width"
></el-table-column>
</el-table>
</el-table>
</el-col>
</el-col>
</el-row>
</el-row>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"dialogVisible = false"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"dialogVisible = false"
>
确 定
</el-button
>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
style
lang=
"scss"
scoped
>
export
default
{
.chat-preview
{
components
:
{},
border-radius
:
4px
;
props
:
{},
position
:
relative
;
data
()
{
margin-left
:
40px
;
return
{
display
:
inline-block
;
dialogVisible
:
true
,
width
:
150px
;
};
min-height
:
263px
;
},
background-repeat
:
no-repeat
;
watch
:
{},
background-size
:
cover
;
computed
:
{},
top
:
15px
;
created
()
{},
.logo
{
mounted
()
{},
width
:
40px
;
methods
:
{},
height
:
40px
;
};
position
:
absolute
;
</
script
>
top
:
18px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
border-radius
:
50%
;
}
.company-name
{
font-size
:
12px
;
position
:
absolute
;
top
:
70px
;
text-align
:
center
;
color
:
#ffe7be
;
width
:
100%
;
}
}
</
style
>
linkwe-ui/src/views/appTool/friendCircle/list.vue
View file @
bf57f92
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
></
style
>
</
style
>
<
template
>
<
template
>
<div>
<div>
<el-tabs
type=
"
border-
card"
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
type=
"card"
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"朋友圈动态"
name=
"1"
>
<el-tab-pane
label=
"朋友圈动态"
name=
"1"
>
<div>
<div
class=
"mb20"
>
* 该朋友圈为展示在企业成员对外资料显示中的企业朋友圈,
* 该朋友圈为展示在企业成员对外资料显示中的企业朋友圈,
<!--
<el-button
type=
"primary"
>
查看功能介绍
</el-button>
-->
<!--
<el-button
type=
"primary"
>
查看功能介绍
</el-button>
-->
<el-link
type=
"primary"
href=
"/appTool/friendIntroduce"
>
查看功能介绍
</el-link>
<el-link
type=
"primary"
href=
"/appTool/friendIntroduce"
>
查看功能介绍
</el-link
>
</div>
</div>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"100px"
>
<el-form
class=
"top-search"
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"100px"
>
<el-form-item
label=
"关键词"
prop=
"title"
>
<el-form-item
label=
"关键词"
prop=
"title"
>
<el-input
<el-input
v-model=
"queryParams.title"
v-model=
"queryParams.title"
placeholder=
"请输入"
placeholder=
"请输入"
clearable
clearable
style=
"width: 240px;"
size=
"small"
size=
"small"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -25,7 +31,6 @@
...
@@ -25,7 +31,6 @@
<el-date-picker
<el-date-picker
v-model=
"dateRange"
v-model=
"dateRange"
size=
"small"
size=
"small"
style=
"width: 240px"
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
type=
"daterange"
type=
"daterange"
range-separator=
"-"
range-separator=
"-"
...
@@ -34,66 +39,90 @@
...
@@ -34,66 +39,90 @@
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label
>
<el-form-item
label
>
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
查询
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"ar"
>
<div
class=
"ar"
>
<el-button
type=
"primary"
>
发布动态
</el-button>
<el-button
type=
"primary"
>
发布动态
</el-button>
</div>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"所选成员"
align=
"center"
prop=
"operId"
/>
<el-table-column
label=
"所选成员"
align=
"center"
prop=
"operId"
/>
<el-table-column
label=
"发布内容"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"发布内容"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"businessType"
/>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"businessType"
/>
<el-table-column
label=
"发布时间"
align=
"center"
prop=
"operTime"
width=
"180"
>
<el-table-column
label=
"发布时间"
align=
"center"
prop=
"operTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</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
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,
scope.index)"
v-hasPermi=
"['monitor:operlog:query']"
v-hasPermi=
"['monitor:operlog:query']"
>
下载
</el-button>
>
下载
</el-button
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,
scope.index)"
v-hasPermi=
"['monitor:operlog:query']"
v-hasPermi=
"['monitor:operlog:query']"
>
复制链接
</el-button>
>
复制链接
</el-button
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,
scope.index)"
v-hasPermi=
"['monitor:operlog:query']"
v-hasPermi=
"['monitor:operlog:query']"
>
查看详情
</el-button>
>
查看详情
</el-button
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,
scope.index)"
v-hasPermi=
"['monitor:operlog:query']"
v-hasPermi=
"['monitor:operlog:query']"
>
编辑
</el-button>
>
编辑
</el-button
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,
scope.index)"
v-hasPermi=
"['monitor:operlog:query']"
v-hasPermi=
"['monitor:operlog:query']"
>
删除
</el-button>
>
删除
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total
>
0"
v-show=
"total
>
0"
:total=
"total"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
:limit
.
sync=
"queryParams.pageSize"
...
@@ -101,20 +130,36 @@
...
@@ -101,20 +130,36 @@
/>
/>
<!-- 添加或修改参数配置对话框 -->
<!-- 添加或修改参数配置对话框 -->
<el-dialog
title=
"编辑图片"
:visible
.
sync=
"open"
width=
"600px"
append-to-body
>
<el-dialog
title=
"编辑图片"
:visible
.
sync=
"open"
width=
"600px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
label=
"图片名称"
>
<el-form-item
label=
"图片名称"
>
<el-input
v-model=
"sd"
placeholder
></el-input>
<el-input
v-model=
"sd"
placeholder
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图片文案"
>
<el-form-item
label=
"图片文案"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入内容"
></el-input>
<el-input
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入内容"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图片"
>
<el-form-item
label=
"图片"
>
<el-upload
action
:show-file-list=
"false"
:on-success=
"d"
:before-upload=
"d"
>
<el-upload
action
:show-file-list=
"false"
:on-success=
"d"
:before-upload=
"d"
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
/>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
<div>
支持JPG,PNG格式,图片大小不超过2M,建议上传宽高1:1的图片
</div>
<div>
支持JPG,PNG格式,图片大小不超过2M,建议上传宽高1:1的图片
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -131,33 +176,45 @@
...
@@ -131,33 +176,45 @@
style=
"width: 240px;"
style=
"width: 240px;"
v-model=
"input2"
v-model=
"input2"
></el-input>
></el-input>
<el-button
@
click=
"$router.push('/appTool/friendBackground')"
>
设置默认背景图片
</el-button>
<el-button
@
click=
"$router.push('/appTool/friendBackground')"
>
设置默认背景图片
</el-button
>
<el-button
type=
"primary"
>
一键设置朋友圈地址
</el-button>
<el-button
type=
"primary"
>
一键设置朋友圈地址
</el-button>
</div>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"员工"
align=
"center"
prop=
"operId"
/>
<el-table-column
label=
"员工"
align=
"center"
prop=
"operId"
/>
<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
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,
scope.index)"
v-hasPermi=
"['monitor:operlog:query']"
v-hasPermi=
"['monitor:operlog:query']"
>
编辑头像背景
</el-button>
>
编辑头像背景
</el-button
>
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-view"
icon=
"el-icon-view"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,
scope.index)"
v-hasPermi=
"['monitor:operlog:query']"
v-hasPermi=
"['monitor:operlog:query']"
>
删除
</el-button>
>
删除
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total
>
0"
v-show=
"total
>
0"
:total=
"total"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
:limit
.
sync=
"queryParams.pageSize"
...
@@ -176,13 +233,13 @@ export default {
...
@@ -176,13 +233,13 @@ export default {
return
{
return
{
queryParams
:
{},
queryParams
:
{},
form
:
{},
form
:
{},
activeName
:
"1"
,
activeName
:
"1"
};
};
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{},
created
()
{},
mounted
()
{},
mounted
()
{},
methods
:
{}
,
methods
:
{}
};
};
</
script
>
</
script
>
linkwe-ui/src/views/appTool/groupFission/list.vue
0 → 100644
View file @
bf57f92
<
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
[
0
])
{
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
;
});
}
});
}
}
};
</
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=
"edit()"
>
新建群裂变任务
</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/task/list.vue
0 → 100644
View file @
bf57f92
<
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
[
0
])
{
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
;
});
}
});
}
}
};
</
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=
"edit()"
>
新建任务
</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/communityOperating/groupSOP/list.vue
0 → 100644
View file @
bf57f92
<
script
>
import
*
as
api
from
"@/api/customer"
;
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
:
[
"正常"
,
"停用"
],
pushType
:
{
0
:
"发给客户"
,
1
:
"发给客户群"
}
};
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
();
},
mounted
()
{
// new clipboard(".copy-btn");
},
methods
:
{
getList
(
page
)
{
if
(
this
.
dateRange
[
0
])
{
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
;
});
}
});
}
}
};
</
script
>
<
template
>
<div>
<div
class=
"fxbw mb10 aic"
>
<div
class=
"total"
>
群SOP 制定推送规则后,通知群主定时给指定客户群发送消息。
</div>
<div>
<el-button
type=
"primary"
icon=
"el-icon-plus"
@
click=
"goRoute()"
>
创建规则
</el-button
>
<el-input
placeholder=
"请输入规则名称"
prefix-icon=
"el-icon-search"
v-model=
"query.welcomeMsg"
style=
"width: 240px; margin-left: 10px;"
@
change=
"getList(0)"
></el-input>
</div>
</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
label=
"创建时间"
align=
"center"
prop=
"createTime"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
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/communityOperating/keywords/list.vue
0 → 100644
View file @
bf57f92
<
script
>
import
*
as
api
from
"@/api/customer"
;
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
:
[
"正常"
,
"停用"
],
pushType
:
{
0
:
"发给客户"
,
1
:
"发给客户群"
}
};
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
();
},
mounted
()
{
// new clipboard(".copy-btn");
},
methods
:
{
getList
(
page
)
{
if
(
this
.
dateRange
[
0
])
{
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
;
});
}
});
}
}
};
</
script
>
<
template
>
<div>
<div
class=
"fxbw mb10 aic"
>
<div
class=
"total"
>
关键词拉群
配置聊天工具栏,管理员创建关键词拉群后,员工可在聊天功能栏使用。
</div>
<div>
<el-button
type=
"primary"
icon=
"el-icon-plus"
@
click=
"goRoute()"
>
新建关键词拉群
</el-button
>
<el-input
placeholder=
"请输入活动名称"
prefix-icon=
"el-icon-search"
v-model=
"query.welcomeMsg"
style=
"width: 240px; margin-left: 10px;"
@
change=
"getList(0)"
></el-input>
</div>
</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"
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/communityOperating/newCustomer/list.vue
0 → 100644
View file @
bf57f92
<
script
>
import
*
as
api
from
"@/api/customer"
;
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
:
[
"正常"
,
"停用"
],
pushType
:
{
0
:
"发给客户"
,
1
:
"发给客户群"
}
};
},
watch
:
{},
computed
:
{},
created
()
{
this
.
getList
();
},
mounted
()
{
// new clipboard(".copy-btn");
},
methods
:
{
getList
(
page
)
{
if
(
this
.
dateRange
[
0
])
{
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
;
});
}
});
}
}
};
</
script
>
<
template
>
<div>
<div
class=
"fxbw mb10 aic"
>
<div
class=
"total"
>
新客自动拉群
客户通过员工活码添加员工,自动发送入群引导语、群活码,客户扫码入群。
</div>
<div>
<el-button
type=
"primary"
icon=
"el-icon-plus"
@
click=
"goRoute()"
>
新建自动拉群
</el-button
>
<el-input
placeholder=
"请输入活动名称"
prefix-icon=
"el-icon-search"
v-model=
"query.welcomeMsg"
style=
"width: 240px; margin-left: 10px;"
@
change=
"getList(0)"
></el-input>
</div>
</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"
prop=
"createTime"
width=
"160"
></el-table-column>
<el-table-column
label=
"添加好友数"
align=
"center"
prop=
"createTime"
width=
"160"
></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/communityOperating/oldCustomer/list.vue
0 → 100644
View file @
bf57f92
<
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
[
0
])
{
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
;
});
}
});
}
}
};
</
script
>
<
template
>
<div>
<div
class=
"top-search"
>
<el-form
inline
label-position=
"right"
:model=
"form"
label-width=
"80px"
>
<el-form-item
label=
"发送方式"
>
<el-select
v-model=
"query.pushType"
placeholder=
"请选择"
size=
"small"
>
<el-option
v-for=
"(value, key, index) in pushType"
:label=
"value"
:value=
"key"
:key=
"index"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"任务名称"
>
<el-input
v-model=
"query.name"
placeholder=
"请输入"
></el-input>
</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=
"edit()"
>
新建任务
</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/enterpriseWechat/list.vue
View file @
bf57f92
<
script
>
<
script
>
import
*
as
api
from
'@/api/enterpriseId'
import
*
as
api
from
"@/api/enterpriseId"
;
// import clipboard from "clipboard";
// import clipboard from "clipboard";
export
default
{
export
default
{
...
@@ -10,7 +10,7 @@ export default {
...
@@ -10,7 +10,7 @@ export default {
query
:
{
query
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
companyName
:
''
,
companyName
:
""
},
},
total
:
0
,
total
:
0
,
form
:
{},
form
:
{},
...
@@ -19,65 +19,65 @@ export default {
...
@@ -19,65 +19,65 @@ export default {
disabled
:
false
,
disabled
:
false
,
loading
:
false
,
loading
:
false
,
rules
:
Object
.
freeze
({
rules
:
Object
.
freeze
({
companyName
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
companyName
:
[{
required
:
true
,
message
:
"必填项"
,
trigger
:
"blur"
}],
corpId
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpId
:
[{
required
:
true
,
message
:
"必填项"
,
trigger
:
"blur"
}],
corpSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
corpSecret
:
[{
required
:
true
,
message
:
"必填项"
,
trigger
:
"blur"
}],
contactSecret
:
[{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
}],
contactSecret
:
[{
required
:
true
,
message
:
"必填项"
,
trigger
:
"blur"
}]
}),
}),
status
:
[
'正常'
,
'停用'
],
status
:
[
"正常"
,
"停用"
]
}
}
;
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
;
},
},
mounted
()
{
mounted
()
{
// new clipboard(".copy-btn");
// new clipboard(".copy-btn");
},
},
methods
:
{
methods
:
{
getList
(
page
)
{
getList
(
page
)
{
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
;
this
.
loading
=
true
this
.
loading
=
true
;
api
api
.
getList
(
this
.
query
)
.
getList
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
list
=
rows
;
this
.
total
=
+
total
this
.
total
=
+
total
;
this
.
loading
=
false
this
.
loading
=
false
;
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
;
})
})
;
},
},
edit
(
data
,
type
)
{
edit
(
data
,
type
)
{
this
.
form
=
Object
.
assign
({},
data
||
{})
this
.
form
=
Object
.
assign
({},
data
||
{})
;
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
;
type
||
!
data
?
(
this
.
disabled
=
false
)
:
(
this
.
disabled
=
true
)
type
||
!
data
?
(
this
.
disabled
=
false
)
:
(
this
.
disabled
=
true
)
;
},
},
submit
()
{
submit
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
api
[
this
.
form
.
id
?
'update'
:
'add'
](
this
.
form
)
api
[
this
.
form
.
id
?
"update"
:
"add"
](
this
.
form
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
"操作成功"
);
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
;
this
.
getList
(
!
this
.
form
.
id
&&
1
)
this
.
getList
(
!
this
.
form
.
id
&&
1
)
;
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
;
})
})
;
}
}
})
})
;
},
},
start
(
corpId
)
{
start
(
corpId
)
{
api
.
start
(
corpId
).
then
(({
rows
,
total
})
=>
{
api
.
start
(
corpId
).
then
(({
rows
,
total
})
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
"操作成功"
);
this
.
getList
()
this
.
getList
()
;
})
})
;
}
,
}
}
,
}
}
}
;
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -94,9 +94,7 @@ export default {
...
@@ -94,9 +94,7 @@ export default {
<el-form-item
label
>
<el-form-item
label
>
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:query']"
v-hasPermi=
"['enterpriseWechat:query']"
type=
"cyan"
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"getList(1)"
@
click=
"getList(1)"
>
查询
</el-button
>
查询
</el-button
>
>
...
...
linkwe-ui/src/views/groupMessage/add.vue
View file @
bf57f92
...
@@ -377,8 +377,6 @@ export default {
...
@@ -377,8 +377,6 @@ export default {
border-radius
:
8px
;
border-radius
:
8px
;
padding
:
10px
;
padding
:
10px
;
}
}
.select
{
}
}
}
.input-wrap
{
.input-wrap
{
width
:
240px
;
width
:
240px
;
...
...
linkwe-ui/src/views/groupMessage/record.vue
View file @
bf57f92
<
script
>
<
script
>
import
{
getList
}
from
'@/api/groupMessage'
import
{
getList
}
from
"@/api/groupMessage"
;
export
default
{
export
default
{
name
:
'Operlog'
,
name
:
"Operlog"
,
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
@@ -22,75 +22,75 @@ export default {
...
@@ -22,75 +22,75 @@ export default {
content
:
undefined
,
content
:
undefined
,
pushType
:
undefined
,
pushType
:
undefined
,
beginTime
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
,
endTime
:
undefined
},
},
pushType
:
{
pushType
:
{
0
:
'发给客户'
,
0
:
"发给客户"
,
1
:
'发给客户群'
,
1
:
"发给客户群"
},
},
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
// 选当前时间之前的时间
return
time
.
getTime
()
>
Date
.
now
();
// 选当前时间之前的时间
},
}
},
}
}
};
},
},
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
;
},
},
methods
:
{
methods
:
{
getList
(
page
)
{
getList
(
page
)
{
if
(
this
.
dateRange
[
0
])
{
if
(
this
.
dateRange
[
0
])
{
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
this
.
query
.
beginTime
=
this
.
dateRange
[
0
]
;
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
this
.
query
.
endTime
=
this
.
dateRange
[
1
]
;
}
else
{
}
else
{
this
.
query
.
beginTime
=
''
this
.
query
.
beginTime
=
""
;
this
.
query
.
endTime
=
''
this
.
query
.
endTime
=
""
;
}
}
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
;
this
.
loading
=
true
this
.
loading
=
true
;
getList
(
this
.
query
)
getList
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
list
=
rows
;
this
.
total
=
+
total
this
.
total
=
+
total
;
this
.
loading
=
false
this
.
loading
=
false
;
this
.
ids
=
[]
this
.
ids
=
[]
;
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
;
})
})
;
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
dateRange
=
[]
this
.
dateRange
=
[]
;
this
.
resetForm
(
'queryForm'
)
this
.
resetForm
(
"queryForm"
);
this
.
getList
(
1
)
this
.
getList
(
1
)
;
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
(
item
)
=>
item
.
id
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
);
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
operIds
=
row
.
operId
||
this
.
ids
const
operIds
=
row
.
operId
||
this
.
ids
;
this
.
$confirm
(
this
.
$confirm
(
'是否确认删除日志编号为"'
+
operIds
+
'"的数据项?'
,
'是否确认删除日志编号为"'
+
operIds
+
'"的数据项?'
,
'警告'
,
"警告"
,
{
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
"取消"
,
type
:
'warning'
,
type
:
"warning"
}
}
)
)
.
then
(
function
()
{})
.
then
(
function
()
{})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
getList
()
this
.
getList
()
;
this
.
msgSuccess
(
'删除成功'
)
this
.
msgSuccess
(
"删除成功"
);
})
})
.
catch
(
function
()
{})
.
catch
(
function
()
{})
;
}
,
}
}
,
}
}
}
;
</
script
>
</
script
>
<
template
>
<
template
>
<div>
<div>
...
@@ -139,10 +139,8 @@ export default {
...
@@ -139,10 +139,8 @@ export default {
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
" "
>
<el-form-item
label=
" "
>
<el-button
type=
"cyan"
icon=
"el-icon-search"
@
click=
"getList(1)"
<el-button
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
>
查询
</el-button
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -158,7 +156,7 @@ export default {
...
@@ -158,7 +156,7 @@ export default {
{{
pushType
[
scope
.
row
.
pushType
]
}}
{{
pushType
[
scope
.
row
.
pushType
]
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"
businessType
"
/>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"
sender
"
/>
<el-table-column
<el-table-column
label=
"创建时间"
label=
"创建时间"
align=
"center"
align=
"center"
...
@@ -167,9 +165,6 @@ export default {
...
@@ -167,9 +165,6 @@ export default {
>
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"发送情况"
align=
"center"
prop=
"sendInfo"
>
<el-table-column
label=
"发送情况"
align=
"center"
prop=
"sendInfo"
>
<
template
slot-scope=
"scope"
>
{{
pushType
[
scope
.
row
.
sendInfo
]
}}
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
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