var prod_id = '';
var listHTML = '';
var stopListHTML = '';
//停用启用的html
var html_stop = '';
var html_start = '';
var urlstr = base_api + 'index.php'
window.onload = function(){
prod_id = getPar('prod_id');
listHTML = $('#list_info').html();
stopListHTML = $('#list_info_no').html();
html_stop = $('#html_stop').html();
html_start = $('#html_start').html();
var data = {
tp:'supply_dataInfo_execUser',
supplier_id:prod_id,
operate:'list'
}
console.log(data);
$.ajax({
url: urlstr, //请求地址
type: "post", //请求方式
data: data,
async: false,
dataType: "json",
success: function(data) {
if(data.code == 0) {
console.log(data);
reloadData(data);
}else{
console.log(data.info);
}
}
});
}
//填充数据
function reloadData(data){
var list = data.list;
var newHTML='';
for(var i=0;i