Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 930c000f
authored
Oct 27, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
直播间-控制台
1 parent
81dc9689
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
208 additions
and
7 deletions
src/api/modules/liveRoom.js
src/components/glsx-combi-form/index.vue
src/components/select-muti-pro/index.vue
src/router/routes.js
src/views/cmmodityLibrary/editProduct.vue
src/views/liveRoom/liveControl.vue
src/views/liveRoom/liveRoomList.vue
src/api/modules/liveRoom.js
View file @
930c000
...
...
@@ -33,4 +33,67 @@ const getLiveRoomInfoApi = params => {
})
}
export
{
getLiveRoomListApi
,
insertLiveRoomApi
,
getLiveRoomInfoApi
}
const
getControlInfoApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
get.control`
return
http
({
url
:
'rop-scrm-live/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getControlImportListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
get.import.goods`
return
http
({
url
:
'rop-scrm-live/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getWaitImportListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
get.wait.import.goods`
return
http
({
url
:
'rop-scrm-live/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
importGoodsApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
import.goods`
return
http
({
url
:
'rop-scrm-live/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
const
updateCommentApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
update.comment`
return
http
({
url
:
'rop-scrm-live/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
const
updateReplayApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
update.replay`
return
http
({
url
:
'rop-scrm-live/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
{
getLiveRoomListApi
,
insertLiveRoomApi
,
getLiveRoomInfoApi
,
getControlInfoApi
,
getControlImportListApi
,
getWaitImportListApi
,
importGoodsApi
,
updateCommentApi
,
updateReplayApi
}
src/components/glsx-combi-form/index.vue
View file @
930c000
<!-- 搜索 -->
<
template
>
<div
class=
"glsx-combi-form"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"
mini
"
class=
"glsx-combi-form-block"
>
<el-form
:ref=
"formRef"
:inline=
"true"
:model=
"formObj"
:label-width=
"labelWidth"
:rules=
"formRules"
size=
"
small
"
class=
"glsx-combi-form-block"
>
<template
v-for=
"(item, index) in formData"
>
<el-form-item
v-if=
"!item.isHide"
:key=
"index"
:class=
"
{ 'no-label': !item.label, isBlock: isBlock }" :label="item.label ? item.label + ':' : ''" :prop="item.name">
<span
v-if=
"!item.isHide && item.tips"
class=
"tips-block"
slot=
"label"
>
...
...
src/components/select-muti-pro/index.vue
0 → 100644
View file @
930c000
<!-- 选择商品弹窗 -->
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<div
class=
"flex"
>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form-item
label=
"商品名称:"
>
<el-input
:size=
"size"
v-model=
"searchForm.name"
placeholder=
"请输入商品名称"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
:size=
"size"
type=
"primary"
@
click=
"getList(true)"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
<GLTable
ref=
"mutiProRef"
:tableData=
"productList"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"coverImgUrl"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.coverImgUrl"
/>
</span>
</GLTable>
</glsx-dialog>
</
template
>
<
script
>
// import { getGoodsList } from '@/api/modules/common'
import
glsxDialog
from
'@/components/glsx-dialog'
export
default
{
name
:
'selectMutiProDialog'
,
data
()
{
return
{
size
:
'small'
,
// 表格组件
// getListApi: getGoodsList,
productList
:
[],
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数
tableParams
:
{
listName
:
'list'
,
// 行数据的key
mutiSelectUniqueKey
:
'id'
,
// 多选ref的名称
mutiSelectName
:
'list'
,
tableColumns
:
[
{
label
:
'商品名称'
,
prop
:
'name'
},
{
label
:
'缩略图'
,
prop
:
'coverImgUrl'
,
addHtml
:
'coverImgUrl'
},
{
label
:
'价格(元)'
,
prop
:
'price1'
,
formatter
:
cellValue
=>
{
return
cellValue
.
price2
&&
cellValue
.
price1
!=
cellValue
.
price2
?
(
cellValue
.
price1
/
100
).
toFixed
(
2
)
+
'-'
+
(
cellValue
.
price2
/
100
).
toFixed
(
2
)
:
(
cellValue
.
price1
/
100
).
toFixed
(
2
)
}
},
{
label
:
'来源门店'
,
prop
:
'merchantName'
}
]
}
}
},
props
:
{
isMutiSelectVisible
:
{
type
:
Boolean
,
default
:
false
},
selectedProList
:
{
type
:
Array
,
default
:
()
=>
[]
},
getListApi
:
{
type
:
Function
,
default
:
()
=>
{}
},
searchForm
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
components
:
{
glsxDialog
},
mounted
()
{
this
.
getList
(
true
)
},
methods
:
{
getList
(
isMounted
=
false
)
{
var
params
=
{
// goodsStatus: 1,
// goodsSource: 1,
...
this
.
searchForm
,
pageNum
:
isMounted
?
1
:
this
.
$refs
.
mutiProRef
.
page
.
pageNum
,
pageSize
:
isMounted
?
10
:
this
.
$refs
.
mutiProRef
.
page
.
pageSize
}
var
that
=
this
this
.
getListApi
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
productList
=
res
.
list
this
.
$refs
.
mutiProRef
.
tableTotal
=
res
.
total
this
.
recoverySelected
()
})
},
handleReset
()
{
this
.
searchForm
.
name
=
''
this
.
getList
()
},
recoverySelected
()
{
if
(
this
.
selectedProList
.
length
)
{
this
.
selectedProList
.
forEach
(
row
=>
{
this
.
$refs
.
mutiProRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
row
)
})
}
},
handleMutiSelectConfirm
()
{
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
console
.
log
(
selectedData
)
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
},
handleMutiSelectClose
()
{
this
.
$emit
(
'handleMutiSelectClose'
)
}
}
}
</
script
>
<
style
>
.muti-pro
.m-t-10
{
margin-top
:
10px
;
}
</
style
>
src/router/routes.js
View file @
930c000
...
...
@@ -49,7 +49,7 @@ const staticRoutes = Object.freeze([
},
{
name
:
'liveControl'
,
path
:
'/liveRoom/liveControl'
,
path
:
'/liveRoom/liveControl
/:id
'
,
component
:
resolve
=>
require
([
`@/views/liveRoom/liveControl.vue`
],
resolve
),
meta
:
{}
}
...
...
src/views/cmmodityLibrary/editProduct.vue
View file @
930c000
...
...
@@ -33,7 +33,6 @@
<
script
>
import
_
from
'lodash'
// import '@/assets/css/public.scss'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
selectSingleProDialog
from
'./selectSingleProDialog'
import
{
uploadImg
}
from
'@/api/modules/common'
...
...
src/views/liveRoom/liveControl.vue
View file @
930c000
This diff is collapsed.
Click to expand it.
src/views/liveRoom/liveRoomList.vue
View file @
930c000
...
...
@@ -149,9 +149,10 @@ export default {
handleDetail
(
row
)
{
this
.
$router
.
push
({
// name: 'liveControl',
path
:
'/liveroom/liveControl'
,
query
:
{
id
:
row
?
row
.
id
:
''
// path: '/liveRoom/liveControl',
name
:
'ServicesLiveRoomLiveControl'
,
params
:
{
id
:
row
.
id
}
})
},
...
...
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