From 320ed3f4782f9662f79ecfe14d2cf3f34dd288c5 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期二, 01 八月 2023 19:52:36 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/changetime.js | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 54 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/changetime.js b/src/main/webapp/static/js/changetime.js index 0d7d00e..674608b 100644 --- a/src/main/webapp/static/js/changetime.js +++ b/src/main/webapp/static/js/changetime.js @@ -1 +1,54 @@ -$(document).onclick \ No newline at end of file +let param +let str = [] +var realEndTime + +layui.config({ + base: baseUrl + "/static/layui/lay/modules/" +}).use(['laydate', 'form', 'admin'], function(){ + $(document).on("click",".normal",function () { + param = '' + let p = $(this).children("p").html() + if (!p) { + layer.open({ + title: '鎻愮ず' + ,content: '璇峰厛濉啓璁″垝鏃堕棿' + }) + return + } + str = this.id.split('-') + layer.open({ + type: 1, + area: '400px', + title: '娣诲姞缁撴潫鏃堕棿', + content: $('#realTimes').html(), + success: function (layero, index) { + console.log(str) + layui.form.on('submit(editSubmit)', function (data) { + realEndTime = $("#realEndTime").val(); + param = { + itemId:str[1],weightNum:str[2],realEndTime:realEndTime + } + $.ajax({ + url: baseUrl + '/pms/projectPlan/update/homepage', + type: 'GET', + dataType: 'JSON', + data: param, + success: function (res) { + console.log(res) + } + }) + //$("#realTime").attr("style","display:none") + location.reload() + }) + } + }); + //$("#realTime").attr("style","display:block") + layui.laydate.render({ + elem: '#realEndTime' + ,type: 'datetime' + }) + + }) +}) + + -- Gitblit v1.9.1