bugfix
This commit is contained in:
parent
9e7bb14499
commit
459aec92f9
@ -246,7 +246,7 @@ export default Vue.extend({
|
||||
<productCard :productList="hotProductList"></productCard>
|
||||
<el-dialog :title="publish_type === '2' ? '发布需求' : '发布商品'" width="60vw" top="5vh"
|
||||
:visible.sync="sendProductVisible">
|
||||
<sendProduct v-if="publish_type" @success="sendProductSuccess" :publish_type="publish_type"></sendProduct>
|
||||
<sendProduct :isEdit="false" v-if="publish_type" @success="sendProductSuccess" :publish_type="publish_type"></sendProduct>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -169,8 +169,9 @@
|
||||
|
||||
<!-- 提交按钮 -->
|
||||
<div class="form-actions">
|
||||
<el-button type="primary" @click="submitForm" size="large">{{ publish_type === '2' ? '发布需求' : '发布商品'
|
||||
<el-button type="primary" @click="submitForm" size="large">{{ isEdit ? '编辑商品' : (publish_type === '2' ? '发布需求' : '发布商品')
|
||||
}}</el-button>
|
||||
<el-button v-if="isEdit" @click="editBtn" size="large">确定修改</el-button>
|
||||
<!-- <el-button @click="resetForm" size="large">重置</el-button> -->
|
||||
<!-- <el-button type="info" @click="getBinaryData" size="large">获取二进制数据</el-button> -->
|
||||
</div>
|
||||
@ -214,6 +215,10 @@ export default {
|
||||
publish_type: {
|
||||
type: String,
|
||||
default: '1' // 默认值为 'product'
|
||||
},
|
||||
isEdit: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user