Commit 878988f8 by cwq0219

表格样式

1 parent 930c000f
......@@ -5,6 +5,15 @@
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
.live-room .el-table .cell {
line-height: 16px;
}
.live-room .table-btns .el-button {
padding: 0;
}
.live-room .img-60 {
width: 60px;
height: 60px;
......
......@@ -22,7 +22,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">
<span v-show="scope.scope.auditStatus != 1" >
<el-button type="text" @click="handleExamine(scope.scope)">提交审核</el-button>
<el-button type="text" @click="scope.scope.goodsGroupFlag == 'N' ? handleEdit(2, scope.scope) : handleEditGroup(2, scope.scope)">编辑</el-button>
......@@ -56,7 +56,8 @@ export default {
tableColumns: [
{
label: '商品标题',
prop: 'name'
prop: 'name',
line: 2
},
{
label: '直播间图片',
......@@ -66,6 +67,7 @@ export default {
{
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)
}
......@@ -73,13 +75,15 @@ export default {
{
label: '审核状态',
prop: 'auditStatus',
width: '80',
formatter: cellValue => {
return this.baseDataList.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName
}
},
{
label: '来源门店',
prop: 'merchantName'
prop: 'merchantName',
line: 2
}
]
},
......
......@@ -17,7 +17,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="handleEdit(scope.scope)">修改价格</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</span>
......@@ -62,7 +62,8 @@ export default {
tableColumns: [
{
label: '商品标题',
prop: 'name'
prop: 'name',
line: 2
},
{
label: '直播间图片',
......@@ -72,13 +73,15 @@ export default {
{
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)
}
},
{
label: '来源门店',
prop: 'merchantName'
prop: 'merchantName',
line: 2
}
]
},
......
......@@ -45,15 +45,18 @@ export default {
},
{
label: '昵称',
prop: 'nickName'
prop: 'nickName',
line: 2
},
{
label: '微信号',
prop: 'userName'
prop: 'userName',
line: 2
},
{
label: '所属角色',
prop: 'roleList',
line: 2,
formatter: cellValue => {
var txt = ''
cellValue.roleList.forEach((item, index) => {
......
......@@ -22,7 +22,7 @@
<span slot="shareImgUrl" slot-scope="scope">
<img class="img-60" :src="scope.scope.shareImgUrl" />
</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="handleDetail(scope.scope)">控制台</el-button>
<el-button type="text" @click="handleShare(scope.scope)">分享</el-button>
<el-button type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
......@@ -89,13 +89,15 @@ export default {
{
label: '最近开播',
prop: 'time',
width: '180',
formatter: cellValue => {
return cellValue.startTime + '-' + cellValue.endTime
}
},
{
label: '直播间名称',
prop: 'name'
prop: 'name',
line: 1
},
{
label: '房间号',
......@@ -103,7 +105,8 @@ export default {
},
{
label: '主播',
prop: 'anchorName'
prop: 'anchorName',
line: 1
},
{
label: '直播间图片',
......@@ -114,6 +117,7 @@ export default {
{
label: '直播状态',
prop: 'liveStatus',
width: '80',
formatter: cellValue => {
return this.baseDataList.liveStatusList.find(item => item.confId == cellValue.liveStatus).confName
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!