This commit is contained in:
2020-02-05 15:40:00 +00:00
parent 589e8f4fac
commit b4133576d9
2 changed files with 66 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ CURRENT TODOs
SHELL / NAV / MENUS / LAYOUT
TODO: Make sure scroll position is respected and saved when editing a widget and coming back to the list
TODO: toolbar above grid for filters, refresh etc (make it a standard component?)
TODO: main.js filters need to be finished
TODO: SEARCH UI
@@ -56,7 +56,7 @@ TODO: FILTER UI
- Show current filter summary or text name of filter at top of filter
- going to need filter name and also a summarized fragment of text showing criteria for reporting so also could purpose that list to show current filter?
- Filter picklist will show name for the current filter and sb at top of filter right up front
TODO: Make sure scroll position is respected and saved when editing a widget and coming back to the list
TODO: MAKE COMPONENT Select lists and filtering by tag "select-search-filter-control"

View File

@@ -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;