From 3528bc13c81aa4a37e6fc411bcd0800a1871acff Mon Sep 17 00:00:00 2001
From: mrzhssss <pro6@qq.com>
Date: 星期五, 14 一月 2022 08:10:21 +0800
Subject: [PATCH] 更新提交

---
 src/main/webapp/static/js/item/item.js |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/static/js/item/item.js b/src/main/webapp/static/js/item/item.js
index b995313..8ca9f62 100644
--- a/src/main/webapp/static/js/item/item.js
+++ b/src/main/webapp/static/js/item/item.js
@@ -11,6 +11,7 @@
 
     // 鏁版嵁娓叉煋
     tableIns = table.render({
+
         elem: '#item',
         headers: {token: localStorage.getItem('token')},
         url: baseUrl+'/item/list/auth',
@@ -28,12 +29,19 @@
             ,{field: 'inUuid', align: 'center',title: '鍐呴儴缂栧彿', hide: true}
             // ,{field: 'cstmrUuid', align: 'center',title: '瀹㈡埛缂栧彿'}
             ,{field: 'cstmrUuid$', align: 'center',title: '瀹㈡埛鍚嶇О'}
+            ,{field: 'projectStatus$', align: 'center', title: '椤圭洰杩涘害'}
+
             // ,{field: 'member', align: 'center',title: '椤圭洰鎴愬憳'}
             // ,{field: 'leader', align: 'center',title: '椤圭洰缁忕悊'}
-            ,{field: 'startTime$', align: 'center',title: '璁″垝寮�濮嬫椂闂�'}
-            ,{field: 'endTime$', align: 'center',title: '璁″垝缁撴潫鏃堕棿'}
-            ,{field: 'realStartTime', align: 'center', title: '瀹為檯寮�濮嬫椂闂�'}
-            ,{field: 'realEndTime', align: 'center', title: '瀹為檯缁撴潫鏃堕棿'}
+            ,{field: 'startTime$', align: 'center',title: '璁″垝寮�濮嬫椂闂�',
+                templet : "<div>{{layui.util.toDateString(d.startTime$, 'yyyy-MM-dd')}}</div>"
+            }
+            ,{field: 'endTime$', align: 'center',title: '璁″垝缁撴潫鏃堕棿',
+                templet : "<div>{{layui.util.toDateString(d.endTime$, 'yyyy-MM-dd')}}</div>"}
+            ,{field: 'realStartTime$', align: 'center', title: '瀹為檯寮�濮嬫椂闂�',
+                templet : "<div>{{layui.util.toDateString(d.realStartTime$, 'yyyy-MM-dd')}}</div>"}
+            ,{field: 'realEndTime$', align: 'center', title: '瀹為檯缁撴潫鏃堕棿',
+                templet : "<div>{{layui.util.toDateString(d.realEndTime$, 'yyyy-MM-dd')}}</div>"}
             ,{field: 'type$', align: 'center', title: '椤圭洰绫诲瀷'}
             ,{field: 'originArea', align: 'center', title: '鐢熶骇鍦�'}
             ,{field: 'realMonth', align: 'center', title: '鏃堕棿璺ㄥ害(鏈�)'}
@@ -64,6 +72,7 @@
             statusCode: 200
         },
         done: function(res, curr, count) {
+            console.log(res.data)
             if (res.code === 403) {
                 top.location.href = baseUrl+"/";
             }
@@ -163,11 +172,12 @@
         admin.open({
             type: 1,
             area: '600px',
-            title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵��',
+            title: (mData ? '淇敼' : '娣诲姞') + '椤圭洰淇℃伅',
             content: $('#editDialog').html(),
             success: function (layero, dIndex) {
                 layDateRender();
                 form.val('detail', mData);
+                console.log(mData)
                 form.on('submit(editSubmit)', function (data) {
 
                     var loadIndex = layer.load(2);
@@ -199,7 +209,7 @@
 
     /* 鍒犻櫎 */
     function del(ids) {
-        layer.confirm('纭畾瑕佸垹闄ら�変腑鏁版嵁鍚楋紵', {
+        layer.confirm('纭畾瑕佺鐢ㄩ�変腑鏁版嵁鍚楋紵', {
             skin: 'layui-layer-admin',
             shade: .1
         }, function (i) {
@@ -227,6 +237,7 @@
 
     // 鎼滅储
     form.on('submit(search)', function (data) {
+
         pageCurr = 1;
         tableReload(false);
     });

--
Gitblit v1.9.1