From 86d5b3bb16490028b3f6617e05eec35f5eb473a1 Mon Sep 17 00:00:00 2001 From: mrzhssss <pro6@qq.com> Date: 星期二, 13 九月 2022 14:51:03 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/locCheck/locCheck.js | 56 ++------------------------------------------------------ 1 files changed, 2 insertions(+), 54 deletions(-) diff --git a/src/main/webapp/static/js/locCheck/locCheck.js b/src/main/webapp/static/js/locCheck/locCheck.js index 26c066f..849e6d0 100644 --- a/src/main/webapp/static/js/locCheck/locCheck.js +++ b/src/main/webapp/static/js/locCheck/locCheck.js @@ -214,63 +214,11 @@ form.on('submit(search)', function (data) { admin.open({ type: 1, - area: '400px', + area: '500px', title: '閫夋嫨鐩樼偣鏁伴噺', content: $('#nodeSelect').html(), success: function (layero, dIndex) { - // 琛ㄥ崟鎻愪氦浜嬩欢 - form.on('submit(pakin)', function (data) { - data.field.nodeSel = insXmSel.getValue('valueStr'); - var loadIndex = layer.load(2); - $.ajax({ - url: baseUrl+"/work/stock/pakin", - headers: {'token': localStorage.getItem('token')}, - data: JSON.stringify({ - nodeId: data.field.nodeSel, - mats: matCodeData - }), - contentType:'application/json;charset=UTF-8', - method: 'POST', - success: function (res) { - layer.close(loadIndex); - if (res.code === 200){ - layer.close(dIndex); - matCodeData = []; - tableIns.reload({data: matCodeData}); - limit(); - layer.msg(res.msg, {icon: 1}); - } else if (res.code === 403){ - top.location.href = baseUrl+"/"; - } else { - layer.msg(res.msg, {icon: 2}); - } - } - }) - return false; - }); - // 娓叉煋涓嬫媺鏍� - var insXmSel = xmSelect.render({ - el: '#nodeSel', - height: '250px', - data: insTb.options.data, - initValue: [], - model: {label: {type: 'text'}}, - prop: { - name: 'name', - value: 'id' - }, - radio: true, - clickClose: true, - tree: { - show: true, - indent: 15, - strict: false, - expandedKeys: true - } - }); - // 寮圭獥涓嶅嚭鐜版粴鍔ㄦ潯 - $(layero).children('.layui-layer-content').css('overflow', 'visible'); - layui.form.render('select'); + } }); }); -- Gitblit v1.9.1