diff --git a/Frontend/_alert.html b/Frontend/_alert.html index f4ef502..1da494d 100644 --- a/Frontend/_alert.html +++ b/Frontend/_alert.html @@ -295,6 +295,7 @@ selUser(); selDevice(); selOpeFir(); + getUser(); $('#inpFixDoCode option[data-sub=' + alr_tableData.alarmClass.toString().split('_')[1] + '][data-main=' + alr_tableData.alarmClass.toString().split('_')[0] + ']').attr('hidden', false); $('#inpFixDoCode option[data-sub!=' + alr_tableData.alarmClass.toString().split('_')[1] + '][data-main!=' + alr_tableData.alarmClass.toString().split('_')[0] + ']').attr('hidden', true); @@ -727,4 +728,14 @@ } }); } + + function getUser() { + ytAjax = new YourTeam.Ajax(baseApiUrl + "/api/getUser", null, function (res) { + if (!res || res.code != "0000" || !res.data) { + + } else { + $(pageAct.work_type == '1' ? '#inpWorPerId' : '#inpWorPerId_2').val(res.data); + } + }, null, "POST").send(); + } \ No newline at end of file