Browse Source

优化组件

dev-warehouse
zhangsiyu 2 years ago
parent
commit
bf8a7b0bad
  1. 5
      src/components/tablecmt/tablecmt.vue
  2. 19
      src/views/distribution/reservation/reservation.vue

5
src/components/tablecmt/tablecmt.vue

@ -40,6 +40,7 @@
v-if="column.type == 3" v-if="column.type == 3"
v-model="column.values" v-model="column.values"
class="m-2" class="m-2"
clearable
:placeholder="`请选择${column.label}`" :placeholder="`请选择${column.label}`"
@change="selectchange($event,column)" @change="selectchange($event,column)"
@clear="selectclear($event,column)" @clear="selectclear($event,column)"
@ -55,6 +56,8 @@
v-model="column.values" v-model="column.values"
v-if="column.type == 4" v-if="column.type == 4"
type="date" type="date"
clearable
style="width: 150px;"
:placeholder="`请选择${column.label}`" :placeholder="`请选择${column.label}`"
@change="timechange($event,column)" @change="timechange($event,column)"
@clear="timeclear($event,column)" @clear="timeclear($event,column)"
@ -63,6 +66,8 @@
v-model="column.values" v-model="column.values"
v-if="column.type == 5" v-if="column.type == 5"
type="datetime" type="datetime"
clearable
style="width: 190px;"
:placeholder="`请选择${column.label}`" :placeholder="`请选择${column.label}`"
format="YYYY/MM/DD HH:mm:ss" format="YYYY/MM/DD HH:mm:ss"
@change="timechange($event,column)" @change="timechange($event,column)"

19
src/views/distribution/reservation/reservation.vue

@ -192,19 +192,28 @@ export default {
{ {
prop: 'deliveryPhone', prop: 'deliveryPhone',
label: '收件人电话', label: '收件人电话',
type: 2, type: 3,
values: '', values: '',
width: '180', width: '180',
checkarr: [], checkarr: [
{
label:'1231213',
value:'123121123'
},
{
label:'112121',
value:'12312123111123'
}
],
fixed: false, fixed: false,
sortable: true, sortable: true,
}, },
{ {
prop: 'reservationDate', prop: 'reservationDate',
label: '预约时间', label: '预约时间',
type: 4, type: 5,
values: '', values: '',
width: '150', width: '220',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
@ -214,7 +223,7 @@ export default {
label: '时段', label: '时段',
type: 4, type: 4,
values: '', values: '',
width: '150', width: '180',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,

Loading…
Cancel
Save