This commit is contained in:
2022-03-02 19:46:21 +00:00
parent 3da8164835
commit e6ca39f100
2 changed files with 44 additions and 4 deletions

View File

@@ -36,7 +36,9 @@ export default {
settings: { settings: {
customTitle: null, customTitle: null,
wotags: [], wotags: [],
woitemtags: [] wotagsany: true,
woitemtags: [],
woitemtagsany: true
} }
}, },
{ {

View File

@@ -51,16 +51,48 @@
<v-card-text> <v-card-text>
<gz-tag-picker <gz-tag-picker
v-model="localSettings.wotags" v-model="localSettings.wotags"
class="mt-4"
:label="$ay.t('Tags') + ' - ' + $ay.t('WorkOrder')" :label="$ay.t('Tags') + ' - ' + $ay.t('WorkOrder')"
></gz-tag-picker> ></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 <gz-tag-picker
v-model="localSettings.woitemtags" v-model="localSettings.woitemtags"
class="mt-4"
:label="$ay.t('Tags') + ' - ' + $ay.t('WorkOrderItem')" :label="$ay.t('Tags') + ' - ' + $ay.t('WorkOrderItem')"
></gz-tag-picker> ></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-text-field
v-model="localSettings.customTitle" v-model="localSettings.customTitle"
class="mt-4"
:label="$ay.t('Name')" :label="$ay.t('Name')"
></v-text-field> ></v-text-field>
</v-card-text> </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 //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.customTitle = this.localSettings.customTitle;
this.settings.wotags = this.localSettings.wotags; this.settings.wotags = this.localSettings.wotags;
this.settings.wotagsany = this.localSettings.wotagsany;
this.settings.woitemtags = this.localSettings.woitemtags; this.settings.woitemtags = this.localSettings.woitemtags;
this.settings.woitemtagsany = this.localSettings.woitemtagsany;
this.$emit("dash-change"); //trigger save to server this.$emit("dash-change"); //trigger save to server
this.context = false; this.context = false;
@@ -132,7 +166,9 @@ export default {
KPIName: "WorkOrderOverduePersonalList", KPIName: "WorkOrderOverduePersonalList",
criteria: { criteria: {
wotags: this.settings.wotags, 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() clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp()
}); });
@@ -164,7 +200,9 @@ async function fetchTranslatedText() {
"Name", "Name",
"WorkOrder", "WorkOrder",
"WorkOrderItem", "WorkOrderItem",
"NoData" "NoData",
"GridFilterDialogAndRadioText",
"GridFilterDialogOrRadioText"
]); ]);
} }
</script> </script>