<tr v-for="item in items">
<!--<td>{% verbatim %}{{ item.id }}{% endverbatim %}</td>-->
<td> {% verbatim %}{{ item.address.locality.name }}{% endverbatim %}</td>
<td v-if="item.address.sub_locality"> {% verbatim %}{{ item.address.sub_locality }}, {{ item.address.raw_data }}{% endverbatim %}</td>
<td v-if="!item.address.sub_locality">{% verbatim %}{{ item.address.raw_data }}{% endverbatim %}</td>
<td>{% verbatim %}{{item.distributor.name}}{% endverbatim %}</td>
<td v-if="item.email !== 'nan'">{% verbatim %}{{item.email}}{% endverbatim %}</td>
<td v-if="item.email == 'nan'"></td>
<td>{% verbatim %}{{item.site}}{% endverbatim %}</td>
<td>{% verbatim %}{{item.state.name}}{% endverbatim %}</td>
<td><a @click="showModalToEdit(item.id, item.address, item.email, item.site, item.customer, item.distributor, item.state)"><span class="iconify" data-icon="ion-create-outline" data-inline="false"></span></a></td>
<td><a @click="deleteCustomerOffice(item.id)"><span class="iconify" data-icon="ion:trash" data-inline="false"></span></a></td>
</tr>
<tr v-if="isModalCustomerOfficeVisible && currentRow === item.id">
<td colspan="8"><modal v-if="isModalCustomerOfficeVisible" @close="isModalCustomerOfficeVisible = false">
<h3 slot="header">{% verbatim %}{{ header }}{% endverbatim %}</h3>
<div slot="body" class="body-modal-address">
<div class="body-modal-address__div1">
<h4>Address</h4>
<h5>Sub_locality</h5>
<input type="text" v-model="currentSubLocality"/>
<h5>Postal_code</h5>
<input type="text" v-model="currentPostalCode"/>
<h5>Street_address</h5>
<input type="text" v-model="currentStreetAddress"/>
</div>
<div class="body-modal-address__div2">
<h5>House</h5>
<input type="text" v-model="currentHouse"/>
<h5>Note</h5>
<input type="text" v-model="currentNote"/>
<h5>Raw_data</h5>
<input type="text" v-model="currentRawData"/>
</div>
</div>
<div slot="body" class="body-modal-others">
<div class="body-modal-others__div1">
<h4>Email</h4>
<input type="email" v-model="currentEmail"/>
<h4>Site</h4>
<input type="text" v-model="currentSite"/>
</div>
<div class="body-modal-others__div2">
<h4 class="little-margin">State</h4>
<v-select class="vue-selectors" v-model="inputStateValue" :value="currentState" @input="changeState" :options="statesNames"></v-select>
<h4 class="little-margin">Locality</h4>
<v-select class="vue-selectors" v-model="inputLocalityValue" :value="currentLocality" @input="changeLocality" :options="localitiesNames"></v-select>
<h4 class="little-margin">Distributor</h4>
<v-select class="vue-selectors" v-model="inputDistributorValue" :value="currentDistributor" @input="changeDistributor" :options="distributorsNames"></v-select>
</div>
</div>
<div slot="footer" class="footer-modal-buttons">
<button class="footer-modal-buttons" v-if="header === 'New Customer Office'" @click="insertCustomerOffice">
OK
</button>
<button class="footer-modal-buttons" v-if="header === 'Edit Customer Office'" @click="editCustomerOffice">
OK
</button>
<button class="footer-modal-buttons__cancel" @click="closeModal">
Отменить
</button>
</div>
</modal></td>
</tr>
for
закончился после закрытия <tr v-for="item in items">
import random
import xlsxwriter
consonants = ['B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q',
'R', 'S', 'T', 'V', 'W', 'X', 'Z']
vowels = ['A', 'E', 'I', 'O', 'U', 'Y']
workbook = xlsxwriter.Workbook('GeneratedNames.xlsx')
worksheet = workbook.add_worksheet()
def names_generator(size=5, chars=consonants + vowels):
for y in range(65780):
toggle = True
_id = ""
for i in range(size):
if toggle:
toggle = False
_id += random.choice(consonants)
else:
toggle = True
_id += random.choice(vowels)
worksheet.write(y, 0, _id)
print(_id)
workbook.close()
names_generator()