This commit is contained in:
@@ -40,7 +40,35 @@
|
||||
<td v-for="c in item.columns" :key="c.key">
|
||||
<!-- Handle all plain text types right up to and including enums -->
|
||||
<!--TODO when get to coloured stuff will need to add that as a prop to column data but leaving out for now-->
|
||||
<template v-if="c.t < 11">
|
||||
<!-- public enum UiFieldDataType : int
|
||||
{
|
||||
NoType = 0,
|
||||
DateTime = 1,
|
||||
Date = 2,
|
||||
Time = 3,
|
||||
Text = 4,
|
||||
Integer = 5,
|
||||
Bool = 6,
|
||||
Decimal = 7,
|
||||
Currency = 8,
|
||||
Tags = 9,
|
||||
Enum = 10,
|
||||
EmailAddress = 11,
|
||||
HTTP = 12
|
||||
|
||||
}
|
||||
} -->
|
||||
<template v-if="c.t == 1">
|
||||
<!-- DATETIME -->
|
||||
</template>
|
||||
<template v-else-if="c.t == 2">
|
||||
<!-- DATE -->
|
||||
</template>
|
||||
<template v-else-if="c.t == 3">
|
||||
<!-- TIME -->
|
||||
</template>
|
||||
<template v-else-if="c.t == 4">
|
||||
<!-- TEXT (also maybe openable)-->
|
||||
<template v-if="c.i">
|
||||
<!-- openable object with an ID -->
|
||||
<v-btn depressed small @click="btnClick(c.key, c.i)">{{
|
||||
@@ -51,13 +79,43 @@
|
||||
{{ c.v }}
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="c.t == 11">
|
||||
<template v-else-if="c.t == 5">
|
||||
<!-- INTEGER -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else-if="c.t == 6">
|
||||
<!-- BOOL -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else-if="c.t == 7">
|
||||
<!-- DECIMAL -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else-if="c.t == 8">
|
||||
<!-- CURRENCY -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else-if="c.t == 9">
|
||||
<!-- TAGS -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else-if="c.t == 10">
|
||||
<!-- ENUM (translated to text on getdata) -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else-if="c.t == 11">
|
||||
<!-- EMAIL -->
|
||||
<a :href="'mailto:' + c.v">{{ c.v }}</a>
|
||||
</template>
|
||||
<template v-if="c.t == 12">
|
||||
<template v-else-if="c.t == 12">
|
||||
<!-- URL / HTTP -->
|
||||
<!-- 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>
|
||||
<!-- UNKNOWN -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -392,9 +450,9 @@ function buildRecords(listData, columndefinitions, filters) {
|
||||
case 3: //time only
|
||||
display = filters.shorttimeonlylocalized(display);
|
||||
break;
|
||||
case 6: //bool
|
||||
display = filters.boolastext(display);
|
||||
break;
|
||||
// case 6: //bool
|
||||
// display = filters.boolastext(display);
|
||||
// break;
|
||||
case 7: //decimal
|
||||
display = filters.decimal(display);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user