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
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
603 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 @@
...
@@ -5897,9 +5897,9 @@
}
}
},
},
"glsx-components"
:
{
"glsx-components"
:
{
"version"
:
"1.0.
6
"
,
"version"
:
"1.0.
9
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.0.
6
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.0.
9
.tgz"
,
"integrity"
:
"sha512-
wzgh338Ucq0XkE1CA2jym+TuLHWnLv+ZnXj3zzAgZYlEDzffOlntEYlT4jsBrMOGxX20iHDtTrXe2G0a9GPSyA
=="
,
"integrity"
:
"sha512-
mDSQuZM9m4yJoUBqEcZ7Ir9lzo7im1Ph2O1qDzHXLVTsJX04+H9aHnB1aV+YGdHbbYRXbsxwPIk+NVgxo+A2lg
=="
,
"requires"
:
{
"requires"
:
{
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
"element-ui"
:
"^2.15.6"
,
...
@@ -5908,9 +5908,9 @@
...
@@ -5908,9 +5908,9 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"core-js"
:
{
"core-js"
:
{
"version"
:
"3.1
8.3
"
,
"version"
:
"3.1
9.0
"
,
"resolved"
:
"https://registry.npmjs.org/core-js/-/core-js-3.1
8.3
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/core-js/-/core-js-3.1
9.0
.tgz"
,
"integrity"
:
"sha512-
tReEhtMReZaPFVw7dajMx0vlsz3oOb8ajgPoHVYGxr8ErnZ6PcYEvvmjGmXlfpnxpkYSdOQttjB+MvVbCGfvLw
=="
"integrity"
:
"sha512-
L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg
=="
},
},
"element-ui"
:
{
"element-ui"
:
{
"version"
:
"2.15.6"
,
"version"
:
"2.15.6"
,
...
...
package.json
View file @
d7ff8cc
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.0.
6
"
,
"glsx-components"
:
"^1.0.
9
"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/assets/css/public.scss
View file @
d7ff8cc
...
@@ -11,7 +11,15 @@
...
@@ -11,7 +11,15 @@
}
}
.live-room
.table-btns
.el-button
{
.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
;
padding
:
0
;
border
:
0
;
}
}
.live-room
.img-60
{
.live-room
.img-60
{
...
...
src/components/glsx-combi-form/index.vue
View file @
d7ff8cc
...
@@ -262,11 +262,11 @@ export default {
...
@@ -262,11 +262,11 @@ export default {
/* .glsx-combi-form .el-form-item {
/* .glsx-combi-form .el-form-item {
width: 65%;
width: 65%;
} */
} */
.glsx-combi-form
.no-label.el-form-item--
mini
.el-form-item__content
,
.glsx-combi-form
.no-label.el-form-item--
small
.el-form-item__content
,
.el-form-item--
mini
.el-form-item__label
{
.el-form-item--
small
.el-form-item__label
{
width
:
100%
;
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);
width: calc(100% - 85px);
} */
} */
.glsx-combi-form
.el-col
{
.glsx-combi-form
.el-col
{
...
...
src/components/glsx-table/index.vue
0 → 100644
View file @
d7ff8cc
<
template
>
<div
class=
"glsx-table"
>
<el-scrollbar
:native=
"false"
wrapStyle=
""
wrapClass=
""
viewClass=
""
viewStyle=
""
noresize=
"false"
tag=
"section"
>
<el-table
id=
"initTable"
:ref=
"tableParams.mutiSelectName + 'MutiTable' || 'MutiTable'"
:data=
"getListApi ? data : tableData"
:row-key=
"tableParams.mutiSelectUniqueKey || ''"
v-loading=
"loading"
:height=
"tableHeightValues"
:border=
"border"
:tableId=
"tableId"
:highlight-current-row=
"true"
:stripe=
"true"
@
sort-change=
"sortChange"
@
selection-change=
"handleSelect"
:size=
"size"
:header-cell-style=
"headerStyle"
>
<el-table-column
v-if=
"tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
type=
"selection"
width=
"55"
:selectable=
"checkSelectable"
:reserve-selection=
"true"
></el-table-column>
<el-table-column
v-if=
"hasNum"
align=
"center"
width=
"60px"
label=
"序号"
type=
"index"
:index=
"
(index) =>
index +
(page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] +
1
"
></el-table-column>
<el-table-column
v-for=
"(item, index) in tableColumns"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:align=
"item.align || 'center'"
:sortable=
"item.sortable"
>
<template
slot-scope=
"scope"
>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"scope.row"
:prop=
"item.prop"
:width=
"item.width"
></slot>
<template
v-else-if=
"item.formatter"
>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="item.formatter(scope.row)"
v-text="item.formatter(scope.row)"
>
</span>
</
template
>
<
template
v-else-if=
"getListApi"
>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="scope.row[item.prop]"
v-text="scope.row[item.prop]"
>
</span>
</
template
>
<
template
v-else
>
<span
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }"
:title="tableData[scope.$index][item.prop]"
v-text="tableData[scope.$index][item.prop]"
>
</span>
</
template
>
<
template
v-if=
"item.addSymbol"
>
<span
v-text=
"item.addSymbol"
></span>
</
template
>
</template>
</el-table-column>
<el-table-column
v-if=
"tableParams.tableOption"
label=
"操作"
:align=
"tableParams.tableOption.align || 'center'"
:width=
"tableParams.tableOption.width || '200'"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<slot
name=
"auth-button"
:scope=
"scope.row"
></slot>
</
template
>
</el-table-column>
<
template
slot=
"empty"
class=
"emptyBg"
>
<img
class=
"noDataImg"
:src=
"noDataImg"
v-if=
"noDataImg"
alt=
""
/>
<div>
{{
noDataText
}}
</div>
<slot
name=
"additionalContent"
></slot>
</
template
>
</el-table>
</el-scrollbar>
<el-pagination
v-if=
"hasPage"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page[this.pageConf.pageNum]"
:page-sizes=
"[10, 20, 30, 40]"
:page-size=
"page[this.pageConf.pageSize]"
:total=
"getListApi ? total : tableTotal"
:layout=
"layout"
></el-pagination>
</div>
</template>
<
script
>
import
{
Table
,
TableColumn
,
Pagination
,
Scrollbar
}
from
"element-ui"
;
export
default
{
name
:
"GLTable"
,
components
:
{
[
Table
.
name
]:
Table
,
[
TableColumn
.
name
]:
TableColumn
,
[
Pagination
.
name
]:
Pagination
,
[
Scrollbar
.
name
]:
Scrollbar
},
props
:
{
size
:
{
type
:
String
,
default
:
"medium"
,
},
height
:
{
type
:
String
,
default
:
""
,
},
// maxHeight:{
// type:String,
// default:'3000'
// },
noDataImg
:
{
type
:
String
,
default
:
""
,
},
noDataText
:
{
type
:
String
,
default
:
"暂无数据"
,
},
border
:
{
type
:
Boolean
,
default
:
false
,
},
headerStyle
:
{
type
:
Object
,
default
:
()
=>
{},
},
//表格需要多传入一个id的情况
tableId
:
{
type
:
String
,
default
:
""
,
},
// 搜索条件
searchForm
:
{
type
:
Object
,
default
:
()
=>
{},
},
// 是否定制表头
isCustomHead
:
{
type
:
Boolean
,
default
:
false
,
},
// 表头展示
customHeadShowList
:
{
type
:
Array
,
default
:
()
=>
[],
},
// 表格数据-外部传入
tableData
:
{
type
:
Array
,
default
:
()
=>
[],
},
tableTotal
:
{
type
:
Number
,
default
:
0
,
},
// 获取列表接口
getListApi
:
{
type
:
Function
,
default
:
null
,
},
// 搜索前操作
beforeSearchFn
:
{
type
:
Function
,
default
:
()
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
resolve
();
});
},
},
// 分页,默认有
hasPage
:
{
type
:
Boolean
,
default
:
true
,
},
pageConf
:
{
type
:
Object
,
default
:
()
=>
({
pageSize
:
"pageSize"
,
pageNum
:
"pageNum"
,
totalCount
:
"totalCount"
,
}),
},
// 分页组件配置
layout
:
{
type
:
String
,
default
:
"sizes,total,->,prev,pager,next,jumper"
,
},
// 序号,默认有
hasNum
:
{
type
:
Boolean
,
default
:
true
,
},
tableParams
:
{
type
:
Object
,
default
:
()
=>
{
return
{
// 多选-判断来自哪个页面
// mutiSelectName: {
// type: String,
// default: ''
// },
// 多选-唯一标识-行数据的key
// mutiSelectUniqueKey: {
// type: String,
// default: ''
// },
// 设置禁止选中的行数据
checkSelectKey
:
{
type
:
String
,
default
:
""
,
},
// 设置禁止选中的值
checkSelectVal
:
{
type
:
Array
,
default
:
()
=>
[],
},
// 后端返回列表参数名
listName
:
{
type
:
String
,
default
:
""
,
},
// 表格操作,默认没有
// tableOption: {
// type: Object,
// default: null
// },
// 表格栏
tableColumns
:
{
type
:
Array
,
default
:
()
=>
[],
},
};
},
},
},
data
()
{
return
{
loading
:
false
,
data
:
[],
// 页码
page
:
{},
total
:
10
,
// 多选数组
mutiSelectArr
:
{},
tableColumns
:
[],
showClass
:
false
,
tableHeightValues
:
null
,
};
},
watch
:
{
customHeadShowList
(
val
)
{
this
.
isCustomHead
&&
this
.
findShowHeadCol
();
},
// data: {
// immediate: true,
// handler(val) {
// this.showClass = val.length > 0 ? true : false
// },
// deep: true
// }
},
methods
:
{
findShowHeadCol
()
{
this
.
tableColumns
=
[];
this
.
tableParams
.
tableColumns
.
forEach
((
item
)
=>
{
let
isCustomCol
=
item
.
hasOwnProperty
(
"isCustomCol"
);
if
(
!
isCustomCol
||
(
isCustomCol
&&
this
.
customHeadShowList
.
includes
(
item
.
label
))
)
{
this
.
tableColumns
.
push
(
item
);
}
});
},
// 设置禁止选中的行数据
checkSelectable
(
row
)
{
if
(
this
.
tableParams
.
checkSelectKey
&&
this
.
tableParams
.
checkSelectVal
.
length
>
0
)
{
return
(
this
.
tableParams
.
checkSelectVal
.
indexOf
(
row
[
this
.
tableParams
.
checkSelectKey
]
)
==
-
1
);
}
else
{
return
true
;
}
},
// 排序
sortChange
({
column
,
prop
,
order
})
{
this
.
$emit
(
"sortChange"
,
{
column
,
prop
,
order
});
},
// 多选
handleSelect
(
val
)
{
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
val
;
this
.
$emit
(
"selectionTable"
,
val
);
},
// 清空多选
clearMutiSelect
()
{
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
[];
this
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
"MutiTable"
].
clearSelection
();
},
//设置表格高度
setTableHeightFun
(
navHeight
=
0
)
{
//navHeight 传值底部高度
var
baseNavEle
=
document
.
querySelector
(
".scrm-base-nav"
);
var
baseSubNavEle
=
document
.
querySelector
(
".scrm-base-sub-nav"
);
var
baseNavEleHeight
=
baseNavEle
?
baseNavEle
.
clientHeight
:
0
;
var
baseSubNavEleHeight
=
baseSubNavEle
?
baseSubNavEle
.
clientHeight
:
0
;
let
paginationHeight
;
if
(
document
.
querySelector
(
".el-pagination"
))
{
paginationHeight
=
document
.
querySelector
(
".el-pagination"
).
clientHeight
+
20
;
}
else
{
paginationHeight
=
0
;
}
let
offsettop
=
document
.
getElementById
(
"initTable"
).
offsetTop
;
let
clientHeight
=
document
.
documentElement
.
clientHeight
;
// document.getElementById('initTable').style.height = clientHeight - offsettop - paginationHeight - navHeight + 'px'
// document.querySelector('.el-table__empty-block').style.height=(clientHeight - offsettop - paginationHeight - navHeight)+'px';
this
.
tableHeightValues
=
clientHeight
-
offsettop
-
paginationHeight
-
baseNavEleHeight
-
baseSubNavEleHeight
-
10
-
30
-
20
+
"px"
;
},
refreshTable
(
isResetPageNum
=
true
,
isClearMuti
=
true
)
{
this
.
beforeSearchFn
().
then
((
res
)
=>
{
// 清空多选
isClearMuti
&&
this
.
clearMutiSelect
();
this
.
loading
=
true
;
isResetPageNum
&&
(
this
.
page
[
this
.
pageConf
.
pageNum
]
=
1
);
var
params
=
{
...
this
.
page
,
...
this
.
searchForm
,
};
if
(
this
.
tableId
)
{
params
.
id
=
this
.
tableId
;
}
this
.
getListApi
(
params
)
.
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
data
=
this
.
findVal
(
res
,
this
.
tableParams
.
listName
);
this
.
total
=
this
.
findVal
(
res
,
this
.
pageConf
.
totalCount
);
this
.
loading
=
false
;
if
(
this
.
data
.
length
)
{
this
.
$emit
(
"setTableFinishFun"
,
this
.
data
);
//表格请求到数据
}
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
});
},
// 找返回值
findVal
(
res
,
rankStr
)
{
var
rankList
=
rankStr
.
split
(
"."
);
if
(
!
rankStr
)
{
return
res
;
}
return
this
.
findVal
(
res
[
rankList
[
0
]],
rankList
.
splice
(
1
).
join
(
"."
));
},
// 每页条数
handleSizeChange
(
value
)
{
let
offsettop
=
document
.
getElementById
(
"initTable"
).
offsetTop
;
console
.
log
(
"表格距离顶部1"
,
offsettop
);
this
.
page
[
this
.
pageConf
.
pageSize
]
=
value
;
this
.
getListApi
?
this
.
refreshTable
(
false
,
false
)
:
this
.
$emit
(
"refreshTable"
,
this
.
page
);
},
// 页码
handleCurrentChange
(
value
)
{
this
.
page
[
this
.
pageConf
.
pageNum
]
=
value
;
this
.
getListApi
?
this
.
refreshTable
(
false
,
false
)
:
this
.
$emit
(
"refreshTable"
,
this
.
page
);
},
},
mounted
()
{
this
.
isCustomHead
?
this
.
findShowHeadCol
()
:
(
this
.
tableColumns
=
this
.
tableParams
.
tableColumns
);
this
.
page
=
{};
this
.
page
[
this
.
pageConf
.
pageSize
]
=
10
;
this
.
page
[
this
.
pageConf
.
pageNum
]
=
1
;
this
.
getListApi
&&
this
.
refreshTable
();
},
};
</
script
>
<
style
>
.a-click
{
cursor
:
pointer
;
}
.el-table
.cell
{
line-height
:
14px
;
}
.glsx-table
p
{
margin
:
10px
0
;
}
.glsx-table
.line-ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
/* -webkit-line-clamp: 2; */
-webkit-box-orient
:
vertical
;
}
.el-table-column--selection
.cell
{
padding-left
:
14px
!important
;
padding-right
:
14px
!important
;
}
.glsx-table
.emptyBg
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
height
:
100%
;
}
.el-table__body-wrapper
::-webkit-scrollbar
{
width
:
10px
;
height
:
10px
;
/* display: none; */
}
.el-table--scrollable-x
.el-table__body-wrapper
{
overflow
:
hidden
;
}
.glsx-table
.el-scrollbar
{
width
:
800px
;
}
.glsx-table
.el-scrollbar__bar.is-vertical
>
div
{
background-color
:
#575f7b
;
}
.glsx-table
.el-scrollbar__wrap
{
overflow-y
:
hidden
;
}
.glsx-table
.el-scrollbar__bar.is-vertical
>
div
{
/* background-color: transparent; */
}
.glsx-table
.base-container-right
.el-main-scroll
[
data-v-13877386
]
.el-scrollbar__thumb
{
height
:
6px
;
width
:
100%
;
background-color
:
rgba
(
144
,
147
,
153
,
0.1
);
}
/*正常情况下滑块的样式*/
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
background-color
:
rgba
(
0
,
0
,
0
,
0.05
);
border-radius
:
10px
;
box-shadow
:
inset
1px
1px
0
rgba
(
0
,
0
,
0
,
0.1
);
}
/*鼠标悬浮在该类指向的控件上时滑块的样式*/
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
/* background-color: rgba(0, 0, 0, 0.2); */
background
:
#e9e8ff
;
border-radius
:
10px
;
box-shadow
:
inset
1px
1px
0
rgba
(
0
,
0
,
0
,
0.1
);
}
/*鼠标悬浮在滑块上时滑块的样式*/
/* &::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.4);
box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
} */
/*正常时候的主干部分*/
.el-table__body-wrapper
::-webkit-scrollbar-track
{
border-radius
:
10px
;
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
);
background-color
:
white
;
}
/*鼠标悬浮在滚动条上的主干部分*/
/* .el-table__body-wrapper::-webkit-scrollbar-track:hover {
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.01);
} */
/* .hasTableContent .el-table__body{
height: 100%;
} */
/* .hasTableContent .el-table__body-wrapper{
height: 100%;
} */
</
style
>
src/views/liveRoom/liveControl.vue
View file @
d7ff8cc
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<span
slot=
"coverImgUrl"
slot-scope=
"scope"
>
<span
slot=
"coverImgUrl"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.coverImgUrl"
/>
<img
class=
"img-60"
:src=
"scope.scope.coverImgUrl"
/>
</span>
</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=
"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=
"handleUpOrDown(scope.scope)"
>
{{
scope
.
scope
.
onSale
==
'1'
?
'下架'
:
'上架'
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container
edit-container
"
>
<div
class=
"box"
>
<div
class=
"box"
>
<div
class=
"content"
>
<div
class=
"content"
>
<p
class=
"edit-title"
>
直播设置
</p>
<p
class=
"edit-title"
>
直播设置
</p>
...
@@ -112,6 +112,9 @@
...
@@ -112,6 +112,9 @@
</div>
</div>
</div>
</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"
>
<select-muti-pro-dialog
v-if=
"isMutiSelectVisible"
:isMutiSelectVisible=
"isMutiSelectVisible"
:searchForm=
"searchWaitForm"
:getListApi=
"getWaitImportListApi"
:selectedProList=
"selectedProList"
@
handleMutiSelectConfirm=
"handleMutiSelectConfirm"
@
handleMutiSelectClose=
"handleMutiSelectClose"
>
<!--
<template
slot=
"search"
>
<!--
<template
slot=
"search"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
...
@@ -141,6 +144,7 @@ export default {
...
@@ -141,6 +144,7 @@ export default {
size
:
'small'
,
size
:
'small'
,
countDown
:
0
,
countDown
:
0
,
timer
:
null
,
timer
:
null
,
isFirst
:
true
,
editForm
:
{},
editForm
:
{},
// 直播数据 - 表格
// 直播数据 - 表格
liveDataTable
:
[],
liveDataTable
:
[],
...
@@ -149,7 +153,7 @@ export default {
...
@@ -149,7 +153,7 @@ export default {
{
{
label
:
'商品名称'
,
label
:
'商品名称'
,
prop
:
'goodsName'
,
prop
:
'goodsName'
,
line
:
1
line
:
2
},
},
{
{
label
:
'商品图片'
,
label
:
'商品图片'
,
...
@@ -169,7 +173,7 @@ export default {
...
@@ -169,7 +173,7 @@ export default {
{
{
label
:
'来源门店'
,
label
:
'来源门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
line
:
1
line
:
2
}
}
]
]
},
},
...
@@ -192,17 +196,17 @@ export default {
...
@@ -192,17 +196,17 @@ export default {
{
{
label
:
'商品图片'
,
label
:
'商品图片'
,
prop
:
'coverImgUrl'
,
prop
:
'coverImgUrl'
,
line
:
1
,
addHtml
:
'coverImgUrl'
addHtml
:
'coverImgUrl'
},
},
{
{
label
:
'商品标题'
,
label
:
'商品标题'
,
prop
:
'name'
,
prop
:
'name'
,
line
:
1
line
:
2
},
},
{
{
label
:
'商品价格'
,
label
:
'商品价格'
,
prop
:
'price'
,
prop
:
'price'
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
price2
&&
cellValue
.
price1
!=
cellValue
.
price2
?
(
cellValue
.
price1
/
100
).
toFixed
(
2
)
+
'-'
+
(
cellValue
.
price2
/
100
).
toFixed
(
2
)
:
(
cellValue
.
price1
/
100
).
toFixed
(
2
)
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 {
...
@@ -210,6 +214,7 @@ export default {
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'onSale'
,
prop
:
'onSale'
,
width
:
'80'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
{
return
{
0
:
'下架'
,
0
:
'下架'
,
...
@@ -219,19 +224,18 @@ export default {
...
@@ -219,19 +224,18 @@ export default {
},
},
{
{
label
:
'点击次数'
,
label
:
'点击次数'
,
prop
:
'clickNumber'
prop
:
'clickNumber'
,
line
:
1
},
},
{
{
label
:
'点击人数'
,
label
:
'点击人数'
,
prop
:
'clickUserNumber'
prop
:
'clickUserNumber'
,
line
:
1
},
},
// {
// label: '点赞次数',
// prop: ''
// },
{
{
label
:
'来源门店'
,
label
:
'来源门店'
,
prop
:
'merchantName'
prop
:
'merchantName'
,
line
:
2
}
}
]
]
}
}
...
@@ -261,6 +265,7 @@ export default {
...
@@ -261,6 +265,7 @@ export default {
getControlInfoApi
({
id
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
getControlInfoApi
({
id
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
editForm
=
res
this
.
editForm
=
res
this
.
liveDataTable
=
res
.
liveStatisticsDTOList
this
.
liveDataTable
=
res
.
liveStatisticsDTOList
this
.
isFirst
=
true
console
.
log
(
this
.
editForm
)
console
.
log
(
this
.
editForm
)
this
.
countDownTime
()
this
.
countDownTime
()
})
})
...
@@ -279,6 +284,7 @@ export default {
...
@@ -279,6 +284,7 @@ export default {
this
.
handleConfigSearch
()
this
.
handleConfigSearch
()
},
},
countDownTime
()
{
countDownTime
()
{
this
.
isFirst
?
(
this
.
isFirst
=
false
)
:
(
this
.
editForm
.
systemTimestamp
=
this
.
editForm
.
systemTimestamp
+
1
)
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
if
(
new
Date
()
<
new
Date
(
this
.
editForm
.
startTime
))
{
if
(
new
Date
()
<
new
Date
(
this
.
editForm
.
startTime
))
{
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
...
@@ -301,12 +307,12 @@ export default {
...
@@ -301,12 +307,12 @@ export default {
}
}
},
},
//将0-9的数字前面加上0,例1变为01
//将0-9的数字前面加上0,例1变为01
checkTime
(
i
)
{
//
checkTime(i) {
if
(
i
<
10
)
{
//
if (i < 10) {
i
=
'0'
+
i
//
i = '0' + i
}
//
}
return
i
//
return i
},
//
},
handlePush
(
id
)
{
handlePush
(
id
)
{
if
(
!
this
.
targetId
)
{
if
(
!
this
.
targetId
)
{
this
.
targetId
=
id
this
.
targetId
=
id
...
@@ -375,7 +381,13 @@ export default {
...
@@ -375,7 +381,13 @@ export default {
if
(
res
.
code
!=
'0'
)
{
if
(
res
.
code
!=
'0'
)
{
this
.
editForm
.
closeReplay
=
val
?
0
:
1
this
.
editForm
.
closeReplay
=
val
?
0
:
1
}
}
})}
})
},
handleBack
()
{
this
.
$router
.
push
({
path
:
'/liveRoom/liveRoomList'
})
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/liveRoom/liveRoomList.vue
View file @
d7ff8cc
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
// import glsxTable from '@/components/glsx-table'
import
{
getLiveRoomListApi
}
from
'@/api/modules/liveRoom'
import
{
getLiveRoomListApi
}
from
'@/api/modules/liveRoom'
import
{
liveStatusList
}
from
'@/common/constant'
import
{
liveStatusList
}
from
'@/common/constant'
export
default
{
export
default
{
...
@@ -132,6 +133,7 @@ export default {
...
@@ -132,6 +133,7 @@ export default {
components
:
{
components
:
{
glsxDialog
glsxDialog
// glsxTable
},
},
mounted
()
{
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