From 1cc361ec5fca7550ba01f0a6ecf058e84a5a20ad Mon Sep 17 00:00:00 2001 From: dubin <bindu_bean@163.com> Date: 星期六, 18 十月 2025 16:25:18 +0800 Subject: [PATCH] 联调 --- src/main/webapp/static/js/mat/mat.js | 69 ++++++++++++++++++++++++++++++++++ 1 files changed, 69 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/mat/mat.js b/src/main/webapp/static/js/mat/mat.js index 6fa9556..a7c3636 100644 --- a/src/main/webapp/static/js/mat/mat.js +++ b/src/main/webapp/static/js/mat/mat.js @@ -237,6 +237,9 @@ case 'edit': showEditModel(data) break; + case 'editBarcode': + showEditModelBarcode(data) + break; } }); @@ -312,6 +315,72 @@ }); } + // /* 鏄剧ず琛ㄥ崟寮圭獥 */ + // function showEditModelBarcode(mData) { + // admin.open({ + // type: 1, + // area: '600px', + // title: '缁戝畾鍟嗗搧', + // content: $('#editDialogBarcode').html(), + // success: function (layero, dIndex) { + // // 鍥炴樉琛ㄥ崟鏁版嵁 + // form.val('detail', mData); + // // 琛ㄥ崟鎻愪氦浜嬩欢 + // form.on('submit(editSubmit)', function (data) { + // console.log(data) + // data.field.tagId = insXmSel.getValue('valueStr'); + // if (isEmpty(data.field.tagId)) { + // layer.msg('鍒嗙被涓嶈兘涓虹┖', {icon: 2}); + // return false; + // } + // var loadIndex = layer.load(2); + // $.ajax({ + // url: baseUrl+"/mat/barcode/auth", + // headers: {'token': localStorage.getItem('token')}, + // data: data.field, + // method: 'POST', + // success: function (res) { + // layer.close(loadIndex); + // if (res.code === 200){ + // layer.close(dIndex); + // layer.msg(res.msg, {icon: 1}); + // $(".layui-laypage-btn")[0].click(); + // } else if (res.code === 403){ + // top.location.href = baseUrl+"/"; + // }else { + // layer.msg(res.msg, {icon: 2}); + // } + // } + // }) + // return false; + // }); + // // 娓叉煋涓嬫媺鏍� + // var insXmSel = xmSelect.render({ + // el: '#tagSelBarcode', + // height: '250px', + // data: insTb.options.data, + // initValue: mData ? [mData.tagId] : [], + // 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'); + // } + // }); + // } + // 妯℃澘閫夋嫨 form.on('radio(selectTemplateRadio)', function (data) { $('.template-preview').hide(); -- Gitblit v1.9.1