初始化项目
This commit is contained in:
62
AUTS.Web/Plugin/MaintainLog.js
Normal file
62
AUTS.Web/Plugin/MaintainLog.js
Normal file
@@ -0,0 +1,62 @@
|
||||
//function datewhere(price) {
|
||||
// let elect = 0;
|
||||
// switch (price) {
|
||||
// case 1:
|
||||
// elect = 1;
|
||||
// break;
|
||||
// case 2:
|
||||
// elect = 3;
|
||||
// break;
|
||||
// case 3:
|
||||
// elect = 7;
|
||||
// break;
|
||||
// case 4:
|
||||
// elect = 30;
|
||||
// break;
|
||||
// case 5:
|
||||
// elect = -1;
|
||||
// break;
|
||||
// }
|
||||
// $('#verdict').val(elect);
|
||||
// console.log($('#verdict').val());
|
||||
// qureyData('/App/BasicFunc/MaintainLogSelect');
|
||||
//}
|
||||
function actionProductShow() {
|
||||
try {
|
||||
var typeid = $('#projectList').val();
|
||||
$("select[name='StationID']").empty();
|
||||
$("select[name='StationID']").append(` <option value="0">全部</option>`);
|
||||
$.ajax({
|
||||
url: "/App/ProductMaintain/tanceSelect",
|
||||
data: { id: typeid },
|
||||
type: "post",// 提交方式
|
||||
success: function (res) {
|
||||
res = JSON.parse(res)
|
||||
for (var i = 0; i < res.length; i++) {
|
||||
$("select[name='StationID']").append(` <option value="` + res[i].ID + `">` + res[i].StationName + `</option>`);
|
||||
}
|
||||
}
|
||||
});
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
actionProductShow();
|
||||
function Tiemwhere(url)
|
||||
{
|
||||
if ($('#start').bind().val() != "") {
|
||||
if ($('#end').bind().val() == "") {
|
||||
$.toastr.error('结束时间不可为空',
|
||||
{
|
||||
position: 'top-center',
|
||||
time: 1000,
|
||||
});
|
||||
}
|
||||
else {
|
||||
qureyData(url)
|
||||
}
|
||||
|
||||
} else {
|
||||
qureyData(url)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user