This commit is contained in:
@@ -60,8 +60,7 @@ https://www.ayanova.com/AyaNova7webHelp/index.html?dashboard.htm
|
|||||||
timespan and interval
|
timespan and interval
|
||||||
tags wo, woitem, USER tags also
|
tags wo, woitem, USER tags also
|
||||||
|
|
||||||
BRING BACK USER COLOR? Or random assignment?
|
### TEST MIGRATE USER COLOR WITH THIS WHEN DONE ###
|
||||||
user color should be a thing I think
|
|
||||||
|
|
||||||
|
|
||||||
* LIST overdue workorders (booked on, in the past, not a closed status) for current scheduleable user
|
* LIST overdue workorders (booked on, in the past, not a closed status) for current scheduleable user
|
||||||
@@ -898,7 +897,15 @@ BUILD 8.0.0-beta.1-rc3 CHANGES OF NOTE
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
================================================
|
================================================
|
||||||
204 new lady? 2022-03-01 11:20:10
|
204 new lady? 2022-03-01 11:20:10
|
||||||
"I pay 917 here for a two bedroom."
|
"I pay 917 here for a two bedroom."
|
||||||
|
|
||||||
|
2022-03-01 12:45:13
|
||||||
|
Don't fucking sign anything. I've been here for 8 years, change is good
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
>
|
>
|
||||||
<template slot="main">
|
<template slot="main">
|
||||||
<div>
|
<div>
|
||||||
|
<!-- {{ chartData }} -->
|
||||||
<gz-chart-bar :chart-data="chartData" :options="chartOptions" />
|
<gz-chart-bar :chart-data="chartData" :options="chartOptions" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -114,6 +115,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
obj: {},
|
obj: {},
|
||||||
|
meta: [],
|
||||||
context: false,
|
context: false,
|
||||||
localSettings: {},
|
localSettings: {},
|
||||||
selectLists: {
|
selectLists: {
|
||||||
@@ -151,15 +153,36 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
chartData() {
|
chartData() {
|
||||||
return {
|
let ret = [];
|
||||||
datasets: [
|
//build data sets here
|
||||||
{
|
//format should be broken out by user
|
||||||
label: "usernamehere",
|
//iterate data and lookup what's needed in meta for each change of data
|
||||||
backgroundColor: this.settings.color ?? "#000000",
|
//or, is it the other way around, maybe iterate meta and if find in data then build dataset!!
|
||||||
data: this.obj
|
this.meta.forEach(m => {
|
||||||
}
|
let userData=this.obj.filter(d=>d.z==m.userid);
|
||||||
]
|
|
||||||
};
|
if(userData.length>0){
|
||||||
|
let item = {
|
||||||
|
label: m.name,
|
||||||
|
backgroundColor: m.uicolor,
|
||||||
|
data: userData.map(d => {
|
||||||
|
return { x: d.x, y: d.y };
|
||||||
|
})
|
||||||
|
};
|
||||||
|
// }
|
||||||
|
// if (item.data.length > 0) {
|
||||||
|
// ret.push(item);
|
||||||
|
// }
|
||||||
|
});
|
||||||
|
console.log(JSON.stringify({ datasets: ret }));
|
||||||
|
return { datasets: ret };
|
||||||
|
// datasets: [
|
||||||
|
// {
|
||||||
|
// label: "usernamehere",
|
||||||
|
// backgroundColor: this.settings.color ?? "#000000",
|
||||||
|
// data: this.obj
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
@@ -215,6 +238,7 @@ export default {
|
|||||||
timeZone: this.timeZoneName
|
timeZone: this.timeZoneName
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
this.meta = res.meta;
|
||||||
this.obj = res.data;
|
this.obj = res.data;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -381,12 +381,12 @@
|
|||||||
{{ $ay.t("UserColor") }}
|
{{ $ay.t("UserColor") }}
|
||||||
</span>
|
</span>
|
||||||
<v-color-picker
|
<v-color-picker
|
||||||
|
ref="uiColor"
|
||||||
v-model="optionsObj.uiColor"
|
v-model="optionsObj.uiColor"
|
||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
hide-mode-switch
|
hide-mode-switch
|
||||||
mode="hexa"
|
mode="hexa"
|
||||||
:error-messages="form().serverErrors(this, 'uiColor')"
|
:error-messages="form().serverErrors(this, 'uiColor')"
|
||||||
ref="uiColor"
|
|
||||||
@input="fieldValueChanged('uiColor')"
|
@input="fieldValueChanged('uiColor')"
|
||||||
></v-color-picker>
|
></v-color-picker>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|||||||
Reference in New Issue
Block a user