This commit is contained in:
@@ -55,6 +55,10 @@
|
|||||||
todo: need an editable control at every level for proper test of partical update
|
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 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
|
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
|
<GzWoItemScheduledUsers
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
viz: {{ pvm.subRights.states.visible }}
|
|
||||||
<span class="text-caption">{{ $ay.t("WorkOrderStatus") }}</span>
|
<span class="text-caption">{{ $ay.t("WorkOrderStatus") }}</span>
|
||||||
<div>
|
<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>
|
</div>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|||||||
@@ -196,8 +196,7 @@ export default {
|
|||||||
},
|
},
|
||||||
states: {
|
states: {
|
||||||
visible: true,
|
visible: true,
|
||||||
create: true,
|
create: false, //no change, only create it's write only
|
||||||
change: true,
|
|
||||||
delete: true
|
delete: true
|
||||||
},
|
},
|
||||||
labors: {
|
labors: {
|
||||||
|
|||||||
Reference in New Issue
Block a user