提交 c6e19e19 编写于 作者: yi.li's avatar yi.li

地区选择回显优化

上级 476e91b1
<template> <template>
<div class="order-manage-wrapper"> <div class="order-manage-wrapper" v-if="showChangeInfo">
<el-dialog <el-dialog
title="修改买家收货信息" title="修改买家收货信息"
:visible="changeInfoDialog" :visible="changeInfoDialog"
...@@ -51,6 +51,10 @@ ...@@ -51,6 +51,10 @@
components: { components: {
}, },
props: { props: {
showChangeInfo: {
type: Boolean,
default: false,
},
receiveInfo: { receiveInfo: {
type: Object, type: Object,
required: true, required: true,
...@@ -204,7 +208,14 @@ ...@@ -204,7 +208,14 @@
}, },
created() { created() {
vm = this; vm = this;
},
watch: {
showChangeInfo(val) {
if (val) {
this.initData(); this.initData();
}
},
}, },
methods: { methods: {
async initData() { async initData() {
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<el-button size="small" type="primary" @click="submitSendSet">完成</el-button> <el-button size="small" type="primary" @click="submitSendSet">完成</el-button>
</span> </span>
</el-dialog> </el-dialog>
<change-info v-if="showChangeInfo" @closeChangeInfo="closeChangeInfo" :receiveInfo="setReceiveInfo"></change-info> <change-info :showChangeInfo="showChangeInfo" @closeChangeInfo="closeChangeInfo" :receiveInfo="setReceiveInfo"></change-info>
</div> </div>
</template> </template>
<script> <script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册