升级easyUI到1.9.4版本
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
|
||||
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"/>
|
||||
<script type="text/javascript" src="/js/jquery-1.8.0.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/js/easyui-1.3.5/themes/default/easyui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/js/easyui-1.3.5/themes/icon.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/js/easyui/themes/default/easyui.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/js/easyui/themes/icon.css"/>
|
||||
<link type="text/css" rel="stylesheet" href="/css/common.css"/>
|
||||
<script type="text/javascript" src="/js/easyui-1.3.5/jquery.easyui.min.js"></script>
|
||||
<script type="text/javascript" src="/js/easyui-1.3.5/locale/easyui-lang-zh_CN.js"></script>
|
||||
<script type="text/javascript" src="/js/easyui/jquery.easyui.min.js"></script>
|
||||
<script type="text/javascript" src="/js/easyui/locale/easyui-lang-zh_CN.js"></script>
|
||||
<script type="text/javascript" src="/js/common/common.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -21,11 +21,13 @@
|
||||
<tr>
|
||||
<td>姓名:</td>
|
||||
<td>
|
||||
<input name="searchName" id="searchName" style="width:70px;"/>
|
||||
<input name="searchName" id="searchName" class="easyui-textbox" style="width:100px;"/>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td>类型:</td>
|
||||
<td>
|
||||
<select name="searchType" id="searchType" style="width:70px;">
|
||||
<select name="searchType" id="searchType" class="easyui-combobox"
|
||||
data-options="panelHeight:'auto'" style="width:100px;">
|
||||
<option value="">全部</option>
|
||||
<option value="业务员">业务员</option>
|
||||
<option value="仓管员">仓管员</option>
|
||||
@@ -33,8 +35,6 @@
|
||||
</select>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" id="searchBtn">查询</a>
|
||||
<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-redo" id="searchResetBtn">重置</a>
|
||||
@@ -51,15 +51,15 @@
|
||||
<tr>
|
||||
<td>姓名</td>
|
||||
<td style="padding:5px">
|
||||
<input name="Name" id="Name" class="easyui-validatebox"
|
||||
data-options="required:true,validType:'length[2,30]'" style="width: 230px;height: 20px"/>
|
||||
<input name="Name" id="Name" class="easyui-textbox"
|
||||
data-options="required:true,validType:'length[2,30]'" style="width: 230px;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>类型</td>
|
||||
<td style="padding:5px">
|
||||
<select name="Type" id="Type" style="width:230px;">
|
||||
<option value="">请选择</option>
|
||||
<select name="Type" id="Type" class="easyui-combobox"
|
||||
data-options="panelHeight:'auto'" style="width:230px;">
|
||||
<option value="业务员">业务员</option>
|
||||
<option value="仓管员">仓管员</option>
|
||||
<option value="财务员">财务员</option>
|
||||
@@ -121,11 +121,10 @@
|
||||
{title: '姓名', field: 'name', width: 180},
|
||||
{title: '类型', field: 'type', width: 180},
|
||||
{
|
||||
title: '操作', field: 'op', align: "center", width: 130, formatter: function (value, rec) {
|
||||
title: '操作', field: 'op', align: "center", width: 130, formatter: function (value, rec, index) {
|
||||
var str = '';
|
||||
var rowInfo = rec.id + 'AaBb' + rec.name + 'AaBb' + rec.type;
|
||||
str += '<img src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editPerson(\'' + rowInfo + '\');"/> <a onclick="editPerson(\'' + rowInfo + '\');" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a> ';
|
||||
str += '<img src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deletePerson(' + rec.id + ');"/> <a onclick="deletePerson(' + rec.id + ');" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a> ';
|
||||
str += '<img src="/js/easyui/themes/icons/pencil.png" style="cursor: pointer;" onclick="editPerson(\'' + index + '\');"/> <a onclick="editPerson(\'' + index + '\');" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a> ';
|
||||
str += '<img src="/js/easyui/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deletePerson(' + rec.id + ');"/> <a onclick="deletePerson(' + rec.id + ');" style="text-decoration:none;color:black;" href="javascript:void(0)">删除</a> ';
|
||||
return str;
|
||||
}
|
||||
}
|
||||
@@ -138,7 +137,7 @@
|
||||
handler: function () {
|
||||
addPerson();
|
||||
}
|
||||
},
|
||||
},'-',
|
||||
{
|
||||
id: 'deletePerson',
|
||||
text: '删除',
|
||||
@@ -333,7 +332,7 @@
|
||||
return;
|
||||
}
|
||||
$('#personFM').form('clear');
|
||||
$('#personDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/> 增加经手人信息');
|
||||
$('#personDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui/themes/icons/edit_add.png"/> 增加经手人信息');
|
||||
$(".window-mask").css({width: webW, height: webH});
|
||||
$("#name").val("").focus();
|
||||
|
||||
@@ -373,19 +372,14 @@
|
||||
});
|
||||
|
||||
//编辑信息
|
||||
function editPerson(personTotalInfo) {
|
||||
var personInfo = personTotalInfo.split("AaBb");
|
||||
|
||||
$("#Name").val(personInfo[1]);
|
||||
$("#Type").val(personInfo[2]);
|
||||
|
||||
//oldPerson = personInfo[1];
|
||||
$('#personDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/pencil.png"/> 编辑经手人信息');
|
||||
function editPerson(index) {
|
||||
var rowsdata = $("#tableData").datagrid("getRows")[index];
|
||||
$("#Name").textbox("setValue", rowsdata.name);
|
||||
$("#Type").combobox("setValue", rowsdata.type);
|
||||
$('#personDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui/themes/icons/pencil.png"/> 编辑经手人信息');
|
||||
$(".window-mask").css({width: webW, height: webH});
|
||||
personID = personInfo[0];
|
||||
//焦点在名称输入框==定焦在输入文字后面
|
||||
$("#Name").val("").focus().val(personInfo[1]);
|
||||
url = '/person/update?id=' + personInfo[0];
|
||||
personID = rowsdata.id;
|
||||
url = '/person/update?id=' + rowsdata.id;
|
||||
}
|
||||
|
||||
//搜索处理
|
||||
|
||||
Reference in New Issue
Block a user