EXT总结例子
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 m_confiureAuthRole = "<a href='javascript:void(0)' onclick=configureAuthRole("+record.get('id')+")>"+"<img src='./Gui/Public/Common/images/xinxi/s_44.png' title='设置权限'>"+"</a>    ";
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>  ";
//直接汉字
<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(' ');
}
'<table>',
'<tr>',
'<td><div style="color:rgb(56,146,211);width:80px;float:left;text-align:left">状态:</div>{status.name} </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} </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} </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} </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} </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} </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} </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} </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总结例子的更多相关文章
- Ext部署在本地tomcat下运行例子
我本地用的ext6+,从官网下载好Ext后解压到D盘,然后打开tomcat的server.xml,在Host标签内配置 <Context path="/ext-6.2.0" ...
- ExtJS学习(二)Ext组件模型
Ext中所有的组件都继承自Ext.component,这种单根继承的模型保证所有组件都拥有相同的通用方法与生命周期,这样在后续对这些组件进行维护管理时将更加便捷,同时也保证了在进行布局时的便利. 组件 ...
- Ext.urlEncode与Ext.urlDecode
Ext.urlEncode与Ext.urlDecode: 用于js对象和查询字符串之间的相互转换 Ext.urlEncode例子如下: /* Ext.urlEncode( object, [recur ...
- centos 7.0 phpize 扩展php
phpize扩展php模块 phpize 所在目录 /usr/etc/php/bin/phpize 查看当前php配置情况 /usr/etc/php/bin/下面的php [root@localhos ...
- [ExtJS5学习笔记]第十七节 Extjs5的panel组件增加accodion成为折叠导航栏
本文地址:http://blog.csdn.net/sushengmiyan/article/details/39102335 官方例子:http://dev.sencha.com/ext/5.0.1 ...
- EXT JS认识EXTJS,第一个EXTJS例子
大部分内容转载自:http://blog.csdn.net/wanghuan203/article/details/8011112 和http://www.cnblogs.com/willick/p/ ...
- Ext js 应用例子
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content ...
- sencha ext js 6 入门
Sencha Ext JS号称是目前世界上最先进和最强大的.支持多平台多设备的JavaScript应用程序开发框架.首先看一下Ext JS的发展简史. 1 Ext JS发展简史 YUI-Ext的作者J ...
- Ext JS - 问答
Ext JS - 问答 在下面你将可以找到关于Ext JS 的最常见问题的答复.如果没有找到您所需的答复,请访问 Ext JS 论坛或者提交一个支持申请. 如果你确信你的问题可以对本页有补充,请让我们 ...
随机推荐
- [翻译]Java HashMap工作原理
大部分Java开发者都在使用Map,特别是HashMap.HashMap是一种简单但强大的方式去存储和获取数据.但有多少开发者知道HashMap内部如何工作呢?几天前,我阅读了java.util.Ha ...
- AMD and CMD are dead之Why Namespace?
缘由 当我看到_Franky兄的微博的时候: 我觉得我有必要出来详细说说KMDjs到底有什么本质上的优势了,连教主_Franky.貘吃馍香都不能理解他的好处,那么可想而知,在前端圈.或是全端圈.或是I ...
- MFC-简单的函数使用
1. MessageBox(str);很简单的一个函数,该函数参数为字符串.用来弹出一个窗口显示str的内容,str为一个字符串. 2. UpdateData();该函数是vc++中处理控件变量的 ...
- Linux0.11内核--引导程序分析
1.简介 本文主要介绍三个文件bootsect.s.setup.s.head.s,主要是做了些从软盘加载内核和设置32位保护模式的操作. 2.程序分析 当PC电源打开后,BIOS自检后将bootsec ...
- sqlite 管理软件
★SQLite的官方网站 http://www.sqlite.org/ ★SQLite的官方网址提供数据库查看软件:http://www.sqlite.org/cvstrac/wiki?p=Manag ...
- SJPullDownMenu下拉菜单框架使用
SJPullDownMenu 快速集成类似淘宝筛选下拉菜单 如果页面显示不全等问题请转至:http://www.jianshu.com/p/d07c6393830c 查看使用 Getting Star ...
- 动态计算Label高度
//1.设置该label的numberOfLines为0 self.titleLabel.numberOfLines = 0; //2.字体的设置要与之前相同 NSDictionary * at ...
- ButterKnife 8.2.1 大圣归来
零.前言 ButterKnife是一个视图注入的框架,主要帮我们解决无脑的findViewById.设置监听事件等等体力劳动. 一.引入 好消息是ButterKnife终于使用apt生成代码了,首先在 ...
- Ant:build.xml 结构
Ant build.xml 结构 project target task data property datatype v\:* {behavior:url(#default#VML);} o\:* ...
- Hadoop Cluster 安装
本篇源自Hadoop官网,先将中文翻译如下. 目标 本文章主要是描述如何安装和配置几个节点的Hadoop clusters,甚至于数以千计的节点数.为了了解详细的安装步骤,需要先了解如何安装在单台机器 ...