From 51b59b6534012af93c35bcb9c95086b64f5dfe7e Mon Sep 17 00:00:00 2001
From: mrzhssss <pro6@qq.com>
Date: 星期一, 12 九月 2022 13:53:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/zypms' into zypms

---
 src/main/webapp/static/js/changetime.js |   67 ++++++++++++++++++++++++---------
 1 files changed, 48 insertions(+), 19 deletions(-)

diff --git a/src/main/webapp/static/js/changetime.js b/src/main/webapp/static/js/changetime.js
index be3c52e..a46b69a 100644
--- a/src/main/webapp/static/js/changetime.js
+++ b/src/main/webapp/static/js/changetime.js
@@ -1,23 +1,52 @@
 let param
-$(document).on("click",".normal",function () {
-    let p = $(this).children("p").html()
-    if (!p) {
-        console.log(1)
-    }
-    let str = this.id.split('-')
-    param = {
-        itemId:str[1],weightNum:str[2]
-    }
-    console.log(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
+        }
+        layer.open({
+            type: 1,
+            area: '400px',
+            title: '娣诲姞缁撴潫鏃堕棿',
+            content: $('#realTimes').html(),
+            success: function (layero, index) {
+                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'
+        })
+        str = this.id.split('-')
+    })
 })
 
-//$.ajax({
-//    url: baseurl + '/pms/projectPlan/update/homepage',
-//    type: 'GET',
-//    dataType: 'JSON',
-//    data: param,
-//    success: function (res) {
-//        console.log(res)
-//    }
-//})
\ No newline at end of file
+

--
Gitblit v1.9.1