Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tr id="cmp">
- <td class="fi_wall">Company Type </td>
- <td class="fi_wall"><select name="companyType" v-model="companyType">
- <option value="-1">select</option>
- <option v-for=" result in results " v-bind:value="result.commonId">
- {{ result.name}}</option>
- </select></td>
- </tr>
- <script type="text/javascript">
- new Vue({
- el: '#cmp',
- data: {
- results: [],
- companyType : '-1'
- },
- mounted() {
- axios.get('/easyoffice/companyType.do?method=getCompanyTypeAjax').then(response => {
- this.results = response.data,
- this.companyType = document.forms['companyForm'].companyType.value
- })
- .catch(e => {
- this.errors.push(e)
- })
- }
- });</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement