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 5b7ec308
authored
Nov 12, 2020
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
c0ef56e9
2cfade2a
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
212 additions
and
142 deletions
linkwe-ui/src/components/Upload.vue
linkwe-ui/src/views/customerManage/customerDetail.vue
linkwe-ui/src/views/customerManage/group.vue
linkwe-ui/src/views/customerManage/groupDetail.vue
linkwe-ui/src/views/drainageCode/welcome/add.vue
linkwe-ui/src/views/drainageCode/welcome/components/Tab.vue
linkwe-ui/src/views/drainageCode/welcome/list.vue
linkwe-ui/src/views/material/applet.vue → linkwe-ui/src/views/material/_applet.vue
linkwe-ui/src/views/material/web.vue → linkwe-ui/src/views/material/_web.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-ui/src/components/Upload.vue
View file @
5b7ec30
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
{
upload
}
from
'@/api/material'
import
{
upload
}
from
'@/api/material'
import
Video
from
'video.js'
import
Video
from
'video.js'
export
default
{
export
default
{
name
:
'Upload'
,
components
:
{},
components
:
{},
props
:
{
props
:
{
fileUrl
:
{
fileUrl
:
{
...
@@ -134,7 +135,7 @@ export default {
...
@@ -134,7 +135,7 @@ export default {
controls
controls
webkit-playsinline=
"true"
webkit-playsinline=
"true"
playsinline=
"true"
playsinline=
"true"
autoplay=
"false"
:
autoplay=
"false"
preload=
"auto"
preload=
"auto"
>
>
<source
:src=
"fileUrl"
type=
"video/mp4"
/>
<source
:src=
"fileUrl"
type=
"video/mp4"
/>
...
...
linkwe-ui/src/views/customerManage/customerDetail.vue
View file @
5b7ec30
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
{
updateBirthday
,
getDetail
}
from
'@/api/customer'
import
{
updateBirthday
,
getDetail
}
from
'@/api/customer'
export
default
{
export
default
{
name
:
'CustomerDetail'
,
//
name: 'CustomerDetail',
data
()
{
data
()
{
return
{
return
{
datePickerVisible
:
false
,
datePickerVisible
:
false
,
...
...
linkwe-ui/src/views/customerManage/group.vue
View file @
5b7ec30
<
script
>
<
script
>
import
*
as
api
from
"@/api/customer/group"
;
import
*
as
api
from
'@/api/customer/group'
export
default
{
export
default
{
name
:
"CustomerGroup"
,
name
:
'Group'
,
data
()
{
data
()
{
return
{
return
{
// 查询参数
// 查询参数
...
@@ -25,52 +25,53 @@ export default {
...
@@ -25,52 +25,53 @@ export default {
total
:
0
,
total
:
0
,
// 表格数据
// 表格数据
list
:
[],
list
:
[],
}
;
}
},
},
created
()
{
created
()
{
this
.
getList
();
console
.
log
(
'caread'
,
1
)
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
]
}
}
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
})
;
})
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
dateRange
=
[]
;
this
.
dateRange
=
[]
this
.
$refs
[
"queryForm"
].
resetFields
();
this
.
$refs
[
'queryForm'
].
resetFields
()
},
},
sync
()
{
sync
()
{
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
"Loading"
,
text
:
'Loading'
,
spinner
:
"el-icon-loading"
,
spinner
:
'el-icon-loading'
,
background
:
"rgba(0, 0, 0, 0.7)"
,
background
:
'rgba(0, 0, 0, 0.7)'
,
})
;
})
api
.
sync
().
then
((
r
)
=>
{
api
.
sync
().
then
((
r
)
=>
{
loading
.
close
()
;
loading
.
close
()
this
.
msgSuccess
(
"后台开始同步数据,请稍后关注进度"
);
this
.
msgSuccess
(
'后台开始同步数据,请稍后关注进度'
)
})
;
})
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
;
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
multiple
=
!
selection
.
length
;
this
.
multiple
=
!
selection
.
length
},
},
/** 导出按钮操作 */
/** 导出按钮操作 */
handleExport
()
{
handleExport
()
{
...
@@ -89,17 +90,31 @@ export default {
...
@@ -89,17 +90,31 @@ export default {
// .catch(function () {});
// .catch(function () {});
},
},
},
},
}
;
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-form
:model=
"query"
ref=
"queryForm"
:inline=
"true"
class=
"top-search"
label-width=
"80px"
>
<el-form
:model=
"query"
ref=
"queryForm"
:inline=
"true"
class=
"top-search"
label-width=
"80px"
>
<el-form-item
label=
"群名"
>
<el-form-item
label=
"群名"
>
<el-input
v-model=
"query.groupName"
placeholder=
"请输入群名"
clearable
/>
<el-input
v-model=
"query.groupName"
placeholder=
"请输入群名"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"群主"
>
<el-form-item
label=
"群主"
>
<el-input
v-model=
"query.groupLeader"
placeholder=
"请输入群主"
clearable
/>
<el-input
v-model=
"query.groupLeader"
placeholder=
"请输入群主"
clearable
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"创建日期"
>
<el-form-item
label=
"创建日期"
>
<el-date-picker
<el-date-picker
...
@@ -112,13 +127,24 @@ export default {
...
@@ -112,13 +127,24 @@ export default {
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
" "
>
<el-form-item
label=
" "
>
<el-button
v-hasPermi=
"['customerManage:group:query']"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
<el-button
v-hasPermi=
"['customerManage:group:query']"
type=
"info"
@
click=
"resetQuery"
>
重置
</el-button>
v-hasPermi=
"['customerManage:group:query']"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button
>
<el-button
v-hasPermi=
"['customerManage:group:query']"
type=
"info"
@
click=
"resetQuery"
>
重置
</el-button
>
<el-button
<el-button
v-hasPermi=
"['customerManage:group:export']"
v-hasPermi=
"['customerManage:group:export']"
type=
"cyan"
type=
"cyan"
@
click=
"handleExport"
@
click=
"handleExport"
>
导出列表
</el-button>
>
导出列表
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -130,7 +156,7 @@ export default {
...
@@ -130,7 +156,7 @@ export default {
<!-- 最近更新:2020-08-25 06:35:00,同步
<!-- 最近更新:2020-08-25 06:35:00,同步
<span
class=
"num"
>
{{
total
}}
</span>
条信息 ,-->
<span
class=
"num"
>
{{
total
}}
</span>
条信息 ,-->
共
共
<span
class=
"num"
>
{{
total
}}
</span>
个客户群
<span
class=
"num"
>
{{
total
}}
</span>
个客户群
</span>
</span>
</div>
</div>
<div>
<div>
...
@@ -140,31 +166,51 @@ export default {
...
@@ -140,31 +166,51 @@ export default {
size=
"mini"
size=
"mini"
icon=
"el-icon-refresh"
icon=
"el-icon-refresh"
@
click=
"sync"
@
click=
"sync"
>
同步客户群
</el-button>
>
同步客户群
</el-button
>
</div>
</div>
</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=
"groupName"
/>
<el-table-column
label=
"群名"
align=
"center"
prop=
"groupName"
/>
<el-table-column
label=
"群人数"
align=
"center"
prop=
"memberNum"
/>
<el-table-column
label=
"群人数"
align=
"center"
prop=
"memberNum"
/>
<el-table-column
label=
"群主"
align=
"center"
prop=
"groupLeaderName"
/>
<el-table-column
label=
"群主"
align=
"center"
prop=
"groupLeaderName"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"180"
></el-table-column>
<el-table-column
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"180"
></el-table-column>
<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=
"$router.push(
{ path: '/customerManage/groupDetail', query: scope.row })"
@
click=
"
$router.push(
{
path: '/customerManage/groupDetail',
query: scope.row,
})
"
v-hasPermi="['customerManage:group:view']"
v-hasPermi="['customerManage:group:view']"
>查看详情
</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=
"query.pageNum"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
:limit
.
sync=
"query.pageSize"
...
...
linkwe-ui/src/views/customerManage/groupDetail.vue
View file @
5b7ec30
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
*
as
api
from
'@/api/customer/group'
import
*
as
api
from
'@/api/customer/group'
export
default
{
export
default
{
name
:
'GroupDetail'
,
//
name: 'GroupDetail',
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
...
linkwe-ui/src/views/drainageCode/welcome/add.vue
View file @
5b7ec30
<
script
>
<
script
>
import
*
as
api
from
"@/api/drainageCode/welcome"
;
import
{
edit
}
from
'@/api/drainageCode/welcome'
export
default
{
export
default
{
components
:
{},
components
:
{},
...
@@ -8,43 +8,43 @@ export default {
...
@@ -8,43 +8,43 @@ export default {
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
dialogVisible1
:
false
,
dialogVisible1
:
false
,
form
:
{
id
:
""
,
welcomeMsgTplType
:
""
,
welcomeMsg
:
""
},
form
:
{
id
:
''
,
welcomeMsgTplType
:
''
,
welcomeMsg
:
''
},
imageUrl
:
""
,
imageUrl
:
''
,
}
;
}
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
form
=
this
.
$route
.
query
;
this
.
form
=
this
.
$route
.
query
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getData
()
{},
getData
()
{},
submit
()
{
submit
()
{
api
.
edit
(
this
.
form
);
edit
(
this
.
form
)
},
},
insertName
()
{
insertName
()
{
this
.
form
.
welcomeMsg
+=
"#客户昵称#"
;
this
.
form
.
welcomeMsg
+=
'#客户昵称#'
},
},
uploadSuccess
(
res
,
file
)
{
uploadSuccess
(
res
,
file
)
{
debugger
;
debugger
this
.
imageUrl
=
URL
.
createObjectURL
(
file
.
raw
)
;
this
.
imageUrl
=
URL
.
createObjectURL
(
file
.
raw
)
},
},
beforeUpload
(
file
)
{
beforeUpload
(
file
)
{
debugger
;
debugger
const
isJPG
=
file
.
type
===
"image/jpeg"
;
const
isJPG
=
file
.
type
===
'image/jpeg'
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
;
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
if
(
!
isJPG
)
{
if
(
!
isJPG
)
{
this
.
$message
.
error
(
"上传头像图片只能是 JPG 格式!"
);
this
.
$message
.
error
(
'上传头像图片只能是 JPG 格式!'
)
}
}
if
(
!
isLt2M
)
{
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
"上传头像图片大小不能超过 2MB!"
);
this
.
$message
.
error
(
'上传头像图片大小不能超过 2MB!'
)
}
}
return
isJPG
&&
isLt2M
;
return
isJPG
&&
isLt2M
},
},
},
},
}
;
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -69,7 +69,8 @@ export default {
...
@@ -69,7 +69,8 @@ export default {
round
round
icon=
"el-icon-user-solid"
icon=
"el-icon-user-solid"
@
click=
"insertName()"
@
click=
"insertName()"
>
插入客户昵称
</el-button>
>
插入客户昵称
</el-button
>
</div>
</div>
<el-divider></el-divider>
<el-divider></el-divider>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
/>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
/>
...
@@ -98,13 +99,19 @@ export default {
...
@@ -98,13 +99,19 @@ export default {
<p>
小程序
</p>
<p>
小程序
</p>
</el-button>
-->
</el-button>
-->
</div>
</div>
<el-button
slot=
"reference"
icon=
"el-icon-plus"
size=
"mini"
>
添加图片/网页
</el-button>
<el-button
slot=
"reference"
icon=
"el-icon-plus"
size=
"mini"
>
添加图片/网页
</el-button
>
</el-popover>
</el-popover>
</el-card>
</el-card>
</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=
"submit"
>
保存
</el-button>
<el-button
type=
"cyan"
icon=
"el-icon-search"
size=
"mini"
@
click=
"submit"
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"$router.back()"
>
取消
</el-button>
>
保存
</el-button
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"$router.back()"
>
取消
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -113,20 +120,30 @@ export default {
...
@@ -113,20 +120,30 @@ export default {
<div
class=
"small"
>
塬微科技-企微
</div>
<div
class=
"small"
>
塬微科技-企微
</div>
<div
class=
"time"
>
凌晨2:20
</div>
<div
class=
"time"
>
凌晨2:20
</div>
<div
class=
"flex"
>
<div
class=
"flex"
>
<el-avatar
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
<el-avatar
<div
class=
"msg"
>
{{
form
.
welcomeMsg
}}
</div>
shape=
"square"
size=
"small"
:src=
"require('@/assets/image/profile.jpg')"
></el-avatar>
<div
class=
"msg"
>
{{
form
.
welcomeMsg
}}
</div>
</div>
</div>
</div>
</div>
<el-dialog
title=
"添加网页消息"
:visible
.
sync=
"dialogVisible"
width=
"width"
>
<el-dialog
title=
"添加网页消息"
:visible
.
sync=
"dialogVisible"
width=
"width"
>
<el-form
:model=
"form"
inline
>
<el-form
:model=
"form"
inline
>
<el-form-item
label=
"添加网页消息"
label-width=
"200"
>
<el-form-item
label=
"添加网页消息"
label-width=
"200"
>
<el-input
style=
"width: 400px;"
v-model=
"j"
placeholder=
"以http或https开头"
></el-input>
<el-input
style=
"width: 400px;"
v-model=
"j"
placeholder=
"以http或https开头"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<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>
...
@@ -216,7 +233,7 @@ export default {
...
@@ -216,7 +233,7 @@ export default {
white-space
:
pre-line
;
white-space
:
pre-line
;
margin-left
:
10px
;
margin-left
:
10px
;
&:before
{
&:before
{
content
:
" "
;
content
:
' '
;
display
:
block
;
display
:
block
;
position
:
absolute
;
position
:
absolute
;
left
:
-6px
;
left
:
-6px
;
...
...
linkwe-ui/src/views/drainageCode/welcome/components/Tab.vue
View file @
5b7ec30
<
script
>
<
script
>
import
*
as
api
from
"@/api/drainageCode/welcome"
;
import
*
as
api
from
'@/api/drainageCode/welcome'
export
default
{
export
default
{
name
:
"Tab"
,
name
:
'Tab'
,
components
:
{},
components
:
{},
props
:
{
props
:
{
// 添加标签显隐
type
:
{
type
:
{
type
:
Number
|
String
,
type
:
Number
|
String
,
default
:
"1"
,
default
:
'1'
,
},
},
},
},
data
()
{
data
()
{
...
@@ -23,61 +22,62 @@ export default {
...
@@ -23,61 +22,62 @@ export default {
total
:
0
,
total
:
0
,
list
:
[],
list
:
[],
wel
:
{
wel
:
{
1
:
"员工"
,
1
:
'员工'
,
2
:
"部门员工"
,
2
:
'部门员工'
,
3
:
"客户"
,
3
:
'客户'
,
},
},
}
;
}
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
query
.
welcomeMsgTplType
=
+
this
.
type
;
this
.
query
.
welcomeMsgTplType
=
+
this
.
type
this
.
getList
()
;
this
.
getList
()
},
},
mounted
()
{},
mounted
()
{},
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
this
.
$emit
(
'total'
,
[
this
.
type
,
this
.
total
])
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
})
;
})
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
remove
(
id
)
{
remove
(
id
)
{
// const operIds = id || this.ids + "";
// const operIds = id || this.ids + "";
this
.
$confirm
(
"是否确认删除吗?"
,
"警告"
,
{
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
type
:
"warning"
,
type
:
'warning'
,
})
})
.
then
(
function
()
{
.
then
(
function
()
{
return
api
.
remove
(
id
)
;
return
api
.
remove
(
id
)
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
getList
()
;
this
.
getList
()
this
.
msgSuccess
(
"删除成功"
);
this
.
msgSuccess
(
'删除成功'
)
})
;
})
},
},
goRoute
(
data
)
{
goRoute
(
data
)
{
let
query
=
{}
;
let
query
=
{}
if
(
data
)
{
if
(
data
)
{
let
{
id
,
welcomeMsgTplType
,
welcomeMsg
}
=
data
;
let
{
id
,
welcomeMsgTplType
,
welcomeMsg
}
=
data
query
=
{
id
,
welcomeMsgTplType
,
welcomeMsg
}
;
query
=
{
id
,
welcomeMsgTplType
,
welcomeMsg
}
}
else
{
}
else
{
query
.
welcomeMsgTplType
=
this
.
type
;
query
.
welcomeMsgTplType
=
this
.
type
}
}
this
.
$router
.
push
({
path
:
"welcomeAdd"
,
query
:
query
});
this
.
$router
.
push
({
path
:
'welcomeAdd'
,
query
:
query
})
},
},
},
},
}
;
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -90,7 +90,8 @@ export default {
...
@@ -90,7 +90,8 @@ export default {
size=
"mini"
size=
"mini"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
@
click=
"goRoute()"
@
click=
"goRoute()"
>
新建
{{
wel
[
type
]
}}
欢迎语
</el-button>
>
新建
{{
wel
[
type
]
}}
欢迎语
</el-button
>
<el-input
<el-input
placeholder=
"请输入内容"
placeholder=
"请输入内容"
prefix-icon=
"el-icon-search"
prefix-icon=
"el-icon-search"
...
@@ -105,20 +106,26 @@ export default {
...
@@ -105,20 +106,26 @@ export default {
<el-table-column
label=
"欢迎语"
align=
"center"
prop=
"welcomeMsg"
/>
<el-table-column
label=
"欢迎语"
align=
"center"
prop=
"welcomeMsg"
/>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<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"
@
click=
"goRoute(scope.row)"
@
click=
"goRoute(scope.row)"
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"
@
click=
"remove(scope.row.id)"
@
click=
"remove(scope.row.id)"
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>
...
...
linkwe-ui/src/views/drainageCode/welcome/list.vue
View file @
5b7ec30
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
></
style
>
</
style
>
<
template
>
<
template
>
<div>
<div>
<el-tabs
:value=
"active"
type=
"card"
>
<el-tabs
:value=
"active"
type=
"card"
>
<el-tab-pane
label=
"员工欢迎语(45)
"
name=
"1"
>
<el-tab-pane
:label=
"`员工欢迎语($
{total1})`
" name="1">
<Tab
ref=
"
staff"
type=
"1
"
></Tab>
<Tab
ref=
"
tab1"
type=
"1"
@
total=
"totalChange
"
></Tab>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"部门员工欢迎语(4)
"
name=
"2"
>
<el-tab-pane
:label=
"`部门员工欢迎语($
{total2})`
" name="2">
<Tab
ref=
"
department"
type=
"2
"
></Tab>
<Tab
ref=
"
tab2"
type=
"2"
@
total=
"totalChange
"
></Tab>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"客户群欢迎语(4)
"
name=
"3"
>
<el-tab-pane
:label=
"`客户群欢迎语($
{total3})`
" name="3">
<Tab
ref=
"
customer"
type=
"3
"
></Tab>
<Tab
ref=
"
tab3"
type=
"3"
@
total=
"totalChange
"
></Tab>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Tab
from
"./components/Tab"
;
import
Tab
from
'./components/Tab'
export
default
{
export
default
{
name
:
"Welcome"
,
name
:
'Welcome'
,
components
:
{
Tab
},
components
:
{
Tab
},
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
active
:
"1"
,
active
:
'1'
,
};
total1
:
0
,
total2
:
0
,
total3
:
0
,
}
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{},
created
()
{},
mounted
()
{},
mounted
()
{},
methods
:
{},
methods
:
{
};
totalChange
([
type
,
total
])
{
this
[
'total'
+
type
]
=
total
},
},
}
</
script
>
</
script
>
linkwe-ui/src/views/material/applet.vue
→
linkwe-ui/src/views/material/
_
applet.vue
View file @
5b7ec30
File moved
linkwe-ui/src/views/material/web.vue
→
linkwe-ui/src/views/material/
_
web.vue
View file @
5b7ec30
File moved
linkwe-ui/src/views/material/audio.vue
View file @
5b7ec30
...
@@ -2,19 +2,16 @@
...
@@ -2,19 +2,16 @@
import
MaPage
from
'@/views/material/components/MaPage'
import
MaPage
from
'@/views/material/components/MaPage'
export
default
{
export
default
{
name
:
'Audio'
,
components
:
{
MaPage
},
components
:
{
MaPage
},
data
()
{
data
()
{
return
{
return
{
list
:
[],
// 列表
ids
:
[],
// 选中数组
ids
:
[],
// 选中数组
}
}
},
},
watch
:
{},
watch
:
{},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
listChange
(
data
)
{
this
.
list
=
data
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
...
@@ -24,7 +21,7 @@ export default {
...
@@ -24,7 +21,7 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<MaPage
ref=
"page"
type=
"1"
@
listChange=
"listChange"
:selected=
"ids
"
>
<MaPage
ref=
"page"
type=
"1"
:selected=
"ids"
v-slot=
"
{ list }
">
<el-table
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
label=
"语音"
align=
"center"
prop=
"materialName"
/>
<el-table-column
label=
"语音"
align=
"center"
prop=
"materialName"
/>
...
...
linkwe-ui/src/views/material/components/MaPage.vue
View file @
5b7ec30
...
@@ -326,7 +326,7 @@ export default {
...
@@ -326,7 +326,7 @@ export default {
</div>
</div>
<div
v-loading=
"loading"
class=
"mt20"
>
<div
v-loading=
"loading"
class=
"mt20"
>
<slot></slot>
<slot
v-bind:list=
"list"
></slot>
</div>
</div>
<pagination
<pagination
...
...
linkwe-ui/src/views/material/file.vue
View file @
5b7ec30
<
script
>
<
script
>
import
MaPage
from
'@/views/material/components/MaPage'
import
MaPage
from
'@/views/material/components/MaPage'
export
default
{
export
default
{
name
:
'File'
,
components
:
{
MaPage
},
components
:
{
MaPage
},
data
()
{
data
()
{
return
{
return
{
list
:
[],
// 列表
ids
:
[],
// 选中数组
ids
:
[],
// 选中数组
}
}
},
},
watch
:
{},
watch
:
{},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
listChange
(
data
)
{
this
.
list
=
data
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
...
@@ -23,7 +21,7 @@ export default {
...
@@ -23,7 +21,7 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<MaPage
ref=
"page"
type=
"3"
@
listChange=
"listChange"
:selected=
"ids
"
>
<MaPage
ref=
"page"
type=
"3"
:selected=
"ids"
v-slot=
"
{ list }
">
<el-table
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
<el-table-column
...
...
linkwe-ui/src/views/material/image.vue
View file @
5b7ec30
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
import
MaPage
from
'@/views/material/components/MaPage'
import
MaPage
from
'@/views/material/components/MaPage'
export
default
{
export
default
{
name
:
'Image'
,
components
:
{
MaPage
},
components
:
{
MaPage
},
data
()
{
data
()
{
return
{
return
{
srcList
:
[],
srcList
:
[],
list
:
[],
// 列表
ids
:
[],
// 选中数组
ids
:
[],
// 选中数组
}
}
},
},
...
@@ -14,7 +14,6 @@ export default {
...
@@ -14,7 +14,6 @@ export default {
created
()
{},
created
()
{},
methods
:
{
methods
:
{
listChange
(
data
)
{
listChange
(
data
)
{
this
.
list
=
data
this
.
srcList
=
data
.
map
((
item
)
=>
item
.
materialUrl
)
this
.
srcList
=
data
.
map
((
item
)
=>
item
.
materialUrl
)
},
},
},
},
...
@@ -22,7 +21,13 @@ export default {
...
@@ -22,7 +21,13 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<MaPage
ref=
"page"
type=
"0"
@
listChange=
"listChange"
:selected=
"ids"
>
<MaPage
ref=
"page"
type=
"0"
@
listChange=
"listChange"
:selected=
"ids"
v-slot=
"
{ list }"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
<el-col
:span=
"6"
:span=
"6"
...
...
linkwe-ui/src/views/material/text.vue
View file @
5b7ec30
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
import
MaPage
from
'@/views/material/components/MaPage'
import
MaPage
from
'@/views/material/components/MaPage'
export
default
{
export
default
{
name
:
'Text'
,
components
:
{
MaPage
},
components
:
{
MaPage
},
data
()
{
data
()
{
return
{
return
{
list
:
[],
// 列表
ids
:
[],
// 选中数组
ids
:
[],
// 选中数组
}
}
},
},
...
@@ -13,9 +13,6 @@ export default {
...
@@ -13,9 +13,6 @@ export default {
computed
:
{},
computed
:
{},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
listChange
(
data
)
{
this
.
list
=
data
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
...
@@ -25,7 +22,7 @@ export default {
...
@@ -25,7 +22,7 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<MaPage
ref=
"page"
type=
"4"
@
listChange=
"listChange"
:selected=
"ids
"
>
<MaPage
ref=
"page"
type=
"4"
:selected=
"ids"
v-slot=
"
{ list }
">
<el-table
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
<el-table-column
...
...
linkwe-ui/src/views/material/video.vue
View file @
5b7ec30
...
@@ -3,27 +3,23 @@ import MaPage from '@/views/material/components/MaPage'
...
@@ -3,27 +3,23 @@ import MaPage from '@/views/material/components/MaPage'
import
Video
from
'video.js'
import
Video
from
'video.js'
export
default
{
export
default
{
name
:
'Video'
,
components
:
{
components
:
{
MaPage
,
MaPage
,
},
},
data
()
{
data
()
{
return
{
return
{
list
:
[],
// 列表
ids
:
[],
// 选中数组
ids
:
[],
// 选中数组
}
}
},
},
watch
:
{},
watch
:
{},
created
()
{},
created
()
{},
methods
:
{
methods
:
{},
listChange
(
data
)
{
this
.
list
=
data
},
},
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<MaPage
ref=
"page"
type=
"2"
@
listChange=
"listChange"
:selected=
"ids
"
>
<MaPage
ref=
"page"
type=
"2"
:selected=
"ids"
v-slot=
"
{ list }
">
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
<el-col
:span=
"6"
:span=
"6"
...
@@ -39,7 +35,7 @@ export default {
...
@@ -39,7 +35,7 @@ export default {
controls
controls
webkit-playsinline=
"true"
webkit-playsinline=
"true"
playsinline=
"true"
playsinline=
"true"
autoplay=
"false"
:
autoplay=
"false"
preload=
"auto"
preload=
"auto"
:poster=
"item.coverUrl"
:poster=
"item.coverUrl"
>
>
...
...
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