Commit 157a8fe9 by guanzhenshan

解决没有显示站点的问题

parent 286bd404
......@@ -411,27 +411,27 @@
function listwebsite()
{
if ('@(ViewBag.statistictype)'== 0) {
var p = $('#platform').val();
if (p == '') {
$('#website').html('<option value="">选择站点</option>');
return false;
}
$.submit({
url: '@Url.Content("~/Reports/Orders/ListWebSite")',
type:'POST',
paramData: 'platform=' + p,
func: function (result) {
if (result != null && result != undefined) {
$('#website').html('<option value="">选择站点</option>');
for (var i = 0; i < result.length; i++) {
$('#website').append('<option value="' + result[i] + '">' + result[i]+'</option>');
}
var p = $('#platform').val();
if (p == '') {
$('#website').html('<option value="">选择站点</option>');
return false;
}
$.submit({
url: '@Url.Content("~/Reports/Orders/ListWebSite")',
type:'POST',
paramData: 'platform=' + p,
func: function (result) {
if (result != null && result != undefined) {
$('#website').html('<option value="">选择站点</option>');
for (var i = 0; i < result.length; i++) {
$('#website').append('<option value="' + result[i] + '">' + result[i]+'</option>');
}
}
})
}
}
})
}
function ShowWebsite(platform) {
......
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