Table MySkills

This commit is contained in:
Paolo Arena
2021-10-08 00:38:22 +02:00
parent eb4156fc89
commit 48128235f8
22 changed files with 1250 additions and 1184 deletions

View File

@@ -55,11 +55,18 @@ export default defineComponent({
function refreshval() {
myarrvalues.value = []
// console.table(options)
// console.log('options', props.options)
if (props.options) {
props.options.forEach((rec: any, index) => {
if (props.type === costanti.FieldType.multiselect) {
if (!!myval.value) {
/*
console.log('rec', rec)
console.log('optval', props.optval)
console.log('optlab', props.optlab)
console.log('myval.value', myval.value)
console.log('rec[props.optval]', rec[props.optval])
*/
// @ts-ignore
if (myval.value.includes(rec[props.optval])) {
const mydata: any = {
@@ -71,6 +78,18 @@ export default defineComponent({
color: tools.getColorByIndexBest(index)
}
if (rec['color']) {
mydata.color = rec['color']
}
/*
if (rec['theme']) {
mydata.class = rec['theme']
}
*/
// console.log('mydata', mydata)
if (tools.isObject(props.optlab)) {
// @ts-ignore
mydata.label = props.options.filter((myrec: any) => myrec[props.optval] === mydata.value).map(props.optlab)
@@ -80,6 +99,8 @@ export default defineComponent({
mydata.label = rec[props.optlab]
}
// console.log('mydata.label', mydata.label)
if (props.opticon)
mydata.icon = rec[props.opticon]
if (props.optcolor)