vue
数据关联select:
'database' : { 'save' : { }, }, 'store_depot' : { 'body' : [], },
<select class="form-control" name="method" v-model="database.save.depot_name"> <template v-for="option in parameters.depot"> <option v-if="option.name===database.save.depot_name" :value="option.name" selected>{{ option.name }}</option> <option v-else :value="option.name">{{ option.name }}</option> </template> </select>
数据关联checkbox:
<input type="checkbox" v-model="database.save.invoiced" v-bind:true-value="1" v-bind:false-value="2">