Commit 0cd2ef25 by guanzhenshan

调整页面样式,增加查看模版详情页面功能

parent 18866b11
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<label style="width:110px">下载类型:</label> <label style="width:110px">下载类型:</label>
<select id="download_type" name="download_type" class="form-control" style="width:130px;display:inline"> <select id="download_type" name="download_type" class="form-control" style="width:110px;display:inline">
<option value="">请选择下载类型</option> <option value="">请选择下载类型</option>
<option value="1">物流账单</option> <option value="1">物流账单</option>
</select> </select>
...@@ -24,27 +24,27 @@ ...@@ -24,27 +24,27 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<label style="width:110px">启动频率-月:</label> <label style="width:110px">启动频率-月:</label>
<input id="start_frequency_month" name="start_frequency_month" type="number" class="form-control" placeholder="" value="@ViewBag.m.start_frequency_month" style="width:80px;display:inline;" /> <input id="start_frequency_month" name="start_frequency_month" type="number" class="form-control" placeholder="" value="@ViewBag.m.start_frequency_month" style="width:110px;display:inline;" />
<span style="color:#ccc;font-size:13px;">说明:月,如果指定月份启动,则填写对应的月份,0则不指定</span> <span style="color:#ccc;font-size:13px;margin-left:10px;">说明:月,如果指定月份启动,则填写对应的月份,0则不指定</span>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<label style="width:110px">启动频率-日:</label> <label style="width:110px">启动频率-日:</label>
<input id="start_frequency_day" name="start_frequency_day" type="number" class="form-control" placeholder="" value="@ViewBag.m.start_frequency_day" style="width:80px;display:inline;" /> <input id="start_frequency_day" name="start_frequency_day" type="number" class="form-control" placeholder="" value="@ViewBag.m.start_frequency_day" style="width:110px;display:inline;" />
<span style="color:#ccc;font-size:13px;">说明:日,如果指定每个月的哪天启动,则填写对应的每月的几号,0则不指定</span> <span style="color:#ccc;font-size:13px;margin-left:10px;">说明:日,如果指定每个月的哪天启动,则填写对应的每月的几号,0则不指定</span>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<label style="width:110px">启动频率-小时:</label> <label style="width:110px">启动频率-小时:</label>
<input id="start_frequency_hour" name="start_frequency_hour" type="number" class="form-control" placeholder="" value="@ViewBag.m.start_frequency_hour" style="width:80px;display:inline;" /> <input id="start_frequency_hour" name="start_frequency_hour" type="number" class="form-control" placeholder="" value="@ViewBag.m.start_frequency_hour" style="width:110px;display:inline;" />
<span style="color:#ccc;font-size:13px;">说明:时,如果指定每个天的某个小时启动,则填写对应的每天的几点,0则不指定</span> <span style="color:#ccc;font-size:13px;margin-left:10px;">说明:时,如果指定每个天的某个小时启动,则填写对应的每天的几点,0则不指定</span>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<label style="width:130px">状态:</label> <label style="width:110px">状态:</label>
<select id="status" name="status" class="form-control" style="width:130px;display:inline"> <select id="status" name="status" class="form-control" style="width:110px;display:inline">
<option value="1">启用</option> <option value="1">启用</option>
<option value="0">禁用</option> <option value="0">禁用</option>
</select> </select>
......
...@@ -13,16 +13,16 @@ ...@@ -13,16 +13,16 @@
<label>&nbsp;</label> <label>&nbsp;</label>
<button type="button" class="btn btn-warning" onclick="Add();">新增模版</button> <button type="button" class="btn btn-warning" onclick="Add();">新增模版</button>
</div> </div>
<div class="form-group"> <div class="form-group" style="margin-left:5px;">
<label>下载类型</label> <label>下载类型</label>
<select id="datatype" name="datatype" class="form-control" style="width:120px"> <select id="datatype" name="datatype" class="form-control" style="width:150px">
<option value="">请选择下载类型</option> <option value="">请选择下载类型</option>
<option value="1">物流账单</option> <option value="1">物流账单</option>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label></label> <label></label>
<select id="status" name="status" class="form-control" style="width:130px"> <select id="status" name="status" class="form-control" style="width:150px">
<option value="">请选择模版状态</option> <option value="">请选择模版状态</option>
<option value="1">启用</option> <option value="1">启用</option>
<option value="0">停用</option> <option value="0">停用</option>
...@@ -58,8 +58,12 @@ ...@@ -58,8 +58,12 @@
{ field: 'start_frequency_hour', title: '启动频率-小时', width: '130' }, { field: 'start_frequency_hour', title: '启动频率-小时', width: '130' },
{ field: 'status', title: '状态', width: '80' }, { field: 'status', title: '状态', width: '80' },
{ field: 'lastupdatetime', title: '最后更新时间', width: '130' }, { field: 'lastupdatetime', title: '最后更新时间', width: '130' },
{ field: 'note', title: '备注', width: '200' } { field: 'note', title: '备注', width: '200' },
{
field: '', title: '操作', width: '100', formatter: function (idx, data) {
return '<a href="javascript:;" onclick="Detail('+data.id+')" class="btn btn-success btn-xs">查看详情</a>';
}
}
]; ];
var url = '@Url.Content("~/TaskCenter/Home/TemplatesJson")' + '?' + $('#toolbar').serialize(); var url = '@Url.Content("~/TaskCenter/Home/TemplatesJson")' + '?' + $('#toolbar').serialize();
...@@ -76,6 +80,10 @@ ...@@ -76,6 +80,10 @@
layer_show('新增模版', '@Url.Content("~/TaskCenter/Home/AddTaskTemplate?id=0")', '90%', '90%'); layer_show('新增模版', '@Url.Content("~/TaskCenter/Home/AddTaskTemplate?id=0")', '90%', '90%');
} }
function Detail(id) {
layer_show('模板详情', '@Url.Content("~/TaskCenter/Home/AddTaskTemplate?id=")'+id, '90%', '90%');
}
</script> </script>
} }
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