Commit bf0c863e by 杨北旺

style:修改样式

1 parent 3bab88b8
...@@ -232,7 +232,7 @@ img { ...@@ -232,7 +232,7 @@ img {
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.tableBox{ .tableBox{
padding: 20px 20px 10px 20px; padding: 20px 0px 10px 20px;
border: 0; border: 0;
outline: 0; outline: 0;
font-size: 100%; font-size: 100%;
...@@ -267,9 +267,7 @@ img { ...@@ -267,9 +267,7 @@ img {
padding: 3px 10px; padding: 3px 10px;
width: 215px; width: 215px;
} }
.el-button+.el-button {
margin-left: 20px;
}
.el-dialog__body { .el-dialog__body {
padding: 0px 20px; padding: 0px 20px;
color: #606266; color: #606266;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
> >
<el-button <el-button
slot="reference" slot="reference"
icon="el-icon-warning" icon="el-icon-question"
circle circle
></el-button> ></el-button>
</el-popover> </el-popover>
......
...@@ -21,10 +21,18 @@ export default { ...@@ -21,10 +21,18 @@ export default {
minWidth: '200', minWidth: '200',
}, },
{ {
label: '权益图标\n(80*80,支持JPG、PNG、GIF', // label: '权益图标\n(80*80,支持JPG、PNG、GIF',
prop:'carImage', prop:'carImage',
minWidth: '200', minWidth: '200',
addHtml: 'carImage' addHtml: 'carImage',
renderHeader: h => {
return h('div', { class: 'table-header specHeader' }, [
h('span', '权益图标'),
h('table-tooltip', {
props: { content: '80*80,支持JPG、PNG、GIF' }
})
])
},
}, },
{ {
label: '服务提供方', label: '服务提供方',
......
...@@ -24,10 +24,18 @@ export default { ...@@ -24,10 +24,18 @@ export default {
minWidth: '200', minWidth: '200',
}, },
{ {
label: '权益图标\n(80*80,支持JPG、PNG、GIF)', // label: '权益图标\n(80*80,支持JPG、PNG、GIF)',
minWidth: '200', minWidth: '200',
prop:'goodsImage', prop:'goodsImage',
addHtml: 'goodsImage', addHtml: 'goodsImage',
renderHeader: h => {
return h('div', { class: 'table-header specHeader' }, [
h('span', '权益图标'),
h('table-tooltip', {
props: { content: '80*80,支持JPG、PNG、GIF' }
})
])
},
}, },
{ {
label: '品牌名称', label: '品牌名称',
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-tabs v-model="activeName" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="批次管理" name="first" class="contain" id="batch"> <el-tab-pane label="批次管理" name="first" class="contain" id="batch">
<GLButton fn="批量生成权益卡" type="primary" size="small" @click="dialogVisible = true">批量生成权益卡</GLButton> <GLButton fn="批量生成权益卡" type="primary" size="small" @click="dialogVisible = true">批量生成权益卡</GLButton>
<div style="height:16px"></div> <div style="height: 16px"></div>
<GLCombiForm :rowNumber="1" ref="managerRef" :formObj="batchListSearch" :formData="managerForm" @handleOk="selectCollectionTable('select')" @handleRest="selectCollectionTable('reset')"> <GLCombiForm :rowNumber="1" ref="managerRef" :formObj="batchListSearch" :formData="managerForm" @handleOk="selectCollectionTable('select')" @handleRest="selectCollectionTable('reset')">
<div slot="merchant"> <div slot="merchant">
<el-select v-model="batchListSearch.merchantName" size="small" clearable filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="remoteMethod" :loading="loading" class="formItem"> <el-select v-model="batchListSearch.merchantName" size="small" clearable filterable remote reserve-keyword placeholder="请输入关联门店" :remote-method="remoteMethod" :loading="loading" class="formItem">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</span> </span>
</GLTable> </GLTable>
<!-- 批次界面弹窗 --> <!-- 批次界面弹窗 -->
<GLDialog mode='big' bigTitle="权益卡信息" :visible.sync="batchdetailsVisible" :before-close="detailClose"> <GLDialog mode="big" bigTitle="权益卡信息" :visible.sync="batchdetailsVisible" :before-close="detailClose">
<el-form :inline="true" :model="cardsInformationForm" class="demo-form-inline detailFont" label-width="90px"> <el-form :inline="true" :model="cardsInformationForm" class="demo-form-inline detailFont" label-width="90px">
<el-row> <el-row>
<el-form-item label="门店:" class="detailItem"> <el-form-item label="门店:" class="detailItem">
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</span> </span>
</GLDialog> </GLDialog>
<!-- 批量生成权益卡弹窗 --> <!-- 批量生成权益卡弹窗 -->
<GLDialog mode='mid' title="批量生成权益卡" :visible.sync="dialogVisible" :before-close="handleClose"> <GLDialog mode="mid" title="批量生成权益卡" :visible.sync="dialogVisible" :before-close="handleClose">
<el-form :inline="true" :model="generateRightCardsForm" :rules="rules" ref="ruleForm" label-width="90px" class="addCardsForm"> <el-form :inline="true" :model="generateRightCardsForm" :rules="rules" ref="ruleForm" label-width="90px" class="addCardsForm">
<div class="form"> <div class="form">
<el-row> <el-row>
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
batchTableParams: { batchTableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true, // tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '批次', label: '批次',
...@@ -219,13 +219,11 @@ export default { ...@@ -219,13 +219,11 @@ export default {
label: '生成数量', label: '生成数量',
prop: 'num', prop: 'num',
width: '120' width: '120'
// tagLabel: true
}, },
{ {
label: '激活数量', label: '激活数量',
prop: 'recipientCount', prop: 'recipientCount',
width: '150', width: '150',
// minWidth: '200'
formatter: cellValue => { formatter: cellValue => {
if (cellValue.recipientCount) { if (cellValue.recipientCount) {
return cellValue.recipientCount return cellValue.recipientCount
...@@ -241,20 +239,16 @@ export default { ...@@ -241,20 +239,16 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.createdDate) return this.date_format(cellValue.createdDate)
} }
// formatter: (cellValue) => {
// return {
// 0: '进行中',
// 1: '未完成',
// 2: '已过期',
// 3: '线下关闭',
// 4: '线上关闭'
// }[cellValue.status]
// }
}, },
{ {
label: '备注', label: '备注',
prop: 'remarks' prop: 'remarks'
// minWidth: '200' },
{
label: '操作',
width: 70,
fixed: 'right',
addHtml: 'auth-button'
} }
] ]
}, },
...@@ -316,7 +310,7 @@ export default { ...@@ -316,7 +310,7 @@ export default {
name: 'colletionDate', name: 'colletionDate',
type: 'datePicker', type: 'datePicker',
valueFormat: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd',
isClear:true isClear: true
}, },
{ {
label: '门店', label: '门店',
......
...@@ -12,9 +12,10 @@ ...@@ -12,9 +12,10 @@
<div class="table_wrap"> <div class="table_wrap">
<GLTable ref="table" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi"> <GLTable ref="table" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="getListApi">
<div slot="table-btns" slot-scope="scope"> <div slot="table-btns" slot-scope="scope">
<GLButton fn="编辑商品" type="text" @click="jump(scope.scope)">编辑</GLButton> <GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
<!-- <GLButton fn="编辑商品" type="text" @click="jump(scope.scope)">编辑</GLButton>
<GLButton fn="复制商品" type="text" @click="copy(scope.scope)">复制</GLButton> <GLButton fn="复制商品" type="text" @click="copy(scope.scope)">复制</GLButton>
<el-button type="text" :disabled="!scope.scope.groupStatus || scope.scope.status != 1" @click="toCreateLine(scope.scope)">生成商品短链</el-button> <el-button type="text" :disabled="!scope.scope.groupStatus || scope.scope.status != 1" @click="toCreateLine(scope.scope)">生成商品短链</el-button> -->
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -124,7 +125,49 @@ export default { ...@@ -124,7 +125,49 @@ export default {
isClear: true isClear: true
} }
], ],
buttonList: [], buttonList: [
{
type: 'GLButton',
name: row => {
return '编辑'
},
attrs: {
type: 'text',
fn: '编辑商品'
},
listeners: {
click: row => this.jump(row.scope)
}
},
{
type: 'GLButton',
name: row => {
return '复制'
},
attrs: {
type: 'text',
fn: '复制商品'
},
listeners: {
click: row => this.copy(row.scope)
}
},
{
type: 'el-button',
name: row => {
return '生成商品短链'
},
attrs: {
type: 'text',
disabled: row => {
return !row.scope.groupStatus || row.scope.status != 1
}
},
listeners: {
click: row => this.toCreateLine(row.scope)
}
}
],
supplierList: [ supplierList: [
{ {
label: '海威', label: '海威',
...@@ -202,8 +245,7 @@ export default { ...@@ -202,8 +245,7 @@ export default {
}, },
{ {
label: '操作', label: '操作',
prop: '', width: 170,
width: '200px',
fixed: 'right', fixed: 'right',
addHtml: 'table-btns' addHtml: 'table-btns'
} }
......
...@@ -15,9 +15,10 @@ ...@@ -15,9 +15,10 @@
<img class="equity-icon" :src="scope.scope.equityIcon" /> <img class="equity-icon" :src="scope.scope.equityIcon" />
</div> </div>
<span slot="auth-button" slot-scope="scope" :data="scope.scope"> <span slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLButton fn="汽车权益编辑" type="text" class="tableBtn" @click="editEquity(scope.scope, 1)">编辑</GLButton> <GLTableButton :buttonList="buttonListcar" :buttonItem="scope" :buttonNum="3"></GLTableButton>
<!-- <GLButton fn="汽车权益编辑" type="text" class="tableBtn" @click="editEquity(scope.scope, 1)">编辑</GLButton>
<GLButton fn="汽车权益上/下架" type="text" class="tableBtn" @click="updateShelves(scope.scope, 'car')">{{ scope.scope.status == 0 ? '上架' : '下架' }}</GLButton> <GLButton fn="汽车权益上/下架" type="text" class="tableBtn" @click="updateShelves(scope.scope, 'car')">{{ scope.scope.status == 0 ? '上架' : '下架' }}</GLButton>
<el-button type="text" class="tableBtn" @click="setTop(scope.scope.id, 'car')">置顶</el-button> <el-button type="text" class="tableBtn" @click="setTop(scope.scope.id, 'car')">置顶</el-button> -->
</span> </span>
</GLTable> </GLTable>
</div> </div>
...@@ -87,6 +88,46 @@ export default { ...@@ -87,6 +88,46 @@ export default {
isEdit: false, isEdit: false,
dialogType: 1, dialogType: 1,
editData: {}, editData: {},
buttonListcar: [
{
type: 'GLButton',
name: row => {
return '编辑'
},
attrs: {
type: 'text',
fn: '汽车权益编辑'
},
listeners: {
click: row => this.editEquity(row.scope, 1)
}
},
{
type: 'GLButton',
name: row => {
return row.scope.status == 0 ? '上架' : '下架'
},
attrs: {
type: 'text',
fn: '汽车权益上/下架'
},
listeners: {
click: row => this.updateShelves(row.scope, 'car')
}
},
{
type: 'el-button',
name: row => {
return '置顶'
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.setTop(row.scope.id, 'car')
}
}
],
buttonList: [ buttonList: [
{ {
type: 'GLButton', type: 'GLButton',
...@@ -133,9 +174,9 @@ export default { ...@@ -133,9 +174,9 @@ export default {
}, },
attrs: { attrs: {
type: 'text', type: 'text',
disabled:row => { disabled: row => {
return row.scope.status == 0 ? false : true return row.scope.status == 0 ? false : true
}, }
}, },
listeners: { listeners: {
click: row => this.deletEquity(row.scope.id) click: row => this.deletEquity(row.scope.id)
...@@ -223,7 +264,7 @@ export default { ...@@ -223,7 +264,7 @@ export default {
} }
if (status == 0) { if (status == 0) {
this.$confirm('是否下架权益', '提示', { this.$confirm('是否下架权益', '提示', {
type: 'warning', type: 'warning'
}).then(() => { }).then(() => {
callBack() callBack()
}) })
...@@ -236,6 +277,15 @@ export default { ...@@ -236,6 +277,15 @@ export default {
</script> </script>
<style src="@a/css/tao.css"></style> <style src="@a/css/tao.css"></style>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .table-header {
display: inline-flex !important;
align-items: center;
justify-content: center;
padding: 0 !important;
.el-button {
min-width: 0;
}
}
.equity-title { .equity-title {
font-size: 16px; font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
...@@ -334,10 +384,10 @@ export default { ...@@ -334,10 +384,10 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.tagsCtn .wrap{ .tagsCtn .wrap {
width: 112px; width: 112px;
height: 100px; height: 100px;
.addTag{ .addTag {
width: 112px; width: 112px;
height: 100px; height: 100px;
} }
......
...@@ -114,7 +114,6 @@ export default { ...@@ -114,7 +114,6 @@ export default {
tableParams: { tableParams: {
listName: 'list', listName: 'list',
getListApi: this.$apis.orderApi.getOrderList, getListApi: this.$apis.orderApi.getOrderList,
tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '商品信息', label: '商品信息',
...@@ -183,6 +182,12 @@ export default { ...@@ -183,6 +182,12 @@ export default {
label: '海威订单号', label: '海威订单号',
minWidth: '220', minWidth: '220',
prop: 'thirdOrderCode' prop: 'thirdOrderCode'
},
{
label: '操作',
width: 100,
fixed: 'right',
addHtml: 'auth-button'
} }
] ]
} }
......
...@@ -262,28 +262,24 @@ export default { ...@@ -262,28 +262,24 @@ export default {
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list', listName: 'list',
tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '权益卡名称', label: '权益卡名称',
prop: 'cardClassName' prop: 'cardClassName',
// minWidth: '200' width:200,
line:1
}, },
{ {
label: '门店名称', label: '门店名称',
prop: 'merchantName', prop: 'merchantName',
minWidth: '200' width: 200,
// formatter: (cellValue) => { line:1
// let arr = []
// cellValue.memberRights.map(e => {
// if (e) arr.push(e.name)
// })
// return arr.join('、')
// }
}, },
{ {
label: '有效期', label: '有效期',
prop: 'effectiveType', prop: 'effectiveType',
width: 200,
line:1,
formatter: cellValue => { formatter: cellValue => {
if (cellValue.effectiveType == 1) { if (cellValue.effectiveType == 1) {
return '长期有效' return '长期有效'
...@@ -307,8 +303,6 @@ export default { ...@@ -307,8 +303,6 @@ export default {
{ {
label: '领卡用户', label: '领卡用户',
prop: 'recipientCount', prop: 'recipientCount',
// width: 110,
// tagLabel: true
addHtml: 'recipientCount' addHtml: 'recipientCount'
}, },
{ {
...@@ -325,6 +319,12 @@ export default { ...@@ -325,6 +319,12 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return this.date_format(cellValue.createDate) return this.date_format(cellValue.createDate)
} }
},
{
label: '操作',
width:150,
fixed: 'right',
addHtml: 'auth-button'
} }
] ]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!