|
|
@ -25,14 +25,14 @@ |
|
|
|
mdi-table-column-plus-before |
|
|
|
mdi-table-column-plus-before |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else-if="column.rollup"> |
|
|
|
<template v-else-if="column.rl"> |
|
|
|
<v-icon v-if="column.rollup.type === 'hm'" color="warning" x-small class="mr-1" v-on="on"> |
|
|
|
<v-icon v-if="column.rl.type === 'hm'" color="warning" x-small class="mr-1" v-on="on"> |
|
|
|
{{ rollupIcon }} |
|
|
|
{{ rollupIcon }} |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
<v-icon v-else-if="column.rollup.type === 'bt'" color="info" x-small class="mr-1" v-on="on"> |
|
|
|
<v-icon v-else-if="column.rl.type === 'bt'" color="info" x-small class="mr-1" v-on="on"> |
|
|
|
{{ rollupIcon }} |
|
|
|
{{ rollupIcon }} |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
<v-icon v-else-if="column.rollup.type === 'mm'" color="pink" x-small class="mr-1" v-on="on"> |
|
|
|
<v-icon v-else-if="column.rl.type === 'mm'" color="pink" x-small class="mr-1" v-on="on"> |
|
|
|
{{ rollupIcon }} |
|
|
|
{{ rollupIcon }} |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -217,8 +217,8 @@ export default { |
|
|
|
return `'${this.column.lk._lcn}' from '${this.column.lk._ltn}' (${this.column.lk.type})` |
|
|
|
return `'${this.column.lk._lcn}' from '${this.column.lk._ltn}' (${this.column.lk.type})` |
|
|
|
} else if (this.column.formula) { |
|
|
|
} else if (this.column.formula) { |
|
|
|
return `Formula - ${this.column.formula.value}` |
|
|
|
return `Formula - ${this.column.formula.value}` |
|
|
|
} else if (this.column.rollup) { |
|
|
|
} else if (this.column.rl) { |
|
|
|
return `${this.column.rollup.fn} of ${this.column.rollup._rlcn} (${this.column.rollup._rltn})` |
|
|
|
return `${this.column.rl.fn} of ${this.column.rl._rlcn} (${this.column.rl._rltn})` |
|
|
|
} |
|
|
|
} |
|
|
|
return '' |
|
|
|
return '' |
|
|
|
} |
|
|
|
} |
|
|
@ -308,7 +308,7 @@ export default { |
|
|
|
const meta = JSON.parse(JSON.stringify(this.$store.state.meta.metas[this.meta.tn])) |
|
|
|
const meta = JSON.parse(JSON.stringify(this.$store.state.meta.metas[this.meta.tn])) |
|
|
|
|
|
|
|
|
|
|
|
// remove rollup from virtual columns |
|
|
|
// remove rollup from virtual columns |
|
|
|
meta.v = meta.v.filter(cl => !cl.rollup || cl._cn !== this.column._cn) |
|
|
|
meta.v = meta.v.filter(cl => !cl.rl || cl._cn !== this.column._cn) |
|
|
|
|
|
|
|
|
|
|
|
await this.$store.dispatch('sqlMgr/ActSqlOp', [{ |
|
|
|
await this.$store.dispatch('sqlMgr/ActSqlOp', [{ |
|
|
|
env: this.nodes.env, |
|
|
|
env: this.nodes.env, |
|
|
@ -328,7 +328,7 @@ export default { |
|
|
|
await this.deleteLookupColumn() |
|
|
|
await this.deleteLookupColumn() |
|
|
|
} else if (this.column.formula) { |
|
|
|
} else if (this.column.formula) { |
|
|
|
await this.deleteFormulaColumn() |
|
|
|
await this.deleteFormulaColumn() |
|
|
|
} else if (this.column.rollup) { |
|
|
|
} else if (this.column.rl) { |
|
|
|
await this.deleteRollupColumn() |
|
|
|
await this.deleteRollupColumn() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
await this.deleteRelation() |
|
|
|
await this.deleteRelation() |
|
|
|