<template>
    <!-- 计划的任务 -->
    <div class="v-widget-item sds-window-v5 syno-sds-widget-item">
        <div class="v-widget-item-header"><img
                :src="scheduledTaskDetail.titleImgUrl"
                class="v-widget-item-header-icon">
            <div class="v-widget-item-header-title"><span
                    class="v-widget-item-header-title-text">
                    {{scheduledTaskDetail.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-header" style="display: none;">
                                    <div class="x-grid3-header-inner"
                                        style="width: 318px;">
                                    </div>
                                    <div class="x-clear"></div>
                                </div>
                                <div class="x-grid3-scroller"
                                    style="overflow: hidden; width: 318px; height: 168px;">
                                    <div class="x-grid3-body" style="width:292px;" v-for="detailMessage in scheduledTaskDetail.detailMessageList" :key="detailMessage.id">
                                        <div class="x-grid3-row  x-grid3-row-first x-grid3-row-last"
                                            style="width:292px;">
                                            <table class="x-grid3-row-table"
                                                border="0" cellspacing="0"
                                                cellpadding="0"
                                                style="width:292px;">
                                                <tbody>
                                                    <tr>
                                                        <td class="x-grid3-col x-grid3-cell x-grid3-td-enable x-grid3-cell-first x-grid3-cell-first-visible "
                                                            style="padding: 0px;width: 38px;"
                                                            tabindex="0">
                                                            <div
                                                                class="x-grid3-cell-inner x-grid3-col-enable x-unselectable">
                                                                <div
                                                                    :class="detailMessage.cls">
                                                                </div>
                                                            </div>
                                                        </td>
                                                        <td class="x-grid3-col x-grid3-cell x-grid3-td-name "
                                                            style="padding: 0px 6px 0px 0px;width: 132px;"
                                                            tabindex="0">
                                                            <div
                                                                class="x-grid3-cell-inner x-grid3-col-name x-unselectable">
                                                                {{detailMessage.title}}</div>
                                                        </td>
                                                        <td class="x-grid3-col x-grid3-cell x-grid3-td-next_trigger_time x-grid3-cell-last x-grid3-cell-last-visible "
                                                            style="padding: 0px;width: 116px;"
                                                            tabindex="0">
                                                            <div
                                                                class="x-grid3-cell-inner x-grid3-col-next_trigger_time 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 arrow-disabled">
                                        <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 {
        scheduledTaskDetail:{
            id: 1,
            title: '计划的任务',
            titleImgUrl: '../../../../public/image/index/wdgt_icn_title_scheduled_tasks.png',
            detailMessageList: [
                {
                    id: 10,
                    title: 'mailplus-demo',
                    text: '2022-04-14 00:00',
                    cls: 'syno-taskscheduler-enable-taskicon',
                },
                {
                    id: 11,
                    title: 'mailplus-demo',
                    text: '2022-04-14 00:00',
                    cls: 'syno-taskscheduler-enable-taskicon',
                }
            ]
        }
    }
  },
  components:{
  },
  name:'ScheduledTask'

}
</script>