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 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
|
||||
|
||||
@@ -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>
|
||||
|
||||
<!--
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user