Files
qctool/views/sop.html
hbk01 114ef4c3a0 + 更新操作规程 L414-5KR
+ 移除变更为无须检测液相色谱的操规
2025-04-11 20:44:56 +08:00

84 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>操作规程</title>
<link rel="stylesheet" href="../statics/github.css">
<link rel="stylesheet" href="../statics/theme.css">
<style>
select {
width: 100%;
height: 32px;
padding-left: 10px;
border: 1px solid;
border-radius: 6px;
border-color: rgba(27, 31, 36, 0.15);
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
}
option {
height: 32px;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/13.0.1/markdown-it.min.js"></script>
<script src="../statics/modules/jquery.min.js"></script>
<script>
const md = window.markdownit({
breaks: true
})
const tips = `<br>整理了常用的操作规程中的关键内容以供查询,请以纸质操作规程为准!`
const sop = [
"L014-1",
"L018-1",
"L018-4W",
"L389-101",
"L414-5KR",
"L414-7",
"L414-801KR",
]
$(() => {
$("#content").html(tips)
sop.forEach(value => $("#selector").append(`<option value='${value}.md'>${value}</option>`))
$("#selector").on("change", () => {
let name = $("#selector").val()
if (name == "null") {
$("#content").empty()
$("#content").html(tips)
return
}
$("#content").empty()
$("#content").html("<br>加载中...")
$.ajax({
url: `../statics/sop/${name}`,
success: (data) => {
$("#content").empty()
$("#content").html(md.render(data))
}
})
})
})
</script>
</head>
<body>
<div>
<select name="selector" id="selector">
<option value='null' selected>选择要查看的操作规程</option>
</select>
</div>
<div id="content"></div>
</body>
</html>