Browse Source

部门下拉及页面数据缺失修复

ly 3 days ago
parent
commit
78a15e3119

+ 2 - 0
src/main/java/com/liang/dao/SysDeptInfoDao.java

@@ -104,5 +104,7 @@ public interface SysDeptInfoDao {
104 104
     int batchDelete(List<Integer> deptIdList);
105 105
 
106 106
     String getUserDept(Integer sqr);
107
+
108
+    List<SysDeptInfo> getDeptName();
107 109
 }
108 110
 

+ 2 - 0
src/main/java/com/liang/service/SysDeptInfoService.java

@@ -79,4 +79,6 @@ public interface SysDeptInfoService {
79 79
     int batchDelete(List<Integer> deptIdList);
80 80
 
81 81
     String getUserDept(Integer sqr);
82
+
83
+    List<SysDeptInfo> getDeptName();
82 84
 }

+ 10 - 0
src/main/java/com/liang/service/impl/SysDeptInfoServiceImpl.java

@@ -9,6 +9,7 @@ import org.springframework.data.domain.PageImpl;
9 9
 import org.springframework.data.domain.PageRequest;
10 10
 
11 11
 import javax.annotation.Resource;
12
+import java.util.ArrayList;
12 13
 import java.util.List;
13 14
 
14 15
 /**
@@ -98,4 +99,13 @@ public class SysDeptInfoServiceImpl implements SysDeptInfoService {
98 99
     public String getUserDept(Integer sqr) {
99 100
         return sysDeptInfoDao.getUserDept(sqr);
100 101
     }
102
+
103
+    @Override
104
+    public List<SysDeptInfo> getDeptName() {
105
+        List<SysDeptInfo> list = new ArrayList<>();
106
+        if (this.sysDeptInfoDao.getDeptName().size() == 0){
107
+            return list;
108
+        }
109
+        return this.sysDeptInfoDao.getDeptName();
110
+    }
101 111
 }

+ 9 - 0
src/main/resources/mapper/SysDeptInfoDao.xml

@@ -231,5 +231,14 @@
231 231
         LEFT JOIN sys_dept_info b on a.dept_id =b.dept_id
232 232
         WHERE a.user_id = #{sqr}
233 233
     </select>
234
+
235
+    <!-- 获取有效部门列表 -->
236
+    <select id="getDeptName" resultMap="SysDeptInfoMap">
237
+        SELECT *
238
+        FROM
239
+            sys_dept_info
240
+        where
241
+            del_flag = 0
242
+    </select>
234 243
 </mapper>
235 244
 

+ 10 - 5
src/main/resources/templates/annualbudget/mylist.html

@@ -58,20 +58,25 @@
58 58
                                 </select>
59 59
                             </div>
60 60
                         </div>
61
-
61
+                        <br/>
62 62
                         <div class="layui-inline">
63 63
                             <label class="layui-form-label" style="width: 60px">所属部门</label>
64
-                            <div class="layui-input-inline" style="width: 145px">
65
-                                <input type="text" id="ssbmmc" name="ssbmmc" autocomplete="off" class="layui-input">
64
+                            <div class="layui-input-inline" style="width: 145px"><!--
65
+                                <input type="text" id="ssbmmc" name="ssbmmc" autocomplete="off" class="layui-input">-->
66
+                                <select name="ssbmmc" id="ssbmmc" lay-filter="status">
67
+                                    <option value="">全部</option>
68
+                                    <option th:each="item:${dept}" th:text="${item.deptName}"
69
+                                            th:value="${item.deptName}"></option>
70
+                                </select>
66 71
                             </div>
67 72
                         </div>
68 73
 
69
-                        <div class="layui-inline">
74
+                       <!-- <div class="layui-inline">
70 75
                             <label class="layui-form-label" style="width: 60px">任务书</label>
71 76
                             <div class="layui-input-inline" style="width: 145px">
72 77
                                 <input type="text" id="rwsmc" name="rwsmc" autocomplete="off" class="layui-input">
73 78
                             </div>
74
-                        </div>
79
+                        </div>-->
75 80
 
76 81
                         <div class="layui-inline" style="margin-left: 0px">
77 82
                             <button type="submit" class="layui-btn" lay-submit lay-filter="data-search-btn"><i

+ 11 - 6
src/main/resources/templates/reportinfo/list.html

@@ -25,7 +25,7 @@
25 25
                 <form class="layui-form" action="" lay-filter="search-form">
26 26
                     <div class="layui-form-item">
27 27
                         <div class="layui-inline">
28
-                            <label class="layui-form-label" style="width: 30px">名称</label>
28
+                            <label class="layui-form-label" style="width: 60px">报告名称</label>
29 29
                             <div class="layui-input-inline" style="width: 220px">
30 30
                                 <input type="text" id="MC" name="MC" autocomplete="off" class="layui-input">
31 31
                             </div>
@@ -43,11 +43,16 @@
43 43
                         <div class="layui-inline">
44 44
                             <label class="layui-form-label" style="width: 60px; margin-left: -10px">所属部门</label>
45 45
                             <div class="layui-input-inline" style="width: 150px">
46
-                                <input type="text" id="SSBMNAME" name="SSBMNAME" class="layui-input"
47
-                                       autocomplete="off"/>
46
+                              <!--  <input type="text" id="SSBMNAME" name="SSBMNAME" class="layui-input"
47
+                                       autocomplete="off"/>-->
48 48
                                 <!--                                <input type="text" id="parentName" name="parentName"/>-->
49 49
                                 <!--                                <input type="hidden" id="parentId" name="parentId"/>-->
50 50
                                 <!--                                <input type="hidden" id="ancestors" name="ancestors"/>-->
51
+                                <select name="SSBMNAME" id="SSBMNAME" lay-filter="status">
52
+                                    <option value="">全部</option>
53
+                                    <option th:each="item:${dept}" th:text="${item.deptName}"
54
+                                            th:value="${item.deptName}"></option>
55
+                                </select>
51 56
                             </div>
52 57
                         </div>
53 58
                         <div class="layui-inline">
@@ -182,8 +187,8 @@
182 187
             cols: [
183 188
                 [
184 189
                     {type: "checkbox", fixed: 'left'},
185
-                    {type: 'numbers', align: 'center'},
186
-                    {field: 'mc', width: '25%', title: '名称'},
190
+                    {type: 'numbers', align: 'center',title: '序号'},
191
+                    {field: 'mc', width: '25%', title: '报告名称'},
187 192
                     {field: 'spzt', width: '10%', title: '审批状态', sort: true},
188 193
                     {field: 'qs', width: '7%', title: '起始', align: 'center'},
189 194
                     {field: 'wc', width: '7%', title: '完成', align: 'center'},
@@ -238,7 +243,7 @@
238 243
             form.val("search-form", {
239 244
                 "MC": '',
240 245
                 "SPZT": '',
241
-                'SSBM': '',
246
+                'SSBMNAME': '',
242 247
                 'SQRQStart': '',
243 248
                 'SQRQEnd': '',
244 249
                 'YSP': ''

+ 11 - 6
src/main/resources/templates/reportinfo/list_deptproject.html

@@ -25,7 +25,7 @@
25 25
                 <form class="layui-form" action="" lay-filter="search-form">
26 26
                     <div class="layui-form-item">
27 27
                         <div class="layui-inline">
28
-                            <label class="layui-form-label" style="width: 30px">名称</label>
28
+                            <label class="layui-form-label" style="width: 60px">报告名称</label>
29 29
                             <div class="layui-input-inline" style="width: 220px">
30 30
                                 <input type="text" id="MC" name="MC" autocomplete="off" class="layui-input">
31 31
                             </div>
@@ -43,11 +43,16 @@
43 43
                         <div class="layui-inline">
44 44
                             <label class="layui-form-label" style="width: 60px; margin-left: -10px">所属部门</label>
45 45
                             <div class="layui-input-inline" style="width: 150px">
46
-                                <input type="text" id="SSBMNAME" name="SSBMNAME" class="layui-input"
47
-                                       autocomplete="off"/>
46
+                               <!-- <input type="text" id="SSBMNAME" name="SSBMNAME" class="layui-input"
47
+                                       autocomplete="off"/>-->
48 48
                                 <!--                                <input type="text" id="parentName" name="parentName"/>-->
49 49
                                 <!--                                <input type="hidden" id="parentId" name="parentId"/>-->
50 50
                                 <!--                                <input type="hidden" id="ancestors" name="ancestors"/>-->
51
+                                <select name="SSBMNAME" id="SSBMNAME" lay-filter="status">
52
+                                    <option value="">全部</option>
53
+                                    <option th:each="item:${dept}" th:text="${item.deptName}"
54
+                                            th:value="${item.deptName}"></option>
55
+                                </select>
51 56
                             </div>
52 57
                         </div>
53 58
                         <div class="layui-inline">
@@ -178,8 +183,8 @@
178 183
             cols: [
179 184
                 [
180 185
                     {type: "checkbox", fixed: 'left'},
181
-                    {type: 'numbers', align: 'center'},
182
-                    {field: 'mc', width: '25%', title: '中文名称'},
186
+                    {type: 'numbers', align: 'center',title: '序号'},
187
+                    {field: 'mc', width: '25%', title: '报告名称'},
183 188
                     {field: 'spzt', width: '10%', title: '审批状态', sort: true},
184 189
                     {field: 'qs', width: '7%', title: '起始', align: 'center'},
185 190
                     {field: 'wc', width: '7%', title: '完成', align: 'center'},
@@ -234,7 +239,7 @@
234 239
             form.val("search-form", {
235 240
                 "MC": '',
236 241
                 "SPZT": '',
237
-                'SSBM': '',
242
+                'SSBMNAME': '',
238 243
                 'SQRQStart': '',
239 244
                 'SQRQEnd': '',
240 245
                 'YSP': ''

+ 11 - 7
src/main/resources/templates/reportinfo/list_myproject.html

@@ -25,7 +25,7 @@
25 25
                 <form class="layui-form" action="" lay-filter="search-form">
26 26
                     <div class="layui-form-item">
27 27
                         <div class="layui-inline">
28
-                            <label class="layui-form-label" style="width: 30px">名称</label>
28
+                            <label class="layui-form-label" style="width: 60px">报告名称</label>
29 29
                             <div class="layui-input-inline" style="width: 220px">
30 30
                                 <input type="text" id="MC" name="MC" autocomplete="off" class="layui-input">
31 31
                             </div>
@@ -43,11 +43,16 @@
43 43
                         <div class="layui-inline">
44 44
                             <label class="layui-form-label" style="width: 60px; margin-left: -10px">所属部门</label>
45 45
                             <div class="layui-input-inline" style="width: 150px">
46
-                                <input type="text" id="SSBMNAME" name="SSBMNAME" class="layui-input"
47
-                                       autocomplete="off"/>
46
+                               <!-- <input type="text" id="SSBMNAME" name="SSBMNAME" class="layui-input"
47
+                                       autocomplete="off"/>-->
48 48
                                 <!--                                <input type="text" id="parentName" name="parentName"/>-->
49 49
                                 <!--                                <input type="hidden" id="parentId" name="parentId"/>-->
50 50
                                 <!--                                <input type="hidden" id="ancestors" name="ancestors"/>-->
51
+                                <select name="SSBMNAME" id="SSBMNAME" lay-filter="status">
52
+                                    <option value="">全部</option>
53
+                                    <option th:each="item:${dept}" th:text="${item.deptName}"
54
+                                            th:value="${item.deptName}"></option>
55
+                                </select>
51 56
                             </div>
52 57
                         </div>
53 58
                         <div class="layui-inline">
@@ -183,7 +188,7 @@
183 188
                 [
184 189
                     {type: "checkbox", fixed: 'left'},
185 190
                     {type: 'numbers', align: 'center',title: '序号'},
186
-                    {field: 'mc', width: '25%', title: '名称'},
191
+                    {field: 'mc', width: '25%', title: '报告名称'},
187 192
                     {field: 'spzt', width: '10%', title: '审批状态', sort: true},
188 193
                     {field: 'qs', width: '7%', title: '起始', align: 'center'},
189 194
                     {field: 'wc', width: '7%', title: '完成', align: 'center'},
@@ -238,11 +243,10 @@
238 243
             form.val("search-form", {
239 244
                 "MC": '',
240 245
                 "SPZT": '',
241
-                'SSBM': '',
246
+                'SSBMNAME': '',
242 247
                 'SQRQStart': '',
243 248
                 'SQRQEnd': '',
244
-                'YSP': '',
245
-                'SSBMNAME':''
249
+                'YSP': ''
246 250
             });
247 251
             // 执行搜索重载
248 252
             currTable.reload({

+ 2 - 0
src/main/resources/templates/stabudgetapproval/view_apply.html

@@ -1361,6 +1361,8 @@
1361 1361
             autoSort: false,
1362 1362
             limits: [10, 15, 20, 25, 50, 100],
1363 1363
             limit: 10,
1364
+            toolbar: '#toolbarDemo',
1365
+            defaultToolbar:['filter', 'exports'],
1364 1366
             page: true,
1365 1367
             skin: 'grid',
1366 1368
             initSort: {