From 55d606e3bb6bc35c0e77891c1d2b3c126df84d3f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期六, 19 十一月 2022 09:01:20 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/plan/plan.js |  145 +++++------------------------------------------
 1 files changed, 17 insertions(+), 128 deletions(-)

diff --git a/src/main/webapp/static/js/plan/plan.js b/src/main/webapp/static/js/plan/plan.js
index 12a46b3..d0b73ea 100644
--- a/src/main/webapp/static/js/plan/plan.js
+++ b/src/main/webapp/static/js/plan/plan.js
@@ -2,7 +2,9 @@
 var pageCount = 0;
 layui.config({
     base: baseUrl + "/static/layui/lay/modules/"
-}).use(['table','laydate', 'form', 'admin', 'xmSelect'], function(){
+}).extend({
+    steps: 'steps/steps',
+}).use(['table','laydate', 'form', 'admin', 'xmSelect', 'steps'], function(){
     var table = layui.table;
     var $ = layui.jquery;
     var layer = layui.layer;
@@ -10,12 +12,13 @@
     var form = layui.form;
     var admin = layui.admin;
     var xmSelect = layui.xmSelect;
+    var steps = layui.steps;
 
     // 鏁版嵁娓叉煋
     tableIns = table.render({
         elem: '#plan',
         headers: {token: localStorage.getItem('token')},
-        url: baseUrl+'/plan/list/auth',
+        url: baseUrl+'/plan/page/auth',
         page: true,
         limit: 15,
         limits: [15, 30, 50, 100, 200, 500],
@@ -24,17 +27,18 @@
         height: 'full-120',
         cols: [[
             {type: 'checkbox'}
-            ,{field: 'id', align: 'center',title: 'ID'}
-            ,{field: 'hostId$', align: 'center',title: '鎵�灞炲晢鎴�'}
-            ,{field: 'deptId$', align: 'center',title: '鎵�灞為儴闂�'}
-            ,{field: 'planType$', align: 'center',title: '涓氬姟绫诲瀷'}
+            // ,{field: 'id', align: 'center',title: 'ID'}
+            // ,{field: 'hostId$', align: 'center',title: '鎵�灞炲晢鎴�'}
             ,{field: 'userId$', align: 'center',title: '涓氬姟鍛�'}
+            ,{field: 'planType$', align: 'center',title: '涓氬姟绫诲瀷'}
+            ,{field: 'name', align: 'center',title: '鍞墠瑙勫垝鐢宠鍗曞悕绉�'}
+            ,{field: 'planNeed$', align: 'center',title: '鎵�闇�'}
+            ,{field: 'deptId$', align: 'center',title: '鎵�灞為儴闂�'}
             ,{field: 'orderId$', align: 'center',title: '璺熻釜椤圭洰'}
             ,{field: 'cstmrId$', align: 'center',title: '鐢叉柟鍗曚綅'}
             ,{field: 'uuid', align: 'center',title: '瑙勫垝鍗曚唬鍙�'}
-            ,{field: 'name', align: 'center',title: '瑙勫垝鍗曞悕绉�'}
             ,{field: 'appleTime$', align: 'center',title: '鐢宠鏃ユ湡'}
-            ,{field: 'planNeed$', align: 'center',title: '鏂规鎵�闇�'}
+
             ,{field: 'beItem$', align: 'center',title: '绔嬮」'}
             ,{field: 'planner', align: 'center',title: '瑙勫垝鍛�'}
             ,{field: 'finishTime$', align: 'center',title: '瀹屾垚鏃堕棿'}
@@ -44,13 +48,11 @@
             ,{field: 'changeReason', align: 'center',title: '鏇存敼鏂规鍘熷洜'}
             ,{field: 'planBonus', align: 'center',title: '瑙勬牸濂栭噾'}
             ,{field: 'planLeaderBonus', align: 'center',title: '瑙勬牸缁勯暱濂栭噾'}
-            ,{field: 'files', align: 'center',title: '闄勪欢'}
-            ,{field: 'settle$', align: 'center',title: '杩涘害'}
-            ,{field: 'settleMsg', align: 'center',title: '瀹℃牳杩涘害'}
-            ,{field: 'comment', align: 'center',title: '璇勮'}
-            ,{field: 'status$', align: 'center',title: '鐘舵��'}
-            ,{field: 'createBy$', align: 'center',title: '娣诲姞浜哄憳'}
-            ,{field: 'createTime$', align: 'center',title: '娣诲姞鏃堕棿'}
+            // ,{field: 'files', align: 'center',title: '闄勪欢'}
+            // ,{field: 'settle$', align: 'center',title: '杩涘害'}
+            // ,{field: 'settleMsg', align: 'center',title: '瀹℃牳杩涘害'}
+            // ,{field: 'comment', align: 'center',title: '璇勮'}
+            // ,{field: 'status$', align: 'center',title: '鐘舵��'}
             ,{field: 'updateBy$', align: 'center',title: '淇敼浜哄憳'}
             ,{field: 'updateTime$', align: 'center',title: '淇敼鏃堕棿'}
             ,{field: 'memo', align: 'center',title: '娉ㄩ噴'}
@@ -277,34 +279,6 @@
     }
     layDateRender();
 
-    window.loadHostSel = function () {
-        return xmSelect.render({
-            el: '#hostXmlSel',
-            autoRow: true,
-            filterable: true,
-            remoteSearch: true,
-            radio: true,
-            remoteMethod: function (val, cb, show) {
-                $.ajax({
-                    url: baseUrl + "/host/all/get/kv",
-                    headers: {'token': localStorage.getItem('token')},
-                    data: {
-                        condition: val
-                    },
-                    method: 'POST',
-                    success: function (res) {
-                        if (res.code === 200) {
-                            cb(res.data)
-                        } else {
-                            cb([]);
-                            layer.msg(res.msg, {icon: 2});
-                        }
-                    }
-                });
-            }
-        });
-    }
-
     window.loadDeptSel = function () {
         return xmSelect.render({
             el: '#deptXmlSel',
@@ -343,62 +317,6 @@
             remoteMethod: function (val, cb, show) {
                 $.ajax({
                     url: baseUrl + "/planType/all/get/kv",
-                    headers: {'token': localStorage.getItem('token')},
-                    data: {
-                        condition: val
-                    },
-                    method: 'POST',
-                    success: function (res) {
-                        if (res.code === 200) {
-                            cb(res.data)
-                        } else {
-                            cb([]);
-                            layer.msg(res.msg, {icon: 2});
-                        }
-                    }
-                });
-            }
-        });
-    }
-
-    window.loadUserSel = function () {
-        return xmSelect.render({
-            el: '#userXmlSel',
-            autoRow: true,
-            filterable: true,
-            remoteSearch: true,
-            radio: true,
-            remoteMethod: function (val, cb, show) {
-                $.ajax({
-                    url: baseUrl + "/user/all/get/kv",
-                    headers: {'token': localStorage.getItem('token')},
-                    data: {
-                        condition: val
-                    },
-                    method: 'POST',
-                    success: function (res) {
-                        if (res.code === 200) {
-                            cb(res.data)
-                        } else {
-                            cb([]);
-                            layer.msg(res.msg, {icon: 2});
-                        }
-                    }
-                });
-            }
-        });
-    }
-
-    window.loadUserSel = function () {
-        return xmSelect.render({
-            el: '#userXmlSel',
-            autoRow: true,
-            filterable: true,
-            remoteSearch: true,
-            radio: true,
-            remoteMethod: function (val, cb, show) {
-                $.ajax({
-                    url: baseUrl + "/user/all/get/kv",
                     headers: {'token': localStorage.getItem('token')},
                     data: {
                         condition: val
@@ -500,35 +418,6 @@
             }
         });
     }
-
-    window.loadUserSel = function () {
-        return xmSelect.render({
-            el: '#userXmlSel',
-            autoRow: true,
-            filterable: true,
-            remoteSearch: true,
-            radio: true,
-            remoteMethod: function (val, cb, show) {
-                $.ajax({
-                    url: baseUrl + "/user/all/get/kv",
-                    headers: {'token': localStorage.getItem('token')},
-                    data: {
-                        condition: val
-                    },
-                    method: 'POST',
-                    success: function (res) {
-                        if (res.code === 200) {
-                            cb(res.data)
-                        } else {
-                            cb([]);
-                            layer.msg(res.msg, {icon: 2});
-                        }
-                    }
-                });
-            }
-        });
-    }
-
 
 
 });

--
Gitblit v1.9.1