This commit is contained in:
@@ -4,7 +4,21 @@
|
|||||||
{{ obj }}
|
{{ obj }}
|
||||||
|
|
||||||
<v-list three-line>
|
<v-list three-line>
|
||||||
<v-list-item> </v-list-item>
|
<template v-for="item in obj">
|
||||||
|
<v-list-item :key="item.id">
|
||||||
|
<v-list-item-avatar>
|
||||||
|
<v-icon>{{ item.icon }}</v-icon>
|
||||||
|
</v-list-item-avatar>
|
||||||
|
<v-list-item-content>
|
||||||
|
<v-list-item-title
|
||||||
|
>{{ item.uiayatype }} {{ item.uicreated }}</v-list-item-title
|
||||||
|
>
|
||||||
|
<v-list-item-subtitle
|
||||||
|
v-html="subtitleHtml(item)"
|
||||||
|
></v-list-item-subtitle>
|
||||||
|
</v-list-item-content>
|
||||||
|
</v-list-item>
|
||||||
|
</template>
|
||||||
</v-list>
|
</v-list>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -50,6 +64,14 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
subtitleHtml(item) {
|
||||||
|
let msg = "";
|
||||||
|
if (item.message) {
|
||||||
|
msg = ` — ${item.message}`;
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
return `<span class='text--primary'>${item.uievent}</span>${msg}`;
|
||||||
|
},
|
||||||
async getDataFromApi() {
|
async getDataFromApi() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user