This commit is contained in:
2020-06-29 22:05:02 +00:00
parent 31f87a7eb8
commit e263275abf
8 changed files with 84 additions and 9 deletions

View File

@@ -276,7 +276,8 @@ export default {
Enum = 10,
EmailAddress = 11,
HTTP = 12,
InternalId = 13
InternalId = 13,
MemorySize=14
*/
switch (ctrlType) {
//DateLike?

View File

@@ -81,7 +81,7 @@
</template>
<template v-else-if="c.t == 4">
<!-- TEXT (also maybe openable)-->
<template v-if="c.i">
<template v-if="c.i && c.i != 0">
<!-- openable object with an ID -->
<div
class="subtitle-1"
@@ -138,6 +138,10 @@
<!-- Expects full url with protocol etc in c.v so might need to add to record builder -->
<a :href="c.v" target="_blank">{{ c.v }}</a>
</template>
<template v-else-if="c.t == 14">
<!-- File / memory Size -->
{{ c.v }}
</template>
<template v-else>
<!-- UNKNOWN -->
{{ c.v }}
@@ -232,7 +236,7 @@
</template>
<template v-else-if="c.t == 4">
<!-- TEXT (also maybe openable)-->
<template v-if="c.i">
<template v-if="c.i && c.i != 0">
<!-- openable object with an ID -->
<div
class="subtitle-1"
@@ -292,6 +296,10 @@
<!-- Expects full url with protocol etc in c.v so might need to add to record builder -->
<a :href="c.v" target="_blank">{{ c.v }}</a>
</template>
<template v-else-if="c.t == 14">
<!-- File / memory Size -->
{{ c.v }}
</template>
<template v-else>
<!-- UNKNOWN -->
{{ c.v }}
@@ -629,7 +637,8 @@ function buildRecords(listData, columndefinitions) {
Enum = 10,
EmailAddress = 11,
HTTP = 12,
InternalId = 13
InternalId = 13,
MemorySize=14
}
*/
@@ -681,6 +690,14 @@ function buildRecords(listData, columndefinitions) {
display
);
break;
case 14: //MemorySize (file size)
display = window.$gz.locale.humanFileSize(
display,
languageName,
false,
2
);
break;
default:
//do nothing, allow it to stay as is (checkbox, plain text etc)
}