This commit is contained in:
2020-12-08 16:22:12 +00:00
parent 8862a0c796
commit 02255e72be
2 changed files with 17 additions and 20 deletions

View File

@@ -29,6 +29,7 @@ ACTIONS:
$profit $profit
todo: seeder subcontractor user no vendor attached?
todo: deleting customer must attempt to delete the following as they are entered "in" form and not selected externally so they are part of Customer and should delete with it: todo: deleting customer must attempt to delete the following as they are entered "in" form and not selected externally so they are part of Customer and should delete with it:
customer notes customer notes

View File

@@ -26,36 +26,32 @@
const FORM_KEY = "inside-user-list"; const FORM_KEY = "inside-user-list";
export default { export default {
created() { created() {
//FILTER OUT INSIDE: {"offset":0,"limit":50,"dataListKey":"TestWidgetDataList","listView":"[{\"fld\":\"widgetname\"},{\"fld\":\"widgetserial\"},{\"fld\":\"widgetdollaramount\"},{\"fld\":\"widgetusertype\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":3},{\"op\":\"=\",\"value\":4}],\"any\":true}},{\"fld\":\"widgetstartdate\"},{\"fld\":\"widgetactive\"},{\"fld\":\"username\"}]"}
//FILTER OUT OUTSIDE: {"offset":0,"limit":50,"dataListKey":"TestWidgetDataList","listView":"[{\"fld\":\"widgetname\"},{\"fld\":\"widgetserial\"},{\"fld\":\"widgetdollaramount\"},{\"fld\":\"widgetusertype\",\"filter\":{\"items\":[{\"op\":\"!=\",\"value\":3},{\"op\":\"!=\",\"value\":4}]}},{\"fld\":\"widgetstartdate\"},{\"fld\":\"widgetactive\"},{\"fld\":\"username\"}]"}
//Inside users only //Inside users only
// this.metaView = JSON.stringify([
// {
// fld: "usertype",
// filter: {
// items: [
// { op: "!=", value: 3 },
// { op: "!=", value: 4 }
// ]
// }
// }
// ]);
//outside users only
this.metaView = JSON.stringify([ this.metaView = JSON.stringify([
{ {
fld: "usertype", fld: "usertype",
filter: { filter: {
items: [ items: [
{ op: "=", value: 3 }, { op: "!=", value: 3 },
{ op: "=", value: 4 } { op: "!=", value: 4 }
], ]
any: true
} }
} }
]); ]);
// {\"fld\":\"widgetusertype\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":3},{\"op\":\"=\",\"value\":4}],\"any\":true}} //outside users only
// this.metaView = JSON.stringify([
// {
// fld: "usertype",
// filter: {
// items: [
// { op: "=", value: 3 },
// { op: "=", value: 4 }
// ],
// any: true
// }
// }
// ]);
this.rights = window.$gz.role.getRights(window.$gz.type.User); this.rights = window.$gz.role.getRights(window.$gz.type.User);
window.$gz.eventBus.$on("menu-click", clickHandler); window.$gz.eventBus.$on("menu-click", clickHandler);