add user acc

This commit is contained in:
dev02 2022-12-19 11:13:56 +08:00
parent b94e765770
commit 5b80602903

View File

@ -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();
}
</script>