Commit 9273ef81 by guanzhenshan

任务下载列表增加数据类型列表

parent b2a5a33f
......@@ -105,6 +105,10 @@ namespace Bailun.DC.Web.Areas.TaskCenter.Controllers
public IActionResult ListTask()
{
var datatypes = new Services.TaskCenterServices().ListDataType();
ViewBag.datatypes = datatypes;
return View();
}
......
......@@ -13,7 +13,13 @@
<label>下载类型</label>
<select id="datatype" name="datatype" class="form-control" style="width:150px">
<option value="">请选择下载类型</option>
<option value="1">物流账单</option>
@if (ViewBag.datatypes.Count > 0)
{
foreach (var item in ViewBag.datatypes)
{
<option value="@(item.data_type)">@(item.data_type_name)</option>
}
}
</select>
</div>
<div class="form-group">
......
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