|
@@ -0,0 +1,524 @@
|
|
|
+<!--
|
|
|
+ * @Author: your name
|
|
|
+ * @Date: 2021-09-28 15:46:22
|
|
|
+ * @LastEditTime: 2021-09-28 15:46:22
|
|
|
+ * @LastEditors: Please set LastEditors
|
|
|
+ * @Description: In User Settings Edit
|
|
|
+ * @FilePath: /MedicalWisdomCheckSys/src/test.html
|
|
|
+-->
|
|
|
+
|
|
|
+
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>问题汇总</title>
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
+ <meta name="author" content="FineReport"/>
|
|
|
+ <meta name="Copyright" content="FineReport"/>
|
|
|
+ <meta name="description" content="FineReport--Web Reporting Tool"/>
|
|
|
+ <meta name="keywords" content="FineReport,Web Reporting Tool"/>
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
+ href="http://112.124.59.133:8804/webroot/decision/view/form?op=emb&resource=finereport.css&cssVersion=1631787909766"/>
|
|
|
+ <link rel="stylesheet" type="text/css"
|
|
|
+ href="http://112.124.59.133:8804/webroot/decision/view/form?op=emb&resource=toolbar.css&cssVersion=1631787909766"/>
|
|
|
+ <!--插件引入的css文件-->
|
|
|
+
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+ window.initialWindowWidth = 600;
|
|
|
+ window.initialWindowHeight = 600;
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript"
|
|
|
+ src="http://112.124.59.133:8804/webroot/decision/view/form?op=emb&resource=finereport.js&inter=zh_CN&__v__=2021.01.25.11.03.31.957&jsVersion=1631787909766"></script>
|
|
|
+ <script type="text/javascript"
|
|
|
+ src="http://112.124.59.133:8804/webroot/decision/view/form?op=emb&resource=finereport.chart.js&jsVersion=1631787909766"></script>
|
|
|
+ <script type="text/javascript"
|
|
|
+ src="http://112.124.59.133:8804/webroot/decision/view/form?op=resource&resource=/com/fr/web/core/js/socket.io.js"></script>
|
|
|
+ <!--插件引入的js文件-->
|
|
|
+
|
|
|
+
|
|
|
+ <style type="text/css">
|
|
|
+ body.dragging, body.dragging * {
|
|
|
+ cursor: move !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .dragged {
|
|
|
+ position: absolute;
|
|
|
+ opacity: 1;
|
|
|
+ z-index: 2000;
|
|
|
+ }
|
|
|
+
|
|
|
+ #paramsTemplatePane > div {
|
|
|
+ display: inline;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript"
|
|
|
+ src="http://112.124.59.133:8804/webroot/decision/view/form?op=resource&resource=/com/fr/plugin/cloud/front/dist/polyfill.min.js"></script>
|
|
|
+ <script type="text/javascript"
|
|
|
+ src="http://112.124.59.133:8804/webroot/decision/view/form?op=resource&resource=/com/fr/plugin/cloud/front/dist/fp.min.js"></script>
|
|
|
+ <script type="text/javascript"
|
|
|
+ src="http://112.124.59.133:8804/webroot/decision/view/form?op=resource&resource=/com/fr/plugin/cloud/front/fine.mark.init.js"></script>
|
|
|
+
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+ //ie下低版本时修改浏览器渲染模式
|
|
|
+ if ($.browser.msie && $.browser.version <= 8.0) {
|
|
|
+ $("meta[http-equiv='X-UA-Compatible']").attr("content", "IE=5, IE=EmulateIE7, chrome=1");
|
|
|
+ }
|
|
|
+ $(function () {
|
|
|
+ var $body = $('body');
|
|
|
+ $('<form class="form-submit"></form>').attr('name', '问题汇总').appendTo($body);
|
|
|
+
|
|
|
+ var items = [];
|
|
|
+ var scrollHeight = 6;
|
|
|
+ var expandHeight = 8;
|
|
|
+ var contenConfig = {
|
|
|
+ "type": "border",
|
|
|
+ "widgetName": "FORM",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=form&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "",
|
|
|
+ "vgap": 0,
|
|
|
+ "hgap": 0,
|
|
|
+ "compInterval": 0,
|
|
|
+ "scrollable": false,
|
|
|
+ "items": [{
|
|
|
+ "region": "center",
|
|
|
+ "el": {
|
|
|
+ "type": "horizontal",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=null&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "",
|
|
|
+ "vgap": 0,
|
|
|
+ "hgap": 0,
|
|
|
+ "compInterval": 0,
|
|
|
+ "scrollable": false,
|
|
|
+ "items": [],
|
|
|
+ "showBookmarks": false,
|
|
|
+ "alignment": "center",
|
|
|
+ "displayposition": 0
|
|
|
+ }
|
|
|
+ }],
|
|
|
+ "showBookmarks": false,
|
|
|
+ "__FIT__": false,
|
|
|
+ "__FITSTATE__": 0,
|
|
|
+ "refresh": false
|
|
|
+ };
|
|
|
+ var paraConfig = {
|
|
|
+ "type": "parameter",
|
|
|
+ "widgetName": "PARA",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=para&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "",
|
|
|
+ "widgetBackground": "",
|
|
|
+ "vgap": 0,
|
|
|
+ "hgap": 0,
|
|
|
+ "compInterval": 0,
|
|
|
+ "scrollable": false,
|
|
|
+ "items": [{
|
|
|
+ "type": "datetime",
|
|
|
+ "widgetName": "开始时间",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "needSubmit": true,
|
|
|
+ "value": {"date_milliseconds": 1630425600000},
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=开始时间&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "labelName": "选择时间",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "dateEditor0",
|
|
|
+ "fontSize": 12,
|
|
|
+ "directEdit": true,
|
|
|
+ "format": "yyyy-MM-dd",
|
|
|
+ "x": 367,
|
|
|
+ "y": 28,
|
|
|
+ "width": 110,
|
|
|
+ "height": 21
|
|
|
+ }, {
|
|
|
+ "type": "datetime",
|
|
|
+ "widgetName": "结束时间",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "needSubmit": true,
|
|
|
+ "value": {"date_milliseconds": 1632931200000},
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=结束时间&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "labelName": "情境名称",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "dateEditor1",
|
|
|
+ "fontSize": 12,
|
|
|
+ "directEdit": true,
|
|
|
+ "format": "yyyy-MM-dd",
|
|
|
+ "x": 494,
|
|
|
+ "y": 28,
|
|
|
+ "width": 110,
|
|
|
+ "height": 21
|
|
|
+ }, {
|
|
|
+ "type": "formsubmit",
|
|
|
+ "widgetName": "BUTTON0",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=button0&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "listeners": [{
|
|
|
+ "eventName": "click", "once": false, "action": function (e) {
|
|
|
+ var as = arguments;
|
|
|
+ return FR.tc(function () {
|
|
|
+ ;
|
|
|
+ return eval("(function(){try{this.setEnable(false);\n}catch(ex){FR.Logger.error(ex);FR.Msg.toast(FR.i18nText('Custom')+'JS'+FR.i18nText('Error')+' : '+ex.message);}}).createDelegate(this, [], 0).apply(this, arguments)");
|
|
|
+ }, this, as)
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ "eventName": "click", "once": false, "action": function (e) {
|
|
|
+ var as = arguments;
|
|
|
+ return FR.tc(function () {
|
|
|
+ ;
|
|
|
+ return eval("(function(){try{if(this.options.form!=null&&$.isFunction(this.options.form.formSubmit)){this.options.form.QueryBtn=this;var self=this;this.options.form.formSubmit({url:\"/webroot/decision/view/form?op=fr_dialog&cmd=parameters_d&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068\",asyn:true,callback:function(){_g().once(\"afterload\",function(){self.enable()});_g().loadContentPane()}})};\n}catch(ex){FR.Logger.error(ex);FR.Msg.toast(FR.i18nText('Custom')+'JS'+FR.i18nText('Error')+' : '+ex.message);}}).createDelegate(this, [], 0).apply(this, arguments)");
|
|
|
+ }, this, as)
|
|
|
+ }
|
|
|
+ }],
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "button0",
|
|
|
+ "render": true,
|
|
|
+ "text": "查询",
|
|
|
+ "hotkeys": "enter",
|
|
|
+ "isToggle": false,
|
|
|
+ "key": "formsubmit",
|
|
|
+ "x": 647,
|
|
|
+ "y": 28,
|
|
|
+ "width": 80,
|
|
|
+ "height": 21
|
|
|
+ }, {
|
|
|
+ "type": "combo",
|
|
|
+ "widgetName": "COMBOBOX0",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "needSubmit": true,
|
|
|
+ "value": "",
|
|
|
+ "Databinding": {},
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=comboBox0&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "labelName": "情境名称",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "comboBox0",
|
|
|
+ "fontSize": 12,
|
|
|
+ "directEdit": true,
|
|
|
+ "norepeat": true,
|
|
|
+ "searchTime": 200,
|
|
|
+ "customData": true,
|
|
|
+ "autoMode": true,
|
|
|
+ "mode": "remote",
|
|
|
+ "controlAttr": {"value": ""},
|
|
|
+ "x": 124,
|
|
|
+ "y": 28,
|
|
|
+ "width": 108,
|
|
|
+ "height": 21
|
|
|
+ }, {
|
|
|
+ "type": "label",
|
|
|
+ "widgetName": "LABEL0",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "needSubmit": true,
|
|
|
+ "value": "情境名称",
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=label0&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "label0",
|
|
|
+ "verticalcenter": true,
|
|
|
+ "textalign": "center",
|
|
|
+ "decoration": "none",
|
|
|
+ "color": "rgb(0,0,0)",
|
|
|
+ "textColor": "0.0,0.0,0.0,1.0,",
|
|
|
+ "fontsize": 12,
|
|
|
+ "fontfamily": "PingFang SC",
|
|
|
+ "wrap": true,
|
|
|
+ "autoline": true,
|
|
|
+ "x": 32,
|
|
|
+ "y": 28,
|
|
|
+ "width": 80,
|
|
|
+ "height": 21
|
|
|
+ }, {
|
|
|
+ "type": "label",
|
|
|
+ "widgetName": "LABEL0_C",
|
|
|
+ "disabled": false,
|
|
|
+ "invisible": false,
|
|
|
+ "needSubmit": true,
|
|
|
+ "value": "选择时间",
|
|
|
+ "widgetUrl": "http://112.124.59.133:8804/webroot/decision/view/form?op=widget&widgetname=label0_c&sessionID=e63cf0fa-bf6e-4923-bfd6-af680379b068",
|
|
|
+ "useBookMark": false,
|
|
|
+ "bookMarkName": "label0",
|
|
|
+ "verticalcenter": true,
|
|
|
+ "textalign": "center",
|
|
|
+ "decoration": "none",
|
|
|
+ "color": "rgb(0,0,0)",
|
|
|
+ "textColor": "0.0,0.0,0.0,1.0,",
|
|
|
+ "fontsize": 12,
|
|
|
+ "fontfamily": "PingFang SC",
|
|
|
+ "wrap": true,
|
|
|
+ "autoline": true,
|
|
|
+ "x": 274,
|
|
|
+ "y": 28,
|
|
|
+ "width": 80,
|
|
|
+ "height": 21
|
|
|
+ }],
|
|
|
+ "showBookmarks": false,
|
|
|
+ "itemsIndex": ["COMBOBOX0", "开始时间", "结束时间", "BUTTON0"],
|
|
|
+ "stickyItemsIndex": [],
|
|
|
+ "absoluteCompState": 0,
|
|
|
+ "absoluteResolutionScaleW": 1.0,
|
|
|
+ "absoluteResolutionScaleH": 1.0,
|
|
|
+ "hasResize": false,
|
|
|
+ "paraDisplay": true,
|
|
|
+ "delayDisplayContent": true,
|
|
|
+ "useParamsTemplate": true,
|
|
|
+ "position": "left",
|
|
|
+ "width": 960,
|
|
|
+ "parambg": {},
|
|
|
+ "height": 65
|
|
|
+ };
|
|
|
+
|
|
|
+ var contentContainer = $("<div class='content-container'>");
|
|
|
+ var delayDisplay = paraConfig['delayDisplayContent'];
|
|
|
+
|
|
|
+ contenConfig.renderEl = contentContainer;
|
|
|
+ form = new FR.contentForm(contenConfig);
|
|
|
+ FR.SessionMgr.register("e63cf0fa-bf6e-4923-bfd6-af680379b068", form);
|
|
|
+
|
|
|
+ items.push({
|
|
|
+ region: 'center',
|
|
|
+ el: contentContainer
|
|
|
+ });
|
|
|
+
|
|
|
+ window.globalForm = form;
|
|
|
+ var barHeight = paraConfig.width > document.body.offsetWidth ? scrollHeight : 0;
|
|
|
+ FR.$defaultImport('/com/fr/web/core/js/paramtemplate.js', 'js');
|
|
|
+ var paramstemplateHeight = 30;
|
|
|
+ var north = {
|
|
|
+ region: 'north',
|
|
|
+ height: paramstemplateHeight,
|
|
|
+ el: {
|
|
|
+ type: 'border',
|
|
|
+ widgetName: 'paramsTemplate',
|
|
|
+ items: [
|
|
|
+ {
|
|
|
+ region: 'east',
|
|
|
+ width: 138,
|
|
|
+ el: {
|
|
|
+ type: 'horizontal',
|
|
|
+ alignment: 'right',
|
|
|
+ items: [{
|
|
|
+ el: {
|
|
|
+ type: 'button',
|
|
|
+ widgetName: 'saveBtn',
|
|
|
+ text: FR.i18nText("Fine-Engine_Report_Designer_Save_As_Params_Template")
|
|
|
+ }, width: 128
|
|
|
+ }]
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ region: 'center',
|
|
|
+ el: {
|
|
|
+ type: 'horizontal',
|
|
|
+ widgetName: 'paramsTemplatePane',
|
|
|
+ width: paraConfig.width - 120,
|
|
|
+ minWidth: paraConfig.width - 120,
|
|
|
+ alignment: 'left',
|
|
|
+ items: []
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ region: 'west',
|
|
|
+ width: 30,
|
|
|
+ el: {
|
|
|
+ type: 'horizontal',
|
|
|
+ alignment: 'left',
|
|
|
+ items: [
|
|
|
+ {
|
|
|
+ el: {
|
|
|
+ type: 'iconbutton',
|
|
|
+ widgetName: 'newParamsBtn',
|
|
|
+ width: 30,
|
|
|
+ baseClass: 'fs-new-params-template-blue'
|
|
|
+ },
|
|
|
+ width: 30
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ };
|
|
|
+ var paramsTemplate = getParamsTemplate(form.sessionID);
|
|
|
+ if (!paraConfig.useParamsTemplate || FR.isEmpty(paramsTemplate)) {
|
|
|
+ paramstemplateHeight = 0;
|
|
|
+ north = {};
|
|
|
+ }
|
|
|
+ if (!$.isEmptyObject(paraConfig)) {
|
|
|
+ var paraContainer = $("<div class='para-container' style='overflow: auto;'>");
|
|
|
+ var alignLayoutName = '__layout4align__';
|
|
|
+ paraContainer.height(paraConfig.height + expandHeight + barHeight + paramstemplateHeight);
|
|
|
+ var $expandEl = $("<div class='parameter-container-collapseimg-up' style='cursor: pointer'></div>");
|
|
|
+ bindParaCollapse($expandEl);
|
|
|
+ var $center = $('<div class="pmeter-container"></div>');
|
|
|
+ var south = {
|
|
|
+ region: 'south', height: expandHeight, el: {
|
|
|
+ type: 'horizontal',
|
|
|
+ items: [
|
|
|
+ {el: $expandEl, width: 120}
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ };
|
|
|
+ var center = {
|
|
|
+ region: 'center',
|
|
|
+ el: {
|
|
|
+ type: 'horizontal',
|
|
|
+ widgetName: alignLayoutName,
|
|
|
+ alignment: paraConfig.position,
|
|
|
+ items: [
|
|
|
+ {el: $center, width: paraConfig.width}
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ };
|
|
|
+ var itemlst = [north, south, center];
|
|
|
+ var pCon = {
|
|
|
+ renderEl: paraContainer,
|
|
|
+ type: 'border',
|
|
|
+ items: itemlst
|
|
|
+ };
|
|
|
+ //有个默认的背景
|
|
|
+ var bg = FR.isEmptyObj(paraConfig.parambg) ? {background: '#f7f8fa'} : paraConfig.parambg;
|
|
|
+ FR.setBackground(paraContainer, bg);
|
|
|
+ paraConfig.renderEl = $center;
|
|
|
+ window.globalForm.parameterEl = new FR.contentForm(paraConfig);
|
|
|
+ items.push({
|
|
|
+ region: 'north',
|
|
|
+ el: pCon
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 判断尺寸,在尺寸为0的情况下返回一个默认值
|
|
|
+ * 在某些情况下,如平台快速点击多个报表时,无法获取到尺寸,
|
|
|
+ * 提供一个默认值,
|
|
|
+ *
|
|
|
+ * @param length 默认尺寸
|
|
|
+ * @param defaultValue 默认值
|
|
|
+ * @returns {*}
|
|
|
+ */
|
|
|
+ function checkSizeOrDefault(length, defaultValue) {
|
|
|
+ if (isNaN(defaultValue)) {
|
|
|
+ return length;
|
|
|
+ }
|
|
|
+ return length === 0 ? defaultValue : length;
|
|
|
+ }
|
|
|
+
|
|
|
+ var width = checkSizeOrDefault(FR.windowWidth, window.location.href.getQuery("width"));
|
|
|
+ var height = checkSizeOrDefault(FR.windowHeight, window.location.href.getQuery("height"));
|
|
|
+ var borderLayout = new FR.BorderLayout({
|
|
|
+ items: items,
|
|
|
+ renderEl: $body,
|
|
|
+ width: width,
|
|
|
+ height: height
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ //给参数界面添加横向滚动条
|
|
|
+ var showParamsTemplate = paraConfig.useParamsTemplate && paramsTemplate !== null;
|
|
|
+ addScollBar(paraContainer, $center, paraConfig.height + (showParamsTemplate ? 30 : 0), scrollHeight);
|
|
|
+ borderLayout.doLayout();
|
|
|
+
|
|
|
+ $('[widgetname^=sortable]').removeAttr('style');
|
|
|
+ initParameterTemplate(paraConfig, paraConfig.items, form.sessionID, borderLayout, paramsTemplate);
|
|
|
+
|
|
|
+
|
|
|
+ $(window).resize(function () {
|
|
|
+ borderLayout.element.bounds({
|
|
|
+ 'width': FR.windowWidth,
|
|
|
+ 'height': FR.windowHeight
|
|
|
+ });
|
|
|
+ if (!form.scaleProcess(borderLayout, width, height)) {
|
|
|
+ addScollBar(paraContainer, $center, paraConfig.height + (showParamsTemplate ? 30 : 0), scrollHeight);
|
|
|
+ borderLayout.doLayout();
|
|
|
+ $('[widgetname^=sortable]').removeAttr('style');
|
|
|
+ }
|
|
|
+ width = FR.windowWidth;
|
|
|
+ height = FR.windowHeight;
|
|
|
+ });
|
|
|
+ // 整个form都doLayout一下
|
|
|
+ var browser = $.browser;
|
|
|
+ //b:for chrome,find reason
|
|
|
+ if (browser.safari && browser.webkit || browser.msie && browser.version < 7) {
|
|
|
+ $(window).trigger("resize");
|
|
|
+ $body.css('overflow', 'auto');
|
|
|
+ }
|
|
|
+ // FR.Layout 有this.element.css("overflow","hidden");
|
|
|
+ //放大后再缩小, body和contentContainer大小一致, 却出现了滚动条, 很难看.
|
|
|
+ contentContainer.css('overflow', 'auto');
|
|
|
+
|
|
|
+ if (!delayDisplay) {
|
|
|
+ form.parameterCommit();
|
|
|
+ }
|
|
|
+
|
|
|
+ function addScollBar(container, mover, top, height) {
|
|
|
+ if (container) {
|
|
|
+ container.hScrollPane({
|
|
|
+ mover: mover, //指定container对象下的哪个元素需要滚动位置 | 必传项;
|
|
|
+ showArrow: false, //指定是否显示左右箭头,默认不显示 | 可选项;
|
|
|
+ top: top, //滚动条所在的top位置
|
|
|
+ height: height,//滚动条的高度
|
|
|
+ //moverW:function(){return $(".press").width();}(), //传入水平滚动对象的长度值,不传入的话默认直接获取mover的宽度值 | 可选项;
|
|
|
+ //handleMinWidth:100,//指定handle的最小宽度,要固定handle的宽度请在css中设定handle的width属性(如 width:28px!important;),不传入则不设定最小宽度 | 可选项;
|
|
|
+ //dragable:true, //指定是否要支持拖动效果,默认可以拖动 | 可选项;
|
|
|
+ easing: false, //滚动是否需要滑动效果,默认有滑动效果 | 可选项;
|
|
|
+ // handleCssAlter:"draghandlealter", //指定拖动鼠标时滚动条的样式,不传入该参数则没有变化效果 | 可选项;
|
|
|
+ mousewheel: {bind: false, moveLength: 500} //mousewheel: bind->'true',绑定mousewheel事件; ->'false',不绑定mousewheel事件;moveLength是指定鼠标滚动一次移动的距离,默认值:{bind:true,moveLength:300} | 可选项;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function bindParaCollapse($element) {
|
|
|
+ $element.click(function () {
|
|
|
+ var resizeTime = new Date();
|
|
|
+ var self = this;
|
|
|
+ self.lastResizeTime = resizeTime;
|
|
|
+ setTimeout(function () {
|
|
|
+ if (resizeTime === self.lastResizeTime) {
|
|
|
+ self.lastResizeTime = null; // REPORT-4620,这里使用delete在IE8以下会有bug
|
|
|
+ paraContainer.animate({
|
|
|
+ height: (self.hasCollapsed ? "+=" : "-=") + (paraConfig.height + barHeight + paramstemplateHeight)
|
|
|
+ }, "fast", function () {
|
|
|
+ var height = paraContainer.height();
|
|
|
+ self.hasCollapsed = !self.hasCollapsed;
|
|
|
+ $expandEl.switchClass('parameter-container-collapseimg-down', 'parameter-container-collapseimg-up');
|
|
|
+ borderLayout.getWidgetByName(alignLayoutName).setVisible(!self.hasCollapsed);
|
|
|
+ if (borderLayout.getWidgetByName('paramsTemplatePane') !== undefined) {
|
|
|
+ borderLayout.getWidgetByName('paramsTemplatePane').setVisible(!self.hasCollapsed);
|
|
|
+ borderLayout.getWidgetByName('saveBtn').setVisible(!self.hasCollapsed);
|
|
|
+ borderLayout.getWidgetByName('newParamsBtn').setVisible(!self.hasCollapsed);
|
|
|
+ }
|
|
|
+ borderLayout.regionField.center.el = $('.content-container');
|
|
|
+ borderLayout.setRegionWH('north', height);
|
|
|
+ borderLayout.doLayout();
|
|
|
+ form.fireEvent(FR.Events.PARACOLLAPSE);
|
|
|
+ if (FR.Form.bindFitResize && FR.Browser.isIE8Before()) {
|
|
|
+ form.loadContentPane(true);
|
|
|
+ }
|
|
|
+ $('[widgetname^=sortable]').removeAttr('style');
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }, 222);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ </script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ </script>
|
|
|
+</head>
|
|
|
+<body style="height:100%; width:100%; overflow:auto">
|
|
|
+</body>
|
|
|
+</html>
|