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