WIDGET500.lview 1.19 KB
<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: hty
    $Date: 2018/6/5 10:05
    $Revision: 1.0
    系统公告
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view template="default" package="leaf.ui.std">
        <style>
            html, body {
                width: 270px;
                height: 70px;
                margin: 0;
                padding: 0;
            }
        </style>
        <div></div>
        <script><![CDATA[
        function goAnnouncement() {
            top.mainJumpCode('SYS100');
        }

        ]]></script>
        <a:dataSets>
            <a:dataSet id="announcement_ds" autoQuery="true" model="home.sys_announcement_count">
                <a:fields>
                    <a:field name="list_count"/>
                    <a:field name="read_radio"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:menuBlock id="announcement" bindtarget="announcement_ds" count-field="list_count" radio-field="read_radio"
                     title="系统公告" fa-icon="fa fa-envelope-o" bg-color="#ffce55" click-function="goAnnouncement">
        </a:menuBlock>
    </a:view>
</a:screen>