完善订单详情组件

master
panqihua 2 years ago
parent 46ce111c87
commit bb96ecabe9
  1. 10
      src/views/platform/components/order_detail.vue
  2. 2
      src/views/platform/components/progress.vue
  3. 2
      src/views/platform/order_management/delivery_order.vue
  4. 2
      src/views/platform/self-operated-mall/order.vue

@ -107,9 +107,7 @@ export default {
components: { OrderProgress }, components: { OrderProgress },
props: { props: {
// dialog // dialog
open: Boolean, open: Boolean
//TODO: 1 2 UI
type: Number
}, },
data() { data() {
return { return {
@ -142,6 +140,12 @@ export default {
this.$modal.msgSuccess('保存成功') this.$modal.msgSuccess('保存成功')
this.$emit('close') this.$emit('close')
} }
},
computed: {
//--:1--2
type() {
return this.$route.fullPath.includes('self-operated-mall') ? 1 : 2
}
} }
} }
</script> </script>

@ -46,7 +46,7 @@
export default { export default {
name: 'Progress', name: 'Progress',
props: { props: {
//TODO: 1 2 UI //1 2
type: Number type: Number
} }
} }

@ -59,7 +59,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<order-detail :open="open" @close="open = false" :type="2" /> <order-detail :open="open" @close="open = false" />
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" /> :limit.sync="queryParams.pageSize" @pagination="getList" />

@ -77,7 +77,7 @@
</el-table> </el-table>
<order-detail :open="open" @close="open = false" :type="1" /> <order-detail :open="open" @close="open = false" />
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"

Loading…
Cancel
Save