Commit 03abbf0f by 王志慧

commit

1 parent fd046764
......@@ -6,9 +6,14 @@
<p class="edit-title">基础信息</p>
<el-form label-width="120px" :inline="true" class="context-wrap">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label + ':'" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.isNum ? '0' + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
<span v-for="(subItem, subIndex) in item.rowList" :key="subIndex">
<template v-if="detailForm[subItem.name] != '-'">
<el-form-item :label="subItem.label + ':'" class="row-item">
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.isNum ? '0' + (subItem.suffix || '') : '-' }}</span>
</el-form-item>
</template>
</span>
</el-row>
</el-form>
</div>
......@@ -153,7 +158,7 @@ export default {
}
if (this.detailForm.goodsCodeName != '太阳膜') {
this.detailForm.warrantyPeriod = '-'
this.detailForm.giftCost = '-'
this.detailForm.giftCost = '-'
} else {
this.detailForm.warrantyPeriod = (this.detailForm.warrantyPeriod || 0) + '年'
}
......@@ -198,17 +203,17 @@ export default {
margin-top: 10px;
margin-right: 20px;
}
.edit-title{
height: 56px;
background: #FFFFFF;
line-height: 56px;
border-bottom:1px solid #F0F1F7;
padding-left:20px;
.edit-title {
height: 56px;
background: #ffffff;
line-height: 56px;
border-bottom: 1px solid #f0f1f7;
padding-left: 20px;
}
.bgf{
background: #FFFFFF;
.bgf {
background: #ffffff;
}
.context-wrap{
padding:20px;
.context-wrap {
padding: 20px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!