min_top_timeconsume.lview 2.76 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: jessen  
    $Date: 2011-9-29 下午3:25:52  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <a:link id="full_detail_of_url_link" url="${/request/@context_path}/modules/sys/SYS2520/full_detail_of_url.lview"/>
        <a:link id="full_top_timeconsume_link" url="${/request/@context_path}/modules/sys/SYS2520/full_top_timeconsume.lview"/>
        <script type="text/javascript"><![CDATA[
            function onclick4() {
                new Leaf.Window({
                    id: 'full_top_timeconsume',
                    title: '最常用功能',
                    url: /*full_top_timeconsume.screen*/$('full_top_timeconsume_link').getUrl(),
                    width: 1000,
                    height: 550
                });
            }
            function onpointclick(e, r) {
                var r2 = $('query_ds').getCurrentRecord();
                new Leaf.Window({
                    id: 'asdewgsdfsewf',
                    title:'耗时明细:'+r.get('url'),
                    url: /*full_detail_of_url.screen*/$('full_detail_of_url_link').getUrl()+'?url=' + r.get('url') + "&startDate=" + Leaf.formatDate(r2.get('startDate')) + "&endDate=" + Leaf.formatDate(r2.get('endDate')),
                    height: 450,
                    width: 1000
                });
            }
            function query4(){
                $('min_top_timeconsume_ds').query();
            }
            ]]></script>
        <a:dataSets>
            <a:dataSet id="min_top_timeconsume_ds" model="sys.SYS2520.sys_analytics_top_timeconsume" pageSize="100" queryDataSet="query_ds">
                <a:fields>
                    <a:field name="url" prompt="页面"/>
                    <a:field name="time" datatype="float" prompt="time"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:chart bindTarget="min_top_timeconsume_ds" inverted="false" style="width: 350px; height: 200px" type="column">
                <a:title text="最耗时操作"/>
                <a:xAxis>
                    <a:xAxi name="url">
                        <a:labels formatter="emptyRenderer"/>
                    </a:xAxi>
                </a:xAxis>
                <a:yAxis>
                    <a:yAxi name="time">
                        <a:labels formatter="emptyRenderer"/>
                        <a:title text=""/>
                    </a:yAxi>
                </a:yAxis>
                <a:events>
                    <a:event name="click" handler="onclick4"/>
                    <a:event name="pointclick" handler="onpointclick"/>
                </a:events>
            </a:chart>
        </a:screenBody>
    </a:view>
</a:screen>