 
<template>
    <!-- 最新日志 -->
    <div class="v-widget-item sds-window-v5 syno-sds-widget-item">
        <div class="v-widget-item-header"><img
                :src="logDetail.titleImgUrl"
                class="v-widget-item-header-icon">
            <div class="v-widget-item-header-title"><span
                    class="v-widget-item-header-title-text">
                    {{logDetail.title}}
                </span></div>
            <div class="v-widget-item-header-tools">
                <div class="v-widget-item-header-tool-icon minimize"></div>
                <div class="v-widget-item-header-tool-icon close"></div>
            </div>
        </div>
        <div class="v-widget-item-content">
            <div class=" x-panel sds-widget-gridpanel x-panel-noborder x-grid-panel"
                style="width: 318px;">
                <div class="x-panel-bwrap">
                    <div class="x-panel-body x-panel-body-noheader x-panel-body-noborder"
                        style="width: 318px; height: 168px;">
                        <div class="x-grid3" hidefocus="true"
                            style="width: 318px; height: 168px;">
                            <div class="x-grid3-viewport">
                                <div class="x-grid3-scroller"
                                    style="overflow: hidden; width: 318px; height: 168px;">
                                    <div class="x-grid3-body" style="width:289px;">
                                        <div class="x-grid3-row  x-grid3-row-first"
                                            style="width:289px;"
                                            v-for="detailMessage in logDetail.detailMessageList" :key="detailMessage.id">
                                            <table class="x-grid3-row-table"
                                                border="0" cellspacing="0"
                                                cellpadding="0"
                                                style="width:289px;">
                                                <tbody>
                                                    <tr>
                                                        <td class="x-grid3-col x-grid3-cell x-grid3-td-0 x-grid3-cell-first x-grid3-cell-first-visible "
                                                            style="padding: 0;width: 35px;text-align: center;"
                                                            tabindex="0">
                                                            <div
                                                                class="x-grid3-cell-inner x-grid3-col-0 x-unselectable">
                                                                <div
                                                                    class="log-info" :class="detailMessage.cls">
                                                                    &nbsp;</div>
                                                            </div>
                                                        </td>
                                                        <td class="x-grid3-col x-grid3-cell x-grid3-td-msg x-grid3-cell-last x-grid3-cell-last-visible "
                                                            style="white-space:normal;width: 250px;"
                                                            tabindex="0">
                                                            <div
                                                                class="x-grid3-cell-inner x-grid3-col-msg x-unselectable">
                                                                {{detailMessage.text}}</div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div><a href="#" class="x-grid3-focus"
                                        tabindex="-1"
                                        style="left: 0px; top: 0px;"></a>
                                </div>
                                <div class="arrow-scroller">
                                    <div class="up arrow-disabled">
                                        <div class="arrow-up"></div>
                                    </div>
                                    <div class="down">
                                        <div class="arrow-down"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="x-grid3-resize-marker">
                                &nbsp;</div>
                            <div class="x-grid3-resize-proxy">&nbsp;
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>

export default {
  data() {
    return {
        logDetail:{
            id: 1,
            title: '最新日志',
            titleImgUrl: '../../../../public/image/index/recentLogs.png',
            detailMessageList: [
                {
                    id: 10,
                    text: 'User [synology] from [172.21.2.22] signedin to [DSM] successfully via [password].',
                    cls: 'sds-recentlog-loglevel',
                },
                {
                    id: 11,
                    text: 'User [synology] from [172.21.2.22] signedin to [DSM] successfully via [password].',
                    cls: 'sds-recentlog-loglevel',
                },
                {
                    id: 12,
                    text: 'User [synology] from [172.21.2.22] signedin to [DSM] successfully via [password].',
                    cls: 'sds-recentlog-loglevel',
                },
                {
                    id: 13,
                    text: 'User [synology] from [172.21.2.22] signedin to [DSM] successfully via [password].',
                    cls: 'sds-recentlog-loglevel',
                },
                {
                    id: 14,
                    text: 'User [synology] from [172.21.2.22] signedin to [DSM] successfully via [password].',
                    cls: 'sds-recentlog-loglevel',
                },
                {
                    id: 15,
                    text: 'User [synology] from [172.21.2.22] signedin to [DSM] successfully via [password].',
                    cls: 'sds-recentlog-loglevel',
                },
                {
                    id: 16,
                    text: 'User [synology] from [172.21.2.22] signedin to [DSM] successfully via [password].',
                    cls: 'sds-recentlog-loglevel',
                }
            ]
        }
    }
  },
  components:{
  },
  name:'NewLog',
  

}
</script>
 