Commit 5a73aa90 authored by wangjiangze's avatar wangjiangze

更新

parent 6736c928
...@@ -46,6 +46,7 @@ class ConfAction extends CommonAction{ ...@@ -46,6 +46,7 @@ class ConfAction extends CommonAction{
$data['sp_id'] = I("sp_id"); $data['sp_id'] = I("sp_id");
$data['remark'] = I("remark"); $data['remark'] = I("remark");
$data['status'] = I("status"); $data['status'] = I("status");
$data['v'] = I("v");
if($id){ if($id){
$data['id'] = $id; $data['id'] = $id;
......
...@@ -52,6 +52,7 @@ class SpAction extends CommonAction{ ...@@ -52,6 +52,7 @@ class SpAction extends CommonAction{
$data['mobile'] = I("mobile"); $data['mobile'] = I("mobile");
$data['remark'] = I("remark"); $data['remark'] = I("remark");
$data['status'] = I("status"); $data['status'] = I("status");
$data['push_type'] = I("push_type");
if($id){ if($id){
$data['id'] = $id; $data['id'] = $id;
......
...@@ -41,6 +41,12 @@ body{padding:20px} ...@@ -41,6 +41,12 @@ body{padding:20px}
<input type="text" class="form-control" id="inputEmail3" placeholder="请输入配置类型code" name="type_code" value="{$info.type_code}"> <input type="text" class="form-control" id="inputEmail3" placeholder="请输入配置类型code" name="type_code" value="{$info.type_code}">
</div> </div>
</div> </div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">配置值</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="inputEmail3" placeholder="请输入配置值" name="v" value="{$info.v}">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">备注</label> <label for="inputPassword3" class="col-sm-2 control-label">备注</label>
<div class="col-sm-9"> <div class="col-sm-9">
......
...@@ -66,9 +66,10 @@ onRowContextMenu : onRowContextMenu ...@@ -66,9 +66,10 @@ onRowContextMenu : onRowContextMenu
<thead> <thead>
<tr> <tr>
<th data-options="field:'name',width:40" sortable="true">配置名称</th> <th data-options="field:'name',width:40" sortable="true">配置名称</th>
<th data-options="field:'type_code',width:20">配置类型code</th> <th data-options="field:'type_code',width:30">配置类型code</th>
<th data-options="field:'sp_name',width:40">合作方</th> <th data-options="field:'v',width:60">配置值</th>
<th data-options="field:'remark',width:40">备注</th> <th data-options="field:'sp_name',width:20">合作方</th>
<th data-options="field:'remark',width:20">备注</th>
<th data-options="field:'addtime',width:20" sortable="true">创建时间</th> <th data-options="field:'addtime',width:20" sortable="true">创建时间</th>
<th data-options="field:'updatetime',width:20" sortable="true">更新时间</th> <th data-options="field:'updatetime',width:20" sortable="true">更新时间</th>
<th data-options="field:'status'" sortable="true" align="center">状态</th> <th data-options="field:'status'" sortable="true" align="center">状态</th>
......
...@@ -42,6 +42,17 @@ body{padding:20px} ...@@ -42,6 +42,17 @@ body{padding:20px}
<input type="text" class="form-control" id="inputEmail3" placeholder="请输入手机号" name="mobile" value="{$info.mobile}"> <input type="text" class="form-control" id="inputEmail3" placeholder="请输入手机号" name="mobile" value="{$info.mobile}">
</div> </div>
</div> </div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">是否推送</label>
<div class="col-sm-9">
<label class="radio-inline">
<input type="radio" name="push_type" id="optionsRadios4" value="1"> 推送
</label>
<label class="radio-inline">
<input type="radio" name="push_type" id="optionsRadios4" value="0" checked="checked"> 不推送
</label>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">备注</label> <label for="inputPassword3" class="col-sm-2 control-label">备注</label>
<div class="col-sm-9"> <div class="col-sm-9">
...@@ -119,6 +130,7 @@ $().ready(function(){ ...@@ -119,6 +130,7 @@ $().ready(function(){
$("select[id='province_select'] option[value='"+province_id+"']").attr("selected",true); $("select[id='province_select'] option[value='"+province_id+"']").attr("selected",true);
$("select[name='region_id'] option[value='{$info.region_id}']").attr("selected",true); $("select[name='region_id'] option[value='{$info.region_id}']").attr("selected",true);
$("input[name='status'][value='{$info.status}']").attr("checked",true); $("input[name='status'][value='{$info.status}']").attr("checked",true);
$("input[name='push_type'][value='{$info.push_type}']").attr("checked",true);
</if> </if>
}); });
</script> </script>
......
...@@ -66,7 +66,9 @@ onRowContextMenu : onRowContextMenu ...@@ -66,7 +66,9 @@ onRowContextMenu : onRowContextMenu
<th data-options="field:'remark',width:40">备注</th> <th data-options="field:'remark',width:40">备注</th>
<th data-options="field:'addtime',width:30" sortable="true">创建时间</th> <th data-options="field:'addtime',width:30" sortable="true">创建时间</th>
<th data-options="field:'updatetime',width:30" sortable="true">更新时间</th> <th data-options="field:'updatetime',width:30" sortable="true">更新时间</th>
<th data-options="field:'status'" sortable="true" align="center">状态</th> <th data-options="field:'status'" sortable="true" align="center">状态</th>
<th data-options="field:'push_type'" sortable="true" align="center" formatter="PushTypeAction">是否推送</th>
<th data-options="field:'push_offset'" sortable="true" align="center">推送时间</th>
<th field="action" align="center" formatter="InputAction">操作</th> <th field="action" align="center" formatter="InputAction">操作</th>
</tr> </tr>
</thead> </thead>
...@@ -100,7 +102,13 @@ function onRowContextMenu(e, rowIndex, rowData){ ...@@ -100,7 +102,13 @@ function onRowContextMenu(e, rowIndex, rowData){
function InputAction(value, row, index) { function InputAction(value, row, index) {
return'<a href="javascript:void(0)" id="mb' + index + '" class="easyui-menubutton" menu="#mm1" iconCls="icon-list" onmouseover="setSelectRow(' + index + ')">'+this.title+'</a>'; return'<a href="javascript:void(0)" id="mb' + index + '" class="easyui-menubutton" menu="#mm1" iconCls="icon-list" onmouseover="setSelectRow(' + index + ')">'+this.title+'</a>';
} }
function PushTypeAction(value, row, index) {
if(value==1){
return "推送";
}else{
return "不推送";
}
}
function setSelectRow(index) { function setSelectRow(index) {
$('#dg').datagrid('unselectAll'); $('#dg').datagrid('unselectAll');
$('#dg').datagrid('selectRow', index); $('#dg').datagrid('selectRow', index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment