|
|
|
@ -175,7 +175,7 @@
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<div class="text-center"> |
|
|
|
|
<v-btn small color="primary" @click="loadTableData(); showPasswordModal =false"> |
|
|
|
|
<v-btn small color="primary" @click="unlock"> |
|
|
|
|
Unlock |
|
|
|
|
</v-btn> |
|
|
|
|
</div> |
|
|
|
@ -284,20 +284,6 @@ export default {
|
|
|
|
|
modelName: null |
|
|
|
|
}), |
|
|
|
|
computed: { |
|
|
|
|
// availableColumns() { |
|
|
|
|
// let columns |
|
|
|
|
// const hideCols = ['created_at', 'updated_at'] |
|
|
|
|
// |
|
|
|
|
// if (this.showSystemFields) { |
|
|
|
|
// columns = this.meta.columns || [] |
|
|
|
|
// } else if (this.data && this.data.length) { |
|
|
|
|
// // c._cn in this.data[0].row && |
|
|
|
|
// columns = (this.meta.columns.filter(c => !(c.pk && c.ai) && !hideCols.includes(c._cn))) || [] |
|
|
|
|
// } else { |
|
|
|
|
// columns = (this.meta && this.meta.columns && this.meta.columns.filter(c => !(c.pk && c.ai) && !hideCols.includes(c._cn))) || [] |
|
|
|
|
// } |
|
|
|
|
// return columns |
|
|
|
|
// }, |
|
|
|
|
concatenatedXWhere() { |
|
|
|
|
let where = '' |
|
|
|
|
if (this.searchField && this.searchQuery.trim()) { |
|
|
|
@ -386,13 +372,6 @@ export default {
|
|
|
|
|
if (!this.showPasswordModal && !this.notFound) { |
|
|
|
|
await this.loadTableData() |
|
|
|
|
} |
|
|
|
|
// const {list, count} = await this.api.paginatedList(this.queryParams); |
|
|
|
|
// this.count = count; |
|
|
|
|
// this.data = list.map(row => ({ |
|
|
|
|
// row, |
|
|
|
|
// oldRow: {...row}, |
|
|
|
|
// rowMeta: {} |
|
|
|
|
// })); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.log(e) |
|
|
|
|
} |
|
|
|
@ -658,6 +637,11 @@ export default {
|
|
|
|
|
this.showExpandModal = true |
|
|
|
|
this.selectedExpandRowIndex = row |
|
|
|
|
this.selectedExpandRowMeta = rowMeta |
|
|
|
|
}, |
|
|
|
|
async unlock() { |
|
|
|
|
this.showPasswordModal = false |
|
|
|
|
await this.loadMetaData() |
|
|
|
|
await this.loadTableData() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|