This commit is contained in:
2021-01-30 21:18:20 +00:00
parent 5a1abb08eb
commit dcabdc1fe1
2 changed files with 21 additions and 25 deletions

View File

@@ -148,6 +148,16 @@ todo: filter, can be programmatic or user, user saves, can choose from list
TODO: LIST VIEW REPLACMENT OUTSTANDING TO DO TODO: LIST VIEW REPLACMENT OUTSTANDING TO DO
Client fixup <---= CURRENTLY HERE Client fixup <---= CURRENTLY HERE
WHERE IT"S AT:
listcolumnview form works but has issues:
un translated title
Items don't stay in their location when set to not include and saved
not sure if this is a problem or just necessary but it's jarring as is different than before, maybe better though as all visible are at the top??
figure it out!
icon is filter need to pick new icon for data-list-column-view
"view" related stuff? Something that looks like columns?
Fixup client so existing client works with new filter and sort system *before* porting UI Fixup client so existing client works with new filter and sort system *before* porting UI
{ {
"dataListKey": "string", "dataListKey": "string",

View File

@@ -4,8 +4,7 @@
<v-form ref="form"> <v-form ref="form">
<v-row> <v-row>
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error> <gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
obj: {{ obj }}<br />
editView: {{ editView }}
<template v-for="(item, index) in editView"> <template v-for="(item, index) in editView">
<v-col :key="item.key" cols="12" sm="6" lg="4" xl="3" px-2> <v-col :key="item.key" cols="12" sm="6" lg="4" xl="3" px-2>
<v-card :data-cy="'columncard:' + item.key"> <v-card :data-cy="'columncard:' + item.key">
@@ -206,29 +205,6 @@ export default {
let url = API_BASE_URL; let url = API_BASE_URL;
/*
{
"data": {
"id": 1,
"concurrency": 4999088,
"userId": 1,
"listKey": "TestWidgetDataList",
"columns": "[\"widgetname\",\"widgetserial\",\"widgetdollaramount\",\"widgetusertype\",\"widgetstartdate\",\"widgetactive\",\"username\"]",
"sort": "{\"widgetname\":\"+\"}"
}
}
{
"id": 0,
"concurrency": 0,
"userId": 0,
"listKey": "string",
"columns": "string",
"sort": "string"
}
*/
let columnView = { let columnView = {
userId: vm.$store.state.userId, userId: vm.$store.state.userId,
listKey: vm.dataListKey, listKey: vm.dataListKey,
@@ -248,6 +224,11 @@ export default {
} else { } else {
vm.obj = res.data; vm.obj = res.data;
initWorkingView(vm); initWorkingView(vm);
window.$gz.form.setFormState({
vm: vm,
dirty: false,
valid: true
});
} }
} catch (error) { } catch (error) {
vm.formState.loading = false; vm.formState.loading = false;
@@ -272,6 +253,11 @@ export default {
//this "remove" route is a reset route and returns the object //this "remove" route is a reset route and returns the object
vm.obj = res.data; vm.obj = res.data;
initWorkingView(vm); initWorkingView(vm);
window.$gz.form.setFormState({
vm: vm,
dirty: false,
valid: true
});
} }
} catch (error) { } catch (error) {
//Update the form status //Update the form status