<div class="leaflet-marker-icon dg-customization__marker dg-customization__marker_type_mushroom leaflet-zoom-animated leaflet-interactive dg-customization__marker_appear" tabindex="0" style="margin-left: -10px; margin-top: -32px; width: 22px; height: 34px; transform: translate3d(104142px, -86506px, 0px); z-index: -86506;"></div>
import Component from 'vue-class-component';
import { Inject, Vue } from 'vue-property-decorator';
import StartService from './start.service';
import { State, Getter, Action } from 'vuex-class';
@Component
export default class Start extends Vue {
@Inject('startService') public startService: () => StartService;
@State('getters') public tmp: any;
// @Getter('getters') public tmp: any;
// @Action('actions') public act: any;
// beforeCreate() {
// this.$store.dispatch('load');
// }
created() {
console.log('tmp', this.tmp);
// this.startService()
// .auth()
// .then(response => {
// console.log('response', response);
// this.$router.push({
// name: 'Home',
// });
// })
// .catch(error => {
// console.log('error', error.response);
// this.$router.push({
// name: 'Unwork',
// params: {
// message: error.response.data.message
// }
// });
// });
}
}
onChange="getTrueOriginCode(this);"
function getTrueOriginCode(val) {
console.log(val.value);
if (val.value == 6) {
console.log(val);
}
}
<select name="product_set.products[0].tru_origin_code" class="form-control tru_origin_code" onchange="getTrueOriginCode(this)" data-original-title="">
<option value="0">-Не выбран-</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
все равно получаю ошибку ту же