Browse Source

fix: form view bugs

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/659/head
Pranav C 3 years ago
parent
commit
a3a4b65dff
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/manyToManyCell.vue
  2. 2
      packages/nc-gui/components/project/spreadsheet/public/xcTable.vue
  3. 12
      packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts
  4. 6
      packages/nocodb/src/lib/noco/meta/NcMetaMgrEE.ts

2
packages/nc-gui/components/project/spreadsheet/components/virtualCell/manyToManyCell.vue

@ -17,7 +17,7 @@
<span v-if="!isLocked && value && value.length === 10" class="caption pointer ml-1 grey--text" @click="showChildListModal">more...</span>
</div>
<div
v-if="!active && !isLocked"
v-if="!isLocked"
class="actions align-center justify-center px-1 flex-shrink-1"
:class="{'d-none': !active, 'd-flex':active }"
>

2
packages/nc-gui/components/project/spreadsheet/public/xcTable.vue

@ -495,7 +495,7 @@ export default {
this.client = client
this.meta = meta
this.query_params = JSON.parse(qp)
this.query_params = qp
this.dbAlias = dbAlias
this.metas = relatedTableMetas

12
packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

@ -3716,6 +3716,18 @@ export default class NcMetaMgr {
} catch (e) {
console.log(e);
}
viewMeta.query_params = JSON.parse(viewMeta.query_params);
viewMeta.meta = {
...viewMeta.meta,
columns: viewMeta.meta.columns.filter(
c => viewMeta.query_params?.showFields?.[c._cn]
),
v: viewMeta.meta.v?.filter(
c => viewMeta.query_params?.showFields?.[c._cn]
)
};
return viewMeta;
}

6
packages/nocodb/src/lib/noco/meta/NcMetaMgrEE.ts

@ -161,12 +161,12 @@ export default class NcMetaMgrEE extends NcMetaMgr {
where += where ? `~and(${queryParams.where})` : queryParams.where;
}
const fields = queryParams?.fields || '*';
const fields = meta.columns.map(c => c._cn).join(',');
return {
model_name: viewMeta.model_name,
meta,
queryParams,
// meta,
// queryParams,
data: await model.nestedList({
...req.query,
where,

Loading…
Cancel
Save