作者 niuyongqing

管理员模块

1 -<!DOCTYPE html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">  
2 -<html>  
3 -<head>  
4 - <meta charset="UTF-8">  
5 - <title>管理员列表</title>  
6 - <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/easyui.css" />  
7 - <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/menu.css" />  
8 - <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/icon.css" />  
9 - <link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.css" />  
10 - <link rel="stylesheet" type="text/css" href="/assets/web/css/common_car.css" />  
11 - <script type="text/javascript" src="/assets/common/js/jquery.min.1.9.4.js"></script>  
12 - <script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script>  
13 - <script type="text/javascript" src="/assets/common/js/jquery.cookie.1.4.1.js"></script>  
14 - <!-- 插件调用 --->  
15 - <script type="text/javascript" src="/assets/common/js/datagrid-detailview.js"></script>  
16 - <script type="text/javascript" src="/assets/common/locale/easyui-lang-zh_CN.js"></script>  
17 - <!-- 基础 JS 调用 -->  
18 - <script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script>  
19 - <script type="text/javascript" src="/assets/web/js/src/allCity.js"></script>  
20 - <style>  
21 - #fm>div {  
22 - width: 100%;  
23 - display: flex;  
24 - justify-content: space-around;  
25 - margin: 10px 0; 1 +<?php
  2 +/**
  3 + * Created by PhpStorm.
  4 + * User: Administrator
  5 + * Date: 2020/6/24
  6 + * Time: 15:30
  7 + */
  8 +
  9 +namespace app\products\controller;
  10 +use app\web\controller\BaseController;
  11 +
  12 +use think\Db;
  13 +use think\Request;
  14 +
  15 +class Role extends BaseController
  16 +{
  17 +
  18 + public function user_management(){
  19 +
  20 + return $this->fetch();
  21 + }
  22 + //获取用户列表
  23 + public function getUsers(Request $request){
  24 + $data = $request->param();
  25 + $where=[];
  26 + if(!empty($data['id']) && isset($data['id'])){
  27 + $where['id']=$data['id'];
26 } 28 }
27 - #fm>div input{  
28 - width: 180px; 29 + //$org_id = session('organization.org_id');
  30 + $list= Db::table('sos_user_role')->where($where)->select()->toArray();
  31 +
  32 + $type=['','试用期','正式员工','已离职'];
  33 + foreach($list as $key=>$val ){
  34 + $list[$key]['sex']=$val['sex'] == 1? '男' : '女';
  35 + //所属机构
  36 + if($val['mechanism'] != 0){
  37 + $mechanism= Db::table('sos_user_mechanism')->field('mechanismName')->where('id',$val['mechanism'])->find();
  38 + }
  39 + $list[$key]['mechanism']=$val['mechanism'] == 0? '男' : $mechanism['mechanismName'];
  40 + //所属部门
  41 + if($val['department'] != 0){
  42 + $department= Db::table('sos_user_department')->field('departmentName')->where('id',$val['department'])->find();
  43 + }
  44 + $list[$key]['department']=$val['department'] == 0? '男' : $department['departmentName'];
  45 + $list[$key]['status']=$type[$val['status']];
  46 +
  47 + $list[$key]['entryTime']=date('Y-m-d H:i:s',$val['entryTime']);
  48 + $list[$key]['quitTime']=$val['quitTime'] == ''? '' : date('Y-m-d H:i:s',$val['entryTime']);
  49 +
29 } 50 }
30 - </style>  
31 -</head>  
32 -<body style="margin-bottom: 54px;">  
33 -<div class="easyui-layout" data-options="fit:true">  
34 - <div data-options="split:false,region:'west',collapsible:true,footer:'#win_base_org_form_footer'" title="管理员列表" id="saveBox" style="width:100%;">  
35 - <div class="easyui-panel" style="width:100%;max-width:100%;padding: 5px 5px">  
36 - <div style="margin-bottom:5px;">  
37 - <a id="name_add_but" href="#" data-options="iconCls:'icon-add'" class="my_but" style="vertical-align: middle;">新增</a>  
38 - </div>  
39 - </div>  
40 - <table id="dg" style="width: 100%; height: 100%"  
41 - data-options="rownumbers:true,singleSelect:true,pagination:true,toolbar:'#tb'">  
42 -  
43 - </table>  
44 -  
45 - <div id="tb" style="padding:5px;height:auto">  
46 - <div>  
47 - 推送结果:  
48 - <input class="easyui-combobox" style="width:125px" name="materialname" id="materialname"  
49 - data-options="valueField:'id',  
50 - textField:'text',  
51 - data:  
52 - [{ 'id':0,  
53 - 'text':'全部' ,  
54 - selected:true  
55 - },{ 'id':1,  
56 - 'text':'成功' ,  
57 - },{  
58 - 'id':2,  
59 - 'text':'失败'  
60 - }] ,panelHeight:'auto'  
61 - "/>  
62 - 地区:  
63 - <input class="easyui-combobox" style="width:125px" name="type" id="new_type"  
64 - data-options="valueField:'id',  
65 - textField:'text',  
66 - data:  
67 - [  
68 - { 'id':0,  
69 - 'text':'全部' ,  
70 - selected:true  
71 - },{ 'id':1,  
72 - 'text':'湖南省内' ,  
73 - },{ 'id':2,  
74 - 'text':'湖南省外' ,  
75 - }] ,panelHeight:'auto'  
76 - "/>  
77 - 起始时间: <input class="easyui-datebox" id='start' name='start' style="width:180px">  
78 - 截止时间: <input class="easyui-datebox" id='end' name='end' style="width:180px">  
79 - <!-- 电话: <input class="easyui-numberbox" type="text" id='phone' name='phone'>-->  
80 - <a href="#" class="easyui-linkbutton" id="search_buttn" iconCls="icon-search">搜索</a>  
81 - <a id="derive_btn" href="/products/fu_ji_tong/to_excel" class="easyui-linkbutton" style="height:28px" data-options="iconCls:'icon-undo'">导出</a>  
82 - </div>  
83 - </div>  
84 - </div>  
85 -</div>  
86 -  
87 -  
88 -<div id="win" class="easyui-dialog" title="提示" style="width: 800px; padding: 10px 20px; height: auto" closed="true" buttons="#dlg-buttons">  
89 - <form id="fm" name="frm" method="post" style="margin-top: 20px; margin-left: 20px;">  
90 - <table style="padding: 10px 20px;" cellspacing="10">  
91 - <tr>  
92 - <td>登录账号:</td>  
93 - <td><input class="easyui-textbox" type="text" name="username" id="username" /></td>  
94 - <input class="easyui-textbox" id="user_id" name="user_id" type="hidden">  
95 - </tr>  
96 - <tr>  
97 - <td>登录密码:</td>  
98 - <td><input class="easyui-textbox" type="text" name="password" id="password" /></td>  
99 - </tr>  
100 - <tr>  
101 - <td>用户名称:</td>  
102 - <td><input class="easyui-textbox" type="text" name="name" id="name" /></td>  
103 - </tr>  
104 - <tr>  
105 - <td>性别:</td>  
106 - <td><input id="statusId" name="sex" class="easyui-switchbutton" data-options="onText:'男',offText:'女'" style="height:30px"></td>  
107 - </tr>  
108 - <tr>  
109 - <td>电话:</td>  
110 - <td><input class="easyui-textbox" type="text" name="phone" id="phone" /></td>  
111 - </tr>  
112 - <tr>  
113 - <td>所属机构:</td>  
114 - <td>  
115 - <input id="cc1" name="mechanism" class="easyui-combobox" data-options="  
116 - valueField: 'id',  
117 - textField: 'mechanismName',  
118 - url: '/products/role/getMechanism',  
119 - onSelect: function(rec){  
120 - var url = '/products/role/getDepartment?id='+rec.id;  
121 - $('#cc2').combobox('reload', url);  
122 - var url1 = '/products/role/generateNumber?id='+rec.id;  
123 - $('#personalNumber').textbox('reload', url1);  
124 - }">  
125 -  
126 - </td>  
127 - </tr>  
128 - <tr>  
129 - <td>所属部门:</td>  
130 - <td><input id="cc2" class="easyui-combobox" name="department" data-options="valueField:'id',textField:'departmentName'"></td>  
131 - </tr>  
132 - <tr>  
133 - <td>个人编号:</td>  
134 - <td><input class="easyui-textbox" type="text" name="personalNumber" id="personalNumber" data-options="valueField:'id',textField:'departmentName'"/></td>  
135 - </tr>  
136 - <tr>  
137 - <td>入职时间:</td>  
138 - <td><input class="easyui-datebox" name="entryTime" id="entryTime" /></td>  
139 - </tr>  
140 - <tr>  
141 - <td>离职时间:</td>  
142 - <td><input class="easyui-datebox" name="quitTime" id="quitTime" /></td>  
143 - </tr>  
144 - <tr>  
145 - <td>当前状态:</td>  
146 - <td><input class="easyui-combobox" style="width:160px" name="status" id="status"  
147 - data-options="valueField:'id',  
148 - textField:'text',  
149 - data:  
150 - [{ 'id':0,  
151 - 'text':'请选择' ,  
152 - selected:true  
153 - },{ 'id':1,  
154 - 'text':'试用期' ,  
155 - },{ 'id':2,  
156 - 'text':'正式员工' ,  
157 - },{  
158 - 'id':3,  
159 - 'text':'已离职'  
160 - }] ,panelHeight:'auto'  
161 - "/></td>  
162 - </tr>  
163 -  
164 - <div id="dlg-buttons" style="display: block">  
165 - <a id="confirm" href="javascript:void(0)" class="easyui-linkbutton c6" iconcls="icon-ok" onclick="submitForm()" style="width: 90px">提交</a>  
166 - <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#win').dialog('close')" style="width: 90px">取消</a>  
167 - </div>  
168 -  
169 -  
170 - </table>  
171 - </form>  
172 -</div>  
173 -  
174 -  
175 -</body>  
176 -<tbody id="html_table"></tbody>  
177 -<script type="text/javascript" src="/assets/web/js/src/common_fu.js"></script>  
178 -  
179 -<script>  
180 -  
181 - //下拉框搜索  
182 - init_datagrid('/products/role/getUsers', 0);  
183 -  
184 - //下拉框搜索  
185 -  
186 -  
187 - $('#search_buttn').bind('click', function() {  
188 -  
189 - var _data = $('#dg').data('datagrid'); // 拿到datagrid初始化的数据缓存  
190 - if(_data && _data.options){  
191 - _data.options.pageNumber = 1; // 修改缓存 51 + $result["total"] =count($list);
  52 + $result['rows']=$list;
  53 + echo json_encode($result);
  54 + }
  55 +
  56 +
  57 + /**
  58 + * 获取机构列表
  59 + */
  60 +
  61 + public function getMechanism(){
  62 +
  63 + $list= Db::table('sos_user_mechanism')->select()->toArray();
  64 + echo json_encode($list);
  65 + }
  66 +
  67 + /**
  68 + * 获取机构下部门列表
  69 + */
  70 +
  71 + public function getdepartment(Request $request){
  72 +
  73 + $data = $request->get();
  74 + $list= Db::table('sos_user_department')->where('mechanismId',$data['id'])->select()->toArray();
  75 + echo json_encode($list);
  76 + }
  77 +
  78 + /**
  79 + * @param Request $request
  80 + * @return array|mixed|null
  81 + * 添加用户
  82 + */
  83 +
  84 + public function user_add(Request $request)
  85 + {
  86 + $data = $request->param();
  87 +
  88 + $data['password']=md5(md5($data['password']));
  89 + if(isset($data['sex']) && $data['sex']=='on'){
  90 + $data['sex']=1;
  91 + }else{
  92 + $data['sex']=2;
192 } 93 }
193 - $.data($('#dg')[0], 'datagrid', _data); // 把修改写回去  
194 -  
195 -  
196 - var result=$('#materialname').combobox('getValue');  
197 - var new_type=$('#new_type').combobox('getValue');  
198 - var start = $("#start").val();  
199 - var end = $("#end").val();  
200 - var phone = $("#phone").val();  
201 - if(phone.length>0){  
202 - if(phone.length!=11){  
203 - $.messager.alert('检索手机号','手机号格式错误,请重新输入');  
204 - return false;  
205 - } 94 + $data['entryTime']=$data['entryTime'] == ''? '' :strtotime($data['entryTime']);
  95 + $data['quitTime']=$data['quitTime'] == ''? '' :strtotime($data['quitTime']);
  96 + if(isset($data['user_id']) && !empty($data['user_id'])){
  97 + $data['updateTime']=time();
  98 + $where['id']=$data['user_id'];
  99 + unset($data['user_id']);
  100 + $res = Db::table('sos_user_role')->where($where)->update($data);
  101 + }else{
  102 + unset($data['user_id']);
  103 + $data['createTime']=time();
  104 +
  105 + $res = Db::table('sos_user_role')->insert($data);
206 } 106 }
207 - var result = {  
208 - result,  
209 - new_type,  
210 - start,  
211 - end,  
212 - phone 107 + $json=json_decode($res,true);
  108 + if(is_numeric($json)){
  109 + $data=[
  110 + 'code'=>200,
  111 + 'msg'=>'成功'
  112 + ];
  113 + }else{
  114 + $data=[
  115 + 'code'=>100,
  116 + 'msg'=>'失败'
  117 + ];
213 } 118 }
214 - // console.log(result);return false;  
215 - init_datagrid('/products/role/getUsers', result);  
216 - });  
217 -  
218 -  
219 - function init_datagrid(data_url, res) {  
220 -  
221 - //表头字段  
222 - var arr_columns = dg_columns();  
223 - $("#dg").datagrid({  
224 - rownumbers:true,  
225 - singleSelect:true,  
226 - pagination:true,  
227 - url:data_url,  
228 - queryParams: res,  
229 - method:'post',  
230 - columns: [arr_columns],  
231 - loadMsg: '正在加载数据',  
232 - emptyMsg: '列表为空',  
233 - });  
234 - }  
235 - function dg_columns() {  
236 - var arr = new Array();  
237 - arr.push({  
238 - field: 'username',  
239 - title: '登录账号',  
240 - width: 120,  
241 - align: 'center'  
242 - });  
243 - arr.push({  
244 - field: 'name',  
245 - title: '用户名称',  
246 - width: 80,  
247 - align: 'center'  
248 - });  
249 - arr.push({  
250 - field: 'sex',  
251 - title: '性别',  
252 - width: 80,  
253 - align: 'center'  
254 - });  
255 - arr.push({  
256 - field: 'phone',  
257 - title: '电话',  
258 - width: 150,  
259 - align: 'center'  
260 - });  
261 - arr.push({  
262 - field: 'mechanism',  
263 - title: '所属机构',  
264 - width: 200,  
265 - align: 'center'  
266 - });  
267 - arr.push({  
268 - field: 'department',  
269 - title: '所属部门',  
270 - width: 150,  
271 - align: 'center'  
272 - });  
273 - arr.push({  
274 - field: 'personalNumber',  
275 - title: '人员编号',  
276 - width: 200,  
277 - align: 'center'  
278 - });  
279 - arr.push({  
280 - field: 'status',  
281 - title: '当前状态',  
282 - width: 150,  
283 - align: 'center'  
284 - });  
285 - arr.push({  
286 - field: 'entryTime',  
287 - title: '入职时间',  
288 - width: 200,  
289 - align: 'center'  
290 - });  
291 - arr.push({  
292 - field: 'quitTime',  
293 - title: '离职时间',  
294 - width: 200,  
295 - align: 'center'  
296 - });  
297 - arr.push({  
298 - field: 'id',  
299 - title: '操作',  
300 - width: 90,  
301 - align: 'center',  
302 - formatter:formatOper  
303 - });  
304 - // console.log(arr)  
305 - return arr; 119 + return $data;
306 } 120 }
307 - //操作框  
308 - function formatOper(val, row, index) {  
309 - return '<a href="javascript:void(0)" onclick="showUser(' + val + ')">编辑</a>'; 121 +
  122 + /**
  123 + * @param Request $request
  124 + * @return \think\response\Json
  125 + * 自动生成员工编号
  126 + */
  127 +
  128 + public function generateNumber(Request $request){
  129 + $data = $request->get();
  130 + $rule_name= Db::table('sos_user_rule')->where('mechanismId',$data['id'])->find();
  131 + $rule_num= Db::table('sos_user_role')->find();
  132 +
  133 + $rule_number=$rule_name['rule'].$rule_num['personalNumber'];
  134 +
  135 + return $rule_number;
  136 + echo json_encode($rule_number);
310 } 137 }
311 138
312 - //添加  
313 - $('#name_add_but').linkbutton({  
314 - onClick: function () {  
315 139
316 - addFile(); 140 +
  141 +
  142 +
  143 +
  144 +
  145 +
  146 +
  147 + //修改用户
  148 + public function edit(Request $request){
  149 + $data = $request->post();
  150 + if($data['id']){
  151 + $data['uid'] = $data['id'];
317 } 152 }
318 - });  
319 - function addFile(){  
320 - $('#win').dialog({  
321 - title: '新增',  
322 - width: 800,  
323 - height: "auto",  
324 - top:20,  
325 - closed: false,//显示对话框  
326 - cache: false,  
327 - modal: true  
328 - });  
329 - }  
330 - //修改  
331 - function showUser(row){  
332 - if(row){  
333 - // alert(row);  
334 - var id=row;  
335 - var result = {  
336 - id  
337 - }  
338 - $("#win").dialog("open").dialog("setTitle","人员信息修改");  
339 -  
340 - //ajax请求数据  
341 - $.ajax({  
342 - type: "post",  
343 - data: result,  
344 - async: false,  
345 - url: "/products/role/getUsers",  
346 - success: function(data) {  
347 - var arr = JSON.parse(data);  
348 -  
349 - console.log(arr.rows[0]);  
350 -  
351 - $('#user_id').textbox('setValue',arr.rows[0].user_id);  
352 -  
353 - $('#username').textbox('setValue',arr.rows[0].username);  
354 - $('#password').textbox('setValue',arr.rows[0].password);  
355 - $('#name').textbox('setValue',arr.rows[0].name);  
356 - $('#personalNumber').textbox('setValue',arr.rows[0].personalNumber);  
357 - //  
358 - if(arr.rows[0].sex == "男") {  
359 - $('#statusId').switchbutton('check');  
360 - }else {  
361 - $('#statusId').switchbutton('uncheck');  
362 - }  
363 - $('#phone').textbox('setValue',arr.rows[0].phone);  
364 - $('#entryTime').textbox('setValue',arr.rows[0].entryTime);  
365 - $('#quitTime').textbox('setValue',arr.rows[0].quitTime);  
366 -  
367 - $('#materialname').combobox('setValue', $('#materialname option')[2].value);  
368 -  
369 -  
370 - },  
371 - error:function(data){  
372 - console.log(data)  
373 - }  
374 - }); 153 +
  154 + $validate = new UserValidate();
  155 + $err_msg = $validate->scene("update")->check($data);
  156 +
  157 + if ($err_msg) {
  158 + return json($this->renderError($validate->getError()));
375 } 159 }
376 - }  
377 160
378 - function submitForm(){  
379 - $('#fm').form('submit', {  
380 - url:'/products/role/user_add',  
381 - onSubmit: function(){  
382 - console.log($(this))  
383 - // do some check  
384 - // return false to prevent submit;  
385 - },  
386 - success:function(data){  
387 - console.log(data);  
388 - return false;  
389 - var arr = JSON.parse(data);  
390 - $.messager.alert("提示", arr.msg);  
391 - $('#dg').datagrid('reload');  
392 - // console.log(data);  
393 - //$.messager.alert('',msg);  
394 - //console.log(data);  
395 - //alert(data)  
396 - }  
397 - });  
398 - $('#win').dialog({  
399 - closed: true, // 隱藏列表  
400 - }); 161 + $res = json_decode(curlPost($this->getUrl('edit'), $data),true);
  162 +
  163 + if ($res['code'] == self::SUCCESS_CODE) {
  164 + return json($this->renderSuccess());
  165 + }
  166 +
  167 + return json($res);
  168 +
401 } 169 }
  170 + //删除用户
  171 + public function del(Request $request){
  172 + $data = $request->get();
402 173
  174 + if (empty($data['id']) && $data['id'] !== 0) {
  175 + return json($this->renderError("删除失败!"));
  176 + }
  177 + $res = json_decode(curlPost($this->getUrl("del"),['uid'=>$data['id']]),true);
403 178
  179 + if ($res['code'] != self::SUCCESS_CODE) {
  180 + return json($res);
  181 + }
404 182
405 -</script>  
406 -</html>  
  183 + return json($this->renderSuccess());
  184 + }
  185 +}
@@ -2,11 +2,12 @@ @@ -2,11 +2,12 @@
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
5 - <title>SOS信息综合管理系统</title> 5 + <title>管理员列表</title>
6 <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/easyui.css" /> 6 <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/easyui.css" />
7 <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/menu.css" /> 7 <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/gray/menu.css" />
8 <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/icon.css" /> 8 <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/icon.css" />
9 <link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.css" /> 9 <link rel="stylesheet" type="text/css" href="/assets/web/css/jitnry.css" />
  10 + <link rel="stylesheet" type="text/css" href="/assets/web/css/common_car.css" />
10 <script type="text/javascript" src="/assets/common/js/jquery.min.1.9.4.js"></script> 11 <script type="text/javascript" src="/assets/common/js/jquery.min.1.9.4.js"></script>
11 <script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script> 12 <script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script>
12 <script type="text/javascript" src="/assets/common/js/jquery.cookie.1.4.1.js"></script> 13 <script type="text/javascript" src="/assets/common/js/jquery.cookie.1.4.1.js"></script>
@@ -15,293 +16,391 @@ @@ -15,293 +16,391 @@
15 <script type="text/javascript" src="/assets/common/locale/easyui-lang-zh_CN.js"></script> 16 <script type="text/javascript" src="/assets/common/locale/easyui-lang-zh_CN.js"></script>
16 <!-- 基础 JS 调用 --> 17 <!-- 基础 JS 调用 -->
17 <script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script> 18 <script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script>
18 - <script type="text/javascript" src="/assets/web/js/src/common.menu.js"></script>  
19 -  
20 - <script type="text/javascript">  
21 - var oltTarget, logTarget, logGridTarget;  
22 - var num = 0;  
23 - var iCount;  
24 - $(function () {  
25 - oltTarget = $("#operation_log_txt");  
26 - logTarget = $("#operation_log");  
27 - logGridTarget = $("#operation_log_grid");  
28 -  
29 - /* 获得窗口大小 */  
30 - function onResize() {  
31 - logTarget.window({  
32 - left:$(window).width() - 705,  
33 - top:$(window).height() - 425,  
34 - closed:true  
35 - });  
36 - };  
37 - window.onresize = onResize;  
38 - onResize();  
39 -  
40 - /*  
41 - $(document).unbind('.commoditygrid').bind('mousedown.commoditygrid', function(e){  
42 - var p = $(e.target).closest('table.datagrid-btable,div.combo-panel');  
43 - if (p.length) { return; }  
44 - });  
45 - */ 19 + <script type="text/javascript" src="/assets/web/js/src/allCity.js"></script>
  20 + <style>
  21 + #fm>div {
  22 + width: 100%;
  23 + display: flex;
  24 + justify-content: space-around;
  25 + margin: 10px 0;
  26 + }
  27 + #fm>div input{
  28 + width: 180px;
  29 + }
  30 + </style>
  31 +</head>
  32 +<body style="margin-bottom: 54px;">
  33 +<div class="easyui-layout" data-options="fit:true">
  34 + <div data-options="split:false,region:'west',collapsible:true,footer:'#win_base_org_form_footer'" title="管理员列表" id="saveBox" style="width:100%;">
  35 + <div class="easyui-panel" style="width:100%;max-width:100%;padding: 5px 5px">
  36 + <div style="margin-bottom:5px;">
  37 + <a id="name_add_but" href="#" data-options="iconCls:'icon-add'" class="my_but" style="vertical-align: middle;">新增</a>
  38 + </div>
  39 + </div>
  40 + <table id="dg" style="width: 100%; height: 100%"
  41 + data-options="rownumbers:true,singleSelect:true,pagination:true,toolbar:'#tb'">
46 42
  43 + </table>
47 44
48 - // $('#main_tabs').tabs('update', {  
49 - // tab: $('#main_tabs').tabs('getTab', 0),  
50 - // options: {  
51 - // id: 'ClientIndex',  
52 - // title: '客户管理'  
53 - // }  
54 - // }); 45 + <div id="tb" style="padding:5px;height:auto">
  46 + <div>
  47 + 推送结果:
  48 + <input class="easyui-combobox" style="width:125px" name="materialname" id="materialname"
  49 + data-options="valueField:'id',
  50 + textField:'text',
  51 + data:
  52 + [{ 'id':0,
  53 + 'text':'全部' ,
  54 + selected:true
  55 + },{ 'id':1,
  56 + 'text':'成功' ,
  57 + },{
  58 + 'id':2,
  59 + 'text':'失败'
  60 + }] ,panelHeight:'auto'
  61 + "/>
  62 + 地区:
  63 + <input class="easyui-combobox" style="width:125px" name="type" id="new_type"
  64 + data-options="valueField:'id',
  65 + textField:'text',
  66 + data:
  67 + [
  68 + { 'id':0,
  69 + 'text':'全部' ,
  70 + selected:true
  71 + },{ 'id':1,
  72 + 'text':'湖南省内' ,
  73 + },{ 'id':2,
  74 + 'text':'湖南省外' ,
  75 + }] ,panelHeight:'auto'
  76 + "/>
  77 + 起始时间: <input class="easyui-datebox" id='start' name='start' style="width:180px">
  78 + 截止时间: <input class="easyui-datebox" id='end' name='end' style="width:180px">
  79 + <!-- 电话: <input class="easyui-numberbox" type="text" id='phone' name='phone'>-->
  80 + <a href="#" class="easyui-linkbutton" id="search_buttn" iconCls="icon-search">搜索</a>
  81 + <a id="derive_btn" href="/products/fu_ji_tong/to_excel" class="easyui-linkbutton" style="height:28px" data-options="iconCls:'icon-undo'">导出</a>
  82 + </div>
  83 + </div>
  84 + </div>
  85 +</div>
55 86
56 - // $('#main_iframe').attr('src','__MODEL__/client/client_list_main');  
57 87
  88 +<div id="win" class="easyui-dialog" title="提示" style="width: 800px; padding: 10px 20px; height: auto" closed="true" buttons="#dlg-buttons">
  89 + <form id="fm" name="frm" method="post" style="margin-top: 20px; margin-left: 20px;">
  90 + <table style="padding: 10px 20px;" cellspacing="10">
  91 + <tr>
  92 + <td>登录账号:</td>
  93 + <td><input class="easyui-textbox" type="text" name="username" id="username" /></td>
  94 + <input class="easyui-textbox" id="user_id" name="user_id" type="hidden">
  95 + </tr>
  96 + <tr>
  97 + <td>登录密码:</td>
  98 + <td><input class="easyui-textbox" type="text" name="password" id="password" /></td>
  99 + </tr>
  100 + <tr>
  101 + <td>用户名称:</td>
  102 + <td><input class="easyui-textbox" type="text" name="name" id="name" /></td>
  103 + </tr>
  104 + <tr>
  105 + <td>性别:</td>
  106 + <td><input id="statusId" name="sex" class="easyui-switchbutton" data-options="onText:'男',offText:'女'" style="height:30px"></td>
  107 + </tr>
  108 + <tr>
  109 + <td>电话:</td>
  110 + <td><input class="easyui-textbox" type="text" name="phone" id="phone" /></td>
  111 + </tr>
  112 + <tr>
  113 + <td>所属机构:</td>
  114 + <td>
  115 + <input id="cc1" name="mechanism" class="easyui-combobox" data-options="
  116 + valueField: 'id',
  117 + textField: 'mechanismName',
  118 + url: '/products/role/getMechanism',
  119 + onSelect: function(rec){
  120 + var url = '/products/role/getDepartment?id='+rec.id;
  121 + $('#cc2').combobox('reload', url);
  122 + var url1 = '/products/role/generateNumber?id='+rec.id;
  123 + $('#personalNumber').textbox('reload', url1);
  124 + }">
58 125
  126 + </td>
  127 + </tr>
  128 + <tr>
  129 + <td>所属部门:</td>
  130 + <td><input id="cc2" class="easyui-combobox" name="department" data-options="valueField:'id',textField:'departmentName'"></td>
  131 + </tr>
  132 + <tr>
  133 + <td>个人编号:</td>
  134 + <td><input class="easyui-textbox" type="text" name="personalNumber" id="personalNumber" data-options="valueField:'id',textField:'departmentName'"/></td>
  135 + </tr>
  136 + <tr>
  137 + <td>入职时间:</td>
  138 + <td><input class="easyui-datebox" name="entryTime" id="entryTime" /></td>
  139 + </tr>
  140 + <tr>
  141 + <td>离职时间:</td>
  142 + <td><input class="easyui-datebox" name="quitTime" id="quitTime" /></td>
  143 + </tr>
  144 + <tr>
  145 + <td>当前状态:</td>
  146 + <td><input class="easyui-combobox" style="width:160px" name="status" id="status"
  147 + data-options="valueField:'id',
  148 + textField:'text',
  149 + data:
  150 + [{ 'id':0,
  151 + 'text':'请选择' ,
  152 + selected:true
  153 + },{ 'id':1,
  154 + 'text':'试用期' ,
  155 + },{ 'id':2,
  156 + 'text':'正式员工' ,
  157 + },{
  158 + 'id':3,
  159 + 'text':'已离职'
  160 + }] ,panelHeight:'auto'
  161 + "/></td>
  162 + </tr>
  163 +
  164 + <div id="dlg-buttons" style="display: block">
  165 + <a id="confirm" href="javascript:void(0)" class="easyui-linkbutton c6" iconcls="icon-ok" onclick="submitForm()" style="width: 90px">提交</a>
  166 + <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#win').dialog('close')" style="width: 90px">取消</a>
  167 + </div>
59 168
60 - //首页默认展示  
61 - $('#main_tabs').tabs('update', {  
62 - tab: $('#main_tabs').tabs('getTab', 0),  
63 - options: {  
64 - id: 'ClientIndex',  
65 - title: '人员管理'  
66 - }  
67 - });  
68 169
69 - $('#main_iframe').attr('src','__MODEL__/role/index'); 170 + </table>
  171 + </form>
  172 +</div>
  173 +
70 174
  175 +</body>
  176 +<tbody id="html_table"></tbody>
  177 +<script type="text/javascript" src="/assets/web/js/src/common_fu.js"></script>
71 178
  179 +<script>
72 180
  181 + //下拉框搜索
  182 + init_datagrid('/products/role/getUsers', 0);
  183 +
  184 + //下拉框搜索
  185 +
  186 +
  187 + $('#search_buttn').bind('click', function() {
  188 +
  189 + var _data = $('#dg').data('datagrid'); // 拿到datagrid初始化的数据缓存
  190 + if(_data && _data.options){
  191 + _data.options.pageNumber = 1; // 修改缓存
  192 + }
  193 + $.data($('#dg')[0], 'datagrid', _data); // 把修改写回去
73 194
74 - $.h.index.setOperateInfo(null, false);  
75 195
76 - $("<div class=\"datagrid-mask\"></div>").css({  
77 - display: "none",  
78 - position: "absolute",  
79 - width: "100%",  
80 - height: "100%"  
81 - }).appendTo("#Loading");  
82 - $("<div class=\"loading\"></div>").html("<div><img src='/assets/web/img/loading.gif' style='width:80px;height:80px;'></div><div style='font-size:12px;color:#666;'>正在加载主框架数据……</div>").css({  
83 - position: "relative",  
84 - left: $(window).width() / 2 - $(window).width() * 0.1,  
85 - top: $(window).height() / 2 - 100,  
86 - width: $(window).width() * 0.2  
87 - }).appendTo("#Loading").css({display: "block"});  
88 - setTimeout(function () {  
89 - $("#Loading").fadeOut("normal", function () {  
90 - $(this).remove();  
91 - });  
92 - }, 800) 196 + var result=$('#materialname').combobox('getValue');
  197 + var new_type=$('#new_type').combobox('getValue');
  198 + var start = $("#start").val();
  199 + var end = $("#end").val();
  200 + var phone = $("#phone").val();
  201 + if(phone.length>0){
  202 + if(phone.length!=11){
  203 + $.messager.alert('检索手机号','手机号格式错误,请重新输入');
  204 + return false;
  205 + }
  206 + }
  207 + var result = {
  208 + result,
  209 + new_type,
  210 + start,
  211 + end,
  212 + phone
  213 + }
  214 + // console.log(result);return false;
  215 + init_datagrid('/products/role/getUsers', result);
  216 + });
  217 +
  218 +
  219 + function init_datagrid(data_url, res) {
  220 +
  221 + //表头字段
  222 + var arr_columns = dg_columns();
  223 + $("#dg").datagrid({
  224 + rownumbers:true,
  225 + singleSelect:true,
  226 + pagination:true,
  227 + url:data_url,
  228 + queryParams: res,
  229 + method:'post',
  230 + columns: [arr_columns],
  231 + loadMsg: '正在加载数据',
  232 + emptyMsg: '列表为空',
  233 + });
  234 + }
  235 + function dg_columns() {
  236 + var arr = new Array();
  237 + arr.push({
  238 + field: 'username',
  239 + title: '登录账号',
  240 + width: 120,
  241 + align: 'center'
  242 + });
  243 + arr.push({
  244 + field: 'name',
  245 + title: '用户名称',
  246 + width: 80,
  247 + align: 'center'
  248 + });
  249 + arr.push({
  250 + field: 'sex',
  251 + title: '性别',
  252 + width: 80,
  253 + align: 'center'
  254 + });
  255 + arr.push({
  256 + field: 'phone',
  257 + title: '电话',
  258 + width: 150,
  259 + align: 'center'
  260 + });
  261 + arr.push({
  262 + field: 'mechanism',
  263 + title: '所属机构',
  264 + width: 200,
  265 + align: 'center'
93 }); 266 });
  267 + arr.push({
  268 + field: 'department',
  269 + title: '所属部门',
  270 + width: 150,
  271 + align: 'center'
  272 + });
  273 + arr.push({
  274 + field: 'personalNumber',
  275 + title: '人员编号',
  276 + width: 200,
  277 + align: 'center'
  278 + });
  279 + arr.push({
  280 + field: 'status',
  281 + title: '当前状态',
  282 + width: 150,
  283 + align: 'center'
  284 + });
  285 + arr.push({
  286 + field: 'entryTime',
  287 + title: '入职时间',
  288 + width: 200,
  289 + align: 'center'
  290 + });
  291 + arr.push({
  292 + field: 'quitTime',
  293 + title: '离职时间',
  294 + width: 200,
  295 + align: 'center'
  296 + });
  297 + arr.push({
  298 + field: 'id',
  299 + title: '操作',
  300 + width: 90,
  301 + align: 'center',
  302 + formatter:formatOper
  303 + });
  304 + // console.log(arr)
  305 + return arr;
  306 + }
  307 + //操作框
  308 + function formatOper(val, row, index) {
  309 + return '<a href="javascript:void(0)" onclick="showUser(' + val + ')">编辑</a>';
  310 + }
94 311
95 - $.h.index = {  
96 - refresh : function(e) {  
97 - var objMainTabs = $('#main_tabs');  
98 - var objMainTabsOptions = objMainTabs.tabs('getSelected').panel('options');  
99 - if (objMainTabs.tabs('getTabIndex',objMainTabs.tabs('getSelected')) == 0) {  
100 - $('#main_iframe').attr('src',$('#main_iframe').attr('src'));  
101 - return;  
102 - }  
103 - objMainTabs.tabs('update', {  
104 - tab: objMainTabs.tabs('getSelected'),  
105 - options: {  
106 - title: objMainTabsOptions.title,  
107 - href: objMainTabsOptions.href  
108 - }  
109 - });  
110 - objMainTabs.tabs('getSelected').panel('refresh');  
111 - },  
112 - onCloseAll : function() {  
113 - var objTabs = $('#main_tabs');  
114 - var mTabs = objTabs.tabs('tabs');  
115 - for (var i = 0; i < mTabs.length; i++) {  
116 - if (i == 0) continue;  
117 - objTabs.tabs("close", i);  
118 - }  
119 - },  
120 - sendMainMsg : function(msg) {  
121 - if ($("#main_msg").is(":hidden")) {  
122 - $('#main_msg').html(msg);  
123 - var mainMsgWidth = $('#main_msg').width() / 2;  
124 - $('#main_msg').offset({top:0,left:((document.documentElement.clientWidth || document.body.clientWidth) / 2 - mainMsgWidth)});  
125 - $('#main_msg').show();  
126 - } else {  
127 - $('#main_msg').html('');  
128 - $('#main_msg').offset({top:0,left:0});  
129 - $('#main_msg').hide();  
130 - }  
131 - },  
132 - /**  
133 - * 如果 info 为 null 并且 b 为 false,只读取数组中第一条记录并显示  
134 - * 如果 info 不是 null 并且 b 为 false,只显示信息,不写入数组中  
135 - * 如果 info 不是 null 并且 b 为 true,显示信息,并写入数组中  
136 - */  
137 - setOperateInfo : function(info, b) {  
138 - if (info == null || b) {  
139 - var mCookieData = $.cookie('SysOperateInfo');  
140 - if (!mCookieData) {  
141 - mCookieData = '[]';  
142 - }  
143 - mCookieData = JSON.parse(mCookieData); 312 + //添加
  313 + $('#name_add_but').linkbutton({
  314 + onClick: function () {
144 315
145 - if (mCookieData.length >= 10) {  
146 - mCookieData.splice(9, 1);  
147 - }  
148 - /* 为 true 时,写入 Cookie */  
149 - if (b) {  
150 - info.id = mCookieData.length;  
151 - mCookieData.unshift(info);  
152 - $.cookie('SysOperateInfo',JSON.stringify(mCookieData));  
153 - }  
154 - if (info == null) {  
155 - if (mCookieData.length == 0) return;  
156 - info = mCookieData[0];  
157 - } 316 + addFile();
  317 + }
  318 + });
  319 + function addFile(){
  320 + $('#win').dialog({
  321 + title: '新增',
  322 + width: 800,
  323 + height: "auto",
  324 + top:20,
  325 + closed: false,//显示对话框
  326 + cache: false,
  327 + modal: true
  328 + });
  329 + }
  330 + //修改
  331 + function showUser(row){
  332 + if(row){
  333 + // alert(row);
  334 + var id=row;
  335 + var result = {
  336 + id
  337 + }
  338 + $("#win").dialog("open").dialog("setTitle","人员信息修改");
158 339
159 - if (!logTarget.window('options').closed) {  
160 - logGridTarget.datagrid('loadData', mCookieData);  
161 - }  
162 - } 340 + //ajax请求数据
  341 + $.ajax({
  342 + type: "post",
  343 + data: result,
  344 + async: false,
  345 + url: "/products/role/getUsers",
  346 + success: function(data) {
  347 + var arr = JSON.parse(data);
163 348
164 - var strHtml = '<strong>【{R_Module}】【{R_Operate}】:</strong>{R_Content}';  
165 - strHtml = strHtml.replace('{R_Module}',info.module).replace('{R_Operate}',info.operate).replace('{R_Content}',info.content);  
166 - $(oltTarget.children()[0]).html(strHtml); 349 + console.log(arr.rows[0]);
167 350
168 - clearInterval(iCount);  
169 - if (info.icon == 'hr-warn' || info.icon == 'hr-error') { 351 + $('#user_id').textbox('setValue',arr.rows[0].user_id);
170 352
171 - this.sendMainMsg(strHtml);  
172 - iCount = window.setInterval(txtTwinkle, 1300);  
173 - } 353 + $('#username').textbox('setValue',arr.rows[0].username);
  354 + $('#password').textbox('setValue',arr.rows[0].password);
  355 + $('#name').textbox('setValue',arr.rows[0].name);
  356 + $('#personalNumber').textbox('setValue',arr.rows[0].personalNumber);
  357 + //
  358 + if(arr.rows[0].sex == "男") {
  359 + $('#statusId').switchbutton('check');
  360 + }else {
  361 + $('#statusId').switchbutton('uncheck');
  362 + }
  363 + $('#phone').textbox('setValue',arr.rows[0].phone);
  364 + $('#entryTime').textbox('setValue',arr.rows[0].entryTime);
  365 + $('#quitTime').textbox('setValue',arr.rows[0].quitTime);
  366 +
  367 + $('#materialname').combobox('setValue', $('#materialname option')[2].value);
174 368
175 - if (!$(oltTarget.children()[1]).hasClass(info.icon)) {  
176 - strHtml = "l-btn-icon " + info.icon;  
177 - $(oltTarget.children()[1]).attr("class","l-btn-icon " + info.icon); 369 +
  370 + },
  371 + error:function(data){
  372 + console.log(data)
178 } 373 }
179 - }  
180 - };  
181 - function txtTwinkle() {  
182 - num++;  
183 - if (num == 6) {  
184 - num = 0;  
185 - $.h.index.sendMainMsg(null);  
186 - clearInterval(iCount);  
187 - } else {  
188 - setTimeout("oltTarget.css('color','blue')",500);  
189 - setTimeout("oltTarget.css('color','#000')",800);  
190 - } 374 + });
191 } 375 }
192 - </script>  
193 -</head>  
194 -<body>  
195 -<div id='Loading' style="position:absolute;z-index:1000;top:0px;left:0px;width:100%;height:100%;background-color:#fff;text-align:center;"></div>  
196 -<div class="easyui-layout" data-options="fit:true">  
197 - <div data-options="region:'north',border:false" style="display:flex;justify-content:space-between;height:60px;line-height:60px;overflow:hidden;background-image:linear-gradient(90deg, #dee, #fff);">  
198 - <div style="display:flex;align-items:center;">  
199 - <div slot="header-logo" style="float:left;width:180px;">  
200 - <img src="/assets/web/img/Logo.png" style="margin-left: 20px;height: 30px;">  
201 - </div>  
202 - </div>  
203 - <div style="display:flex;align-items:center;margin-right:5px;">  
204 - <a href="/web/index/loginout" class="easyui-menubutton">退出</a>  
205 - </div>  
206 - <div id="main_msg" style="display:none;position:absolute;top:0;left:50%;transform:translate(-50%,0);height:40px;line-height:30px;font-size:14px;color:#fff;padding:5px 20px;border-radius:0 0 .5em .5em;background-color:rgba(0,0,0,0.5)">~~这是一条提示消息~~</div>  
207 - </div>  
208 - <div data-options="region:'west',split:true,hideCollapsedContent:false,collapsed:false,title:'菜单',dataType:'json'" style="width:180px;min-width:160px;">  
209 - <div class="easyui-menu" data-options="inline:true,fit:true,itemHeight:40" style="border:0px;">  
210 - <!-- <div data-options="iconCls:'icon-cancel'">-->  
211 - <!-- <span>客户管理</span>-->  
212 - <!-- <div style="width:180px;">-->  
213 - <!-- <div data-options="iconCls:'icon-clear'"><b>客户管理</b></div>-->  
214 - <!-- <div data-options="iconCls:'icon-edit'">客户导入</div>-->  
215 - <!-- <div data-options="iconCls:'icon-remove'">客户调配</div>-->  
216 - <!-- <div data-options="iconCls:'icon-save'">数据处理</div>-->  
217 - <!-- <div class="menu-sep"></div>-->  
218 - <!-- <div data-options="iconCls:'icon-cut'">招聘管理</div>-->  
219 - <!-- <div data-options="iconCls:'icon-ok'">下发回收</div>-->  
220 - <!-- <div data-options="iconCls:'icon-no'">故障报修</div>-->  
221 - <!-- </div>-->  
222 - <!-- </div>-->  
223 - <!-- <div class="menu-selected" data-options="iconCls:'hr-loading'">-->  
224 - <!-- <span>我的助手</span>-->  
225 - <!-- <div style="width:180px;">-->  
226 - <!-- <div><b>我的消息</b></div>-->  
227 - <!-- <div>消息提醒</div>-->  
228 - <!-- <div>通话记录</div>-->  
229 - <!-- <div>未接来电</div>-->  
230 - <!-- <div>公告管理</div>-->  
231 - <!-- <div>通讯录</div>-->  
232 - <!-- <div>个人设置</div>-->  
233 - <!-- <div>帮助向导</div>-->  
234 - <!-- </div>-->  
235 - <!-- </div>-->  
236 - <!---->  
237 - <div data-options="iconCls:'icon-reload'">  
238 - <span>转盘抽奖</span>  
239 - <div style="width:180px;">  
240 - <div onclick="$.h.menu.onMenuTurnPrizeManage();"><b>奖项列表</b></div>  
241 - <div onclick="$.h.menu.onMenuTurnPrizeUserManage();"><b>用户列表</b></div>  
242 - <div onclick="$.h.menu.onMenuTurnPrizeRuleManage();"><b>规则设置</b></div>  
243 - </div>  
244 - </div>  
245 - <div data-options="iconCls:'icon-reload'">  
246 - <span>抽奖管理</span>  
247 - <div style="width:180px;">  
248 - <div onclick="$.h.menu.onMenuPrizeManage();"><b>奖项列表</b></div>  
249 - <div onclick="$.h.menu.onMenuPrizeUserManage();"><b>用户列表</b></div>  
250 - <div onclick="$.h.menu.onMenuPrizeRuleManage();"><b>规则设置</b></div>  
251 - </div>  
252 - </div>  
253 - <div data-options="iconCls:'icon-reload'">  
254 - <span>产品管理</span>  
255 - <div style="width:180px;">  
256 - <div onclick="$.h.menu.onMenuProductManage();"><b>产品列表</b></div>  
257 - <div onclick="$.h.menu.onMenuProductOrderManage();"><b>订单列表</b></div>  
258 - </div>  
259 - </div>  
260 - <div data-options="iconCls:'icon-reload'">  
261 - <span>获客管理</span>  
262 - <div style="width:180px;">  
263 - <div onclick="$.h.menu.onMenuFuJiTongManage();"><b>客户列表</b></div>  
264 - </div>  
265 - </div>  
266 - 376 + }
267 377
  378 + function submitForm(){
  379 + $('#fm').form('submit', {
  380 + url:'/products/role/user_add',
  381 + onSubmit: function(){
  382 + console.log($(this))
  383 + // do some check
  384 + // return false to prevent submit;
  385 + },
  386 + success:function(data){
  387 + console.log(data);
  388 + return false;
  389 + var arr = JSON.parse(data);
  390 + $.messager.alert("提示", arr.msg);
  391 + $('#dg').datagrid('reload');
  392 + // console.log(data);
  393 + //$.messager.alert('',msg);
  394 + //console.log(data);
  395 + //alert(data)
  396 + }
  397 + });
  398 + $('#win').dialog({
  399 + closed: true, // 隱藏列表
  400 + });
  401 + }
268 402
269 403
270 - <div data-options="iconCls:'icon-reload'">  
271 - <span>管理员</span>  
272 - <div style="width:180px;">  
273 - <div onclick="$.h.menu.onMenuRoleManage();"><b>人员管理</b></div>  
274 - <div onclick="$.h.menu.onMenuMechanismManage();"><b>机构管理</b></div>  
275 - </div>  
276 - </div>  
277 - <div data-options="iconCls:'icon-reload'">  
278 - <span>二级菜单</span>  
279 - <div style="width:180px;">  
280 - <div onclick="$.h.menu.onMenuDepartmentManage();"><b>部门管理</b></div>  
281 - <div onclick="$.h.menu.onMenuPersonnelManage();"><b>人员管理</b></div>  
282 - </div>  
283 - </div>  
284 - <div data-options="iconCls:'icon-reload'">  
285 - <span>编号规则</span>  
286 - <div style="width:180px;">  
287 - <div onclick="$.h.menu.onMenuNumberManage();"><b>编号列表</b></div>  
288 - </div>  
289 - </div>  
290 - </div>  
291 - </div>  
292 - <div data-options="region:'center',border:false" style="overflow:hidden;">  
293 - <div id="main_tabs" class="easyui-tabs" data-options="fit:true,border:true,tools:'#tab-tools',tabWidth:120">  
294 - <div style="overflow:hidden;padding:4px;">  
295 - <iframe id="main_iframe" style="width:100%;height:100%;border:0px;overflow:hidden;"></iframe>  
296 - </div>  
297 - </div>  
298 - <div id="tab-tools" style="border-right:0px;">  
299 - <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-clear',onClick:$.h.index.onCloseAll" title="关闭所有"></a>  
300 - <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload',onClick:$.h.index.refresh" title="刷新当前"></a>  
301 - </div>  
302 - </div>  
303 - <div data-options="region:'east',split:true,hideCollapsedContent:false,collapsed:true,title:'快捷',dataType:'json',href:'/web/index/quick_menu'" style="width:100px;min-width:100px;"></div>  
304 -</div>  
305 404
306 -</body> 405 +</script>
307 </html> 406 </html>