优化代码

This commit is contained in:
TOP糯米 2023-03-16 14:51:19 +08:00
parent 0ff138613f
commit f7abec5e77
1 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
> >
<get-action <get-action
:order="v" :order="v"
@postPrice="postPrice(v.id)" @postPrice="showPostPriceModal(v.id)"
@getOrder="getOrder({ id: v.id, listType: v.listType })" @getOrder="getOrder({ id: v.id, listType: v.listType })"
/> />
</view> </view>
@ -58,7 +58,7 @@
<text class="text">刷新列表</text> <text class="text">刷新列表</text>
</view> </view>
</view> </view>
<get-post-price v-show="showPriceModal" @close="showPriceModal = false" @post="rcvPostPrice" /> <get-post-price v-show="showPriceModal" @close="showPriceModal = false" @post="postPrice" />
</app-layout> </app-layout>
</template> </template>
@ -177,14 +177,14 @@ export default {
/** /**
* 报价 * 报价
*/ */
postPrice(id) { showPostPriceModal(id) {
this.$store.commit("order/setPostId", id); this.$store.commit("order/setPostId", id);
this.showPriceModal = true; this.showPriceModal = true;
}, },
/** /**
* 确认价格 * 确认价格
*/ */
rcvPostPrice(e) { postPrice(e) {
this.showPriceModal = false; this.showPriceModal = false;
this.getOrder({ this.getOrder({
id: e.id, id: e.id,