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 d7ff8ccb
authored
Oct 27, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式
1 parent
878988f8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
30 deletions
package-lock.json
package.json
src/assets/css/public.scss
src/components/glsx-combi-form/index.vue
src/components/glsx-table/index.vue
src/views/liveRoom/liveControl.vue
src/views/liveRoom/liveRoomList.vue
package-lock.json
View file @
d7ff8cc
...
...
@@ -5897,9 +5897,9 @@
}
},
"glsx-components"
:
{
"version"
:
"1.0.
6
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.0.
6
.tgz"
,
"integrity"
:
"sha512-
wzgh338Ucq0XkE1CA2jym+TuLHWnLv+ZnXj3zzAgZYlEDzffOlntEYlT4jsBrMOGxX20iHDtTrXe2G0a9GPSyA
=="
,
"version"
:
"1.0.
9
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.0.
9
.tgz"
,
"integrity"
:
"sha512-
mDSQuZM9m4yJoUBqEcZ7Ir9lzo7im1Ph2O1qDzHXLVTsJX04+H9aHnB1aV+YGdHbbYRXbsxwPIk+NVgxo+A2lg
=="
,
"requires"
:
{
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
...
...
@@ -5908,9 +5908,9 @@
},
"dependencies"
:
{
"core-js"
:
{
"version"
:
"3.1
8.3
"
,
"resolved"
:
"https://registry.npmjs.org/core-js/-/core-js-3.1
8.3
.tgz"
,
"integrity"
:
"sha512-
tReEhtMReZaPFVw7dajMx0vlsz3oOb8ajgPoHVYGxr8ErnZ6PcYEvvmjGmXlfpnxpkYSdOQttjB+MvVbCGfvLw
=="
"version"
:
"3.1
9.0
"
,
"resolved"
:
"https://registry.npmjs.org/core-js/-/core-js-3.1
9.0
.tgz"
,
"integrity"
:
"sha512-
L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg
=="
},
"element-ui"
:
{
"version"
:
"2.15.6"
,
...
...
package.json
View file @
d7ff8cc
...
...
@@ -12,7 +12,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.0.
6
"
,
"glsx-components"
:
"^1.0.
9
"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/assets/css/public.scss
View file @
d7ff8cc
...
...
@@ -11,7 +11,15 @@
}
.live-room
.table-btns
.el-button
{
padding
:
0
0
0
5px
;
margin-left
:
5px
;
border-left
:
1px
solid
#DCDFE6
;
border-radius
:
0
;
}
.live-room
.table-btns
.el-button
:first-child
{
padding
:
0
;
border
:
0
;
}
.live-room
.img-60
{
...
...
src/components/glsx-combi-form/index.vue
View file @
d7ff8cc
...
...
@@ -262,11 +262,11 @@ export default {
/* .glsx-combi-form .el-form-item {
width: 65%;
} */
.glsx-combi-form
.no-label.el-form-item--
mini
.el-form-item__content
,
.el-form-item--
mini
.el-form-item__label
{
.glsx-combi-form
.no-label.el-form-item--
small
.el-form-item__content
,
.el-form-item--
small
.el-form-item__label
{
width
:
100%
;
}
/* .glsx-combi-form .el-form-item--
mini
.el-form-item__content {
/* .glsx-combi-form .el-form-item--
small
.el-form-item__content {
width: calc(100% - 85px);
} */
.glsx-combi-form
.el-col
{
...
...
src/components/glsx-table/index.vue
0 → 100644
View file @
d7ff8cc
This diff is collapsed.
Click to expand it.
src/views/liveRoom/liveControl.vue
View file @
d7ff8cc
...
...
@@ -80,7 +80,7 @@
<span
slot=
"coverImgUrl"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.coverImgUrl"
/>
</span>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"handlePush(scope.scope.id)"
>
{{
targetId
===
scope
.
scope
.
id
?
'已推送'
+
pushCountDown
+
's'
:
'推送'
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleUpOrDown(scope.scope)"
>
{{
scope
.
scope
.
onSale
==
'1'
?
'下架'
:
'上架'
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
...
...
@@ -89,7 +89,7 @@
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container
edit-container
"
>
<div
class=
"box"
>
<div
class=
"content"
>
<p
class=
"edit-title"
>
直播设置
</p>
...
...
@@ -112,6 +112,9 @@
</div>
</div>
</div>
<div
class=
"footer"
>
<el-button
type=
"primary"
@
click=
"handleBack"
>
返回
</el-button>
</div>
<select-muti-pro-dialog
v-if=
"isMutiSelectVisible"
:isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchWaitForm"
:getListApi=
"getWaitImportListApi"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
>
<!--
<template
slot=
"search"
>
<div
class=
"flex"
>
...
...
@@ -141,6 +144,7 @@ export default {
size
:
'small'
,
countDown
:
0
,
timer
:
null
,
isFirst
:
true
,
editForm
:
{},
// 直播数据 - 表格
liveDataTable
:
[],
...
...
@@ -149,7 +153,7 @@ export default {
{
label
:
'商品名称'
,
prop
:
'goodsName'
,
line
:
1
line
:
2
},
{
label
:
'商品图片'
,
...
...
@@ -169,7 +173,7 @@ export default {
{
label
:
'来源门店'
,
prop
:
'merchantName'
,
line
:
1
line
:
2
}
]
},
...
...
@@ -192,17 +196,17 @@ export default {
{
label
:
'商品图片'
,
prop
:
'coverImgUrl'
,
line
:
1
,
addHtml
:
'coverImgUrl'
},
{
label
:
'商品标题'
,
prop
:
'name'
,
line
:
1
line
:
2
},
{
label
:
'商品价格'
,
prop
:
'price'
,
line
:
1
,
formatter
:
cellValue
=>
{
return
cellValue
.
price2
&&
cellValue
.
price1
!=
cellValue
.
price2
?
(
cellValue
.
price1
/
100
).
toFixed
(
2
)
+
'-'
+
(
cellValue
.
price2
/
100
).
toFixed
(
2
)
:
(
cellValue
.
price1
/
100
).
toFixed
(
2
)
}
...
...
@@ -210,6 +214,7 @@ export default {
{
label
:
'状态'
,
prop
:
'onSale'
,
width
:
'80'
,
formatter
:
cellValue
=>
{
return
{
0
:
'下架'
,
...
...
@@ -219,19 +224,18 @@ export default {
},
{
label
:
'点击次数'
,
prop
:
'clickNumber'
prop
:
'clickNumber'
,
line
:
1
},
{
label
:
'点击人数'
,
prop
:
'clickUserNumber'
prop
:
'clickUserNumber'
,
line
:
1
},
// {
// label: '点赞次数',
// prop: ''
// },
{
label
:
'来源门店'
,
prop
:
'merchantName'
prop
:
'merchantName'
,
line
:
2
}
]
}
...
...
@@ -261,6 +265,7 @@ export default {
getControlInfoApi
({
id
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
editForm
=
res
this
.
liveDataTable
=
res
.
liveStatisticsDTOList
this
.
isFirst
=
true
console
.
log
(
this
.
editForm
)
this
.
countDownTime
()
})
...
...
@@ -279,6 +284,7 @@ export default {
this
.
handleConfigSearch
()
},
countDownTime
()
{
this
.
isFirst
?
(
this
.
isFirst
=
false
)
:
(
this
.
editForm
.
systemTimestamp
=
this
.
editForm
.
systemTimestamp
+
1
)
clearInterval
(
this
.
timer
)
if
(
new
Date
()
<
new
Date
(
this
.
editForm
.
startTime
))
{
this
.
timer
=
setInterval
(()
=>
{
...
...
@@ -301,12 +307,12 @@ export default {
}
},
//将0-9的数字前面加上0,例1变为01
checkTime
(
i
)
{
if
(
i
<
10
)
{
i
=
'0'
+
i
}
return
i
},
//
checkTime(i) {
//
if (i < 10) {
//
i = '0' + i
//
}
//
return i
//
},
handlePush
(
id
)
{
if
(
!
this
.
targetId
)
{
this
.
targetId
=
id
...
...
@@ -375,7 +381,13 @@ export default {
if
(
res
.
code
!=
'0'
)
{
this
.
editForm
.
closeReplay
=
val
?
0
:
1
}
})}
})
},
handleBack
()
{
this
.
$router
.
push
({
path
:
'/liveRoom/liveRoomList'
})
}
}
}
</
script
>
...
...
src/views/liveRoom/liveRoomList.vue
View file @
d7ff8cc
...
...
@@ -65,6 +65,7 @@
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
// import glsxTable from '@/components/glsx-table'
import
{
getLiveRoomListApi
}
from
'@/api/modules/liveRoom'
import
{
liveStatusList
}
from
'@/common/constant'
export
default
{
...
...
@@ -132,6 +133,7 @@ export default {
components
:
{
glsxDialog
// glsxTable
},
mounted
()
{
...
...
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