This commit is contained in:
2021-04-05 18:55:47 +00:00
parent c5cbc0631c
commit 02e6398637
3 changed files with 13 additions and 4 deletions

View File

@@ -55,6 +55,10 @@
todo: need an editable control at every level for proper test of partical update
todo: need the state control at least enough to test as it's a critical part
todo: need dirty tracking stuff for each level to set / check so top level save can know what to update
USAGE NOTES:
v-if should always be as high up as possible for performance, so don't let a component decide to render, make the parent do the v-if!!
e.g. don't let a GzWoItemParts component check if it should display, instead do it in here
-->
<GzWoItemScheduledUsers

View File

@@ -1,9 +1,15 @@
<template>
<div>
viz: {{ pvm.subRights.states.visible }}
<span class="text-caption">{{ $ay.t("WorkOrderStatus") }}</span>
<div>
{{ lastState }}
<template v-if="canAdd">
<h5>editable state here</h5>
{{ lastState }}
</template>
<template v-else>
<h5>read only state here</h5>
{{ lastState }}
</template>
</div>
<!--

View File

@@ -196,8 +196,7 @@ export default {
},
states: {
visible: true,
create: true,
change: true,
create: false, //no change, only create it's write only
delete: true
},
labors: {