huangxw 10 tháng trước cách đây
mục cha
commit
7317d7e439

+ 3 - 1
src/views/cdt/menus/detail/index.vue

@@ -32,7 +32,9 @@
                             <el-image style="width: 100px; height: 100px" :src="form?.coverImg" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :preview-src-list="[form?.coverImg]" fit="cover"></el-image>
                         </el-descriptions-item>
                         <el-descriptions-item label="产品图:">
-                            <el-image style="width: 100px; height: 100px" :src="form?.proImg" fit="cover" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :preview-src-list="[form?.proImg]"></el-image>
+                            <template v-for="(item, index) in form?.proImg.split(',')" :key="index">
+                                <el-image style="width: 100px; height: 100px" :src="item" fit="cover" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" :initial-index="index" :preview-src-list="[item]"></el-image>
+                            </template>
                         </el-descriptions-item>
                     </el-descriptions>
                     <el-divider />

+ 1 - 1
src/views/cdt/menus/form/index.vue

@@ -88,7 +88,7 @@
                             <el-col :span="8">
                                 <el-form-item label="检测周期" prop="period">
                                     <el-input v-model.number="form.period" clearable placeholder="请输入检测周期">
-                                        <template #suffix></template>
+                                        <template #suffix>个工作日</template>
                                     </el-input>
                                 </el-form-item>
                             </el-col>

+ 2 - 2
src/views/cdt/menus/index.vue

@@ -64,8 +64,8 @@
                                 <view v-else>-</view>
                             </template>
                         </vxe-column>
-                        <vxe-column title="检测周期" width="100">
-                            <template #default="{ row }">{{ row?.period }}</template>
+                        <vxe-column title="检测周期" width="120">
+                            <template #default="{ row }">{{ row?.period }}个工作日</template>
                         </vxe-column>
                         <vxe-column title="上架数量" field="totalCount" width="80" :formatter="colNoData"></vxe-column>
                         <vxe-column title="销量" field="orderedCount" width="80" :formatter="colNoData"></vxe-column>