//页面按钮点击展开隐藏
{     空格
                    xtype:'fieldset',
                    title:'<b>高级搜索</b>',
                    collapsible: true, //默认显示页面隐藏
                    collapsed: true, //默认显示页面隐藏
             
                    items:[{
                        xtype:'panel',
                        title:'受理范围',
                        height: 245,
                        collapsible:true,
                        items:[{
                            xtype:'kindeditor',
                            height:200,
                            name:'visa_range'
                        }]
                    },{
                        xtype:'panel',
                        title:'所需材料',
                        height: 245,
                        collapsible:true,
                        items:[{
                            xtype:'kindeditor',
                            height:200,
                            name:'visa_data'
                        }]
                    },{
                        xtype:'panel',
                        title:'详情说明',
                        height: 245,
                        collapsible:true,
                        margin:'10 0 10 0',
                        items:[{
                            xtype:'kindeditor',
                            height:200,
                            name:'visa_detail'
                        }]
                    },{
                        xtype:'panel',
                        title:'办证流程',
                        height: 245,
                        collapsible:true,
                        margin:'10 0 10 0',
                        items:[{
                            xtype:'kindeditor',
                            height:200,
                            name:'visa_flow'
                        }]
                    }]
         }
 
 
//页面累加功能
 {
                            xtype: 'container',
                            layout: 'vbox',
                            items: [
                                {
                                    xtype: 'button',
                                    text: '添加',
                                    handler: function(btn) {
                                        var con = btn.up();
                                        var len = con.items.length;
                                        con.add({
                                            xtype: 'container',
                                            layout: 'hbox',
                                            items: [
                                                {
                                                    xtype: 'textfield',
                                                    fieldLabel: '文本' + len
                                                },
                                                {
                                                    xtype: 'button',
                                                    text: '移除',
                                                    handler: function(bb) {
                                                        var con1 = bb.up();
                                                        con.remove(con1);
                                                    }
                                                }
                                            ]
                                        });
                                    }
                                }
                            ]
                        }
//提交按钮样式
 {
                    text:'提交',name:'ok',
                    cls:'btn btn-success',
                    handler:function(){
                        //找到当前窗口
                        var thiswindow =this;
                        this.up('addVisaView').down('form').submit({
                            waitMsg:'正在提交中',
                            clientValidation: true,
                            submitEmptyText: false,
                            url:__APP__+'Visa/addVisa',
                            params:{},
                            success:function(form, action){
                                console.log(action.result);
                                if(action.result.success == "true"){
                                    if(datas['rid']){
                                        Ext.Msg.alert('提示','编辑成功');
                                    }else{  
                                        Ext.Msg.alert('提示','添加成功');
                                    }
                                    thiswindow.up('addVisaView').close();
                                    Ext.getCmp('addListView').getStore().load();
                                } else {
                                    // console.log("=====");
                                    // Ext.Msg.alert('提示', action.result.msg);
                                    Ext.Msg.alert('提示', "添加失败");
                                }
                            },
                            failure:function(form, action){
                                console.log(action.result);
                                // Ext.Msg.alert('提示', action.result.msg);
                            }
                        });
                    }
                } 
 
//操作按钮换成图标(var  与   if)

var m_confiureAuthRole = "<a href='javascript:void(0)' onclick=configureAuthRole("+record.get('id')+")>"+"<img src='./Gui/Public/Common/images/xinxi/s_44.png' title='设置权限'>"+"</a>&nbsp&nbsp&nbsp&nbsp";

if(data.name=='distributionGroup_editProduct')setProductOfProductGroup = "<a href='javascript:void(0)' onclick=productDistributionView_setProductOfProductGroup('"+m_distributionGroupId+"')>"+"<img src='./Gui/Public/Common/images/xinxi/s_102.png' title='"+data.title+"'>"+"</a>&nbsp&nbsp";

//直接汉字
<img src="./Gui/Public/Common/images/xinxi/s_03.png" title="+编辑+">

<img src='./Gui/Public/Common/images/xinxi/s_03.png' title='恢复绑定'>

//循环的操作改图标

Ext.Array.each(value,function(mv){
//console.log(mv);

var orderinfo = '';
if(mv.name == 'resendCode')
{
orderinfo = "<img src='./Gui/Public/Common/images/xinxi/s_11.png' title='"+mv.title+"'>";
}else if(mv.name == 'delayOrders')
{
orderinfo = "<img src='./Gui/Public/Common/images/xinxi/s_12.png' title='"+mv.title+"'>";
}else if(mv.name == 'showOrders')
{
orderinfo = "<img src='./Gui/Public/Common/images/xinxi/s_13.png' title='"+mv.title+"'>";
}else if(mv.name == 'noteOrders')
{
orderinfo = "<img src='./Gui/Public/Common/images/xinxi/s_14.png' title='"+mv.title+"'>";
}else if(mv.name == 'refundOrders')
{
orderinfo = "<img src='./Gui/Public/Common/images/xinxi/s_113.png' title='"+mv.title+"'>";
}
var data = "<a href='javascript:void(0)' onclick=allOrderListView_orderFunc_"+mv.name+"('"+recordId+"','"+orders_id+"','"+orderNO+"')>"+orderinfo+"</a>";
operationStr.push(data);
//console.log(operationStr);

});

return operationStr.join('&nbsp');
}

 
 
 //页面弹出显示列表

'<table>',


'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">状态:</div>{status.name}&nbsp;&nbsp;</td>',
'<td style="padding-left:104px"><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">电子码:</div>{code}</td>',
'</tr>',

'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">产品名称:</div>{scenicSpotTicketName}&nbsp;&nbsp;&nbsp;&nbsp;</td>',
'<td style="padding-left:104px"><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">单价:</div>{unitPrice}</td>',
'</tr>',

'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">退款数量:</div>{refundNum}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>',
'<td style="padding-left:104px"><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">退款金额:</div>{returnPrice}</td>',



'</tr>',




'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">申请时间:</div>{createTime}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>',
'<td style="padding-left:104px"><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">手续费:</div>{refundPoundagePrice}</td>',

'</tr>',


'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">手续费类型:</div>{refundPoundageType.name}{refundPrice}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>',
'<td style="padding-left:104px"><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">退款类型:</div>{refundType.name}</td>',

'</tr>',

'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">退款原因:</div>{refundReason}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>',
'<td style="padding-left:104px"><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">退款人:</div>{createdBy}</td>',

'</tr>',

'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">审核人:</div>{auditBy}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>',
'<td style="padding-left:104px"><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">审核时间:</div>{auditAt}</td>',

'</tr>',

'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">审核说明:</div>{auditNotes}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>',

'</tr>',


'</table>',

//列表页面对应

{
xtype:'fieldcontainer',layout:{type:'hbox',align:'middle'},width:800, //包含里面页面
items:[{

xtype: 'filefield',
name: 'idnumber_img',
fieldLabel: '<b style="color:red">*</b>身份证上传',
buttonText: '浏览...',
disabled: sz_check,
width: 160,
buttonOnly: true,
style: 'float:left'

}, {
xtype: 'panel',
width: 65,
height: 25,
html: getDetailImageNode(business_licence_img),
labelWidth: 30,
style: 'float:left',
fieldLabel: '图片浏览'
}]

},

//登录加载页面

public/bass.css

app/tpl/index/index.html  登录加载静态页面

 
 
 
 
 
 
 
 
 

EXT总结例子的更多相关文章

  1. Ext部署在本地tomcat下运行例子

    我本地用的ext6+,从官网下载好Ext后解压到D盘,然后打开tomcat的server.xml,在Host标签内配置 <Context path="/ext-6.2.0" ...

  2. ExtJS学习(二)Ext组件模型

    Ext中所有的组件都继承自Ext.component,这种单根继承的模型保证所有组件都拥有相同的通用方法与生命周期,这样在后续对这些组件进行维护管理时将更加便捷,同时也保证了在进行布局时的便利. 组件 ...

  3. Ext.urlEncode与Ext.urlDecode

    Ext.urlEncode与Ext.urlDecode: 用于js对象和查询字符串之间的相互转换 Ext.urlEncode例子如下: /* Ext.urlEncode( object, [recur ...

  4. centos 7.0 phpize 扩展php

    phpize扩展php模块 phpize 所在目录 /usr/etc/php/bin/phpize 查看当前php配置情况 /usr/etc/php/bin/下面的php [root@localhos ...

  5. [ExtJS5学习笔记]第十七节 Extjs5的panel组件增加accodion成为折叠导航栏

    本文地址:http://blog.csdn.net/sushengmiyan/article/details/39102335 官方例子:http://dev.sencha.com/ext/5.0.1 ...

  6. EXT JS认识EXTJS,第一个EXTJS例子

    大部分内容转载自:http://blog.csdn.net/wanghuan203/article/details/8011112 和http://www.cnblogs.com/willick/p/ ...

  7. Ext js 应用例子

    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content ...

  8. sencha ext js 6 入门

    Sencha Ext JS号称是目前世界上最先进和最强大的.支持多平台多设备的JavaScript应用程序开发框架.首先看一下Ext JS的发展简史. 1 Ext JS发展简史 YUI-Ext的作者J ...

  9. Ext JS - 问答

    Ext JS - 问答 在下面你将可以找到关于Ext JS 的最常见问题的答复.如果没有找到您所需的答复,请访问 Ext JS 论坛或者提交一个支持申请. 如果你确信你的问题可以对本页有补充,请让我们 ...

随机推荐

  1. 如何使用CSS绘制一个响应式的矩形

    背景: 最近因为需要用到绘制类似九宫格的需求,所以研究了一下响应式矩形的实现方案. 有如下几种方案: 使用js来设置元素的高度 使用vw单位  div {width: 50vw; height: 50 ...

  2. iOS UIScrollView的使用

    一.为什么要用UIScrollView? 移动设备的屏幕大小是极其有限的,因此直接展示在用户眼前的内容也相当有限当展示的内容较多,超出一个屏幕时,用户可通过滚动手势来查看屏幕以外的内容普通的UIVie ...

  3. gcc boost版本冲突解决日记

    问题背景 项目在Ubuntu10 64位 boost 1.55,boost采用的是项目内包含相对目录的形式部署 项目采用了 -Wall -Wextra -Werror -Wconversion 最高的 ...

  4. iOS百度地图简单使用

    本文介绍三种接口: 1.基础地图2.POI检索3.定位 首先是配置环境,有两种方法,方法在官方教程里都有,不再多说 1.使用CocoaPods自动配置[这个方法特别好,因为当你使用CocoaPods配 ...

  5. 活用UML-软件设计高手(深圳 2014年4月26-27日)

      我们将在深圳为您奉献高级技术课程”活用UML-软件设计高手“,首席专家张老师将会为您分享软件架构设计.数据库设计.用户体验设计及详细设计的最佳实践,帮助您成为优秀的软件设计师! 时间:2014.0 ...

  6. ASP.NET获取真正的客户端IP地址的6种方法

    Request.ServerVariables("REMOTE_ADDR") 来取得客户端的IP地址,但如果客户端是使用代理服务器来访问,那取到的就是代理服务器的IP地址,而不是真 ...

  7. PowerShell中的基础数据类型

    PowerShell是一个面向对象的语言,在申明变量的时候不强制要求申明数据类型,使用$开头来申明变量即可. 基本数据类型 PowerShell本身是基于.Net开发出来的,所以在.Net中的基本数据 ...

  8. 关于一个sql的优化分析

    应用这边新上线了一个查询,正在跑,让我看下状态以及分析下能不能再快点. 如下sql: SELECT x.order_no , order_date+7/24 AS order_date, addres ...

  9. 使用Docker快速部署Storm环境

    Storm的部署虽然不是特别麻烦,但是在生产环境中,为了提高部署效率,方便管理维护,使用Docker来统一管理部署是一个不错的选择.下面是我开源的一个新的项目,一个配置好了storm与mono环境的D ...

  10. 理解 Node.js 里的 process.nextTick()

    有很多人对Node.js里process.nextTick()的用法感到不理解,下面我们就来看一下process.nextTick()到底是什么,该如何使用. Node.js是单线程的,除了系统IO之 ...