Commit ac45de0d by zhouzy

1

1 parent 5ce0270b
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
closeListPoup(done) { closeListPoup(done) {
this.$emit('update:show', false) this.$emit('update:show', false)
this.$emit('update:isEdit', false) this.$emit('update:isEdit', false)
this.form ={} this.form = {}
done() done()
}, },
close() { close() {
...@@ -152,6 +152,8 @@ export default { ...@@ -152,6 +152,8 @@ export default {
this.$emit('update:show', false) this.$emit('update:show', false)
this.$emit('update:isEdit', false) this.$emit('update:isEdit', false)
this.$refs.ruleForm.resetFields() this.$refs.ruleForm.resetFields()
this.form = {}
// console.log("???????????");
}, },
upLoadImg(file) { upLoadImg(file) {
let fileName = file.name let fileName = file.name
......
...@@ -7,8 +7,8 @@ export default { ...@@ -7,8 +7,8 @@ export default {
carTableParams: { carTableParams: {
listName: 'data.list', listName: 'data.list',
tableOption: true, tableOption: true,
rowClassName: ({ row, rowIndex }) => { rowStyle: ({ row, rowIndex }) => {
return row.status == 0 ? 'opacity' : '' return row.status == 0 ? {opacity:0.5} : ''
}, },
tableColumns: [{ tableColumns: [{
label: '权益名称', label: '权益名称',
...@@ -62,6 +62,8 @@ export default { ...@@ -62,6 +62,8 @@ export default {
getCarList() { getCarList() {
this.$apis.carEquityManageApi.getCarList({pageSize: this.$refs.carTable.page.pageSize, pageNum: this.$refs.carTable.page.pageNum}).then(({ data }) => { this.$apis.carEquityManageApi.getCarList({pageSize: this.$refs.carTable.page.pageSize, pageNum: this.$refs.carTable.page.pageNum}).then(({ data }) => {
this.carTableData = data.list || [] this.carTableData = data.list || []
this.$refs.carTable.refreshTable()
}) })
}, },
......
...@@ -9,8 +9,8 @@ export default { ...@@ -9,8 +9,8 @@ export default {
tags: [], tags: [],
goodsTableData: [], goodsTableData: [],
goodsTableParams: { goodsTableParams: {
rowClassName: ({ row, rowIndex }) => { rowStyle: ({ row, rowIndex }) => {
return row.status == 0 ? 'opacity' : '' return row.status == 0 ? {opacity:0.5} : ''
}, },
tableOption: true, tableOption: true,
tableColumns: [{ tableColumns: [{
......
<template> <template>
<div class="equity-wrap"> <div class="equity-wrap">
<div class="tableTitle">汽车权益</div> <div class="tableTitleFirst">汽车权益</div>
<div class="equity-wrap contain"> <div class="equity-wrap contain">
<el-button type="primary" size="small" @click="addEquity(1)"> <el-button type="primary" size="small" @click="addEquity(1)">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
...@@ -255,9 +255,6 @@ export default { ...@@ -255,9 +255,6 @@ export default {
width: 40px; width: 40px;
height: 40px; height: 40px;
} }
.opacity {
opacity: 0.5;
}
.tableBtn { .tableBtn {
width: 40px; width: 40px;
} }
...@@ -273,6 +270,9 @@ export default { ...@@ -273,6 +270,9 @@ export default {
.tableTitle { .tableTitle {
margin: 20px 40px; margin: 20px 40px;
} }
.tableTitleFirst{
margin: 0px 40px 20px 40px;
}
.el-table__fixed-right-patch { .el-table__fixed-right-patch {
position: absolute; position: absolute;
top: -1px; top: -1px;
......
...@@ -617,14 +617,6 @@ export default { ...@@ -617,14 +617,6 @@ export default {
.avatar-uploader .el-upload:hover { .avatar-uploader .el-upload:hover {
border-color: #409eff; border-color: #409eff;
} }
.avatar-uploader-icon {
font-size: 14px;
color: #8c939d;
width: 40px;
height: 30px;
line-height: 30px;
text-align: center;
}
.avatar { .avatar {
width: 40px; width: 40px;
height: 30px; height: 30px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!