$.ajax({
url: "/EnvironmentMonitor/GetAnalogSensor",
type: "GET",
dataType: "json",
data: {
mineCode: data.value,
},
success: function (data) {
if (data.code == 0) {
if (data.count == 0) {
layer.msg("当前煤矿没有传感器类型!")
} else {
for (var i = 0; i < data.data.length; i++) {
$("#equcode").append("<option value=" + data.data[i].Value + ">" + data.data[i].Text + "</option>")
}
//需要渲染一下
form.render();
}
}
},
error: function () {
console.log("error")
}
});