...
|
...
|
@@ -4,19 +4,19 @@ |
|
|
<meta charset="UTF-8">
|
|
|
<title>机构列表</title>
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/easyui.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/menu.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/menu.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/common/css/themes/icon.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/web/css/common_car.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="/assets/web/css/common_car.css" />
|
|
|
<script type="text/javascript" src="/assets/common/js/jquery.min.1.9.4.js"></script>
|
|
|
<script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script>
|
|
|
<script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script>
|
|
|
<script type="text/javascript" src="/assets/common/js/jquery.cookie.1.4.1.js"></script>
|
|
|
<!-- 插件调用 --->
|
|
|
<script type="text/javascript" src="/assets/common/js/datagrid-detailview.js"></script>
|
|
|
<script type="text/javascript" src="/assets/common/locale/easyui-lang-zh_CN.js"></script>
|
|
|
<!-- 基础 JS 调用 -->
|
|
|
<script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script>
|
|
|
<script type="text/javascript" src="/assets/web/js/src/allCity.js"></script>
|
|
|
<!-- 插件调用 --->
|
|
|
<script type="text/javascript" src="/assets/common/js/datagrid-detailview.js"></script>
|
|
|
<script type="text/javascript" src="/assets/common/locale/easyui-lang-zh_CN.js"></script>
|
|
|
<!-- 基础 JS 调用 -->
|
|
|
<script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script>
|
|
|
<script type="text/javascript" src="/assets/web/js/src/allCity.js"></script>
|
|
|
<style>
|
|
|
#fm>div {
|
|
|
width: 100%;
|
...
|
...
|
@@ -30,59 +30,59 @@ |
|
|
</style>
|
|
|
</head>
|
|
|
<body style="margin-bottom: 54px;">
|
|
|
<div class="easyui-layout" data-options="fit:true">
|
|
|
<div data-options="split:false,region:'west',collapsible:true,footer:'#win_base_org_form_footer'" title="机构列表" id="saveBox" style="width:100%;">
|
|
|
<div class="easyui-panel" style="width:100%;max-width:100%;padding: 5px 5px">
|
|
|
<div style="margin-bottom:5px;">
|
|
|
<a id="name_add_but" href="#" data-options="iconCls:'icon-add'" class="my_but" style="vertical-align: middle;">新增</a>
|
|
|
</div>
|
|
|
<div class="easyui-layout" data-options="fit:true">
|
|
|
<div data-options="split:false,region:'west',collapsible:true,footer:'#win_base_org_form_footer'" title="机构列表" id="saveBox" style="width:100%;">
|
|
|
<div class="easyui-panel" style="width:100%;max-width:100%;padding: 5px 5px">
|
|
|
<div style="margin-bottom:5px;">
|
|
|
<a id="name_add_but" href="#" data-options="iconCls:'icon-add'" class="my_but" style="vertical-align: middle;">新增</a>
|
|
|
</div>
|
|
|
<table id="dg" style="width: 100%; height: 92%"
|
|
|
data-options="rownumbers:true,singleSelect:true,pagination:true,toolbar:'#tb'">
|
|
|
</table>
|
|
|
|
|
|
<div id="tb" style="padding:5px;height:auto">
|
|
|
<div>
|
|
|
机构名称: <input class="easyui-textbox" type="text" id='names' name='names'>
|
|
|
起始时间: <input class="easyui-datebox" id='start' name='start' style="width:180px">
|
|
|
截止时间: <input class="easyui-datebox" id='end' name='end' style="width:180px">
|
|
|
<a href="#" class="easyui-linkbutton" id="search_buttn" iconCls="icon-search">搜索</a>
|
|
|
<!-- <a id="derive_btn" href="/products/fu_ji_tong/to_excel" class="easyui-linkbutton" style="height:28px" data-options="iconCls:'icon-undo'">导出</a>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<table id="dg" style="width: 100%; height: 92%"
|
|
|
data-options="rownumbers:true,singleSelect:true,pagination:true,toolbar:'#tb'">
|
|
|
</table>
|
|
|
|
|
|
<div id="tb" style="padding:5px;height:auto">
|
|
|
<div>
|
|
|
机构名称: <input class="easyui-textbox" type="text" id='names' name='names'>
|
|
|
起始时间: <input class="easyui-datebox" id='start' name='start' style="width:180px">
|
|
|
截止时间: <input class="easyui-datebox" id='end' name='end' style="width:180px">
|
|
|
<a href="#" class="easyui-linkbutton" id="search_buttn" iconCls="icon-search">搜索</a>
|
|
|
<!-- <a id="derive_btn" href="/products/fu_ji_tong/to_excel" class="easyui-linkbutton" style="height:28px" data-options="iconCls:'icon-undo'">导出</a>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div id="win" class="easyui-dialog" title="提示" style="width: 500px; padding: 10px 20px; height: auto" closed="true" buttons="#dlg-buttons">
|
|
|
<form id="fm" name="frm" method="post" style="margin-top: 20px; margin-left: 20px;">
|
|
|
<table style="padding: 10px 20px;" cellspacing="10">
|
|
|
<tr>
|
|
|
<td>登录账号:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="username" id="username" /></td>
|
|
|
<input class="easyui-textbox" id="mechanism_id" name="mechanism_id" type="hidden">
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>登录密码:</td>
|
|
|
<td><input class="easyui-textbox" placeholder="这里输入文字" type="text" name="password" id="password" /></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>机构名称:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="mechanismName" id="mechanismName" /></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>编号规则:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="rule" id="rule" /></td>
|
|
|
</tr>
|
|
|
<div id="dlg-buttons" style="display: block">
|
|
|
<a id="confirm" href="javascript:void(0)" class="easyui-linkbutton c6" iconcls="icon-ok" onclick="submitForm()" style="width: 90px">提交</a>
|
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#win').dialog('close')" style="width: 90px">取消</a>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</table>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div id="win" class="easyui-dialog" title="提示" style="width: 500px; padding: 10px 20px; height: auto" closed="true" buttons="#dlg-buttons">
|
|
|
<form id="fm" name="frm" method="post" style="margin-top: 20px; margin-left: 20px;">
|
|
|
<table style="padding: 10px 20px;" cellspacing="10">
|
|
|
<tr>
|
|
|
<td>登录账号:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="username" id="username" data-options="required:true,validType:'length[3,10]'"/></td>
|
|
|
<input class="easyui-textbox" id="mechanism_id" name="mechanism_id" type="hidden">
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>登录密码:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="password" id="password" data-options="required:true,validType:'length[5,10]'"/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>机构名称:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="mechanismName" id="mechanismName" data-options="required:true"/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>编号规则:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="rule" id="rule" data-options="required:true,validType:'length[0,2]'"/></td>
|
|
|
</tr>
|
|
|
<div id="dlg-buttons" style="display: block">
|
|
|
<a id="confirm" href="javascript:void(0)" class="easyui-linkbutton c6" iconcls="icon-ok" onclick="submitForm()" style="width: 90px">提交</a>
|
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#win').dialog('close')" style="width: 90px">取消</a>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</table>
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</body>
|
...
|
...
|
@@ -188,6 +188,7 @@ |
|
|
}
|
|
|
});
|
|
|
function addFile(){
|
|
|
$('#win').form('clear')
|
|
|
$('#win').dialog({
|
|
|
title: '新增',
|
|
|
width: 500,
|
...
|
...
|
@@ -200,6 +201,7 @@ |
|
|
}
|
|
|
//修改
|
|
|
function showUser(row){
|
|
|
$('#win').form('clear')
|
|
|
if(row){
|
|
|
// alert(row);
|
|
|
var id=row;
|
...
|
...
|
@@ -219,6 +221,7 @@ |
|
|
$('#mechanism_id').textbox('setValue',arr.rows[0].id);
|
|
|
|
|
|
$('#username').textbox('setValue',arr.rows[0].username);
|
|
|
$('#password').textbox('setValue','******');
|
|
|
|
|
|
$('#mechanismName').textbox('setValue',arr.rows[0].mechanismName);
|
|
|
$('#rule').textbox('setValue',arr.rows[0].rule);
|
...
|
...
|
@@ -242,19 +245,23 @@ |
|
|
// return false to prevent submit;
|
|
|
},
|
|
|
success:function(data){
|
|
|
console.log(data);
|
|
|
var arr = JSON.parse(data);
|
|
|
$.messager.alert("提示", arr.msg);
|
|
|
$('#dg').datagrid('reload');
|
|
|
|
|
|
if(arr.code==200){
|
|
|
$('#win').dialog({
|
|
|
closed: true, // 隱藏列表
|
|
|
});
|
|
|
$('#dg').datagrid('reload');
|
|
|
}
|
|
|
|
|
|
// console.log(data);
|
|
|
//$.messager.alert('',msg);
|
|
|
//console.log(data);
|
|
|
//alert(data)
|
|
|
}
|
|
|
});
|
|
|
$('#win').dialog({
|
|
|
closed: true, // 隱藏列表
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|