Commit 773c5b51 by 杨北旺

查看详情

1 parent 59e3ba25
...@@ -10,15 +10,17 @@ ...@@ -10,15 +10,17 @@
<div v-for="(item, index) in contentListData" :key="index" class="cell"> <div v-for="(item, index) in contentListData" :key="index" class="cell">
<div class="label">{{ item.label }}</div> <div class="label">{{ item.label }}</div>
<div v-if="item.type == 'text'" class="value"> <div v-if="item.type == 'text'" class="value">
{{ orderInfo[item.prop] }} {{ orderInfo[item.prop] || '--'}}
</div> </div>
<div v-else-if="item.type == 'img'" class="imgBox"> <div v-else-if="item.type == 'img'" class="imgBox">
<el-image <el-image
v-if="orderInfo[item.prop]"
style="width: 88px; height: 88px" style="width: 88px; height: 88px"
:src="orderInfo[item.prop]" :src="orderInfo[item.prop]"
:preview-src-list="[orderInfo[item.prop]]" :preview-src-list="[orderInfo[item.prop]]"
> >
</el-image> </el-image>
<span v-else>--</span>
</div> </div>
<div v-else-if="item.type == 'list'" class="list-box"> <div v-else-if="item.type == 'list'" class="list-box">
<div <div
...@@ -68,7 +70,17 @@ ...@@ -68,7 +70,17 @@
</div> </div>
<div v-else-if="item.type == 'list'" class="table-box"> <div v-else-if="item.type == 'list'" class="table-box">
<!-- 表格数据 --> <!-- 表格数据 -->
<div class="table-title">
{{
orderInfo.showMerchant == 1
? "指定品牌"
: orderInfo.showMerchant == 2
? "指定门店"
: "全部门店"
}}
</div>
<el-table <el-table
v-if="orderInfo.showMerchant"
:data="orderInfo[item.prop]" :data="orderInfo[item.prop]"
border border
:header-cell-style="{ :header-cell-style="{
...@@ -87,9 +99,10 @@ ...@@ -87,9 +99,10 @@
<el-table-column <el-table-column
prop="assignName" prop="assignName"
align="center" align="center"
label="园区店名称" :label="orderInfo.showMerchant == 1 ? '品牌名称' : '园区店名称'"
/> />
<el-table-column <el-table-column
v-if="orderInfo.showMerchant == 2"
prop="assignId" prop="assignId"
align="center" align="center"
label="园区店号" label="园区店号"
...@@ -239,7 +252,7 @@ export default { ...@@ -239,7 +252,7 @@ export default {
} }
.imgBox { .imgBox {
width: 88px; width: 88px;
height: 88px; // height: 88px;
} }
.list-box { .list-box {
display: flex; display: flex;
...@@ -253,6 +266,11 @@ export default { ...@@ -253,6 +266,11 @@ export default {
.table-box { .table-box {
width: 728px; width: 728px;
} }
.table-title {
font-weight: 400;
font-size: 14px;
color: #1d1d1d;
}
.file-box { .file-box {
display: flex; display: flex;
align-items: center; align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!