From 397dbf892f842c834af17a91c788c94fd96003f8 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期一, 29 五月 2023 19:13:31 +0800 Subject: [PATCH] 问题修改 --- igds-app/js/admin/work-apply.js | 53 +++++++++++++++++++++++++++++++---------------------- 1 files changed, 31 insertions(+), 22 deletions(-) diff --git a/igds-app/js/admin/work-apply.js b/igds-app/js/admin/work-apply.js index 7f57f76..bf9b1a8 100644 --- a/igds-app/js/admin/work-apply.js +++ b/igds-app/js/admin/work-apply.js @@ -101,7 +101,7 @@ type: "datetime", // beginDate: new Date(2015, 04, 25), //璁剧疆寮�濮嬫棩鏈� // endDate: new Date(2016, 04, 25), //璁剧疆缁撴潫鏃ユ湡 - + value: dateTime }) dtpicker.show(function(e) { var date_el = document.getElementById("date2-val") @@ -124,8 +124,10 @@ success: function(result) { if (result.code == "0000") { console.log(JSON.stringify(result)) + mui.toast(result.msg); } else { // console.log(JSON.stringify(result)) + // mui.toast(result.msg); mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div"); } }, @@ -169,13 +171,36 @@ }) } +function refresh(){ + var html = ''; + html += '<div class="m-gd"><div class="group"><div class="l">涓氬姟绫诲瀷:</div><div class="r">' + html += '<div class="val" id="ywlx"><div class="placeholder">璇烽�夋嫨</div>' + html += '<div class="real-val" id="ywlx-val" ></div></div></div></div>' + html += '<div class="group"><div class="l">鍏宠仈浠撳簱:</div><div class="r">'; + html += '<div class="val" id="glck"><div class="placeholder">璇烽�夋嫨</div>'; + html += '<div class="real-val" id="glck-val" ></div></div></div></div>'; + html += '<div class="group"><div class="l">鏈夋晥寮�濮嬫椂闂�:</div><div class="r">'; + html += '<div class="val" id="date1" onclick="chooseDate();"><div class="placeholder">璇烽�夋嫨</div>'; + html += '<div class="real-val" id="date1-val"></div></div></div></div>'; + html += '<div class="group"><div class="l">鏈夋晥缁撴潫鏃堕棿:</div><div class="r">'; + html += '<div class="val" id="date2" onclick="chooseDate1();"><div class="placeholder">璇烽�夋嫨</div>'; + html += '<div class="real-val" id="date2-val"></div></div></div></div>'; + html += '<div type="submit" class="submit">鎻愪氦</div></div>'; + $("#refresh").html(html); + data.data.depotId = ''; + data.data.type = '' + data.data.startTime = '' + data.data.endTime = '' + +} + //鎻愪氦 mui(".mui-scroll").on("tap", ".wp form .submit", function() { workApply(); - window.location.reload(); - // window.setTimeout(function() { - // window.location.reload(); - // }, 200) + // window.location.reload(); + window.setTimeout(function() { + refresh(); + }, 200) }) mui('.mui-scroll-wrapper').scroll({ @@ -214,23 +239,7 @@ //return false; }); }, false); - //----------------------------------------- - //鎵�灞炲垎搴�: - var showPicker1Button = doc.getElementById('ssfk'); - showPicker1Button.addEventListener('tap', function(event) { - var picker1Result = doc.getElementById('ssfk-val'); - var picker1 = new $.PopPicker(); - picker1.setData(list); - picker1.show(function(items) { - // userResult.innerText = JSON.stringify(items[0]); - picker1Result.innerText = items[0].text; - // userResult.previousSibling.style.display="none" - jQuery(picker1Result).prev().hide() - //杩斿洖 false 鍙互闃绘閫夋嫨妗嗙殑鍏抽棴 - //return false; - }); - }, false); - //----------------------------------------- + //---------------------------------------- //鍏宠仈浠撳簱: var showPicker2Button = doc.getElementById('glck'); showPicker2Button.addEventListener('tap', function(event) { -- Gitblit v1.9.3