This commit is contained in:
@@ -36,7 +36,9 @@ export default {
|
||||
settings: {
|
||||
customTitle: null,
|
||||
wotags: [],
|
||||
woitemtags: []
|
||||
wotagsany: true,
|
||||
woitemtags: [],
|
||||
woitemtagsany: true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -51,16 +51,48 @@
|
||||
<v-card-text>
|
||||
<gz-tag-picker
|
||||
v-model="localSettings.wotags"
|
||||
class="mt-4"
|
||||
:label="$ay.t('Tags') + ' - ' + $ay.t('WorkOrder')"
|
||||
></gz-tag-picker>
|
||||
<v-radio-group
|
||||
v-if="localSettings.wotags.length > 1"
|
||||
v-model="localSettings.wotagsany"
|
||||
row
|
||||
class="mt-n3"
|
||||
>
|
||||
<v-radio
|
||||
:label="$ay.t('GridFilterDialogAndRadioText')"
|
||||
:value="false"
|
||||
></v-radio>
|
||||
<v-radio
|
||||
:label="$ay.t('GridFilterDialogOrRadioText')"
|
||||
:value="true"
|
||||
></v-radio>
|
||||
</v-radio-group>
|
||||
|
||||
<gz-tag-picker
|
||||
v-model="localSettings.woitemtags"
|
||||
class="mt-4"
|
||||
:label="$ay.t('Tags') + ' - ' + $ay.t('WorkOrderItem')"
|
||||
></gz-tag-picker>
|
||||
|
||||
<v-radio-group
|
||||
v-if="localSettings.woitemtags.length > 1"
|
||||
v-model="localSettings.woitemtagsany"
|
||||
row
|
||||
class="mt-n3"
|
||||
>
|
||||
<v-radio
|
||||
:label="$ay.t('GridFilterDialogAndRadioText')"
|
||||
:value="false"
|
||||
></v-radio>
|
||||
<v-radio
|
||||
:label="$ay.t('GridFilterDialogOrRadioText')"
|
||||
:value="true"
|
||||
></v-radio>
|
||||
</v-radio-group>
|
||||
<v-text-field
|
||||
v-model="localSettings.customTitle"
|
||||
class="mt-4"
|
||||
:label="$ay.t('Name')"
|
||||
></v-text-field>
|
||||
</v-card-text>
|
||||
@@ -118,7 +150,9 @@ export default {
|
||||
//copy settings from local to parent settings, need to do it this way or get error about mutating prop directly which is vexing and has no easy solution seemingly
|
||||
this.settings.customTitle = this.localSettings.customTitle;
|
||||
this.settings.wotags = this.localSettings.wotags;
|
||||
this.settings.wotagsany = this.localSettings.wotagsany;
|
||||
this.settings.woitemtags = this.localSettings.woitemtags;
|
||||
this.settings.woitemtagsany = this.localSettings.woitemtagsany;
|
||||
|
||||
this.$emit("dash-change"); //trigger save to server
|
||||
this.context = false;
|
||||
@@ -132,7 +166,9 @@ export default {
|
||||
KPIName: "WorkOrderOverduePersonalList",
|
||||
criteria: {
|
||||
wotags: this.settings.wotags,
|
||||
woitemtags: this.settings.woitemtags
|
||||
wotagsany: this.settings.wotagsany,
|
||||
woitemtags: this.settings.woitemtags,
|
||||
woitemtagsany: this.settings.woitemtagsany
|
||||
},
|
||||
clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp()
|
||||
});
|
||||
@@ -164,7 +200,9 @@ async function fetchTranslatedText() {
|
||||
"Name",
|
||||
"WorkOrder",
|
||||
"WorkOrderItem",
|
||||
"NoData"
|
||||
"NoData",
|
||||
"GridFilterDialogAndRadioText",
|
||||
"GridFilterDialogOrRadioText"
|
||||
]);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user