update
This commit is contained in:
@@ -342,12 +342,16 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 复用同一个aa,确保selectPosition与getPositionTree的Referer一致
|
||||
let lastAa = '';
|
||||
|
||||
// 获取地区选项
|
||||
function getDsdmOptions() {
|
||||
const examid = document.getElementById('examid').value.trim();
|
||||
const bmid = document.getElementById('bmid').value.trim();
|
||||
const userid = document.getElementById('userid').value.trim();
|
||||
const aa = Date.now().toString();
|
||||
lastAa = aa;
|
||||
const cookieData = buildCookiesPayload('dsdm-message');
|
||||
|
||||
if (!examid || !bmid || !userid) {
|
||||
@@ -394,13 +398,22 @@
|
||||
// 获取职位代码列表
|
||||
function getZwdmList() {
|
||||
const dsdm = document.getElementById('dsdm').value;
|
||||
const examid = document.getElementById('examid').value.trim();
|
||||
const bmid = document.getElementById('bmid').value.trim();
|
||||
const userid = document.getElementById('userid').value.trim();
|
||||
const cookieData = buildCookiesPayload('zwdm-message');
|
||||
const aa = lastAa || Date.now().toString();
|
||||
|
||||
if (!dsdm) {
|
||||
showMessage('zwdm-message', '请先选择地区', 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!examid || !bmid || !userid) {
|
||||
showMessage('zwdm-message', '请先填写examid、bmid和userid', 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!cookieData) {
|
||||
return;
|
||||
}
|
||||
@@ -412,7 +425,7 @@
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
},
|
||||
body: `dsdm=${encodeURIComponent(dsdm)}&cookies=${encodeURIComponent(JSON.stringify(cookieData))}`
|
||||
body: `dsdm=${encodeURIComponent(dsdm)}&examid=${encodeURIComponent(examid)}&bmid=${encodeURIComponent(bmid)}&userid=${encodeURIComponent(userid)}&aa=${encodeURIComponent(aa)}&cookies=${encodeURIComponent(JSON.stringify(cookieData))}`
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
|
||||
Reference in New Issue
Block a user