Commit 6dfbfaf2 by zhangquan

自测bug修复

1 parent 06a1f751
......@@ -69,7 +69,7 @@ export default {
}, trigger: 'change' }],
introduction: [{ required: true, message: '请输入宣传文案', trigger: 'change' }],
brand: [{ required: true, validator: (rule, value, callback) => {
if(this.brandType!=1 && !this.brandList?.length) {
if(this.formObj.brandType==2 && !this.brandList?.length) {
callback(new Error(`请选择品牌`))
}else{
callback()
......
......@@ -412,14 +412,14 @@ export default {
id: res.associationClassifySecondId
}
this.formObj.coverList = [res.goodsImage]
this.merchantRequestList = res.merchantList.map(item => {
this.merchantRequestList = res.merchantList?.map(item => {
let activityPrice = item.activityPrice ? Number(Number(item.activityPrice/100).toFixed(2)) : 0
return {...item, activityPrice}
})
this.vehicleSeriesRequestList = res.vehicleSeriesList.map(item => {
}) || []
this.vehicleSeriesRequestList = res?.vehicleSeriesList?.map(item => {
const {brandId, brandName, childBrandId,childBrandName , vehicleSeriesId, vehicleSeriesName } = item
return {brandId, brandName, childBrandId,childBrandName , vehicleSeriesId, vehicleSeriesName }
})
}) || []
}
})
}
......
<template>
<div class="select-store">
<GLDialog bigTitle="选择门店"
<GLDialog bigTitle="选择商品"
mode="big"
:visible.sync="dialogVisible"
:before-close="handleClose"
......
<template>
<GLDialog bigTitle="选择商品优惠券" mode="big" :visible.sync="isVisible" :show-close="true" :before-close="handleClose" :close-on-click-modal="false" @onOk="onOk" @onCancel="handleClose">
<GLDialog bigTitle="选择门店" mode="big" :visible.sync="isVisible" :show-close="true" :before-close="handleClose" :close-on-click-modal="false" @onOk="onOk" @onCancel="handleClose">
<div class="dialog_body">
<!-- <GLCombiForm :rowNumber="1" class="dialog_search" ref="searchRef" :formObj="dialogSearchForm" :formData="dialogFormData" @handleOk="handleOk" @handleRest="handleRest"></GLCombiForm> -->
<div class="dialog_table">
......
......@@ -12,7 +12,7 @@
<div>
<el-button type="primary" size="small" @click="handleEdit">频道设置</el-button>
<el-button type="primary" size="small" @click="handleAdd">编辑频道</el-button>
<el-button type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button>
<el-button v-if="activeName!=5" type="primary" plain size="small" @click="handleAddContent()">新增内容</el-button>
</div>
</div>
<GLTable ref="editRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :beforeSearchFn="beforeSearchFn" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!