Browse Source

资料管理系统删去专题表

lamphua 1 year ago
parent
commit
48a77c846b
64 changed files with 8723 additions and 1935 deletions
  1. 16
    30
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesAchievementController.java
  2. 39
    109
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesProjectController.java
  3. 1
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesStorageController.java
  4. 0
    92
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesTopicController.java
  5. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/domain/FilesAchievement.java
  6. 0
    635
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/domain/FilesProject.java
  7. 0
    51
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/domain/FilesTopic.java
  8. 0
    73
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/mapper/FilesProjectMapper.java
  9. 0
    62
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/mapper/FilesTopicMapper.java
  10. 0
    79
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/IFilesProjectService.java
  11. 0
    62
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/IFilesTopicService.java
  12. 0
    123
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/impl/FilesProjectServiceImpl.java
  13. 0
    94
      oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/impl/FilesTopicServiceImpl.java
  14. 56
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProject.java
  15. 8
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectMapper.java
  16. 8
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectService.java
  17. 13
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectServiceImpl.java
  18. 8
    8
      oa-back/ruoyi-system/src/main/resources/mapper/file/FilesAchievementMapper.xml
  19. 0
    326
      oa-back/ruoyi-system/src/main/resources/mapper/file/FilesProjectMapper.xml
  20. 0
    58
      oa-back/ruoyi-system/src/main/resources/mapper/file/FilesTopicMapper.xml
  21. 23
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml
  22. 59
    0
      oa-back/sql/cmc_project.sql
  23. 6021
    120
      oa-back/sql/sql.sql
  24. 70
    0
      oa-ui/src/api/file/achievement.js
  25. 92
    0
      oa-ui/src/api/file/project.js
  26. 42
    0
      oa-ui/src/api/file/storage.js
  27. BIN
      oa-ui/src/assets/images/gis/ArcGIS.PNG
  28. BIN
      oa-ui/src/assets/images/gis/bmstgd1-active.png
  29. BIN
      oa-ui/src/assets/images/gis/bmstgd1.png
  30. BIN
      oa-ui/src/assets/images/gis/dltwd-active.png
  31. BIN
      oa-ui/src/assets/images/gis/dltwd.png
  32. BIN
      oa-ui/src/assets/images/gis/dxd1-active.png
  33. BIN
      oa-ui/src/assets/images/gis/dxd1.png
  34. BIN
      oa-ui/src/assets/images/gis/dxd2-active.png
  35. BIN
      oa-ui/src/assets/images/gis/dxd2.png
  36. BIN
      oa-ui/src/assets/images/gis/kzd-active.png
  37. BIN
      oa-ui/src/assets/images/gis/kzd.png
  38. BIN
      oa-ui/src/assets/images/gis/mstgd-active.png
  39. BIN
      oa-ui/src/assets/images/gis/mstgd.png
  40. BIN
      oa-ui/src/assets/images/gis/mstgd1-active.png
  41. BIN
      oa-ui/src/assets/images/gis/mstgd1.png
  42. BIN
      oa-ui/src/assets/images/gis/sjd-active.png
  43. BIN
      oa-ui/src/assets/images/gis/sjd.png
  44. BIN
      oa-ui/src/assets/images/gis/szd-active.png
  45. BIN
      oa-ui/src/assets/images/gis/szd.png
  46. BIN
      oa-ui/src/assets/images/gis/wxdwdjd-active.png
  47. BIN
      oa-ui/src/assets/images/gis/wxdwdjd.png
  48. BIN
      oa-ui/src/assets/images/gis/wxdwlxyxzd-active.png
  49. BIN
      oa-ui/src/assets/images/gis/wxdwlxyxzd.png
  50. BIN
      oa-ui/src/assets/images/gis/xsjd1-active.png
  51. BIN
      oa-ui/src/assets/images/gis/xsjd1.png
  52. BIN
      oa-ui/src/assets/images/gis/xsjd2-active.png
  53. BIN
      oa-ui/src/assets/images/gis/xsjd2.png
  54. BIN
      oa-ui/src/assets/images/gis/中科星图影像.png
  55. BIN
      oa-ui/src/assets/images/gis/天地图.png
  56. BIN
      oa-ui/src/assets/images/gis/天地图地形图.png
  57. BIN
      oa-ui/src/assets/images/gis/矢量图.png
  58. BIN
      oa-ui/src/assets/images/gis/谷歌影像.png
  59. BIN
      oa-ui/src/assets/images/gis/高德.PNG
  60. 764
    0
      oa-ui/src/views/file/filesProject/achievement.vue
  61. 52
    0
      oa-ui/src/views/file/filesProject/index.vue
  62. 1216
    0
      oa-ui/src/views/file/filesProject/project.vue
  63. 202
    0
      oa-ui/src/views/file/filesProject/storage.vue
  64. 27
    5
      oa-ui/src/views/flowable/form/archiveForm.vue

+ 16
- 30
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesAchievementController.java View File

@@ -8,11 +8,11 @@ import com.ruoyi.common.enums.BusinessType;
8 8
 import com.ruoyi.common.utils.SnowFlake;
9 9
 import com.ruoyi.common.utils.poi.ExcelUtil;
10 10
 import com.ruoyi.file.domain.FilesAchievement;
11
-import com.ruoyi.file.domain.FilesProject;
12 11
 import com.ruoyi.file.domain.FilesStorage;
13 12
 import com.ruoyi.file.service.IFilesAchievementService;
14
-import com.ruoyi.file.service.IFilesProjectService;
15 13
 import com.ruoyi.file.service.IFilesStorageService;
14
+import com.ruoyi.oa.domain.CmcProject;
15
+import com.ruoyi.oa.service.ICmcProjectService;
16 16
 import org.springframework.beans.factory.annotation.Autowired;
17 17
 import org.springframework.beans.factory.annotation.Value;
18 18
 import org.springframework.web.bind.annotation.*;
@@ -38,7 +38,7 @@ public class FilesAchievementController extends BaseController
38 38
     private IFilesAchievementService filesAchievementService;
39 39
 
40 40
     @Autowired
41
-    private IFilesProjectService filesProjectService;
41
+    private ICmcProjectService cmcProjectService;
42 42
 
43 43
     @Autowired
44 44
     private IFilesStorageService filesStorageService;
@@ -51,22 +51,8 @@ public class FilesAchievementController extends BaseController
51 51
     @GetMapping("/list")
52 52
     public TableDataInfo list(FilesAchievement filesAchievement)
53 53
     {
54
-        List<FilesAchievement> list = new ArrayList<>();
55
-//        if (filesAchievement.getProjectNumber() != null && !filesAchievement.getProjectNumber().equals("")) {
56
-//            FilesProject filesProject = new FilesProject();
57
-//            filesProject.setProjectNumber(filesAchievement.getProjectNumber());
58
-//            if (filesProjectService.selectFilesProjectList(filesProject).size() > 0) {
59
-//                filesAchievement.setProjectId(filesProjectService.selectFilesProjectList(filesProject).get(0).getId());
60
-//                filesAchievement.setProjectNumber(null);
61
-//            }
62
-//        }
63
-        if (filesAchievement.getStorageAddress() != null && !filesAchievement.getStorageAddress().equals("")) {
64
-            FilesStorage filesStorage = new FilesStorage();
65
-            filesStorage.setStorageAddress(filesAchievement.getStorageAddress());
66
-            if (filesStorageService.selectFilesStorageList(filesStorage).size() > 0)
67
-                filesAchievement.setStorageId(filesStorageService.selectFilesStorageList(filesStorage).get(0).getId());
68
-        }
69
-        list = filesAchievementService.selectFilesAchievementList(filesAchievement);
54
+        startPage();
55
+        List<FilesAchievement> list = filesAchievementService.selectFilesAchievementList(filesAchievement);
70 56
         return getDataTable(list);
71 57
     }
72 58
 
@@ -142,10 +128,10 @@ public class FilesAchievementController extends BaseController
142 128
             {
143 129
                 if (filesAchievement.getId() == null || !IdList.contains(filesAchievement.getId()))
144 130
                     filesAchievement.setId(new SnowFlake().generateId());
145
-                FilesProject filesProject = new FilesProject();
146
-                filesProject = filesProjectService.selectFilesProjectByNumber(filesAchievement.getProjectNumber());
147
-                if(filesProject != null){
148
-                    filesAchievement.setProjectId(filesProject.getId());
131
+                CmcProject cmcProject = new CmcProject();
132
+                cmcProject = cmcProjectService.selectCmcProjectByProjectNumber(filesAchievement.getProjectNumber());
133
+                if(cmcProject != null){
134
+                    filesAchievement.setProjectId(cmcProject.getProjectId());
149 135
                 }else{
150 136
                     filesAchievement.setProjectId(null);
151 137
                 }
@@ -196,10 +182,10 @@ public class FilesAchievementController extends BaseController
196 182
             }
197 183
         }
198 184
         if (filesAchievement.getProjectNumber() != null && !filesAchievement.getProjectNumber().equals("")) {
199
-            FilesProject filesProject = new FilesProject();
200
-            filesProject.setProjectNumber(filesAchievement.getProjectNumber());
201
-            if (filesProjectService.selectFilesProjectList(filesProject).size() > 0)
202
-                filesAchievement.setProjectId(filesProjectService.selectFilesProjectList(filesProject).get(0).getId());
185
+            CmcProject cmcProject = new CmcProject();
186
+            cmcProject.setProjectNumber(filesAchievement.getProjectNumber());
187
+            if (cmcProjectService.selectCmcProjectList(cmcProject).size() > 0)
188
+                filesAchievement.setProjectId(cmcProjectService.selectCmcProjectList(cmcProject).get(0).getProjectId());
203 189
         }
204 190
         if (uploadKmlFile(filesAchievement, uploadKmlFile)) return AjaxResult.error("文件内容为空");
205 191
         filesAchievement.setId(new SnowFlake().generateId());
@@ -216,9 +202,9 @@ public class FilesAchievementController extends BaseController
216 202
         filesStorage.setStorageAddress(filesAchievement.getStorageAddress());
217 203
         if (filesStorageService.selectFilesStorageListE(filesStorage).size() > 0)
218 204
             filesAchievement.setStorageId(filesStorageService.selectFilesStorageListE(filesStorage).get(0).getId());
219
-        FilesProject filesProject = new FilesProject();
220
-        filesProject = filesProjectService.selectFilesProjectById(filesAchievement.getProjectId());
221
-        filesAchievement.setProjectNumber(filesProject.getProjectNumber());
205
+        CmcProject cmcProject = new CmcProject();
206
+        cmcProject = cmcProjectService.selectCmcProjectByProjectId(filesAchievement.getProjectId());
207
+        filesAchievement.setProjectNumber(cmcProject.getProjectNumber());
222 208
         if (uploadKmlFile(filesAchievement, uploadKmlFile))
223 209
             return AjaxResult.error("文件内容为空");
224 210
         return toAjax(filesAchievementService.updateFilesAchievement(filesAchievement));

+ 39
- 109
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesProjectController.java View File

@@ -7,12 +7,9 @@ import com.ruoyi.common.core.page.TableDataInfo;
7 7
 import com.ruoyi.common.enums.BusinessType;
8 8
 import com.ruoyi.common.utils.SnowFlake;
9 9
 import com.ruoyi.common.utils.poi.ExcelUtil;
10
-import com.ruoyi.file.domain.FilesProject;
11
-import com.ruoyi.file.domain.FilesStorage;
12
-import com.ruoyi.file.domain.FilesTopic;
13
-import com.ruoyi.file.service.IFilesProjectService;
14 10
 import com.ruoyi.file.service.IFilesStorageService;
15
-import com.ruoyi.file.service.IFilesTopicService;
11
+import com.ruoyi.oa.domain.CmcProject;
12
+import com.ruoyi.oa.service.ICmcProjectService;
16 13
 import org.springframework.beans.factory.annotation.Autowired;
17 14
 import org.springframework.beans.factory.annotation.Value;
18 15
 import org.springframework.web.bind.annotation.*;
@@ -34,10 +31,7 @@ import java.util.List;
34 31
 @RequestMapping("/file/project")
35 32
 public class FilesProjectController extends BaseController {
36 33
     @Autowired
37
-    private IFilesProjectService filesProjectService;
38
-
39
-    @Autowired
40
-    private IFilesTopicService filesTopicService;
34
+    private ICmcProjectService cmcProjectService;
41 35
 
42 36
     @Autowired
43 37
     private IFilesStorageService filesStorageService;
@@ -49,20 +43,9 @@ public class FilesProjectController extends BaseController {
49 43
      * 查询项目管理列表
50 44
      */
51 45
     @GetMapping("/list")
52
-    public TableDataInfo list(FilesProject filesProject) {
53
-        List<FilesProject> list = filesProjectService.selectFilesProjectList(filesProject);
54
-        if (filesProject.getStorageAddress() != null && !filesProject.getStorageAddress().equals("")) {
55
-            FilesStorage filesStorage = new FilesStorage();
56
-            filesStorage.setStorageAddress(filesProject.getStorageAddress());
57
-            if (filesStorageService.selectFilesStorageList(filesStorage).size() > 0)
58
-                filesProject.setStorageId(filesStorageService.selectFilesStorageList(filesStorage).get(0).getId());
59
-        }
60
-        if (filesProject.getTopicName() != null && !filesProject.getTopicName().equals("")) {
61
-            FilesTopic filesTopic = new FilesTopic();
62
-            filesTopic.setTopicName(filesProject.getTopicName());
63
-            if (filesTopicService.selectFilesTopicList(filesTopic).size() > 0)
64
-                filesProject.setTopicId(filesTopicService.selectFilesTopicList(filesTopic).get(0).getId());
65
-        }
46
+    public TableDataInfo list(CmcProject cmcProject) {
47
+        startPage();
48
+        List<CmcProject> list = cmcProjectService.selectCmcProjectList(cmcProject);
66 49
         return getDataTable(list);
67 50
     }
68 51
 
@@ -71,9 +54,9 @@ public class FilesProjectController extends BaseController {
71 54
      */
72 55
     @Log(title = "项目管理", businessType = BusinessType.EXPORT)
73 56
     @PostMapping("/export")
74
-    public void export(HttpServletResponse response, FilesProject filesProject) {
75
-        List<FilesProject> list = filesProjectService.selectFilesProjectList(filesProject);
76
-        ExcelUtil<FilesProject> util = new ExcelUtil<FilesProject>(FilesProject.class);
57
+    public void export(HttpServletResponse response, CmcProject cmcProject) {
58
+        List<CmcProject> list = cmcProjectService.selectCmcProjectList(cmcProject);
59
+        ExcelUtil<CmcProject> util = new ExcelUtil<CmcProject>(CmcProject.class);
77 60
         util.exportExcel(response, list, "项目管理数据");
78 61
     }
79 62
 
@@ -82,12 +65,12 @@ public class FilesProjectController extends BaseController {
82 65
      */
83 66
     @Log(title = "成果表", businessType = BusinessType.EXPORT)
84 67
     @PostMapping("/exportBatch/{ids}")
85
-    public void exportBatch(HttpServletResponse response, FilesProject filesProject, @PathVariable("ids") String[] ids)
68
+    public void exportBatch(HttpServletResponse response, CmcProject cmcProject, @PathVariable("ids") String[] ids)
86 69
     {
87
-        List<FilesProject> list = new ArrayList<>();
70
+        List<CmcProject> list = new ArrayList<>();
88 71
         for (String projectId : ids)
89
-            list.add(filesProjectService.selectFilesProjectById(projectId));
90
-        ExcelUtil<FilesProject> util = new ExcelUtil<FilesProject>(FilesProject.class);
72
+            list.add(cmcProjectService.selectCmcProjectByProjectId(projectId));
73
+        ExcelUtil<CmcProject> util = new ExcelUtil<CmcProject>(CmcProject.class);
91 74
         util.exportExcel(response, list, "成果表数据");
92 75
     }
93 76
 
@@ -97,7 +80,7 @@ public class FilesProjectController extends BaseController {
97 80
     @PostMapping("/importTemplate")
98 81
     public void importTemplate(HttpServletResponse response)
99 82
     {
100
-        ExcelUtil<FilesProject> util = new ExcelUtil<FilesProject>(FilesProject.class);
83
+        ExcelUtil<CmcProject> util = new ExcelUtil<CmcProject>(CmcProject.class);
101 84
         util.importTemplateExcel(response, "项目表模板");
102 85
     }
103 86
 
@@ -106,20 +89,7 @@ public class FilesProjectController extends BaseController {
106 89
      */
107 90
     @GetMapping(value = "/{id}")
108 91
     public AjaxResult getInfo(@PathVariable("id") String id) {
109
-        return AjaxResult.success(filesProjectService.selectFilesProjectById(id));
110
-    }
111
-
112
-    /**
113
-     * 获取专题对应项目列表
114
-     */
115
-    @GetMapping("/topicName")
116
-    public AjaxResult getProjectByTopic(String topicName) {
117
-        FilesTopic filesTopic = new FilesTopic();
118
-        filesTopic.setTopicName(topicName);
119
-        String topicId = filesTopicService.selectFilesTopicList(filesTopic).get(0).getId();
120
-        FilesProject filesProject = new FilesProject();
121
-        filesProject.setTopicId(topicId);
122
-        return AjaxResult.success(filesProjectService.selectFilesProjectList(filesProject));
92
+        return AjaxResult.success(cmcProjectService.selectCmcProjectByProjectId(id));
123 93
     }
124 94
 
125 95
     /**
@@ -130,20 +100,20 @@ public class FilesProjectController extends BaseController {
130 100
         if (file.isEmpty()) {
131 101
             return AjaxResult.error("文件内容为空!");
132 102
         } else {
133
-            ExcelUtil<FilesProject> util = new ExcelUtil<FilesProject>(FilesProject.class);
134
-            List<FilesProject> filesProjectList = util.importExcel(file.getInputStream());
103
+            ExcelUtil<CmcProject> util = new ExcelUtil<CmcProject>(CmcProject.class);
104
+            List<CmcProject> cmcProjectList = util.importExcel(file.getInputStream());
135 105
             List<String> IdList = new ArrayList<>();
136
-            for (FilesProject fileProject :  filesProjectService.selectFilesProjectList(new FilesProject())) {
137
-                IdList.add(fileProject.getId());
106
+            for (CmcProject fileProject :  cmcProjectService.selectCmcProjectList(new CmcProject())) {
107
+                IdList.add(fileProject.getProjectId());
138 108
             }
139
-            for (FilesProject fileProject : filesProjectList)
109
+            for (CmcProject fileProject : cmcProjectList)
140 110
             {
141
-                if (fileProject.getId() == null || !IdList.contains(fileProject.getId()))
142
-                    fileProject.setId(new SnowFlake().generateId());
143
-                if (IdList.contains(fileProject.getId()))
144
-                    filesProjectService.updateFilesProject(fileProject);
111
+                if (fileProject.getProjectId() == null || !IdList.contains(fileProject.getProjectId()))
112
+                    fileProject.setProjectId(new SnowFlake().generateId());
113
+                if (IdList.contains(fileProject.getProjectId()))
114
+                    cmcProjectService.updateCmcProject(fileProject);
145 115
                 else
146
-                    filesProjectService.insertFilesProject(fileProject);
116
+                    cmcProjectService.insertCmcProject(fileProject);
147 117
             }
148 118
             return AjaxResult.success("上传成功");
149 119
         }
@@ -154,17 +124,16 @@ public class FilesProjectController extends BaseController {
154 124
      */
155 125
     @Log(title = "项目管理", businessType = BusinessType.INSERT)
156 126
     @PostMapping
157
-    public AjaxResult add(FilesProject filesProject, @RequestParam(value = "kmlfile",required = false) MultipartFile uploadProjectKmlFile, @RequestParam(value = "cpfile",required = false) MultipartFile uploadCpKmlFile) throws IOException {
158
-        ConvertToId(filesProject);
159
-        filesProject.setId(new SnowFlake().generateId());
160
-        if (uploadProjectKmlFile(filesProject, uploadProjectKmlFile) )
127
+    public AjaxResult add(CmcProject cmcProject, @RequestParam(value = "kmlfile",required = false) MultipartFile uploadProjectKmlFile, @RequestParam(value = "cpfile",required = false) MultipartFile uploadCpKmlFile) throws IOException {
128
+        cmcProject.setProjectId(new SnowFlake().generateId());
129
+        if (uploadProjectKmlFile(cmcProject, uploadProjectKmlFile) )
161 130
             return AjaxResult.error("项目范围kml文件内容为空");
162
-        if (uploadCpKmlFile(filesProject, uploadCpKmlFile))
131
+        if (uploadCpKmlFile(cmcProject, uploadCpKmlFile))
163 132
             return AjaxResult.error("项目控制点kml文件内容为空");
164
-        return toAjax(filesProjectService.insertFilesProject(filesProject));
133
+        return toAjax(cmcProjectService.insertCmcProject(cmcProject));
165 134
     }
166 135
 
167
-    private boolean uploadProjectKmlFile(FilesProject filesProject, MultipartFile uploadProjectKmlFile) throws IOException {
136
+    private boolean uploadProjectKmlFile(CmcProject cmcProject, MultipartFile uploadProjectKmlFile) throws IOException {
168 137
         if (uploadProjectKmlFile != null) {
169 138
             if (!uploadProjectKmlFile.isEmpty()) {
170 139
                 File profilePath = new File(profile);
@@ -173,7 +142,7 @@ public class FilesProjectController extends BaseController {
173 142
                 File transferFile = new File( profilePath + "\\" + uploadProjectKmlFile.getOriginalFilename());
174 143
                 if (!transferFile.exists())
175 144
                     uploadProjectKmlFile.transferTo(transferFile);
176
-                filesProject.setProjectKml(transferFile.getName());
145
+                cmcProject.setProjectKml(transferFile.getName());
177 146
             }
178 147
             else
179 148
                 return true;
@@ -181,7 +150,7 @@ public class FilesProjectController extends BaseController {
181 150
         return false;
182 151
     }
183 152
 
184
-    private boolean uploadCpKmlFile(FilesProject filesProject, MultipartFile uploadCpKmlFile) throws IOException {
153
+    private boolean uploadCpKmlFile(CmcProject cmcProject, MultipartFile uploadCpKmlFile) throws IOException {
185 154
         if (uploadCpKmlFile != null) {
186 155
             if (!uploadCpKmlFile.isEmpty()) {
187 156
                 File profilePath = new File(profile);
@@ -190,7 +159,7 @@ public class FilesProjectController extends BaseController {
190 159
                 File transferFile = new File( profilePath + "\\" + uploadCpKmlFile.getOriginalFilename());
191 160
                 if (!transferFile.exists())
192 161
                     uploadCpKmlFile.transferTo(transferFile);
193
-                filesProject.setProjectCp(transferFile.getName());
162
+                cmcProject.setProjectCp(transferFile.getName());
194 163
             }
195 164
             else
196 165
                 return true;
@@ -198,49 +167,17 @@ public class FilesProjectController extends BaseController {
198 167
         return false;
199 168
     }
200 169
 
201
-    private void ConvertToId(FilesProject filesProject) {
202
-        FilesStorage storage = new FilesStorage();
203
-        storage.setStorageAddress(filesProject.getStorageAddress());
204
-        if (filesProject.getStorageAddress() != null && !filesProject.getStorageAddress().equals("")) {
205
-            filesProject.setStorageId(new SnowFlake().generateId());
206
-            if (filesStorageService.selectFilesStorageListE(storage).size() > 0)
207
-                filesProject.setStorageId(filesStorageService.selectFilesStorageListE(storage).get(0).getId());
208
-            else {
209
-                FilesStorage filesStorage = new FilesStorage();
210
-                filesStorage.setId(filesProject.getStorageId());
211
-                filesStorage.setStorageAddress(filesProject.getStorageAddress());
212
-                filesStorage.setAdministrator(getLoginUser().getUsername());
213
-                filesStorage.setRemark("");
214
-                filesStorageService.insertFilesStorage(filesStorage);
215
-            }
216
-        }
217
-        FilesTopic topic = new FilesTopic();
218
-        topic.setTopicName(filesProject.getTopicName());
219
-        if (filesProject.getTopicName() != null && !filesProject.getTopicName().equals("")) {
220
-            filesProject.setTopicId(new SnowFlake().generateId());
221
-            if (filesTopicService.selectFilesTopicList(topic).size() > 0)
222
-                filesProject.setTopicId(filesTopicService.selectFilesTopicList(topic).get(0).getId());
223
-            else {
224
-                FilesTopic filesTopic = new FilesTopic();
225
-                filesTopic.setId(filesProject.getTopicId());
226
-                filesTopic.setTopicName(filesProject.getTopicName());
227
-                filesTopicService.insertFilesTopic(filesTopic);
228
-            }
229
-        }
230
-    }
231
-
232 170
     /**
233 171
      * 修改项目管理
234 172
      */
235 173
     @Log(title = "项目管理", businessType = BusinessType.UPDATE)
236 174
     @PostMapping("/edit")
237
-    public AjaxResult edit(FilesProject filesProject, @RequestParam(value = "kmlfile",required = false) MultipartFile uploadProjectKmlFile, @RequestParam(value = "cpfile",required = false) MultipartFile uploadCpKmlFile) throws IOException {
238
-        ConvertToId(filesProject);
239
-        if (uploadProjectKmlFile(filesProject, uploadProjectKmlFile) )
175
+    public AjaxResult edit(CmcProject cmcProject, @RequestParam(value = "kmlfile",required = false) MultipartFile uploadProjectKmlFile, @RequestParam(value = "cpfile",required = false) MultipartFile uploadCpKmlFile) throws IOException {
176
+        if (uploadProjectKmlFile(cmcProject, uploadProjectKmlFile) )
240 177
             return AjaxResult.error("项目范围kml文件内容为空");
241
-        if (uploadCpKmlFile(filesProject, uploadCpKmlFile))
178
+        if (uploadCpKmlFile(cmcProject, uploadCpKmlFile))
242 179
             return AjaxResult.error("项目控制点kml文件内容为空");
243
-        return toAjax(filesProjectService.updateFilesProject(filesProject));
180
+        return toAjax(cmcProjectService.updateCmcProject(cmcProject));
244 181
     }
245 182
 
246 183
     /**
@@ -249,13 +186,6 @@ public class FilesProjectController extends BaseController {
249 186
     @Log(title = "项目管理", businessType = BusinessType.DELETE)
250 187
     @DeleteMapping("/{ids}")
251 188
     public AjaxResult remove(@PathVariable String[] ids) {
252
-        return toAjax(filesProjectService.deleteFilesProjectByIds(ids));
253
-    }
254
-    /**
255
-     * 根据项目编号查询项目信息
256
-     */
257
-    @GetMapping("/query/{projectNumbers}")
258
-    public AjaxResult getInfoByProjectNumber(@PathVariable String[] projectNumbers){
259
-        return AjaxResult.success(filesProjectService.selectFilesProjectByNumbers(projectNumbers));
189
+        return toAjax(cmcProjectService.deleteCmcProjectByProjectIds(ids));
260 190
     }
261 191
 }

+ 1
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesStorageController.java View File

@@ -34,6 +34,7 @@ public class FilesStorageController extends BaseController
34 34
     @GetMapping("/list")
35 35
     public TableDataInfo list(FilesStorage filesStorage)
36 36
     {
37
+        startPage();
37 38
         List<FilesStorage> list = filesStorageService.selectFilesStorageList(filesStorage);
38 39
         return getDataTable(list);
39 40
     }

+ 0
- 92
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/file/FilesTopicController.java View File

@@ -1,92 +0,0 @@
1
-package com.ruoyi.web.controller.file;
2
-
3
-import com.ruoyi.common.annotation.Log;
4
-import com.ruoyi.common.core.controller.BaseController;
5
-import com.ruoyi.common.core.domain.AjaxResult;
6
-import com.ruoyi.common.core.page.TableDataInfo;
7
-import com.ruoyi.common.enums.BusinessType;
8
-import com.ruoyi.common.utils.SnowFlake;
9
-import com.ruoyi.common.utils.poi.ExcelUtil;
10
-import com.ruoyi.file.domain.FilesTopic;
11
-import com.ruoyi.file.service.IFilesTopicService;
12
-import org.springframework.beans.factory.annotation.Autowired;
13
-import org.springframework.web.bind.annotation.*;
14
-
15
-import javax.servlet.http.HttpServletResponse;
16
-import java.util.List;
17
-
18
-/**
19
- * 专题管理Controller
20
- * 
21
- * @author cmc
22
- * @date 2022-09-05
23
- */
24
-@RestController
25
-@RequestMapping("/file/topic")
26
-public class FilesTopicController extends BaseController
27
-{
28
-    @Autowired
29
-    private IFilesTopicService filesTopicService;
30
-
31
-    /**
32
-     * 查询专题管理列表
33
-     */
34
-    @GetMapping("/list")
35
-    public TableDataInfo list(FilesTopic filesTopic)
36
-    {
37
-        List<FilesTopic> list = filesTopicService.selectFilesTopicList(filesTopic);
38
-        return getDataTable(list);
39
-    }
40
-
41
-    /**
42
-     * 导出专题管理列表
43
-     */
44
-    @Log(title = "专题管理", businessType = BusinessType.EXPORT)
45
-    @PostMapping("/export")
46
-    public void export(HttpServletResponse response, FilesTopic filesTopic)
47
-    {
48
-        List<FilesTopic> list = filesTopicService.selectFilesTopicList(filesTopic);
49
-        ExcelUtil<FilesTopic> util = new ExcelUtil<FilesTopic>(FilesTopic.class);
50
-        util.exportExcel(response, list, "专题管理数据");
51
-    }
52
-
53
-    /**
54
-     * 获取专题管理详细信息
55
-     */
56
-    @GetMapping(value = "/{id}")
57
-    public AjaxResult getInfo(@PathVariable("id") String id)
58
-    {
59
-        return AjaxResult.success(filesTopicService.selectFilesTopicById(id));
60
-    }
61
-
62
-    /**
63
-     * 新增专题管理
64
-     */
65
-    @Log(title = "专题管理", businessType = BusinessType.INSERT)
66
-    @PostMapping
67
-    public AjaxResult add(@RequestBody FilesTopic filesTopic)
68
-    {
69
-        filesTopic.setId(new SnowFlake().generateId());
70
-        return toAjax(filesTopicService.insertFilesTopic(filesTopic));
71
-    }
72
-
73
-    /**
74
-     * 修改专题管理
75
-     */
76
-    @Log(title = "专题管理", businessType = BusinessType.UPDATE)
77
-    @PutMapping
78
-    public AjaxResult edit(@RequestBody FilesTopic filesTopic)
79
-    {
80
-        return toAjax(filesTopicService.updateFilesTopic(filesTopic));
81
-    }
82
-
83
-    /**
84
-     * 删除专题管理
85
-     */
86
-    @Log(title = "专题管理", businessType = BusinessType.DELETE)
87
-	@DeleteMapping("/{ids}")
88
-    public AjaxResult remove(@PathVariable String[] ids)
89
-    {
90
-        return toAjax(filesTopicService.deleteFilesTopicByIds(ids));
91
-    }
92
-}

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/domain/FilesAchievement.java View File

@@ -39,7 +39,7 @@ public class FilesAchievement extends BaseEntity
39 39
 
40 40
     /** 比例尺或等级 */
41 41
     @Excel(name = "比例尺或等级")
42
-    private String scaleOrder;
42
+    private String scaleGrade;
43 43
 
44 44
     /** 成果类型 */
45 45
     @Excel(name = "成果类型")
@@ -144,14 +144,14 @@ public class FilesAchievement extends BaseEntity
144 144
     {
145 145
         return dataYear;
146 146
     }
147
-    public void setScaleOrder(String scaleOrder) 
147
+    public void setScaleGrade(String scaleGrade) 
148 148
     {
149
-        this.scaleOrder = scaleOrder;
149
+        this.scaleGrade = scaleGrade;
150 150
     }
151 151
 
152
-    public String getScaleOrder() 
152
+    public String getScaleGrade() 
153 153
     {
154
-        return scaleOrder;
154
+        return scaleGrade;
155 155
     }
156 156
     public void setResultType(String resultType) { this.resultType = resultType; }
157 157
 
@@ -284,7 +284,7 @@ public class FilesAchievement extends BaseEntity
284 284
             .append("projectId", getProjectId())
285 285
             .append("achiName", getAchiName())
286 286
             .append("dataYear", getDataYear())
287
-            .append("scaleOrder", getScaleOrder())
287
+            .append("scaleGrade", getScaleGrade())
288 288
             .append("resultType", getResultType())
289 289
             .append("kmlUrl", getKmlUrl())
290 290
             .append("kmlLng", getKmlLng())

+ 0
- 635
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/domain/FilesProject.java View File

@@ -1,635 +0,0 @@
1
-package com.ruoyi.file.domain;
2
-
3
-import com.ruoyi.common.annotation.Excel;
4
-import com.ruoyi.common.core.domain.BaseEntity;
5
-import org.apache.commons.lang3.builder.ToStringBuilder;
6
-import org.apache.commons.lang3.builder.ToStringStyle;
7
-
8
-/**
9
- * 项目管理对象 files_project
10
- * 
11
- * @author cmc
12
- * @date 2022-09-05
13
- */
14
-public class FilesProject extends BaseEntity
15
-{
16
-    private static final long serialVersionUID = 1L;
17
-
18
-    /** 项目唯一标识 */
19
-    @Excel(name = "序号")
20
-    private String id;
21
-
22
-    /** 项目编号 */
23
-    @Excel(name = "项目编号")
24
-    private String projectNumber;
25
-
26
-    /** 项目名称 */
27
-    @Excel(name = "项目名称")
28
-    private String projectName;
29
-
30
-    /** 项目是否结束 */
31
-    @Excel(name = "项目是否结束")
32
-    private String isFinish;
33
-
34
-    /** 项目负责人 */
35
-    @Excel(name = "项目负责人")
36
-    private String projectLeader;
37
-
38
-    /** 项目年份 */
39
-    @Excel(name = "项目年份")
40
-    private String year;
41
-
42
-    /** 当前进度 */
43
-    @Excel(name = "当前进度")
44
-    private String currentProgress;
45
-
46
-    /** 项目来源 */
47
-    @Excel(name = "项目来源")
48
-    private String projectSource;
49
-
50
-    /** 甲方单位 */
51
-    @Excel(name = "甲方单位")
52
-    private String partyA;
53
-
54
-    /** 联系人 */
55
-    @Excel(name = "联系人")
56
-    private String contactPerson;
57
-
58
-    /** 联系电话 */
59
-    @Excel(name = "联系电话")
60
-    private String telephone;
61
-
62
-    /** 合同编码 */
63
-    @Excel(name = "合同编码")
64
-    private String contractCode;
65
-
66
-    /** 合同编号 */
67
-    @Excel(name = "合同编号")
68
-    private String contractNumber;
69
-
70
-    /** 项目类型 */
71
-    @Excel(name = "项目类型")
72
-    private String projectType;
73
-
74
-    /** 预计价款 */
75
-    @Excel(name = "预计价款")
76
-    private String expectedPrice;
77
-
78
-    /** 项目级别 */
79
-    @Excel(name = "项目级别")
80
-    private String projectLevel;
81
-
82
-    /** 技术负责人 */
83
-    @Excel(name = "技术负责人")
84
-    private String technicalDirector;
85
-
86
-    /** 技术设计人 */
87
-    @Excel(name = "技术设计人")
88
-    private String techinicalDesigner;
89
-
90
-    /** 质量检查员 */
91
-    @Excel(name = "质量检查员")
92
-    private String qualityInspector;
93
-
94
-    /** 承担部门 */
95
-    @Excel(name = "承担部门")
96
-    private String undertakingSector;
97
-
98
-    /** 经费合计 */
99
-    @Excel(name = "经费合计")
100
-    private String fund;
101
-
102
-    /** 领导批准时间 */
103
-    @Excel(name = "领导批准时间")
104
-    private String approvalDate;
105
-
106
-    /** 进场时间 */
107
-    @Excel(name = "进场时间")
108
-    private String approachTime;
109
-
110
-    /** 撤场时间 */
111
-    @Excel(name = "撤场时间")
112
-    private String withdrawalTime;
113
-
114
-    /** 项目要求完成日期 */
115
-    @Excel(name = "项目要求完成日期")
116
-    private String requiredCompletionDate;
117
-
118
-    /** 资料提交日期 */
119
-    @Excel(name = "资料提交日期")
120
-    private String submissionDate;
121
-
122
-    /** 使用车辆(车牌号) */
123
-    @Excel(name = "使用车辆", readConverterExp = "车=牌号")
124
-    private String licensePlateNumber;
125
-
126
-    /** 项目行车公里数 */
127
-    @Excel(name = "项目行车公里数")
128
-    private String mileage;
129
-
130
-    /** 项目燃油使用费 */
131
-    @Excel(name = "项目燃油使用费")
132
-    private String fuelExpense;
133
-
134
-    /** 主要设备 */
135
-    @Excel(name = "主要设备")
136
-    private String mainEquipment;
137
-
138
-    /** 项目参与人员 */
139
-    @Excel(name = "项目参与人员")
140
-    private String projectParticipants;
141
-
142
-    /** 当前处理环节 */
143
-    @Excel(name = "当前处理环节")
144
-    private String currentProcessing;
145
-
146
-    /** 当前处理人 */
147
-    @Excel(name = "当前处理人")
148
-    private String currentHandler;
149
-
150
-    /** 项目登记人 */
151
-    @Excel(name = "项目登记人")
152
-    private String projectRegistrant;
153
-
154
-    /** 项目登记日期 */
155
-    @Excel(name = "项目登记日期")
156
-    private String registrationDate;
157
-
158
-    /** 牵头部门 */
159
-    @Excel(name = "牵头部门")
160
-    private String leadingSector;
161
-
162
-
163
-
164
-    /** 所属专题id */
165
-//    @Excel(name = "所属专题id")
166
-    private String topicId;
167
-
168
-    /** 专题名称 */
169
-//    @Excel(name = "专题名称")
170
-    private String topicName;
171
-
172
-    /** 存放地址的id */
173
-//    @Excel(name = "存放地址的id")
174
-    private String storageId;
175
-
176
-    /** 存放地址 */
177
-//    @Excel(name = "存放地址")
178
-    private String storageAddress;
179
-
180
-    /** 项目kml */
181
-//    @Excel(name = "项目kml")
182
-    private String projectKml;
183
-
184
-    /** 项目控制点 */
185
-//    @Excel(name = "项目控制点")
186
-    private String projectCp;
187
-
188
-    /** kml文件的中心位置经度 */
189
-//    @Excel(name = "kml文件的中心位置经度")
190
-    private String kmlLng;
191
-
192
-    /** kml文件的中心位置纬度 */
193
-//    @Excel(name = "kml文件的中心位置纬度")
194
-    private String kmlLat;
195
-
196
-
197
-
198
-    public void setId(String id) 
199
-    {
200
-        this.id = id;
201
-    }
202
-
203
-    public String getId() 
204
-    {
205
-        return id;
206
-    }
207
-    public void setProjectNumber(String projectNumber) 
208
-    {
209
-        this.projectNumber = projectNumber;
210
-    }
211
-
212
-    public String getProjectNumber() 
213
-    {
214
-        return projectNumber;
215
-    }
216
-    public void setProjectName(String projectName) 
217
-    {
218
-        this.projectName = projectName;
219
-    }
220
-
221
-    public String getProjectName() 
222
-    {
223
-        return projectName;
224
-    }
225
-    public void setCurrentProgress(String currentProgress) 
226
-    {
227
-        this.currentProgress = currentProgress;
228
-    }
229
-
230
-    public String getCurrentProgress() 
231
-    {
232
-        return currentProgress;
233
-    }
234
-    public void setProjectSource(String projectSource) 
235
-    {
236
-        this.projectSource = projectSource;
237
-    }
238
-
239
-    public String getProjectSource() 
240
-    {
241
-        return projectSource;
242
-    }
243
-    public void setPartyA(String partyA) 
244
-    {
245
-        this.partyA = partyA;
246
-    }
247
-
248
-    public String getPartyA() 
249
-    {
250
-        return partyA;
251
-    }
252
-    public void setContactPerson(String contactPerson) 
253
-    {
254
-        this.contactPerson = contactPerson;
255
-    }
256
-
257
-    public String getContactPerson() 
258
-    {
259
-        return contactPerson;
260
-    }
261
-    public void setTelephone(String telephone) 
262
-    {
263
-        this.telephone = telephone;
264
-    }
265
-
266
-    public String getTelephone() 
267
-    {
268
-        return telephone;
269
-    }
270
-    public void setContractCode(String contractCode) 
271
-    {
272
-        this.contractCode = contractCode;
273
-    }
274
-
275
-    public String getContractCode() 
276
-    {
277
-        return contractCode;
278
-    }
279
-    public void setContractNumber(String contractNumber) 
280
-    {
281
-        this.contractNumber = contractNumber;
282
-    }
283
-
284
-    public String getContractNumber() 
285
-    {
286
-        return contractNumber;
287
-    }
288
-    public void setProjectType(String projectType) 
289
-    {
290
-        this.projectType = projectType;
291
-    }
292
-
293
-    public String getProjectType() 
294
-    {
295
-        return projectType;
296
-    }
297
-    public void setExpectedPrice(String expectedPrice) 
298
-    {
299
-        this.expectedPrice = expectedPrice;
300
-    }
301
-
302
-    public String getExpectedPrice() 
303
-    {
304
-        return expectedPrice;
305
-    }
306
-    public void setProjectLevel(String projectLevel) 
307
-    {
308
-        this.projectLevel = projectLevel;
309
-    }
310
-
311
-    public String getProjectLevel() 
312
-    {
313
-        return projectLevel;
314
-    }
315
-    public void setTechnicalDirector(String technicalDirector) 
316
-    {
317
-        this.technicalDirector = technicalDirector;
318
-    }
319
-
320
-    public String getTechnicalDirector() 
321
-    {
322
-        return technicalDirector;
323
-    }
324
-    public void setTechinicalDesigner(String techinicalDesigner) 
325
-    {
326
-        this.techinicalDesigner = techinicalDesigner;
327
-    }
328
-
329
-    public String getTechinicalDesigner() 
330
-    {
331
-        return techinicalDesigner;
332
-    }
333
-    public void setQualityInspector(String qualityInspector) 
334
-    {
335
-        this.qualityInspector = qualityInspector;
336
-    }
337
-
338
-    public String getQualityInspector() 
339
-    {
340
-        return qualityInspector;
341
-    }
342
-    public void setUndertakingSector(String undertakingSector) 
343
-    {
344
-        this.undertakingSector = undertakingSector;
345
-    }
346
-
347
-    public String getUndertakingSector() 
348
-    {
349
-        return undertakingSector;
350
-    }
351
-    public void setProjectLeader(String projectLeader) 
352
-    {
353
-        this.projectLeader = projectLeader;
354
-    }
355
-
356
-    public String getProjectLeader() 
357
-    {
358
-        return projectLeader;
359
-    }
360
-    public void setFund(String fund) 
361
-    {
362
-        this.fund = fund;
363
-    }
364
-
365
-    public String getFund() 
366
-    {
367
-        return fund;
368
-    }
369
-    public void setApprovalDate(String approvalDate) 
370
-    {
371
-        this.approvalDate = approvalDate;
372
-    }
373
-
374
-    public String getApprovalDate() 
375
-    {
376
-        return approvalDate;
377
-    }
378
-    public void setApproachTime(String approachTime) 
379
-    {
380
-        this.approachTime = approachTime;
381
-    }
382
-
383
-    public String getApproachTime() 
384
-    {
385
-        return approachTime;
386
-    }
387
-    public void setWithdrawalTime(String withdrawalTime) 
388
-    {
389
-        this.withdrawalTime = withdrawalTime;
390
-    }
391
-
392
-    public String getWithdrawalTime() 
393
-    {
394
-        return withdrawalTime;
395
-    }
396
-    public void setRequiredCompletionDate(String requiredCompletionDate) { this.requiredCompletionDate = requiredCompletionDate; }
397
-
398
-    public String getRequiredCompletionDate() 
399
-    {
400
-        return requiredCompletionDate;
401
-    }
402
-    public void setSubmissionDate(String submissionDate) 
403
-    {
404
-        this.submissionDate = submissionDate;
405
-    }
406
-
407
-    public String getSubmissionDate() 
408
-    {
409
-        return submissionDate;
410
-    }
411
-    public void setLicensePlateNumber(String licensePlateNumber) 
412
-    {
413
-        this.licensePlateNumber = licensePlateNumber;
414
-    }
415
-
416
-    public String getLicensePlateNumber() 
417
-    {
418
-        return licensePlateNumber;
419
-    }
420
-    public void setMileage(String mileage) 
421
-    {
422
-        this.mileage = mileage;
423
-    }
424
-
425
-    public String getMileage() 
426
-    {
427
-        return mileage;
428
-    }
429
-    public void setFuelExpense(String fuelExpense) 
430
-    {
431
-        this.fuelExpense = fuelExpense;
432
-    }
433
-
434
-    public String getFuelExpense() 
435
-    {
436
-        return fuelExpense;
437
-    }
438
-    public void setMainEquipment(String mainEquipment) 
439
-    {
440
-        this.mainEquipment = mainEquipment;
441
-    }
442
-
443
-    public String getMainEquipment() 
444
-    {
445
-        return mainEquipment;
446
-    }
447
-    public void setProjectParticipants(String projectParticipants) 
448
-    {
449
-        this.projectParticipants = projectParticipants;
450
-    }
451
-
452
-    public String getProjectParticipants() 
453
-    {
454
-        return projectParticipants;
455
-    }
456
-    public void setCurrentProcessing(String currentProcessing) 
457
-    {
458
-        this.currentProcessing = currentProcessing;
459
-    }
460
-
461
-    public String getCurrentProcessing() 
462
-    {
463
-        return currentProcessing;
464
-    }
465
-    public void setCurrentHandler(String currentHandler) 
466
-    {
467
-        this.currentHandler = currentHandler;
468
-    }
469
-
470
-    public String getCurrentHandler() 
471
-    {
472
-        return currentHandler;
473
-    }
474
-    public void setProjectRegistrant(String projectRegistrant) 
475
-    {
476
-        this.projectRegistrant = projectRegistrant;
477
-    }
478
-
479
-    public String getProjectRegistrant() 
480
-    {
481
-        return projectRegistrant;
482
-    }
483
-    public void setRegistrationDate(String registrationDate) 
484
-    {
485
-        this.registrationDate = registrationDate;
486
-    }
487
-
488
-    public String getRegistrationDate() 
489
-    {
490
-        return registrationDate;
491
-    }
492
-    public void setLeadingSector(String leadingSector) 
493
-    {
494
-        this.leadingSector = leadingSector;
495
-    }
496
-
497
-    public String getLeadingSector() 
498
-    {
499
-        return leadingSector;
500
-    }
501
-    public void setYear(String year) 
502
-    {
503
-        this.year = year;
504
-    }
505
-
506
-    public String getYear() 
507
-    {
508
-        return year;
509
-    }
510
-    public void setTopicId(String topicId) 
511
-    {
512
-        this.topicId = topicId;
513
-    }
514
-
515
-    public String getTopicId() 
516
-    {
517
-        return topicId;
518
-    }
519
-    public void setTopicName(String topicName)
520
-    {
521
-        this.topicName = topicName;
522
-    }
523
-
524
-    public String getTopicName()
525
-    {
526
-        return topicName;
527
-    }
528
-    public void setStorageAddress(String storageAddress)
529
-    {
530
-        this.storageAddress = storageAddress;
531
-    }
532
-
533
-    public String getStorageAddress()
534
-    {
535
-        return storageAddress;
536
-    }
537
-    public void setStorageId(String storageId)
538
-    {
539
-        this.storageId = storageId;
540
-    }
541
-
542
-    public String getStorageId()
543
-    {
544
-        return storageId;
545
-    }
546
-    public void setProjectKml(String projectKml)
547
-    {
548
-        this.projectKml = projectKml;
549
-    }
550
-
551
-    public String getProjectKml()
552
-    {
553
-        return projectKml;
554
-    }
555
-    public void setProjectCp(String projectCp)
556
-    {
557
-        this.projectCp = projectCp;
558
-    }
559
-
560
-    public String getProjectCp()
561
-    {
562
-        return projectCp;
563
-    }
564
-
565
-    public String getKmlLng()
566
-    {
567
-        return kmlLng;
568
-    }
569
-    public void setKmlLng(String kmlLng)
570
-    {
571
-        this.kmlLng = kmlLng;
572
-    }
573
-
574
-    public String getKmlLat()
575
-    {
576
-        return kmlLat;
577
-    }
578
-    public void setKmlLat(String kmlLat)
579
-    {
580
-        this.kmlLat = kmlLat;
581
-    }
582
-
583
-    public void setIsFinish(String isFinish)
584
-    {
585
-        this.isFinish = isFinish;
586
-    }
587
-
588
-    public String getIsFinish()
589
-    {
590
-        return isFinish;
591
-    }
592
-
593
-    @Override
594
-    public String toString() {
595
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
596
-            .append("id", getId())
597
-            .append("projectNumber", getProjectNumber())
598
-            .append("projectName", getProjectName())
599
-            .append("currentProgress", getCurrentProgress())
600
-            .append("projectSource", getProjectSource())
601
-            .append("partyA", getPartyA())
602
-            .append("contactPerson", getContactPerson())
603
-            .append("telephone", getTelephone())
604
-            .append("contractCode", getContractCode())
605
-            .append("contractNumber", getContractNumber())
606
-            .append("projectType", getProjectType())
607
-            .append("expectedPrice", getExpectedPrice())
608
-            .append("projectLevel", getProjectLevel())
609
-            .append("technicalDirector", getTechnicalDirector())
610
-            .append("techinicalDesigner", getTechinicalDesigner())
611
-            .append("qualityInspector", getQualityInspector())
612
-            .append("undertakingSector", getUndertakingSector())
613
-            .append("projectLeader", getProjectLeader())
614
-            .append("fund", getFund())
615
-            .append("approvalDate", getApprovalDate())
616
-            .append("approachTime", getApproachTime())
617
-            .append("withdrawalTime", getWithdrawalTime())
618
-            .append("requiredCompletionDate", getRequiredCompletionDate())
619
-            .append("submissionDate", getSubmissionDate())
620
-            .append("licensePlateNumber", getLicensePlateNumber())
621
-            .append("mileage", getMileage())
622
-            .append("fuelExpense", getFuelExpense())
623
-            .append("mainEquipment", getMainEquipment())
624
-            .append("projectParticipants", getProjectParticipants())
625
-            .append("currentProcessing", getCurrentProcessing())
626
-            .append("currentHandler", getCurrentHandler())
627
-            .append("projectRegistrant", getProjectRegistrant())
628
-            .append("registrationDate", getRegistrationDate())
629
-            .append("leadingSector", getLeadingSector())
630
-            .append("year", getYear())
631
-            .append("topicId", getTopicId())
632
-            .append("storageId", getStorageId())
633
-            .toString();
634
-    }
635
-}

+ 0
- 51
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/domain/FilesTopic.java View File

@@ -1,51 +0,0 @@
1
-package com.ruoyi.file.domain;
2
-
3
-import com.ruoyi.common.annotation.Excel;
4
-import com.ruoyi.common.core.domain.BaseEntity;
5
-import org.apache.commons.lang3.builder.ToStringBuilder;
6
-import org.apache.commons.lang3.builder.ToStringStyle;
7
-
8
-/**
9
- * 专题管理对象 files_topic
10
- * 
11
- * @author cmc
12
- * @date 2022-09-05
13
- */
14
-public class FilesTopic extends BaseEntity
15
-{
16
-    private static final long serialVersionUID = 1L;
17
-
18
-    /** 专题id */
19
-    private String id;
20
-
21
-    /** 专题名称 */
22
-    @Excel(name = "专题名称")
23
-    private String topicName;
24
-
25
-    public void setId(String id) 
26
-    {
27
-        this.id = id;
28
-    }
29
-
30
-    public String getId() 
31
-    {
32
-        return id;
33
-    }
34
-    public void setTopicName(String topicName) 
35
-    {
36
-        this.topicName = topicName;
37
-    }
38
-
39
-    public String getTopicName() 
40
-    {
41
-        return topicName;
42
-    }
43
-
44
-    @Override
45
-    public String toString() {
46
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
47
-            .append("id", getId())
48
-            .append("topicName", getTopicName())
49
-            .toString();
50
-    }
51
-}

+ 0
- 73
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/mapper/FilesProjectMapper.java View File

@@ -1,73 +0,0 @@
1
-package com.ruoyi.file.mapper;
2
-
3
-import com.ruoyi.file.domain.FilesProject;
4
-
5
-import java.util.List;
6
-
7
-/**
8
- * 项目管理Mapper接口
9
- * 
10
- * @author cmc
11
- * @date 2022-09-05
12
- */
13
-public interface FilesProjectMapper 
14
-{
15
-    /**
16
-     * 查询项目管理
17
-     * 
18
-     * @param id 项目管理主键
19
-     * @return 项目管理
20
-     */
21
-    public FilesProject selectFilesProjectById(String id);
22
-
23
-    /**
24
-     * 查询项目
25
-     *
26
-     * @param projectNumber 项目编号
27
-     * @return 项目管理
28
-     */
29
-    public FilesProject selectFilesProjectByNumber(String projectNumber);
30
-    /**
31
-     * 查询项目管理列表
32
-     * 
33
-     * @param filesProject 项目管理
34
-     * @return 项目管理集合
35
-     */
36
-    public List<FilesProject> selectFilesProjectList(FilesProject filesProject);
37
-
38
-    /**
39
-     * 新增项目管理
40
-     * 
41
-     * @param filesProject 项目管理
42
-     * @return 结果
43
-     */
44
-    public int insertFilesProject(FilesProject filesProject);
45
-
46
-    /**
47
-     * 修改项目管理
48
-     * 
49
-     * @param filesProject 项目管理
50
-     * @return 结果
51
-     */
52
-    public int updateFilesProject(FilesProject filesProject);
53
-
54
-    /**
55
-     * 删除项目管理
56
-     * 
57
-     * @param id 项目管理主键
58
-     * @return 结果
59
-     */
60
-    public int deleteFilesProjectById(String id);
61
-
62
-    /**
63
-     * 批量删除项目管理
64
-     * 
65
-     * @param ids 需要删除的数据主键集合
66
-     * @return 结果
67
-     */
68
-    public int deleteFilesProjectByIds(String[] ids);
69
-
70
-    int selectAllCount(FilesProject filesProject);
71
-
72
-    public List<FilesProject> selectFilesProjectByNumbers(String[] ids);
73
-}

+ 0
- 62
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/mapper/FilesTopicMapper.java View File

@@ -1,62 +0,0 @@
1
-package com.ruoyi.file.mapper;
2
-
3
-import com.ruoyi.file.domain.FilesTopic;
4
-
5
-import java.util.List;
6
-
7
-/**
8
- * 专题管理Mapper接口
9
- * 
10
- * @author cmc
11
- * @date 2022-09-05
12
- */
13
-public interface FilesTopicMapper 
14
-{
15
-    /**
16
-     * 查询专题管理
17
-     * 
18
-     * @param id 专题管理主键
19
-     * @return 专题管理
20
-     */
21
-    public FilesTopic selectFilesTopicById(String id);
22
-
23
-    /**
24
-     * 查询专题管理列表
25
-     * 
26
-     * @param filesTopic 专题管理
27
-     * @return 专题管理集合
28
-     */
29
-    public List<FilesTopic> selectFilesTopicList(FilesTopic filesTopic);
30
-
31
-    /**
32
-     * 新增专题管理
33
-     * 
34
-     * @param filesTopic 专题管理
35
-     * @return 结果
36
-     */
37
-    public int insertFilesTopic(FilesTopic filesTopic);
38
-
39
-    /**
40
-     * 修改专题管理
41
-     * 
42
-     * @param filesTopic 专题管理
43
-     * @return 结果
44
-     */
45
-    public int updateFilesTopic(FilesTopic filesTopic);
46
-
47
-    /**
48
-     * 删除专题管理
49
-     * 
50
-     * @param id 专题管理主键
51
-     * @return 结果
52
-     */
53
-    public int deleteFilesTopicById(String id);
54
-
55
-    /**
56
-     * 批量删除专题管理
57
-     * 
58
-     * @param ids 需要删除的数据主键集合
59
-     * @return 结果
60
-     */
61
-    public int deleteFilesTopicByIds(String[] ids);
62
-}

+ 0
- 79
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/IFilesProjectService.java View File

@@ -1,79 +0,0 @@
1
-package com.ruoyi.file.service;
2
-
3
-import com.ruoyi.file.domain.FilesProject;
4
-
5
-import java.util.List;
6
-
7
-/**
8
- * 项目管理Service接口
9
- * 
10
- * @author cmc
11
- * @date 2022-09-05
12
- */
13
-public interface IFilesProjectService 
14
-{
15
-    /**
16
-     * 查询项目管理
17
-     * 
18
-     * @param id 项目管理主键
19
-     * @return 项目管理
20
-     */
21
-    public FilesProject selectFilesProjectById(String id);
22
-    /**
23
-     * 查询项目
24
-     *
25
-     * @param id 项目管理主键
26
-     * @return 项目管理
27
-     */
28
-    public FilesProject selectFilesProjectByNumber(String projectNumber);
29
-
30
-    /**
31
-     * 查询项目管理列表
32
-     * 
33
-     * @param filesProject 项目管理
34
-     * @return 项目管理集合
35
-     */
36
-    public List<FilesProject> selectFilesProjectList(FilesProject filesProject);
37
-
38
-    /**
39
-     * 新增项目管理
40
-     * 
41
-     * @param filesProject 项目管理
42
-     * @return 结果
43
-     */
44
-    public int insertFilesProject(FilesProject filesProject);
45
-
46
-    /**
47
-     * 修改项目管理
48
-     * 
49
-     * @param filesProject 项目管理
50
-     * @return 结果
51
-     */
52
-    public int updateFilesProject(FilesProject filesProject);
53
-
54
-    /**
55
-     * 批量删除项目管理
56
-     * 
57
-     * @param ids 需要删除的项目管理主键集合
58
-     * @return 结果
59
-     */
60
-    public int deleteFilesProjectByIds(String[] ids);
61
-
62
-    /**
63
-     * 删除项目管理信息
64
-     * 
65
-     * @param id 项目管理主键
66
-     * @return 结果
67
-     */
68
-    public int deleteFilesProjectById(String id);
69
-
70
-    int selectAllCount(FilesProject filesProject);
71
-
72
-    /**
73
-     *根据项目编号获取项目信息
74
-     *
75
-     * @param ids 项目编号
76
-     * @return 结果
77
-     */
78
-    public List<FilesProject> selectFilesProjectByNumbers(String[] ids);
79
-}

+ 0
- 62
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/IFilesTopicService.java View File

@@ -1,62 +0,0 @@
1
-package com.ruoyi.file.service;
2
-
3
-import com.ruoyi.file.domain.FilesTopic;
4
-
5
-import java.util.List;
6
-
7
-/**
8
- * 专题管理Service接口
9
- * 
10
- * @author cmc
11
- * @date 2022-09-05
12
- */
13
-public interface IFilesTopicService 
14
-{
15
-    /**
16
-     * 查询专题管理
17
-     * 
18
-     * @param id 专题管理主键
19
-     * @return 专题管理
20
-     */
21
-    public FilesTopic selectFilesTopicById(String id);
22
-
23
-    /**
24
-     * 查询专题管理列表
25
-     * 
26
-     * @param filesTopic 专题管理
27
-     * @return 专题管理集合
28
-     */
29
-    public List<FilesTopic> selectFilesTopicList(FilesTopic filesTopic);
30
-
31
-    /**
32
-     * 新增专题管理
33
-     * 
34
-     * @param filesTopic 专题管理
35
-     * @return 结果
36
-     */
37
-    public int insertFilesTopic(FilesTopic filesTopic);
38
-
39
-    /**
40
-     * 修改专题管理
41
-     * 
42
-     * @param filesTopic 专题管理
43
-     * @return 结果
44
-     */
45
-    public int updateFilesTopic(FilesTopic filesTopic);
46
-
47
-    /**
48
-     * 批量删除专题管理
49
-     * 
50
-     * @param ids 需要删除的专题管理主键集合
51
-     * @return 结果
52
-     */
53
-    public int deleteFilesTopicByIds(String[] ids);
54
-
55
-    /**
56
-     * 删除专题管理信息
57
-     * 
58
-     * @param id 专题管理主键
59
-     * @return 结果
60
-     */
61
-    public int deleteFilesTopicById(String id);
62
-}

+ 0
- 123
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/impl/FilesProjectServiceImpl.java View File

@@ -1,123 +0,0 @@
1
-package com.ruoyi.file.service.impl;
2
-
3
-import com.ruoyi.file.domain.FilesProject;
4
-import com.ruoyi.file.mapper.FilesAchievementMapper;
5
-import com.ruoyi.file.mapper.FilesProjectMapper;
6
-import com.ruoyi.file.service.IFilesProjectService;
7
-import org.springframework.beans.factory.annotation.Autowired;
8
-import org.springframework.stereotype.Service;
9
-
10
-import java.util.List;
11
-
12
-/**
13
- * 项目管理Service业务层处理
14
- * 
15
- * @author cmc
16
- * @date 2022-09-05
17
- */
18
-@Service
19
-public class FilesProjectServiceImpl implements IFilesProjectService 
20
-{
21
-    @Autowired
22
-    private FilesProjectMapper filesProjectMapper;
23
-    @Autowired
24
-    private FilesAchievementMapper filesAchievementMapper;
25
-    /**
26
-     * 查询项目管理
27
-     * 
28
-     * @param id 项目管理主键
29
-     * @return 项目管理
30
-     */
31
-    @Override
32
-    public FilesProject selectFilesProjectById(String id)
33
-    {
34
-        return filesProjectMapper.selectFilesProjectById(id);
35
-    }
36
-
37
-    /**
38
-     * 查询项目管理
39
-     *
40
-     * @param projectNumber 项目编号
41
-     * @return 项目管理
42
-     */
43
-    @Override
44
-    public FilesProject selectFilesProjectByNumber(String projectNumber)
45
-    {
46
-        return filesProjectMapper.selectFilesProjectByNumber(projectNumber);
47
-    }
48
-
49
-    /**
50
-     * 查询项目管理列表
51
-     * 
52
-     * @param filesProject 项目管理
53
-     * @return 项目管理
54
-     */
55
-    @Override
56
-    public List<FilesProject> selectFilesProjectList(FilesProject filesProject)
57
-    {
58
-        return filesProjectMapper.selectFilesProjectList(filesProject);
59
-    }
60
-
61
-    /**
62
-     * 新增项目管理
63
-     * 
64
-     * @param filesProject 项目管理
65
-     * @return 结果
66
-     */
67
-    @Override
68
-    public int insertFilesProject(FilesProject filesProject)
69
-    {
70
-        return filesProjectMapper.insertFilesProject(filesProject);
71
-    }
72
-
73
-    /**
74
-     * 修改项目管理
75
-     * 
76
-     * @param filesProject 项目管理
77
-     * @return 结果
78
-     */
79
-    @Override
80
-    public int updateFilesProject(FilesProject filesProject)
81
-    {
82
-        return filesProjectMapper.updateFilesProject(filesProject);
83
-    }
84
-
85
-    /**
86
-     * 批量删除项目管理
87
-     * 
88
-     * @param ids 需要删除的项目管理主键
89
-     * @return 结果
90
-     */
91
-    @Override
92
-    public int deleteFilesProjectByIds(String[] ids)
93
-    {
94
-        try{
95
-            filesAchievementMapper.deleteFilesAchievementByProjectIds(ids);
96
-            return filesProjectMapper.deleteFilesProjectByIds(ids);
97
-        }catch (Exception e) {
98
-            throw new RuntimeException();
99
-        }
100
-    }
101
-
102
-    /**
103
-     * 删除项目管理信息
104
-     * 
105
-     * @param id 项目管理主键
106
-     * @return 结果
107
-     */
108
-    @Override
109
-    public int deleteFilesProjectById(String id)
110
-    {
111
-        return filesProjectMapper.deleteFilesProjectById(id);
112
-    }
113
-
114
-    @Override
115
-    public int selectAllCount(FilesProject filesProject) {
116
-        return filesProjectMapper.selectAllCount(filesProject);
117
-    }
118
-
119
-    @Override
120
-    public List<FilesProject> selectFilesProjectByNumbers(String[] ids){
121
-        return filesProjectMapper.selectFilesProjectByNumbers(ids);
122
-    }
123
-}

+ 0
- 94
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/service/impl/FilesTopicServiceImpl.java View File

@@ -1,94 +0,0 @@
1
-package com.ruoyi.file.service.impl;
2
-
3
-import com.ruoyi.file.domain.FilesTopic;
4
-import com.ruoyi.file.mapper.FilesTopicMapper;
5
-import com.ruoyi.file.service.IFilesTopicService;
6
-import org.springframework.beans.factory.annotation.Autowired;
7
-import org.springframework.stereotype.Service;
8
-
9
-import java.util.List;
10
-
11
-/**
12
- * 专题管理Service业务层处理
13
- * 
14
- * @author cmc
15
- * @date 2022-09-05
16
- */
17
-@Service
18
-public class FilesTopicServiceImpl implements IFilesTopicService 
19
-{
20
-    @Autowired
21
-    private FilesTopicMapper filesTopicMapper;
22
-
23
-    /**
24
-     * 查询专题管理
25
-     * 
26
-     * @param id 专题管理主键
27
-     * @return 专题管理
28
-     */
29
-    @Override
30
-    public FilesTopic selectFilesTopicById(String id)
31
-    {
32
-        return filesTopicMapper.selectFilesTopicById(id);
33
-    }
34
-
35
-    /**
36
-     * 查询专题管理列表
37
-     * 
38
-     * @param filesTopic 专题管理
39
-     * @return 专题管理
40
-     */
41
-    @Override
42
-    public List<FilesTopic> selectFilesTopicList(FilesTopic filesTopic)
43
-    {
44
-        return filesTopicMapper.selectFilesTopicList(filesTopic);
45
-    }
46
-
47
-    /**
48
-     * 新增专题管理
49
-     * 
50
-     * @param filesTopic 专题管理
51
-     * @return 结果
52
-     */
53
-    @Override
54
-    public int insertFilesTopic(FilesTopic filesTopic)
55
-    {
56
-        return filesTopicMapper.insertFilesTopic(filesTopic);
57
-    }
58
-
59
-    /**
60
-     * 修改专题管理
61
-     * 
62
-     * @param filesTopic 专题管理
63
-     * @return 结果
64
-     */
65
-    @Override
66
-    public int updateFilesTopic(FilesTopic filesTopic)
67
-    {
68
-        return filesTopicMapper.updateFilesTopic(filesTopic);
69
-    }
70
-
71
-    /**
72
-     * 批量删除专题管理
73
-     * 
74
-     * @param ids 需要删除的专题管理主键
75
-     * @return 结果
76
-     */
77
-    @Override
78
-    public int deleteFilesTopicByIds(String[] ids)
79
-    {
80
-        return filesTopicMapper.deleteFilesTopicByIds(ids);
81
-    }
82
-
83
-    /**
84
-     * 删除专题管理信息
85
-     * 
86
-     * @param id 专题管理主键
87
-     * @return 结果
88
-     */
89
-    @Override
90
-    public int deleteFilesTopicById(String id)
91
-    {
92
-        return filesTopicMapper.deleteFilesTopicById(id);
93
-    }
94
-}

+ 56
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProject.java View File

@@ -117,6 +117,22 @@ public class CmcProject extends BaseEntity
117 117
     @Excel(name = "撤场时间", width = 30, dateFormat = "yyyy-MM-dd")
118 118
     private Date exitTime;
119 119
 
120
+    /** 范围kml地址 */
121
+    @Excel(name = "范围kml地址")
122
+    private String projectKml;
123
+
124
+    /** 控制点kml地址 */
125
+    @Excel(name = "控制点kml地址")
126
+    private String projectCp;
127
+
128
+    /** kml文件的中心位置经度 */
129
+    @Excel(name = "kml文件的中心位置经度")
130
+    private String kmlLng;
131
+
132
+    /** kml文件的中心位置纬度 */
133
+    @Excel(name = "kml文件的中心位置纬度")
134
+    private String kmlLat;
135
+
120 136
     public void setProjectId(String projectId)
121 137
     {
122 138
         this.projectId = projectId;
@@ -351,6 +367,42 @@ public class CmcProject extends BaseEntity
351 367
     {
352 368
         return qualityInspectorUser;
353 369
     }
370
+    public void setProjectKml(String projectKml)
371
+    {
372
+        this.projectKml = projectKml;
373
+    }
374
+
375
+    public String getProjectKml()
376
+    {
377
+        return projectKml;
378
+    }
379
+    public void setProjectCp(String projectCp)
380
+    {
381
+        this.projectCp = projectCp;
382
+    }
383
+
384
+    public String getProjectCp()
385
+    {
386
+        return projectCp;
387
+    }
388
+    public void setKmlLng(String kmlLng)
389
+    {
390
+        this.kmlLng = kmlLng;
391
+    }
392
+
393
+    public String getKmlLng()
394
+    {
395
+        return kmlLng;
396
+    }
397
+    public void setKmlLat(String kmlLat)
398
+    {
399
+        this.kmlLat = kmlLat;
400
+    }
401
+
402
+    public String getKmlLat()
403
+    {
404
+        return kmlLat;
405
+    }
354 406
 
355 407
     @Override
356 408
     public String toString() {
@@ -375,6 +427,10 @@ public class CmcProject extends BaseEntity
375 427
                 .append("entryTime", getEntryTime())
376 428
                 .append("exitTime", getExitTime())
377 429
                 .append("remark", getRemark())
430
+                .append("projectKml", getProjectKml())
431
+                .append("projectCp", getProjectCp())
432
+                .append("kmlLng", getKmlLng())
433
+                .append("kmlLat", getKmlLat())
378 434
                 .toString();
379 435
     }
380 436
 }

+ 8
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectMapper.java View File

@@ -19,6 +19,14 @@ public interface CmcProjectMapper
19 19
      */
20 20
     public CmcProject selectCmcProjectByProjectId(String projectId);
21 21
 
22
+    /**
23
+     * 查询cmc项目
24
+     *
25
+     * @param projectNumber cmc项目编号
26
+     * @return cmc项目
27
+     */
28
+    public CmcProject selectCmcProjectByProjectNumber(String projectNumber);
29
+
22 30
     /**
23 31
      * 获取项目负责人负责的项目详细信息
24 32
      *

+ 8
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectService.java View File

@@ -20,6 +20,14 @@ public interface ICmcProjectService
20 20
      */
21 21
     public CmcProject selectCmcProjectByProjectId(String projectId);
22 22
 
23
+    /**
24
+     * 查询cmc项目
25
+     *
26
+     * @param projectNumber cmc项目编号
27
+     * @return cmc项目
28
+     */
29
+    public CmcProject selectCmcProjectByProjectNumber(String projectNumber);
30
+
23 31
     /**
24 32
      * 获取项目负责人负责的项目详细信息
25 33
      *

+ 13
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectServiceImpl.java View File

@@ -24,7 +24,7 @@ public class CmcProjectServiceImpl implements ICmcProjectService
24 24
 
25 25
     /**
26 26
      * 查询cmc项目
27
-     * 
27
+     *
28 28
      * @param projectId cmc项目主键
29 29
      * @return cmc项目
30 30
      */
@@ -34,6 +34,18 @@ public class CmcProjectServiceImpl implements ICmcProjectService
34 34
         return cmcProjectMapper.selectCmcProjectByProjectId(projectId);
35 35
     }
36 36
 
37
+    /**
38
+     * 查询cmc项目
39
+     *
40
+     * @param projectNumber cmc项目编号
41
+     * @return cmc项目
42
+     */
43
+    @Override
44
+    public CmcProject selectCmcProjectByProjectNumber(String projectNumber)
45
+    {
46
+        return cmcProjectMapper.selectCmcProjectByProjectNumber(projectNumber);
47
+    }
48
+
37 49
     /**
38 50
      * 获取项目负责人负责的项目详细信息
39 51
      *

+ 8
- 8
oa-back/ruoyi-system/src/main/resources/mapper/file/FilesAchievementMapper.xml View File

@@ -10,7 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
         <result property="projectNumber"    column="project_number"    />
11 11
         <result property="achiName"    column="achi_name"    />
12 12
         <result property="dataYear"    column="data_year"    />
13
-        <result property="scaleOrder"    column="scale_order"    />
13
+        <result property="scaleGrade"    column="scale_grade"    />
14 14
         <result property="resultType"    column="result_type"    />
15 15
         <result property="fileType"    column="file_type"    />
16 16
         <result property="kmlUrl"    column="kml_url"    />
@@ -30,17 +30,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
30 30
     </resultMap>
31 31
 
32 32
     <sql id="selectFilesAchievementVo">
33
-        select id, project_id, achi_name, data_year, scale_order, result_type, file_type, kml_url, kml_lng, kml_lat, work_load, unit, data_source, data_type, storage_id, remark, submit_date, production_time, resolution, geodetic_datum from files_achievement
33
+        select id, project_id, achi_name, data_year, scale_grade, result_type, file_type, kml_url, kml_lng, kml_lat, work_load, unit, data_source, data_type, storage_id, remark, submit_date, production_time, resolution, geodetic_datum from files_achievement
34 34
     </sql>
35 35
 
36 36
     <sql id="Base_Column_List" >
37
-        a.id, a.project_id, p.project_number, a.achi_name, a.data_year, a.scale_order, a.result_type, a.file_type, a.kml_url, a.kml_lng, a.kml_lat, a.work_load, a.unit, a.data_source, a.data_type, a.storage_id, s.storage_address, a.remark, a.submit_date, a.production_time, a.resolution, a.geodetic_datum
37
+        a.id, a.project_id, p.project_number, a.achi_name, a.data_year, a.scale_grade, a.result_type, a.file_type, a.kml_url, a.kml_lng, a.kml_lat, a.work_load, a.unit, a.data_source, a.data_type, a.storage_id, s.storage_address, a.remark, a.submit_date, a.production_time, a.resolution, a.geodetic_datum
38 38
     </sql>
39 39
 
40 40
     <sql id="selectFilesAchievementAllVo">
41 41
         select <include refid="Base_Column_List"/> from files_achievement a
42 42
         left join files_storage s on a.storage_id = s.id
43
-        left join files_project p on a.project_id = p.id
43
+        left join cmc_project p on a.project_id = p.project_id
44 44
     </sql>
45 45
 
46 46
     <select id="selectFilesAchievementList" parameterType="FilesAchievement" resultMap="FilesAchievementResult">
@@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
50 50
             <if test="projectNumber != null  and projectNumber != ''"> and project_number like concat('%', #{projectNumber}, '%')</if>
51 51
             <if test="achiName != null  and achiName != ''"> and achi_name like concat('%', #{achiName}, '%')</if>
52 52
             <if test="dataYear != null  and dataYear != ''"> and data_year like concat('%', #{dataYear}, '%')</if>
53
-            <if test="scaleOrder != null  and scaleOrder != ''"> and scale_order like concat('%', #{scaleOrder}, '%')</if>
53
+            <if test="scaleGrade != null  and scaleGrade != ''"> and scale_grade like concat('%', #{scaleGrade}, '%')</if>
54 54
             <if test="resultType != null  and resultType != ''"> and result_type like concat('%', #{resultType}, '%')</if>
55 55
             <if test="fileType != null  and fileType != ''"> and file_type like concat('%', #{fileType}, '%')</if>
56 56
             <if test="kmlUrl != null  and kmlUrl != ''"> and kml_url like concat('%', #{kmlUrl}, '%')</if>
@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
80 80
             <if test="projectId != null">project_id,</if>
81 81
             <if test="achiName != null">achi_name,</if>
82 82
             <if test="dataYear != null">data_year,</if>
83
-            <if test="scaleOrder != null">scale_order,</if>
83
+            <if test="scaleGrade != null">scale_grade,</if>
84 84
             <if test="resultType != null">result_type,</if>
85 85
             <if test="fileType != null">file_type,</if>
86 86
             <if test="kmlUrl != null">kml_url,</if>
@@ -102,7 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
102 102
             <if test="projectId != null">#{projectId},</if>
103 103
             <if test="achiName != null">#{achiName},</if>
104 104
             <if test="dataYear != null">#{dataYear},</if>
105
-            <if test="scaleOrder != null">#{scaleOrder},</if>
105
+            <if test="scaleGrade != null">#{scaleGrade},</if>
106 106
             <if test="resultType != null">#{resultType},</if>
107 107
             <if test="fileType != null">#{fileType},</if>
108 108
             <if test="kmlUrl != null">#{kmlUrl},</if>
@@ -127,7 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
127 127
             <if test="projectId != null">project_id = #{projectId},</if>
128 128
             <if test="achiName != null">achi_name = #{achiName},</if>
129 129
             <if test="dataYear != null">data_year = #{dataYear},</if>
130
-            <if test="scaleOrder != null">scale_order = #{scaleOrder},</if>
130
+            <if test="scaleGrade != null">scale_grade = #{scaleGrade},</if>
131 131
             <if test="resultType != null">result_type = #{resultType},</if>
132 132
             <if test="fileType != null">file_type = #{fileType},</if>
133 133
             <if test="kmlUrl != null">kml_url = #{kmlUrl},</if>

+ 0
- 326
oa-back/ruoyi-system/src/main/resources/mapper/file/FilesProjectMapper.xml View File

@@ -1,326 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.file.mapper.FilesProjectMapper">
6
-    
7
-    <resultMap type="com.ruoyi.file.domain.FilesProject" id="FilesProjectResult">
8
-        <result property="id"    column="ID"    />
9
-        <result property="projectNumber"    column="project_number"    />
10
-        <result property="projectName"    column="project_name"    />
11
-        <result property="currentProgress"    column="current_progress"    />
12
-        <result property="projectSource"    column="project_source"    />
13
-        <result property="partyA"    column="party_a"    />
14
-        <result property="contactPerson"    column="contact_person"    />
15
-        <result property="telephone"    column="telephone"    />
16
-        <result property="contractCode"    column="contract_code"    />
17
-        <result property="contractNumber"    column="contract_number"    />
18
-        <result property="projectType"    column="project_type"    />
19
-        <result property="expectedPrice"    column="expected_price"    />
20
-        <result property="projectLevel"    column="project_level"    />
21
-        <result property="technicalDirector"    column="technical_director"    />
22
-        <result property="techinicalDesigner"    column="techinical_designer"    />
23
-        <result property="qualityInspector"    column="quality_inspector"    />
24
-        <result property="undertakingSector"    column="undertaking_sector"    />
25
-        <result property="projectLeader"    column="project_leader"    />
26
-        <result property="fund"    column="fund"    />
27
-        <result property="approvalDate"    column="approval_date"    />
28
-        <result property="approachTime"    column="approach_time"    />
29
-        <result property="withdrawalTime"    column="withdrawal_time"    />
30
-        <result property="requiredCompletionDate"    column="required_completion_date"    />
31
-        <result property="submissionDate"    column="submission_date"    />
32
-        <result property="licensePlateNumber"    column="license_plate_number"    />
33
-        <result property="mileage"    column="mileage"    />
34
-        <result property="fuelExpense"    column="fuel_expense"    />
35
-        <result property="mainEquipment"    column="main_equipment"    />
36
-        <result property="projectParticipants"    column="project_participants"    />
37
-        <result property="currentProcessing"    column="current_processing"    />
38
-        <result property="currentHandler"    column="current_handler"    />
39
-        <result property="projectRegistrant"    column="project_registrant"    />
40
-        <result property="registrationDate"    column="registration_date"    />
41
-        <result property="leadingSector"    column="leading_sector"    />
42
-        <result property="year"    column="year"    />
43
-        <result property="topicId"    column="topic_id"    />
44
-        <result property="topicName"    column="topic_name"    />
45
-        <result property="storageId"    column="storage_id"    />
46
-        <result property="storageAddress"    column="storage_address"    />
47
-        <result property="projectKml"    column="project_kml"    />
48
-        <result property="projectCp"    column="project_cp"    />
49
-        <result property="kmlLng"    column="kml_lng"    />
50
-        <result property="kmlLat"    column="kml_lat"    />
51
-        <result property="isFinish"    column="is_finish"    />
52
-    </resultMap>
53
-
54
-    <sql id="selectFilesProjectVo">
55
-        select ID, project_number, project_name, current_progress, project_source, party_a, contact_person, telephone, contract_code, contract_number, project_type, expected_price, project_level, technical_director, techinical_designer, quality_inspector, undertaking_sector, project_leader, fund, approval_date, approach_time, withdrawal_time, required_completion_date, submission_date, license_plate_number, mileage, fuel_expense, main_equipment, project_participants, current_processing, current_handler, project_registrant, registration_date, leading_sector, year, topic_id, storage_id, project_kml, project_cp, kml_lng,kml_lat, is_finish from files_project
56
-    </sql>
57
-    <sql id="Base_Column_List" >
58
-        p.ID, p.project_number, p.project_name, p.current_progress, p.project_source, p.party_a, p.contact_person, p.telephone, p.contract_code, p.contract_number, p.project_type, p.expected_price, p.project_level, p.technical_director, p.techinical_designer, p.quality_inspector, p.undertaking_sector, p.project_leader, p.fund, p.approval_date, p.approach_time, p.withdrawal_time, p.required_completion_date, p.submission_date, p.license_plate_number, p.mileage, p.fuel_expense, p.main_equipment, p.project_participants, p.current_processing, p.current_handler, p.project_registrant, p.registration_date, p.leading_sector, p.year, p.topic_id,t.topic_name, p.storage_id,s.storage_address, p.project_kml, p.project_cp,  p.kml_lng,p.kml_lat, p.is_finish
59
-    </sql>
60
-    <sql id="selectFilesProjectAllVo">
61
-        select <include refid="Base_Column_List"/> from files_project  p
62
-            left join files_storage s on p.storage_id = s.id
63
-            left join files_topic t on p.topic_id = t.id
64
-    </sql>
65
-
66
-    <select id="selectFilesProjectList" parameterType="FilesProject" resultMap="FilesProjectResult">
67
-        <include refid="selectFilesProjectAllVo"/>
68
-        <where>  
69
-            <if test="projectNumber != null  and projectNumber != ''"> and project_number like concat('%', #{projectNumber}, '%')</if>
70
-            <if test="projectName != null  and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
71
-            <if test="currentProgress != null  and currentProgress != ''"> and current_progress = #{currentProgress}</if>
72
-            <if test="projectSource != null  and projectSource != ''"> and project_source like concat('%', #{projectSource}, '%')</if>
73
-            <if test="partyA != null  and partyA != ''"> and party_a like concat('%', #{partyA}, '%')</if>
74
-            <if test="contactPerson != null  and contactPerson != ''"> and contact_person like concat('%', #{contactPerson}, '%')</if>
75
-            <if test="telephone != null  and telephone != ''"> and telephone like concat('%', #{telephone}, '%')</if>
76
-            <if test="contractCode != null  and contractCode != ''"> and contract_code like concat('%', #{contractCode}, '%')</if>
77
-            <if test="contractNumber != null  and contractNumber != ''"> and contract_number like concat('%', #{contractNumber}, '%')</if>
78
-            <if test="projectType != null  and projectType != ''"> and project_type like concat('%', #{projectType}, '%')</if>
79
-            <if test="expectedPrice != null  and expectedPrice != ''"> and expected_price = #{expectedPrice}</if>
80
-            <if test="projectLevel != null  and projectLevel != ''"> and project_level like concat('%', #{projectLevel}, '%')</if>
81
-            <if test="technicalDirector != null  and technicalDirector != ''"> and technical_director like concat('%', #{technicalDirector}, '%')</if>
82
-            <if test="techinicalDesigner != null  and techinicalDesigner != ''"> and techinical_designer like concat('%', #{techinicalDesigner}, '%')</if>
83
-            <if test="qualityInspector != null  and qualityInspector != ''"> and quality_inspector like concat('%', #{qualityInspector}, '%')</if>
84
-            <if test="undertakingSector != null  and undertakingSector != ''"> and undertaking_sector like concat('%', #{undertakingSector}, '%')</if>
85
-            <if test="projectLeader != null  and projectLeader != ''"> and project_leader like concat('%', #{projectLeader}, '%')</if>
86
-            <if test="fund != null  and fund != ''"> and fund = #{fund}</if>
87
-            <if test="approvalDate != null  and approvalDate != ''"> and approval_date = #{approvalDate}</if>
88
-            <if test="approachTime != null  and approachTime != ''"> and approach_time = #{approachTime}</if>
89
-            <if test="withdrawalTime != null  and withdrawalTime != ''"> and withdrawal_time = #{withdrawalTime}</if>
90
-            <if test="requiredCompletionDate != null  and requiredCompletionDate != ''"> and required_completion_date = #{requiredCompletionDate}</if>
91
-            <if test="submissionDate != null  and submissionDate != ''"> and submission_date = #{submissionDate}</if>
92
-            <if test="licensePlateNumber != null  and licensePlateNumber != ''"> and license_plate_number like concat('%', #{licensePlateNumber}, '%')</if>
93
-            <if test="mileage != null  and mileage != ''"> and mileage = #{mileage}</if>
94
-            <if test="fuelExpense != null  and fuelExpense != ''"> and fuel_expense = #{fuelExpense}</if>
95
-            <if test="mainEquipment != null  and mainEquipment != ''"> and main_equipment like concat('%', #{mainEquipment}, '%')</if>
96
-            <if test="projectParticipants != null  and projectParticipants != ''"> and project_participants like concat('%', #{projectParticipants}, '%')</if>
97
-            <if test="currentProcessing != null  and currentProcessing != ''"> and current_processing like concat('%', #{currentProcessing}, '%')</if>
98
-            <if test="currentHandler != null  and currentHandler != ''"> and current_handler like concat('%', #{currentHandler}, '%')</if>
99
-            <if test="projectRegistrant != null  and projectRegistrant != ''"> and project_registrant like concat('%', #{projectRegistrant}, '%')</if>
100
-            <if test="registrationDate != null  and registrationDate != ''"> and registration_date = #{registrationDate}</if>
101
-            <if test="leadingSector != null  and leadingSector != ''"> and leading_sector like concat('%', #{leadingSector}, '%')</if>
102
-            <if test="year != null  and year != ''"> and year like concat('%', #{year}, '%')</if>
103
-            <if test="topicId != null  and topicId != ''"> and topic_id = #{topicId}</if>
104
-            <if test="storageId != null  and storageId != ''"> and storage_id like concat('%', #{storageId}, '%')</if>
105
-            <if test="projectKml != null  and projectKml != ''"> and project_kml like concat('%', #{projectKml}, '%')</if>
106
-            <if test="projectCp != null  and projectCp != ''"> and project_cp like concat('%', #{projectCp}, '%')</if>
107
-            <if test="kmlLng != null  and kmlLng != ''"> and kml_lng like concat('%', #{kmlLng}, '%')</if>
108
-            <if test="kmlLat != null  and kmlLat != ''"> and kml_lat like concat('%', #{kmlLat}, '%')</if>
109
-            <if test="isFinish != null  and isFinish != ''"> and is_finish like concat('%', #{isFinish}, '%')</if>
110
-        </where>
111
-        order by project_number desc
112
-    </select>
113
-    
114
-    <select id="selectFilesProjectById" parameterType="String" resultMap="FilesProjectResult">
115
-        <include refid="selectFilesProjectAllVo"/>
116
-        where p.ID = #{id}
117
-    </select>
118
-    <select id="selectFilesProjectByNumber" parameterType="String" resultMap="FilesProjectResult">
119
-        <include refid="selectFilesProjectAllVo"/>
120
-        where p.project_number = #{projectNumber}
121
-    </select>
122
-    <select id="selectAllCount" resultType="java.lang.Integer">
123
-        select count(1) from files_project  p
124
-        left join files_storage s on p.storage_id = s.id
125
-        left join files_topic t on p.topic_id = t.id
126
-        <where>
127
-            <if test="projectNumber != null  and projectNumber != ''"> and project_number like concat('%', #{projectNumber}, '%')</if>
128
-            <if test="projectName != null  and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
129
-            <if test="currentProgress != null  and currentProgress != ''"> and current_progress = #{currentProgress}</if>
130
-            <if test="projectSource != null  and projectSource != ''"> and project_source like concat('%', #{projectSource}, '%')</if>
131
-            <if test="partyA != null  and partyA != ''"> and party_a like concat('%', #{partyA}, '%')</if>
132
-            <if test="contactPerson != null  and contactPerson != ''"> and contact_person like concat('%', #{contactPerson}, '%')</if>
133
-            <if test="telephone != null  and telephone != ''"> and telephone like concat('%', #{telephone}, '%')</if>
134
-            <if test="contractCode != null  and contractCode != ''"> and contract_code like concat('%', #{contractCode}, '%')</if>
135
-            <if test="contractNumber != null  and contractNumber != ''"> and contract_number like concat('%', #{contractNumber}, '%')</if>
136
-            <if test="projectType != null  and projectType != ''"> and project_type like concat('%', #{projectType}, '%')</if>
137
-            <if test="expectedPrice != null  and expectedPrice != ''"> and expected_price = #{expectedPrice}</if>
138
-            <if test="projectLevel != null  and projectLevel != ''"> and project_level like concat('%', #{projectLevel}, '%')</if>
139
-            <if test="technicalDirector != null  and technicalDirector != ''"> and technical_director like concat('%', #{technicalDirector}, '%')</if>
140
-            <if test="techinicalDesigner != null  and techinicalDesigner != ''"> and techinical_designer like concat('%', #{techinicalDesigner}, '%')</if>
141
-            <if test="qualityInspector != null  and qualityInspector != ''"> and quality_inspector like concat('%', #{qualityInspector}, '%')</if>
142
-            <if test="undertakingSector != null  and undertakingSector != ''"> and undertaking_sector like concat('%', #{undertakingSector}, '%')</if>
143
-            <if test="projectLeader != null  and projectLeader != ''"> and project_leader like concat('%', #{projectLeader}, '%')</if>
144
-            <if test="fund != null  and fund != ''"> and fund = #{fund}</if>
145
-            <if test="approvalDate != null  and approvalDate != ''"> and approval_date = #{approvalDate}</if>
146
-            <if test="approachTime != null  and approachTime != ''"> and approach_time = #{approachTime}</if>
147
-            <if test="withdrawalTime != null  and withdrawalTime != ''"> and withdrawal_time = #{withdrawalTime}</if>
148
-            <if test="requiredCompletionDate != null  and requiredCompletionDate != ''"> and required_completion_date = #{requiredCompletionDate}</if>
149
-            <if test="submissionDate != null  and submissionDate != ''"> and submission_date = #{submissionDate}</if>
150
-            <if test="licensePlateNumber != null  and licensePlateNumber != ''"> and license_plate_number like concat('%', #{licensePlateNumber}, '%')</if>
151
-            <if test="mileage != null  and mileage != ''"> and mileage = #{mileage}</if>
152
-            <if test="fuelExpense != null  and fuelExpense != ''"> and fuel_expense = #{fuelExpense}</if>
153
-            <if test="mainEquipment != null  and mainEquipment != ''"> and main_equipment like concat('%', #{mainEquipment}, '%')</if>
154
-            <if test="projectParticipants != null  and projectParticipants != ''"> and project_participants like concat('%', #{projectParticipants}, '%')</if>
155
-            <if test="currentProcessing != null  and currentProcessing != ''"> and current_processing like concat('%', #{currentProcessing}, '%')</if>
156
-            <if test="currentHandler != null  and currentHandler != ''"> and current_handler like concat('%', #{currentHandler}, '%')</if>
157
-            <if test="projectRegistrant != null  and projectRegistrant != ''"> and project_registrant like concat('%', #{projectRegistrant}, '%')</if>
158
-            <if test="registrationDate != null  and registrationDate != ''"> and registration_date = #{registrationDate}</if>
159
-            <if test="leadingSector != null  and leadingSector != ''"> and leading_sector like concat('%', #{leadingSector}, '%')</if>
160
-            <if test="year != null  and year != ''"> and year like concat('%', #{year}, '%')</if>
161
-            <if test="topicId != null  and topicId != ''"> and topic_id = #{topicId}</if>
162
-            <if test="storageId != null  and storageId != ''"> and storage_id like concat('%', #{storageId}, '%')</if>
163
-            <if test="projectKml != null  and projectKml != ''"> and project_kml like concat('%', #{projectKml}, '%')</if>
164
-            <if test="projectCp != null  and projectCp != ''"> and project_cp like concat('%', #{projectCp}, '%')</if>
165
-            <if test="kmlLng != null  and kmlLng != ''"> and kml_lng like concat('%', #{kmlLng}, '%')</if>
166
-            <if test="kmlLat != null  and kmlLat != ''"> and kml_lat like concat('%', #{kmlLat}, '%')</if>
167
-            <if test="isFinish != null  and isFinish != ''"> and is_finish like concat('%', #{isFinish}, '%')</if>
168
-        </where>
169
-    </select>
170
-    <select id="selectFilesProjectByNumbers" resultMap="FilesProjectResult" parameterType="String">
171
-        <include refid="selectFilesProjectVo"/> where project_number in
172
-        <foreach item="projectNumber" collection="array" open="(" separator="," close=")">
173
-            #{projectNumber}
174
-        </foreach>
175
-    </select>
176
-    <insert id="insertFilesProject" parameterType="FilesProject">
177
-        insert into files_project
178
-        <trim prefix="(" suffix=")" suffixOverrides=",">
179
-            <if test="id != null">ID,</if>
180
-            <if test="projectNumber != null">project_number,</if>
181
-            <if test="projectName != null">project_name,</if>
182
-            <if test="currentProgress != null">current_progress,</if>
183
-            <if test="projectSource != null">project_source,</if>
184
-            <if test="partyA != null">party_a,</if>
185
-            <if test="contactPerson != null">contact_person,</if>
186
-            <if test="telephone != null">telephone,</if>
187
-            <if test="contractCode != null">contract_code,</if>
188
-            <if test="contractNumber != null">contract_number,</if>
189
-            <if test="projectType != null">project_type,</if>
190
-            <if test="expectedPrice != null">expected_price,</if>
191
-            <if test="projectLevel != null">project_level,</if>
192
-            <if test="technicalDirector != null">technical_director,</if>
193
-            <if test="techinicalDesigner != null">techinical_designer,</if>
194
-            <if test="qualityInspector != null">quality_inspector,</if>
195
-            <if test="undertakingSector != null">undertaking_sector,</if>
196
-            <if test="projectLeader != null">project_leader,</if>
197
-            <if test="fund != null">fund,</if>
198
-            <if test="approvalDate != null">approval_date,</if>
199
-            <if test="approachTime != null">approach_time,</if>
200
-            <if test="withdrawalTime != null">withdrawal_time,</if>
201
-            <if test="requiredCompletionDate != null">required_completion_date,</if>
202
-            <if test="submissionDate != null">submission_date,</if>
203
-            <if test="licensePlateNumber != null">license_plate_number,</if>
204
-            <if test="mileage != null">mileage,</if>
205
-            <if test="fuelExpense != null">fuel_expense,</if>
206
-            <if test="mainEquipment != null">main_equipment,</if>
207
-            <if test="projectParticipants != null">project_participants,</if>
208
-            <if test="currentProcessing != null">current_processing,</if>
209
-            <if test="currentHandler != null">current_handler,</if>
210
-            <if test="projectRegistrant != null">project_registrant,</if>
211
-            <if test="registrationDate != null">registration_date,</if>
212
-            <if test="leadingSector != null">leading_sector,</if>
213
-            <if test="year != null">year,</if>
214
-            <if test="topicId != null">topic_id,</if>
215
-            <if test="storageId != null">storage_id,</if>
216
-            <if test="projectKml != null">project_kml,</if>
217
-            <if test="projectCp != null">project_cp,</if>
218
-            <if test="kmlLng != null">kml_lng,</if>
219
-            <if test="kmlLat != null">kml_lat,</if>
220
-            <if test="isFinish != null">is_finish,</if>
221
-         </trim>
222
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
223
-            <if test="id != null">#{id},</if>
224
-            <if test="projectNumber != null">#{projectNumber},</if>
225
-            <if test="projectName != null">#{projectName},</if>
226
-            <if test="currentProgress != null">#{currentProgress},</if>
227
-            <if test="projectSource != null">#{projectSource},</if>
228
-            <if test="partyA != null">#{partyA},</if>
229
-            <if test="contactPerson != null">#{contactPerson},</if>
230
-            <if test="telephone != null">#{telephone},</if>
231
-            <if test="contractCode != null">#{contractCode},</if>
232
-            <if test="contractNumber != null">#{contractNumber},</if>
233
-            <if test="projectType != null">#{projectType},</if>
234
-            <if test="expectedPrice != null">#{expectedPrice},</if>
235
-            <if test="projectLevel != null">#{projectLevel},</if>
236
-            <if test="technicalDirector != null">#{technicalDirector},</if>
237
-            <if test="techinicalDesigner != null">#{techinicalDesigner},</if>
238
-            <if test="qualityInspector != null">#{qualityInspector},</if>
239
-            <if test="undertakingSector != null">#{undertakingSector},</if>
240
-            <if test="projectLeader != null">#{projectLeader},</if>
241
-            <if test="fund != null">#{fund},</if>
242
-            <if test="approvalDate != null">#{approvalDate},</if>
243
-            <if test="approachTime != null">#{approachTime},</if>
244
-            <if test="withdrawalTime != null">#{withdrawalTime},</if>
245
-            <if test="requiredCompletionDate != null">#{requiredCompletionDate},</if>
246
-            <if test="submissionDate != null">#{submissionDate},</if>
247
-            <if test="licensePlateNumber != null">#{licensePlateNumber},</if>
248
-            <if test="mileage != null">#{mileage},</if>
249
-            <if test="fuelExpense != null">#{fuelExpense},</if>
250
-            <if test="mainEquipment != null">#{mainEquipment},</if>
251
-            <if test="projectParticipants != null">#{projectParticipants},</if>
252
-            <if test="currentProcessing != null">#{currentProcessing},</if>
253
-            <if test="currentHandler != null">#{currentHandler},</if>
254
-            <if test="projectRegistrant != null">#{projectRegistrant},</if>
255
-            <if test="registrationDate != null">#{registrationDate},</if>
256
-            <if test="leadingSector != null">#{leadingSector},</if>
257
-            <if test="year != null">#{year},</if>
258
-            <if test="topicId != null">#{topicId},</if>
259
-            <if test="storageId != null">#{storageId},</if>
260
-            <if test="projectKml != null">#{projectKml},</if>
261
-            <if test="projectCp != null">#{projectCp},</if>
262
-            <if test="kmlLng != null">#{kmlLng},</if>
263
-            <if test="kmlLat != null">#{kmlLat},</if>
264
-            <if test="isFinish != null">#{isFinish},</if>
265
-         </trim>
266
-    </insert>
267
-
268
-    <update id="updateFilesProject" parameterType="FilesProject">
269
-        update files_project
270
-        <trim prefix="SET" suffixOverrides=",">
271
-            <if test="projectNumber != null">project_number = #{projectNumber},</if>
272
-            <if test="projectName != null">project_name = #{projectName},</if>
273
-            <if test="currentProgress != null">current_progress = #{currentProgress},</if>
274
-            <if test="projectSource != null">project_source = #{projectSource},</if>
275
-            <if test="partyA != null">party_a = #{partyA},</if>
276
-            <if test="contactPerson != null">contact_person = #{contactPerson},</if>
277
-            <if test="telephone != null">telephone = #{telephone},</if>
278
-            <if test="contractCode != null">contract_code = #{contractCode},</if>
279
-            <if test="contractNumber != null">contract_number = #{contractNumber},</if>
280
-            <if test="projectType != null">project_type = #{projectType},</if>
281
-            <if test="expectedPrice != null">expected_price = #{expectedPrice},</if>
282
-            <if test="projectLevel != null">project_level = #{projectLevel},</if>
283
-            <if test="technicalDirector != null">technical_director = #{technicalDirector},</if>
284
-            <if test="techinicalDesigner != null">techinical_designer = #{techinicalDesigner},</if>
285
-            <if test="qualityInspector != null">quality_inspector = #{qualityInspector},</if>
286
-            <if test="undertakingSector != null">undertaking_sector = #{undertakingSector},</if>
287
-            <if test="projectLeader != null">project_leader = #{projectLeader},</if>
288
-            <if test="fund != null">fund = #{fund},</if>
289
-            <if test="approvalDate != null">approval_date = #{approvalDate},</if>
290
-            <if test="approachTime != null">approach_time = #{approachTime},</if>
291
-            <if test="withdrawalTime != null">withdrawal_time = #{withdrawalTime},</if>
292
-            <if test="requiredCompletionDate != null">required_completion_date = #{requiredCompletionDate},</if>
293
-            <if test="submissionDate != null">submission_date = #{submissionDate},</if>
294
-            <if test="licensePlateNumber != null">license_plate_number = #{licensePlateNumber},</if>
295
-            <if test="mileage != null">mileage = #{mileage},</if>
296
-            <if test="fuelExpense != null">fuel_expense = #{fuelExpense},</if>
297
-            <if test="mainEquipment != null">main_equipment = #{mainEquipment},</if>
298
-            <if test="projectParticipants != null">project_participants = #{projectParticipants},</if>
299
-            <if test="currentProcessing != null">current_processing = #{currentProcessing},</if>
300
-            <if test="currentHandler != null">current_handler = #{currentHandler},</if>
301
-            <if test="projectRegistrant != null">project_registrant = #{projectRegistrant},</if>
302
-            <if test="registrationDate != null">registration_date = #{registrationDate},</if>
303
-            <if test="leadingSector != null">leading_sector = #{leadingSector},</if>
304
-            <if test="year != null">year = #{year},</if>
305
-            <if test="topicId != null">topic_id = #{topicId},</if>
306
-            <if test="storageId != null">storage_id = #{storageId},</if>
307
-            <if test="projectKml != null">project_kml = #{projectKml},</if>
308
-            <if test="projectCp != null">project_cp = #{projectCp},</if>
309
-            <if test="kmlLng != null">kml_lng = #{kmlLng},</if>
310
-            <if test="kmlLat != null">kml_lat = #{kmlLat},</if>
311
-            <if test="isFinish != null">is_finish = #{isFinish},</if>
312
-        </trim>
313
-        where ID = #{id}
314
-    </update>
315
-
316
-    <delete id="deleteFilesProjectById" parameterType="String">
317
-        delete from files_project where ID = #{id}
318
-    </delete>
319
-
320
-    <delete id="deleteFilesProjectByIds" parameterType="String">
321
-        delete from files_project where ID in 
322
-        <foreach item="id" collection="array" open="(" separator="," close=")">
323
-            #{id}
324
-        </foreach>
325
-    </delete>
326
-</mapper>

+ 0
- 58
oa-back/ruoyi-system/src/main/resources/mapper/file/FilesTopicMapper.xml View File

@@ -1,58 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper
3
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
-<mapper namespace="com.ruoyi.file.mapper.FilesTopicMapper">
6
-    
7
-    <resultMap type="FilesTopic" id="FilesTopicResult">
8
-        <result property="id"    column="id"    />
9
-        <result property="topicName"    column="topic_name"    />
10
-    </resultMap>
11
-
12
-    <sql id="selectFilesTopicVo">
13
-        select id, topic_name from files_topic
14
-    </sql>
15
-
16
-    <select id="selectFilesTopicList" parameterType="FilesTopic" resultMap="FilesTopicResult">
17
-        <include refid="selectFilesTopicVo"/>
18
-        <where>  
19
-            <if test="topicName != null  and topicName != ''"> and topic_name like concat('%', #{topicName}, '%')</if>
20
-        </where>
21
-    </select>
22
-    
23
-    <select id="selectFilesTopicById" parameterType="String" resultMap="FilesTopicResult">
24
-        <include refid="selectFilesTopicVo"/>
25
-        where id = #{id}
26
-    </select>
27
-        
28
-    <insert id="insertFilesTopic" parameterType="FilesTopic">
29
-        insert into files_topic
30
-        <trim prefix="(" suffix=")" suffixOverrides=",">
31
-            <if test="id != null">id,</if>
32
-            <if test="topicName != null">topic_name,</if>
33
-         </trim>
34
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
35
-            <if test="id != null">#{id},</if>
36
-            <if test="topicName != null">#{topicName},</if>
37
-         </trim>
38
-    </insert>
39
-
40
-    <update id="updateFilesTopic" parameterType="FilesTopic">
41
-        update files_topic
42
-        <trim prefix="SET" suffixOverrides=",">
43
-            <if test="topicName != null">topic_name = #{topicName},</if>
44
-        </trim>
45
-        where id = #{id}
46
-    </update>
47
-
48
-    <delete id="deleteFilesTopicById" parameterType="String">
49
-        delete from files_topic where id = #{id}
50
-    </delete>
51
-
52
-    <delete id="deleteFilesTopicByIds" parameterType="String">
53
-        delete from files_topic where id in 
54
-        <foreach item="id" collection="array" open="(" separator="," close=")">
55
-            #{id}
56
-        </foreach>
57
-    </delete>
58
-</mapper>

+ 23
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml View File

@@ -25,6 +25,10 @@
25 25
         <result property="entryTime"    column="entry_time"    />
26 26
         <result property="exitTime"    column="exit_time"    />
27 27
         <result property="remark"    column="remark"    />
28
+        <result property="projectKml"    column="project_kml"    />
29
+        <result property="projectCp"    column="project_cp"    />
30
+        <result property="kmlLng"    column="kml_lng"    />
31
+        <result property="kmlLat"    column="kml_lat"    />
28 32
         <association property="projectLeaderUser"    javaType="SysUser"         resultMap="ProjectLeaderResult" />
29 33
         <association property="projectRegistrantUser"    javaType="SysUser"         resultMap="ProjectRegistrantResult" />
30 34
         <association property="technicalDirectorUser"    javaType="SysUser"         resultMap="TechnicalDirectorResult" />
@@ -54,7 +58,8 @@
54 58
     <sql id="selectCmcProjectVo">
55 59
         select p.project_id, p.project_number, p.project_name, p.project_leader, u.nick_name as leader_nick_name, p.is_finished, p.project_source, p.party_a, p.contact_person, p.telephone,
56 60
                p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.register_time, p.plan_time,
57
-               p.entry_time, p.exit_time, p.remark, c.technical_director, u2.nick_name as director_nick_name, c.quality_inspector, u3.nick_name as inspector_nick_name, u3.user_id as inspector_user_id from cmc_project as p
61
+               p.entry_time, p.exit_time, p.remark, c.technical_director, u2.nick_name as director_nick_name, c.quality_inspector, u3.nick_name as inspector_nick_name, u3.user_id as inspector_user_id,
62
+               p.project_kml, p.project_cp, p.kml_lng, p.kml_lat from cmc_project as p
58 63
         left join sys_user as u on u.user_id = p.project_leader
59 64
         left join sys_user as u1 on u1.user_id = p.project_registrant
60 65
         left join cmc_technical as c on c.project_id = p.project_id
@@ -90,6 +95,11 @@
90 95
         where p.project_id = #{projectId}
91 96
     </select>
92 97
 
98
+    <select id="selectCmcProjectByProjectNumber" parameterType="String" resultMap="CmcProjectResult">
99
+        <include refid="selectCmcProjectVo"/>
100
+        where p.project_number = #{projectNumber}
101
+    </select>
102
+
93 103
     <insert id="insertCmcProject" parameterType="CmcProject">
94 104
         insert into cmc_project
95 105
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -113,6 +123,10 @@
113 123
             <if test="entryTime != null">entry_time,</if>
114 124
             <if test="exitTime != null">exit_time,</if>
115 125
             <if test="remark != null">remark,</if>
126
+            <if test="projectKml != null">project_kml,</if>
127
+            <if test="projectCp != null">project_cp,</if>
128
+            <if test="kmlLng != null">kml_lng,</if>
129
+            <if test="kmlLat != null">kml_lat,</if>
116 130
         </trim>
117 131
         <trim prefix="values (" suffix=")" suffixOverrides=",">
118 132
             <if test="projectId != null">#{projectId},</if>
@@ -135,6 +149,10 @@
135 149
             <if test="entryTime != null">#{entryTime},</if>
136 150
             <if test="exitTime != null">#{exitTime},</if>
137 151
             <if test="remark != null">#{remark},</if>
152
+            <if test="projectKml != null">#{projectKml},</if>
153
+            <if test="projectCp != null">#{projectCp},</if>
154
+            <if test="kmlLng != null">#{kmlLng},</if>
155
+            <if test="kmlLat != null">#{kmlLat},</if>
138 156
         </trim>
139 157
     </insert>
140 158
 
@@ -160,6 +178,10 @@
160 178
             <if test="entryTime != null">entry_time = #{entryTime},</if>
161 179
             <if test="exitTime != null">exit_time = #{exitTime},</if>
162 180
             <if test="remark != null">remark = #{remark},</if>
181
+            <if test="projectKml != null">project_kml = #{projectKml},</if>
182
+            <if test="projectCp != null">project_cp = #{projectCp},</if>
183
+            <if test="kmlLng != null">kml_lng = #{kmlLng},</if>
184
+            <if test="kmlLat != null">kml_lat = #{kmlLat},</if>
163 185
         </trim>
164 186
         where project_id = #{projectId}
165 187
     </update>

+ 59
- 0
oa-back/sql/cmc_project.sql View File

@@ -0,0 +1,59 @@
1
+/*
2
+ Navicat Premium Data Transfer
3
+
4
+ Source Server         : mysql
5
+ Source Server Type    : MySQL
6
+ Source Server Version : 80028
7
+ Source Host           : localhost:3306
8
+ Source Schema         : cmc_oa
9
+
10
+ Target Server Type    : MySQL
11
+ Target Server Version : 80028
12
+ File Encoding         : 65001
13
+
14
+ Date: 10/05/2024 17:08:11
15
+*/
16
+
17
+SET NAMES utf8mb4;
18
+SET FOREIGN_KEY_CHECKS = 0;
19
+
20
+-- ----------------------------
21
+-- Table structure for cmc_project
22
+-- ----------------------------
23
+DROP TABLE IF EXISTS `cmc_project`;
24
+CREATE TABLE `cmc_project`  (
25
+  `project_id` char(19) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '项目id',
26
+  `project_number` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目编号',
27
+  `project_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目名称',
28
+  `project_leader` bigint NULL DEFAULT NULL COMMENT '项目负责人',
29
+  `is_finished` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目状态(0进行中、1已结束)',
30
+  `project_source` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目来源(0院内、1院外)',
31
+  `party_a` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '甲方单位',
32
+  `contact_person` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系人',
33
+  `telephone` char(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系电话',
34
+  `project_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目类型',
35
+  `project_level` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目级别(0一般项目、1重大项目)',
36
+  `project_registrant` bigint NULL DEFAULT NULL COMMENT '项目登记人',
37
+  `undertaking_dept` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '承担部门',
38
+  `project_planner` bigint NULL DEFAULT NULL COMMENT '项目安排人',
39
+  `site_leader` bigint NULL DEFAULT NULL COMMENT '现场负责人',
40
+  `organize_document` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '组织交底文档',
41
+  `register_time` date NULL DEFAULT NULL COMMENT '项目登记时间',
42
+  `organize_time` date NULL DEFAULT NULL COMMENT '组织交底时间',
43
+  `plan_time` date NULL DEFAULT NULL COMMENT '项目安排时间',
44
+  `entry_time` date NULL DEFAULT NULL COMMENT '进场时间',
45
+  `exit_time` date NULL DEFAULT NULL COMMENT '撤场时间',
46
+  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目备注',
47
+  `topic_id` char(19) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '所属专题id',
48
+  `project_kml` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '范围kml地址',
49
+  `project_cp` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '控制点kml地址',
50
+  `kml_lng` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'kml文件的中心位置经度',
51
+  `kml_lat` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'kml文件的中心位置纬度',
52
+  PRIMARY KEY (`project_id`) USING BTREE
53
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'cmc项目表' ROW_FORMAT = Dynamic;
54
+
55
+-- ----------------------------
56
+-- Records of cmc_project
57
+-- ----------------------------
58
+
59
+SET FOREIGN_KEY_CHECKS = 1;

+ 6021
- 120
oa-back/sql/sql.sql
File diff suppressed because it is too large
View File


+ 70
- 0
oa-ui/src/api/file/achievement.js View File

@@ -0,0 +1,70 @@
1
+/*
2
+ * @Descripttion: 
3
+ * @version: 
4
+ * @Author: ysh
5
+ * @Date: 2022-09-06 22:30:46
6
+ * @LastEditors: Please set LastEditors
7
+ * @LastEditTime: 2022-09-21 17:33:35
8
+ */
9
+import request from '@/utils/request'
10
+
11
+// 点击项目获取对应的成果
12
+export function getAchievementByProject(params){
13
+  return request({
14
+    url: '/file/achievement/getAchievementByProject',
15
+    method: 'get',
16
+    params: params
17
+  })
18
+}
19
+// 查询成果列表
20
+export function listAchievement(params){
21
+  return request({
22
+    url: '/file/achievement/list',
23
+    method: 'get',
24
+    params: params
25
+  })
26
+}
27
+// 新增成果列表
28
+export function addAchievement(data) {
29
+  return request({
30
+    url: '/file/achievement',
31
+    headers:{
32
+			'Content-Type': 'multipart/form-data'
33
+		},
34
+    method: 'post',
35
+    data: data
36
+  })
37
+}
38
+// 修改成果列表
39
+export function updateAchievement(data) {
40
+  return request({
41
+    url: '/file/achievement/edit',
42
+    headers:{
43
+			'Content-Type': 'multipart/form-data'
44
+		},
45
+    method: 'post',
46
+    data: data
47
+  })
48
+}
49
+
50
+// 删除成果列表
51
+export function delAchievement(id) {
52
+  return request({
53
+    url: '/file/achievement/' + id,
54
+    method: 'delete'
55
+  })
56
+}
57
+
58
+// 上传成果表EXCEL
59
+export function uploadAchievementSheet(params){
60
+  return request({
61
+    url: '/file/achievement/uploadSheet',
62
+    method: 'post',
63
+    params: params
64
+  })
65
+}
66
+
67
+// 导出成果表
68
+export function exportAchievementSheet(){
69
+  
70
+}

+ 92
- 0
oa-ui/src/api/file/project.js View File

@@ -0,0 +1,92 @@
1
+/*
2
+ * @Descripttion: 
3
+ * @version: 
4
+ * @Author: ysh
5
+ * @Date: 2022-09-05 16:56:28
6
+ * @LastEditors: wrh
7
+ * @LastEditTime: 2024-05-10 15:40:55
8
+ */
9
+import request from '@/utils/request'
10
+
11
+// 查询项目管理列表
12
+export function listProject(query) {
13
+  return request({
14
+    url: '/file/project/list',
15
+    method: 'get',
16
+    params: query
17
+  })
18
+}
19
+
20
+// 查询项目管理详细
21
+export function getProject(id) {
22
+  return request({
23
+    url: '/file/project/' + id,
24
+    method: 'get'
25
+  })
26
+}
27
+
28
+// 新增项目管理
29
+export function addProject(data) {
30
+  return request({
31
+    url: '/file/project',
32
+    headers: {
33
+      'Content-Type': 'multipart/form-data'
34
+    },
35
+    method: 'post',
36
+    data: data
37
+  })
38
+}
39
+
40
+// 修改项目管理
41
+export function updateProject(data) {
42
+  return request({
43
+    url: '/file/project/edit',
44
+    headers: {
45
+      'Content-Type': 'multipart/form-data'
46
+    },
47
+    method: 'post',
48
+    data: data
49
+  })
50
+}
51
+
52
+// 删除项目管理
53
+export function delProject(id) {
54
+  return request({
55
+    url: '/file/project/' + id,
56
+    method: 'delete'
57
+  })
58
+}
59
+
60
+// 上传项目KML文件
61
+export function uploadProjectKml(params) {
62
+  return request({
63
+    url: '/file/project/uploadKml',
64
+    method: 'post',
65
+    params: params
66
+  })
67
+}
68
+
69
+// 上传项目excel文件
70
+export function uploadProjectSheet(params) {
71
+  return request({
72
+    url: '/file/project/uploadSheet',
73
+    method: 'post',
74
+    params: params
75
+  })
76
+}
77
+
78
+export function downloadTemplate(url) {
79
+  return request({
80
+    url: url,
81
+    method: 'get',
82
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
83
+    responseType: 'blob'
84
+  })
85
+}
86
+
87
+export function getProjectKml(url) {
88
+  return request({
89
+    url: url,
90
+    method: 'get',
91
+  })
92
+}

+ 42
- 0
oa-ui/src/api/file/storage.js View File

@@ -0,0 +1,42 @@
1
+/*
2
+ * @Descripttion: 
3
+ * @version: 
4
+ * @Author: ysh
5
+ * @Date: 2022-09-09 10:32:51
6
+ * @LastEditors: Please set LastEditors
7
+ * @LastEditTime: 2022-09-15 16:08:22
8
+ */
9
+import request from '@/utils/request'
10
+// 查询存储地址列表
11
+export function listStorage(query) {
12
+  return request({
13
+    url: '/file/storage/list',
14
+    method: 'get',
15
+    params: query
16
+  })
17
+}
18
+
19
+// 新增存储地址列表
20
+export function addStorage(data) {
21
+  return request({
22
+    url: '/file/storage',
23
+    method: 'post',
24
+    data: data
25
+  })
26
+}
27
+// 修改存储地址列表
28
+export function updateStorage(data) {
29
+  return request({
30
+    url: '/file/storage',
31
+    method: 'put',
32
+    data: data
33
+  })
34
+}
35
+
36
+// 删除存储地址列表
37
+export function delStorage(id) {
38
+  return request({
39
+    url: '/file/storage/' + id,
40
+    method: 'delete'
41
+  })
42
+}

BIN
oa-ui/src/assets/images/gis/ArcGIS.PNG View File


BIN
oa-ui/src/assets/images/gis/bmstgd1-active.png View File


BIN
oa-ui/src/assets/images/gis/bmstgd1.png View File


BIN
oa-ui/src/assets/images/gis/dltwd-active.png View File


BIN
oa-ui/src/assets/images/gis/dltwd.png View File


BIN
oa-ui/src/assets/images/gis/dxd1-active.png View File


BIN
oa-ui/src/assets/images/gis/dxd1.png View File


BIN
oa-ui/src/assets/images/gis/dxd2-active.png View File


BIN
oa-ui/src/assets/images/gis/dxd2.png View File


BIN
oa-ui/src/assets/images/gis/kzd-active.png View File


BIN
oa-ui/src/assets/images/gis/kzd.png View File


BIN
oa-ui/src/assets/images/gis/mstgd-active.png View File


BIN
oa-ui/src/assets/images/gis/mstgd.png View File


BIN
oa-ui/src/assets/images/gis/mstgd1-active.png View File


BIN
oa-ui/src/assets/images/gis/mstgd1.png View File


BIN
oa-ui/src/assets/images/gis/sjd-active.png View File


BIN
oa-ui/src/assets/images/gis/sjd.png View File


BIN
oa-ui/src/assets/images/gis/szd-active.png View File


BIN
oa-ui/src/assets/images/gis/szd.png View File


BIN
oa-ui/src/assets/images/gis/wxdwdjd-active.png View File


BIN
oa-ui/src/assets/images/gis/wxdwdjd.png View File


BIN
oa-ui/src/assets/images/gis/wxdwlxyxzd-active.png View File


BIN
oa-ui/src/assets/images/gis/wxdwlxyxzd.png View File


BIN
oa-ui/src/assets/images/gis/xsjd1-active.png View File


BIN
oa-ui/src/assets/images/gis/xsjd1.png View File


BIN
oa-ui/src/assets/images/gis/xsjd2-active.png View File


BIN
oa-ui/src/assets/images/gis/xsjd2.png View File


BIN
oa-ui/src/assets/images/gis/中科星图影像.png View File


BIN
oa-ui/src/assets/images/gis/天地图.png View File


BIN
oa-ui/src/assets/images/gis/天地图地形图.png View File


BIN
oa-ui/src/assets/images/gis/矢量图.png View File


BIN
oa-ui/src/assets/images/gis/谷歌影像.png View File


BIN
oa-ui/src/assets/images/gis/高德.PNG View File


+ 764
- 0
oa-ui/src/views/file/filesProject/achievement.vue View File

@@ -0,0 +1,764 @@
1
+<!--
2
+ * @Descripttion: 
3
+ * @version: 
4
+ * @Author: ysh
5
+ * @Date: 2022-09-08 17:16:12
6
+ * @LastEditors: wrh
7
+ * @LastEditTime: 2024-05-10 17:52:15
8
+-->
9
+<template>
10
+  <div>
11
+    <!-- 搜索栏 -->
12
+    <el-row>
13
+      <el-form :model="queryParams" ref="queryRef" :inline="true" label-width="90px">
14
+        <el-form-item label="项目编号" prop="projectNumber">
15
+          <el-input v-model="queryParams.projectNumber" placeholder="请输入项目编号" clearable @keyup.enter="handleQuery" />
16
+        </el-form-item>
17
+        <el-form-item label="成果名称" prop="achiName">
18
+          <el-input v-model="queryParams.achiName" placeholder="请输入成果名称" clearable @keyup.enter="handleQuery" />
19
+        </el-form-item>
20
+        <el-form-item label="数据年份" prop="dataYear">
21
+          <el-input v-model="queryParams.dataYear" placeholder="请输入数据年份" clearable @keyup.enter="handleQuery" />
22
+        </el-form-item>
23
+        <el-form-item label="成果类型" prop="resultType">
24
+          <el-input v-model="queryParams.resultType" placeholder="请输入成果类型" clearable @keyup.enter="handleQuery" />
25
+        </el-form-item>
26
+        <el-form-item>
27
+          <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
28
+        </el-form-item>
29
+      </el-form>
30
+    </el-row>
31
+    <!-- 操作栏 -->
32
+    <el-row style="margin-bottom: 10px;">
33
+      <el-button type="primary" size="small" icon="el-icon-plus" @click="handleAddAchievement"
34
+        v-hasPermi="['file:achievement:add']">新增成果</el-button>
35
+      <el-button type="success" size="small" icon="el-icon-download" @click="handleExprot"
36
+        v-hasPermi="['file:achievement:export']">导出</el-button>
37
+      <el-button type="warning" size="small" icon="el-icon-upload" @click="uploadAchievement"
38
+        v-hasPermi="['file:achievement:add']">上传成果表</el-button>
39
+      <el-button type="danger" size="small" icon="el-icon-delete" :disabled="multiple" @click="handleDeleteMany"
40
+        v-hasPermi="['file:achievement:edit']">批量删除
41
+      </el-button>
42
+    </el-row>
43
+    <!-- 表格 -->
44
+    <el-row>
45
+      <el-table :data="achiTableData" style="width: 100%" stripe v-loading="loading" :row-key="getRowKeys"
46
+        @selection-change="handleSelectionChange">
47
+        <el-table-column type="selection" width="50px" :reserve-selection="true" />
48
+        <el-table-column type="index" label="序号" width="50px" align="center" />
49
+        <el-table-column prop="projectNumber" label="项目编号" align="center" />
50
+        <el-table-column prop="achiName" label="成果名称" width="200px" align="center" />
51
+        <el-table-column prop="dataYear" label="数据年份" align="center">
52
+          <!-- <template #default="scope">
53
+              {{ parseInt(scope.row.dataYear)}}
54
+            </template> -->
55
+        </el-table-column>
56
+        <el-table-column prop="resultType" label="成果类型" align="center" />
57
+        <el-table-column prop="scaleGrade" label="比例尺或等级" align="center" />
58
+        <el-table-column prop="fileType" label="文件类型" align="center" />
59
+        <el-table-column prop="workLoad" label="工作量" align="center" />
60
+        <el-table-column prop="unit" label="单位" align="center" />
61
+        <el-table-column prop="dataSource" label="数据来源" align="center" />
62
+        <el-table-column prop="dataType" label="数据类型" align="center" />
63
+        <el-table-column prop="storageAddress" label="存储地址" align="center" />
64
+        <!-- <el-table-column prop="kmlUrl" label="KML地址" align="center" /> -->
65
+        <el-table-column label="有无KML" align="center" :formatter="formatterKmlurl"></el-table-column>
66
+        <el-table-column prop="remark" label="备注" align="center" />
67
+        <el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width">
68
+          <template #default="scope">
69
+            <el-tooltip content="修改" placement="top">
70
+              <el-button type="text" icon="el-icon-edit-outline" @click="handleUpdate(scope.row)" v-hasPermi="['file:achievement:edit']">
71
+              </el-button>
72
+            </el-tooltip>
73
+            <el-tooltip content="删除" placement="top">
74
+              <el-button type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
75
+                v-hasPermi="['file:achievement:remove']">
76
+              </el-button>
77
+            </el-tooltip>
78
+          </template>
79
+        </el-table-column>
80
+      </el-table>
81
+      <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
82
+        @pagination="getAchiList" />
83
+    </el-row>
84
+    <!-- 新增成果表 -->
85
+    <el-dialog :title="addTitle" :visible.sync="addOpen" width="50%">
86
+      <el-form :model="form" ref="achiRef" label-width="110px" :rules="rules">
87
+        <el-row :gutter="20">
88
+          <el-col :span="7">
89
+            <el-form-item label="项目编号" prop="projectId">
90
+              <el-select v-model="form.projectId" placeholder="请选择" :style="{ width: '100%' }" clearable filterable
91
+                @change="selectNameByNumber">
92
+                <el-option v-for="item, index in projectList" :key="index" :label="item.projectNumber" :value="item.id" />
93
+              </el-select>
94
+            </el-form-item>
95
+          </el-col>
96
+          <el-col :span="11">
97
+            <el-form-item label="项目名称" prop="projectName">
98
+              <el-input v-model="form.projectName" placeholder="请输入项目名称" />
99
+            </el-form-item>
100
+          </el-col>
101
+          <el-col :span="6">
102
+            <el-form-item label="数据年份" prop="dataYear">
103
+              <el-input v-model="form.dataYear" placeholder="请输入数据年份" />
104
+            </el-form-item>
105
+          </el-col>
106
+        </el-row>
107
+        <el-row :gutter="20">
108
+          <el-col :span="12">
109
+            <el-form-item label="成果名称" prop="achiName">
110
+              <el-input v-model="form.achiName" placeholder="请输入成果名称" />
111
+            </el-form-item>
112
+          </el-col>
113
+          <el-col :span="12">
114
+            <el-form-item label="成果类型" prop="resultType">
115
+              <el-row :gutter="20">
116
+                <el-col :span="22">
117
+                  <el-select v-model="form.resultType" placeholder="请选择成果类型" :style="{ width: '100%' }" clearable
118
+                    multiple>
119
+                    <el-option v-for="dict in dict.type.cmc_achi_type" :key="dict.value" :label="dict.label"
120
+                      :value="dict.value">
121
+                    </el-option>
122
+                  </el-select>
123
+                </el-col>
124
+                <el-col :span="2">
125
+                  <el-button icon="el-icon-plus" @click="handleResult">
126
+                  </el-button>
127
+                </el-col>
128
+              </el-row>
129
+            </el-form-item>
130
+          </el-col>
131
+        </el-row>
132
+        <el-row :gutter="20">
133
+          <el-col :span="12">
134
+            <el-form-item label="比例尺或等级" prop="scaleGrade">
135
+              <el-select v-model="form.scaleGrade" placeholder="请选择比例尺或等级" :style="{ width: '100%' }" clearable multiple>
136
+                <el-option v-for="dict in dict.type.cmc_scale_grade" :key="dict.value" :label="dict.label"
137
+                  :value="dict.value">
138
+                </el-option>
139
+              </el-select>
140
+            </el-form-item>
141
+          </el-col>
142
+          <el-col :span="12">
143
+            <el-form-item label="文件类型" prop="fileType">
144
+              <el-input v-model="form.fileType" placeholder="请输入文件类型" />
145
+            </el-form-item>
146
+          </el-col>
147
+        </el-row>
148
+        <el-row :gutter="20">
149
+          <el-col :span="12">
150
+            <el-form-item label="工作量" prop="workLoad">
151
+              <el-input v-model="form.workLoad" placeholder="请输入工作量" />
152
+            </el-form-item>
153
+          </el-col>
154
+          <el-col :span="12">
155
+            <el-form-item label="单位" prop="unit">
156
+              <el-input v-model="form.unit" placeholder="请输入单位" />
157
+            </el-form-item>
158
+          </el-col>
159
+        </el-row>
160
+        <el-row :gutter="20">
161
+          <el-col :span="12">
162
+            <el-form-item label="数据来源" prop="dataSource">
163
+              <el-input v-model="form.dataSource" placeholder="请输入数据来源" />
164
+            </el-form-item>
165
+          </el-col>
166
+          <el-col :span="12">
167
+            <el-form-item label="数据类型" prop="dataType">
168
+              <el-select v-model="form.dataType" placeholder="请选择数据类型">
169
+                <el-option label="原始数据" value="原始数据" />
170
+                <el-option label="成果数据" value="成果数据" />
171
+                <el-option label="过程数据" value="过程数据" />
172
+              </el-select>
173
+            </el-form-item>
174
+          </el-col>
175
+        </el-row>
176
+        <el-row :gutter="20">
177
+          <el-col :span="12">
178
+            <el-form-item label="存储地址" prop="storageAddress">
179
+              <el-select v-model="form.storageAddress" placeholder="请选择" filterable allow-create clearable>
180
+                <el-option v-for="item, index in storageList" :key="index" :label="item.storageAddress"
181
+                  :value="item.storageAddress" />
182
+              </el-select>
183
+            </el-form-item>
184
+          </el-col>
185
+          <el-col :span="12">
186
+            <el-form-item label="KML地址" prop="kmlUrl">
187
+              <div style="display: flex;">
188
+                <div>
189
+                  <el-input v-model="kmlFileName" placeholder="请选择Kml文件" disabled />
190
+                </div>
191
+                <div>
192
+                  <el-upload ref="uploadAchiKml" class="upload-demo" action="" :auto-upload="false"
193
+                    :on-success="successUploadAchiKml" accept=".kml" :on-change="changeUploadKml" :show-file-list="false">
194
+                    <el-button type="primary" icon="el-icon-plus"></el-button>
195
+                  </el-upload>
196
+                </div>
197
+              </div>
198
+
199
+            </el-form-item>
200
+          </el-col>
201
+        </el-row>
202
+        <el-row :gutter="20">
203
+          <el-col :span="12">
204
+            <el-form-item label="生产日期" prop="productionTime">
205
+              <el-date-picker v-model="form.productionTime" type="month" placeholder="选择日期" format="YYYY年MM月"
206
+                value-format="YYYY年MM月" />
207
+            </el-form-item>
208
+          </el-col>
209
+          <el-col :span="12">
210
+            <el-form-item label="提交时间" prop="submitDate">
211
+              <el-date-picker v-model="form.submitDate" type="date" placeholder="选择日期" format="YYYY年MM月DD日"
212
+                value-format="YYYY年MM月DD日" />
213
+            </el-form-item>
214
+          </el-col>
215
+        </el-row>
216
+        <el-row :gutter="20">
217
+          <el-col :span="24">
218
+            <el-form-item label="备注" prop="remark">
219
+              <el-input v-model="form.remark" placeholder="请输入备注" type="textarea" :max="250" />
220
+            </el-form-item>
221
+          </el-col>
222
+        </el-row>
223
+      </el-form>
224
+      <template #footer>
225
+        <div class="dialog-footer">
226
+          <el-button type="primary" @click="submitForm">确 定</el-button>
227
+          <el-button @click="cancel">取 消</el-button>
228
+        </div>
229
+      </template>
230
+    </el-dialog>
231
+    <!-- 修改成果 -->
232
+    <el-dialog :title="addTitle" :visible.sync="modifyOpen" width="50%">
233
+      <el-form :model="modifyForm" ref="achiModifyRef" label-width="110px" :rules="modifyRules">
234
+        <el-row :gutter="20">
235
+          <el-col :span="12">
236
+            <el-form-item label="项目编号" prop="projectId">
237
+              <el-select allow-create v-model="modifyForm.projectId" placeholder="请选择" :style="{ width: '100%' }"
238
+                clearable filterable>
239
+                <el-option v-for="item, index in projectList" :key="index"
240
+                  :label="item.projectNumber + '-' + item.projectName" :value="item.projectId" />
241
+              </el-select>
242
+            </el-form-item>
243
+          </el-col>
244
+          <el-col :span="12">
245
+            <el-form-item label="成果名称" prop="achiName">
246
+              <el-input v-model="modifyForm.achiName" placeholder="请输入成果名称" />
247
+            </el-form-item>
248
+          </el-col>
249
+        </el-row>
250
+        <el-row :gutter="20">
251
+          <el-col :span="12">
252
+            <el-form-item label="数据年份" prop="dataYear">
253
+              <el-input v-model="modifyForm.dataYear" placeholder="请输入数据年份" />
254
+            </el-form-item>
255
+          </el-col>
256
+          <el-col :span="12">
257
+            <el-form-item label="成果类型" prop="resultType">
258
+              <el-row :gutter="20">
259
+                <el-col :span="22">
260
+                  <el-select v-model="modifyForm.resultType" placeholder="请选择成果类型" :style="{ width: '100%' }" clearable
261
+                    multiple>
262
+                    <el-option v-for="dict in dict.type.cmc_achi_type" :key="dict.value" :label="dict.label"
263
+                      :value="dict.value">
264
+                    </el-option>
265
+                  </el-select>
266
+                </el-col>
267
+                <el-col :span="2">
268
+                  <el-button icon="el-icon-plus" @click="handleResult">
269
+                  </el-button>
270
+                </el-col>
271
+              </el-row>
272
+            </el-form-item>
273
+          </el-col>
274
+        </el-row>
275
+        <el-row :gutter="20">
276
+          <el-col :span="12">
277
+            <el-form-item label="比例尺或等级" prop="scaleGrade">
278
+              <el-select v-model="modifyForm.scaleGrade" placeholder="请选择比例尺或等级" :style="{ width: '100%' }" clearable
279
+                multiple>
280
+                <el-option v-for="dict in dict.type.cmc_scale_grade" :key="dict.value" :label="dict.label"
281
+                  :value="dict.value">
282
+                </el-option>
283
+              </el-select>
284
+            </el-form-item>
285
+          </el-col>
286
+          <el-col :span="12">
287
+            <el-form-item label="文件类型" prop="fileType">
288
+              <el-input v-model="modifyForm.fileType" placeholder="请输入文件类型" />
289
+            </el-form-item>
290
+          </el-col>
291
+        </el-row>
292
+        <el-row :gutter="20">
293
+          <el-col :span="12">
294
+            <el-form-item label="工作量" prop="workLoad">
295
+              <el-input v-model="modifyForm.workLoad" placeholder="请输入工作量" />
296
+            </el-form-item>
297
+          </el-col>
298
+          <el-col :span="12">
299
+            <el-form-item label="单位" prop="unit">
300
+              <el-input v-model="modifyForm.unit" placeholder="请输入单位" />
301
+            </el-form-item>
302
+          </el-col>
303
+        </el-row>
304
+        <el-row :gutter="20">
305
+          <el-col :span="12">
306
+            <el-form-item label="数据来源" prop="dataSource">
307
+              <el-input v-model="modifyForm.dataSource" placeholder="请输入数据来源" />
308
+            </el-form-item>
309
+          </el-col>
310
+          <el-col :span="12">
311
+            <el-form-item label="数据类型" prop="dataType">
312
+              <el-select v-model="modifyForm.dataType" placeholder="请选择数据类型">
313
+                <el-option label="原始数据" value="原始数据" />
314
+                <el-option label="成果数据" value="成果数据" />
315
+                <el-option label="过程数据" value="过程数据" />
316
+              </el-select>
317
+            </el-form-item>
318
+          </el-col>
319
+        </el-row>
320
+        <el-row :gutter="20">
321
+          <el-col :span="12">
322
+            <el-form-item label="存储地址" prop="storageAddress">
323
+              <el-select v-model="modifyForm.storageAddress" placeholder="请选择" filterable allow-create clearable>
324
+                <el-option v-for="item, index in storageList" :key="index" :label="item.storageAddress"
325
+                  :value="item.storageAddress" />
326
+              </el-select>
327
+            </el-form-item>
328
+          </el-col>
329
+          <el-col :span="12">
330
+            <el-form-item label="KML地址" prop="kmlUrl">
331
+              <div style="display: flex;">
332
+                <div>
333
+                  <el-input v-model="kmlFileName" placeholder="请选择Kml文件" disabled />
334
+                </div>
335
+                <div>
336
+                  <el-upload ref="uploadAchiKml" class="upload-demo" action="" :auto-upload="false"
337
+                    :on-success="successUploadAchiKml" accept=".kml" :on-change="changeUploadKml" :show-file-list="false">
338
+                    <el-button type="primary" icon="el-icon-plus"></el-button>
339
+                  </el-upload>
340
+                </div>
341
+              </div>
342
+            </el-form-item>
343
+          </el-col>
344
+        </el-row>
345
+        <el-row :gutter="20">
346
+          <el-col :span="24">
347
+            <el-form-item label="提交时间" prop="submitDate">
348
+              <el-date-picker v-model="modifyForm.submitDate" type="date" placeholder="选择日期" format="YYYY-MM-DD"
349
+                value-format="YYYY-MM-DD" />
350
+            </el-form-item>
351
+          </el-col>
352
+        </el-row>
353
+        <el-row :gutter="20">
354
+          <el-col :span="24">
355
+            <el-form-item label="备注" prop="remark">
356
+              <el-input v-model="modifyForm.remark" placeholder="请输入备注" type="textarea" :max="250" />
357
+            </el-form-item>
358
+          </el-col>
359
+        </el-row>
360
+      </el-form>
361
+      <template #footer>
362
+        <div class="dialog-footer">
363
+          <el-button type="primary" @click="submitModifyForm">确 定</el-button>
364
+          <el-button @click="cancel">取 消</el-button>
365
+        </div>
366
+      </template>
367
+    </el-dialog>
368
+    <!-- 用户上传excel -->
369
+    <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px">
370
+      <el-upload ref="uploadRef" accept=".xlsx, .xls" :headers="upload.headers" :action="upload.url"
371
+        :disabled="upload.isUploading" :on-progress="handleFileUploadProgress" :on-change="handleFileUploadChange"
372
+        :on-success="handleFileSuccess" :auto-upload="false" drag v-loading="uploadLoading"
373
+        element-loading-text="正在上传,请稍等">
374
+        <el-icon class="el-icon--upload">
375
+          <upload-filled />
376
+        </el-icon>
377
+        <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
378
+        <template #tip>
379
+          <div class="el-upload__tip text-center">
380
+            <span>仅允许导入xls、xlsx格式文件。</span>
381
+            <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;"
382
+              @click="importTemplate">下载模板</el-link>
383
+          </div>
384
+        </template>
385
+      </el-upload>
386
+      <template #footer>
387
+        <div class="dialog-footer">
388
+          <el-button type="primary" @click="submitUpload">确 定</el-button>
389
+          <el-button @click="upload.open = false">取 消</el-button>
390
+        </div>
391
+      </template>
392
+    </el-dialog>
393
+  </div>
394
+</template>
395
+
396
+<script>
397
+import { listAchievement, uploadAchievementSheet, addAchievement, updateAchievement, delAchievement } from "@/api/file/achievement";
398
+import { listProject, getProject, downloadTemplate } from "@/api/file/project";
399
+import { saveAs } from 'file-saver'
400
+import { getToken } from "@/utils/auth";
401
+import { listStorage } from "@/api/file/storage";
402
+import { cloneDeep } from "lodash";
403
+import { listType } from '@/api/system/dict/type'
404
+export default {
405
+  name: "Achievement",
406
+  dicts: ['cmc_achi_type', 'cmc_scale_grade'],
407
+  data() {
408
+    return {
409
+      achiTableData: [],
410
+      loading: true,
411
+      total: 0,
412
+      multiple: true,
413
+      ids: [],
414
+      addOpen: false,
415
+      modifyOpen: false,
416
+      addTitle: '成果增加',
417
+      storageList: [],
418
+      projectList: [],
419
+      kmlFileName: '',
420
+      uploadLoading: false,
421
+      fileList: [],
422
+      form: {},
423
+      modifyForm: {},
424
+      uploadFormData: undefined,
425
+      submitFormData: undefined,
426
+      kmlfile: undefined,
427
+      upload: {
428
+        // 是否显示弹出层(用户导入)
429
+        open: false,
430
+        // 弹出层标题(用户导入)
431
+        title: "",
432
+        // 是否禁用上传
433
+        isUploading: false,
434
+        // 是否更新已经存在的用户数据
435
+        updateSupport: 0,
436
+        // 设置上传的请求头部'Content-Type': 'multipart/form-data', 
437
+        headers: { 'Authorization': "Bearer " + getToken() },
438
+        data: undefined,
439
+        // 上传的地址
440
+        url: process.env.VUE_APP_BASE_API + "/file/achievement/uploadSheet"
441
+      },
442
+      queryParams: {
443
+        pageNum: 1,
444
+        pageSize: 10,
445
+        id: undefined,
446
+        projectId: undefined,
447
+        projectNumber: undefined,
448
+        achiName: undefined,
449
+        dataYear: undefined,
450
+        scaleGrade: undefined,
451
+        resultType: undefined,
452
+        fileType: undefined,
453
+        kmlUrl: undefined,
454
+        kmlLng: undefined,
455
+        kmlLat: undefined,
456
+        workLoad: undefined,
457
+        unit: undefined,
458
+        dataSource: undefined,
459
+        dataType: undefined,
460
+        storageId: undefined,
461
+        remark: undefined,
462
+      },
463
+      rules: {
464
+        projectNumber: [{ required: true, message: "项目编号不能为空", trigger: "change" }],
465
+        achiName: [{ required: true, message: "成果名称不能为空", trigger: "blur" }],
466
+        dataYear: [{ required: true, message: "数据年份不能为空", trigger: "blur" }],
467
+        resultType: [{ required: true, message: "数据类型不能为空", trigger: "change" }],
468
+        scaleGrade: [{ required: true, message: "比例尺或等级不能为空", trigger: "change" }],
469
+      },
470
+      modifyRules: {
471
+        projectId: [{ required: true, message: "项目编号不能为空", trigger: "change" }],
472
+        achiName: [{ required: true, message: "成果名称不能为空", trigger: "blur" }],
473
+        dataYear: [{ required: true, message: "数据年份不能为空", trigger: "blur" }],
474
+        resultType: [{ required: true, message: "数据类型不能为空", trigger: "change" }],
475
+        scaleGrade: [{ required: true, message: "比例尺或等级不能为空", trigger: "change" }],
476
+      }
477
+    }
478
+  },
479
+
480
+  created() {
481
+    this.getAchiList();
482
+    this.getStorageList();
483
+    this.getProjectList();
484
+  },
485
+  /* ------------------------------------------------------------------------------------------------------------ */
486
+  methods: {
487
+    handleQuery() {
488
+      this.queryParams.pageNum = 1;
489
+      this.getAchiList();
490
+    },
491
+    getAchiList() {
492
+      this.loading = true;
493
+      listAchievement(this.queryParams).then(res => {
494
+        this.achiTableData = res.rows;
495
+        this.total = res.total;
496
+        this.loading = false;
497
+      })
498
+    },
499
+    selectNameByNumber(val) {
500
+      getProject(val).then(res => {
501
+        let data = res.data;
502
+        this.form.projectName = data.projectName;
503
+        this.form.dataYear = data.projectNumber.substring(0, 4) + '年'
504
+      })
505
+    },
506
+    /** 多选框选中数据 */
507
+    handleSelectionChange(selection) {
508
+      this.ids = selection.map(item => item.id);
509
+      this.multiple = !selection.length;
510
+    },
511
+    /* 新增成果 */
512
+    handleAddAchievement() {
513
+      this.reset();
514
+      this.addOpen = true;
515
+      this.kmlFileName = '';
516
+      this.addTitle = "成果增加";
517
+    },
518
+    /* 修改成果按钮 */
519
+    handleUpdate(row) {
520
+      this.modifyForm = cloneDeep(row);
521
+      this.kmlFileName = "";
522
+      this.kmlFileName = row.kmlUrl;
523
+      if (typeof (this.modifyForm.resultType) == "string") {
524
+        if (this.modifyForm.resultType.indexOf(',') != -1) {
525
+          this.modifyForm.resultType = this.modifyForm.resultType.split(',');
526
+        } else {
527
+          this.modifyForm.resultType = this.modifyForm.resultType.split();
528
+        }
529
+      }
530
+      if (typeof (this.modifyForm.scaleGrade) == "string") {
531
+        if (this.modifyForm.scaleGrade.indexOf(',') != -1) {
532
+          this.modifyForm.scaleGrade = this.modifyForm.scaleGrade.split(',');
533
+        } else {
534
+          this.modifyForm.scaleGrade = this.modifyForm.scaleGrade.split();
535
+        }
536
+      }
537
+      // let dates =  this.modifyForm.submitDate.slice(0,10)
538
+      // this.modifyForm.submitDate = dates;
539
+
540
+      this.addTitle = "成果修改"
541
+      this.modifyOpen = true;
542
+    },
543
+    /* 删除按钮 */
544
+    handleDelete(row) {
545
+      const achiIds = row.id;
546
+      const achiName = row.achiName
547
+      this.$modal.confirm('是否确认删除用户编号为"' + achiName + '"的数据项?').then(function () {
548
+        return delAchievement(achiIds);
549
+      }).then(() => {
550
+        this.getAchiList();
551
+        this.$modal.msgSuccess("删除成功");
552
+      }).catch(() => { });
553
+    },
554
+    /* 批量删除操作 */
555
+    handleDeleteMany() {
556
+      this.$modal.confirm('是否确认删除?').then(function () {
557
+        return delAchievement(this.ids);
558
+      }).then(() => {
559
+        this.getAchiList();
560
+        debugger
561
+        this.ids = [];
562
+        this.$modal.msgSuccess("删除成功");
563
+      }).catch(() => { });
564
+    },
565
+    /* 导出 */
566
+    handleExprot() {
567
+      // 为true时为导出所有表
568
+      if (this.multiple) {
569
+        this.download("/file/achievement/export", { ...this.queryParams }, `成果表_所有数据.xlsx`);
570
+      } else {
571
+        this.download("/file/achievement/exportBatch/" + this.ids, { ...this.queryParams }, `成果表_${this.ids.length}条.xlsx`);
572
+      }
573
+    },
574
+    /* 增加确定按钮 */
575
+    submitForm() {
576
+      this.submitFormData = new FormData();
577
+      this.submitFormData.append('uploadKmlFile', this.kmlfile);
578
+      this.$refs["achiRef"].validate(valid => {
579
+        if (valid) {
580
+          for (let i in this.form) {
581
+            this.submitFormData.append(i, this.form[i] == null ? "" : this.form[i]);
582
+          }
583
+          addAchievement(this.submitFormData).then(response => {
584
+            this.$modal.msgSuccess("新增成功");
585
+            this.addOpen = false;
586
+            this.getAchiList();
587
+          });
588
+        } else {
589
+          this.$modal.msgError("请完善必填项");
590
+        }
591
+      })
592
+    },
593
+
594
+    /* 修改确定按钮 */
595
+    submitModifyForm() {
596
+      this.submitFormData = new FormData();
597
+      this.submitFormData.append('uploadKmlFile', this.kmlfile);
598
+      this.$refs["achiModifyRef"].validate(valid => {
599
+        delete this.modifyForm.params;
600
+        for (let i in this.modifyForm) {
601
+          this.submitFormData.append(i, this.modifyForm[i] == null ? "" : this.modifyForm[i]);
602
+        }
603
+        this.modifyForm.resultType = this.modifyForm.resultType.toString();
604
+        this.modifyForm.scaleGrade = this.modifyForm.scaleGrade.toString();
605
+        updateAchievement(this.submitFormData).then(response => {
606
+          this.$modal.msgSuccess("修改成功");
607
+          this.modifyOpen = false;
608
+          this.getAchiList();
609
+        });
610
+      })
611
+
612
+    },
613
+    /* 取消按钮 */
614
+    cancel() {
615
+      this.addOpen = false;
616
+      this.modifyOpen = false;
617
+    },
618
+    /* 重置新增和修改表单 */
619
+    reset() {
620
+      this.form = {
621
+        id: undefined,
622
+        projectId: undefined,
623
+        projectNumber: undefined,
624
+        achiName: undefined,
625
+        dataYear: undefined,
626
+        scaleGrade: [],
627
+        resultType: [],
628
+        fileType: undefined,
629
+        kmlUrl: undefined,
630
+        kmlLng: undefined,
631
+        kmlLat: undefined,
632
+        workLoad: undefined,
633
+        unit: undefined,
634
+        dataSource: undefined,
635
+        dataType: undefined,
636
+        storageId: undefined,
637
+        remark: undefined,
638
+      }
639
+      this.modifyForm = {
640
+        id: undefined,
641
+        projectId: undefined,
642
+        projectNumber: undefined,
643
+        achiName: undefined,
644
+        dataYear: undefined,
645
+        scaleGrade: [],
646
+        resultType: [],
647
+        fileType: undefined,
648
+        kmlUrl: undefined,
649
+        kmlLng: undefined,
650
+        kmlLat: undefined,
651
+        workLoad: undefined,
652
+        unit: undefined,
653
+        dataSource: undefined,
654
+        dataType: undefined,
655
+        storageId: undefined,
656
+        remark: undefined,
657
+      }
658
+      this.resetForm("achiRef");
659
+    },
660
+    // 上传成果excel
661
+    uploadAchievement() {
662
+      this.upload.title = "上传成果表";
663
+      this.upload.open = true;
664
+    },
665
+    /**Excel文件上传中处理 */
666
+    handleFileUploadProgress(event, file, fileList) {
667
+      this.upload.isUploading = true;
668
+      this.uploadLoading = true;
669
+    },
670
+    /* Excel文件改变时 */
671
+    handleFileUploadChange(file, fileList) {
672
+      if (fileList.length > 1) {
673
+        fileList.splice(0, 1);
674
+      }
675
+      this.uploadFormData = new FormData();
676
+      this.uploadFormData.append("file", file);
677
+      this.upload.data = this.uploadFormData;
678
+    },
679
+    /* kml文件改变时 */
680
+    changeUploadKml(file, fileList) {
681
+      if (fileList.length > 1) {
682
+        fileList.splice(0, 1);
683
+      }
684
+      this.kmlFileName = file.name;
685
+      this.kmlfile = file.raw;
686
+    },
687
+    /* 下载模板 */
688
+    importTemplate() {
689
+      // const path = "http://127.0.0.1:8083/profile/template/cg-template.xlsx"
690
+      const path = "http://oa.sccehui.com:6104/prod-api/profile/template/cg-template.xlsx"
691
+      downloadTemplate(path).then(res => {
692
+        const blob = new Blob([res])
693
+        saveAs(blob, '成果表模版.xlsx');
694
+      });
695
+      // this.download("file/achievement/importTemplate", {
696
+      // }, `成果表模板.xlsx`);
697
+    },
698
+    /** Excel文件上传成功处理 */
699
+    handleFileSuccess(response, file, fileList) {
700
+      this.upload.open = false;
701
+      this.upload.isUploading = false;
702
+      this.uploadLoading = false;
703
+      this.fileList = [];
704
+      this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
705
+      this.$refs["uploadRef"].clearFiles();
706
+      this.getAchiList();
707
+    },
708
+    /* Excel上传提交按钮 */
709
+    submitUpload() {
710
+      this.$refs['uploadRef'].submit();
711
+    },
712
+    /* kml文件上传成功处理 */
713
+    successUploadAchiKml(response, file, fileList) {
714
+      this.$refs["uploadAchiKml"].clearFiles();
715
+      this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
716
+    },
717
+    /* 获取存储地址列表 */
718
+    getStorageList() {
719
+      this.queryParams.pageNum = 1;
720
+      this.queryParams.pageSize = 999999;
721
+      listStorage(this.queryParams).then(response => {
722
+        this.storageList = response.rows;
723
+      })
724
+    },
725
+    /* 获取项目列表 */
726
+    getProjectList() {
727
+      this.queryParams.pageNum = 1;
728
+      this.queryParams.pageSize = 999999;
729
+      listProject(this.queryParams).then(response => {
730
+        this.projectList = response.rows;
731
+      })
732
+    },
733
+
734
+    formatterKmlurl(row, cloumn) {
735
+      if (row.kmlUrl == "" || row.kmlUrl == null) {
736
+        return "无";
737
+      } else {
738
+        return "有";
739
+      }
740
+    },
741
+    // 操作成果类型字典
742
+    handleResult() {
743
+      listType().then(res => {
744
+        if (res.code == 200) {
745
+          let datas = res.rows;
746
+          for (let d of datas) {
747
+            if (d.dictType == "cmc_achi_type") {
748
+              this.$router.push({ path: "/system/dict-data/index/" + d.dictId });
749
+              return
750
+            }
751
+          }
752
+        }
753
+      })
754
+
755
+    },
756
+    // 获取表格的row-key,
757
+    getRowKeys(row) {
758
+      return row.id;
759
+    },
760
+  }
761
+}
762
+</script>
763
+
764
+<style lang="scss" scoped></style>

+ 52
- 0
oa-ui/src/views/file/filesProject/index.vue View File

@@ -0,0 +1,52 @@
1
+<!--
2
+ * @Descripttion: 
3
+ * @version: 
4
+ * @Author: ysh
5
+ * @Date: 2022-09-05 16:56:02
6
+ * @LastEditors: wrh
7
+ * @LastEditTime: 2024-05-10 10:16:22
8
+-->
9
+<template>
10
+  <div class="project-wrapper">
11
+    <el-tabs v-model="tablsActiveName" class="demo-tabs" @tab-click="handleTabsClick">
12
+      <el-tab-pane label="项目管理" name="project">
13
+        <Project ref="projectRef"></Project>
14
+      </el-tab-pane>
15
+      <el-tab-pane label="成果管理" name="achievement">
16
+        <Achievement ref="achievementRef"></Achievement>
17
+      </el-tab-pane>
18
+      <el-tab-pane label="存储地址" name="storage">
19
+        <Storage ref="storageRef"></Storage>
20
+      </el-tab-pane>
21
+    </el-tabs>
22
+  </div>
23
+</template>
24
+<script >
25
+import Project from './project.vue'
26
+import Achievement from './achievement.vue'
27
+import Storage from './storage.vue'
28
+export default {
29
+  components: { Project, Achievement, Storage },
30
+  data() {
31
+    return {
32
+      tablsActiveName: "project",
33
+    }
34
+  },
35
+  methods: {
36
+    handleTabsClick() {
37
+      if (this.tablsActiveName == "project") {
38
+        this.$refs.projectRef.getProList();
39
+      } else if (this.tablsActiveName == "achievement") {
40
+        this.$refs.achievementRef.getAchiList();
41
+      }
42
+    }
43
+  },
44
+}
45
+
46
+
47
+
48
+</script>
49
+<style lang="scss" scoped>
50
+.project-wrapper {
51
+  padding: 10px 20px 0px;
52
+}</style>

+ 1216
- 0
oa-ui/src/views/file/filesProject/project.vue
File diff suppressed because it is too large
View File


+ 202
- 0
oa-ui/src/views/file/filesProject/storage.vue View File

@@ -0,0 +1,202 @@
1
+<!--
2
+ * @Descripttion: 
3
+ * @version: 
4
+ * @Author: ysh
5
+ * @Date: 2022-09-08 17:16:38
6
+ * @LastEditors: wrh
7
+ * @LastEditTime: 2024-05-10 15:14:58
8
+-->
9
+<template>
10
+  <div>
11
+    <!-- 搜索栏 -->
12
+    <el-row>
13
+      <el-form :model="queryParams" ref="queryRef" :inline="true" label-width="90px">
14
+        <el-form-item label="存储地址" prop="storageAddress">
15
+          <el-input v-model="queryParams.storageAddress" placeholder="请输入存储地址" clearable @keyup.enter="handleQuery" />
16
+        </el-form-item>
17
+        <el-form-item label="管理员" prop="administrator">
18
+          <el-input v-model="queryParams.administrator" placeholder="请输入管理员" clearable @keyup.enter="handleQuery" />
19
+        </el-form-item>
20
+        <el-form-item>
21
+          <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
22
+        </el-form-item>
23
+      </el-form>
24
+    </el-row>
25
+    <!-- 操作栏 -->
26
+    <el-row>
27
+      <el-button type="primary" size="small" icon="el-icon-plus" @click="handleAddAStorage"
28
+        v-hasPermi="['file:storage:add']">新增存储地址</el-button>
29
+      <el-button type="danger" size="small" icon="el-icon-delete" :disabled="multiple" @click="handleDeleteMany"
30
+        v-hasPermi="['file:storage:remove']">批量删除
31
+      </el-button>
32
+    </el-row>
33
+    <!-- 表格 -->
34
+    <el-row>
35
+      <el-table :data="storageTableData" style="width: 100%" stripe v-loading="loading"
36
+        @selection-change="handleSelectionChange">
37
+        <el-table-column type="selection" width="50px" />
38
+        <el-table-column type="index" label="序号" width="50px" align="center" />
39
+        <el-table-column prop="id" label="存储编号" align="center" />
40
+        <el-table-column prop="storageAddress" label="存储地址" align="center" />
41
+        <el-table-column prop="administrator" label="管理员" align="center" />
42
+        <el-table-column prop="remark" label="备注" align="center" />
43
+        <el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width">
44
+          <template #default="scope">
45
+            <el-tooltip content="修改" placement="top">
46
+              <el-button type="text" icon="el-icon-edit-outline" @click="handleUpdate(scope.row)" v-hasPermi="['file:storage:edit']">
47
+              </el-button>
48
+            </el-tooltip>
49
+            <el-tooltip content="删除" placement="top">
50
+              <el-button type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['file:storage:remove']">
51
+              </el-button>
52
+            </el-tooltip>
53
+          </template>
54
+        </el-table-column>
55
+      </el-table>
56
+      <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
57
+        @pagination="getStorageList" />
58
+    </el-row>
59
+    <!-- 新增和修改对话框 -->
60
+    <el-dialog :title="title" :visible.sync="open" width="50%">
61
+      <el-form :model="form" ref="formRef" label-width="105px">
62
+        <el-form-item label="存储地址" prop="storageAddress">
63
+          <el-input v-model="form.storageAddress" placeholder="请输入存储地址" />
64
+        </el-form-item>
65
+        <el-form-item label="管理人" prop="administrator">
66
+          <el-input v-model="form.administrator" placeholder="请输入管理人" />
67
+        </el-form-item>
68
+        <el-form-item label="备注" prop="administrator">
69
+          <el-input v-model="form.remark" placeholder="请输入备注" type="textarea" :max="250" />
70
+        </el-form-item>
71
+      </el-form>
72
+      <template #footer>
73
+        <div class="dialog-footer">
74
+          <el-button type="primary" @click="submitForm">确 定</el-button>
75
+          <el-button @click="cancel">取 消</el-button>
76
+        </div>
77
+      </template>
78
+    </el-dialog>
79
+  </div>
80
+</template>
81
+
82
+<script>
83
+import { listStorage, addStorage, updateStorage, delStorage } from "@/api/file/storage";
84
+export default {
85
+  nam: "Project",
86
+  data() {
87
+    return {
88
+      form: {},
89
+      queryParams: {
90
+        pageNum: 1,
91
+        pageSize: 10,
92
+        id: undefined,
93
+        storageAddress: undefined,
94
+        administrator: undefined,
95
+        remark: undefined
96
+      },
97
+      rules: {
98
+        storageAddress: [{ required: true, message: "存储地址不能为空", trigger: "blur" }],
99
+        administrator: [{ required: true, message: "管理员不能为空", trigger: "blur" }],
100
+      },
101
+      storageTableData: [],
102
+      loading: true,
103
+      total: 0,
104
+      title: '',
105
+      open: false,
106
+      multiple: true,
107
+      ids: [],
108
+    }
109
+  },
110
+  created() {
111
+    this.getStorageList();
112
+  },
113
+  /* ----------------------------------------------------------------------------------------------- */
114
+  /* 搜索按钮 */
115
+  methods: {
116
+    handleQuery() {
117
+      this.queryParams.pageNum = 1;
118
+      this.getStorageList();
119
+    },
120
+    /* 获取存储列表 */
121
+    getStorageList() {
122
+      listStorage(this.queryParams).then(res => {
123
+        this.storageTableData = res.rows;
124
+        this.total = res.total;
125
+        this.loading = false;
126
+      })
127
+    },
128
+    /* 新增存储 */
129
+    handleAddAStorage() {
130
+      this.open = true;
131
+      this.title = "增加存储地址";
132
+    },
133
+    /* 表单确定按钮 */
134
+    submitForm() {
135
+      this.$refs["formRef"].validate(valid => {
136
+        if (valid) {
137
+          if (this.form.id != undefined) {
138
+            updateStorage(this.form).then(response => {
139
+              this.$modal.msgSuccess("修改成功");
140
+              this.open = false;
141
+              this.getStorageList();
142
+            });
143
+          } else {
144
+            addStorage(this.form).then(response => {
145
+              this.$modal.msgSuccess("新增成功");
146
+              this.open = false;
147
+              this.getStorageList();
148
+            });
149
+          }
150
+        }
151
+      })
152
+    },
153
+    /* 表单取消按钮 */
154
+    cancel() {
155
+      this.reset();
156
+      this.open = false;
157
+    },
158
+    /* 重置新增和修改表单 */
159
+    reset() {
160
+      this.form = {
161
+        id: undefined,
162
+        storageAddress: undefined,
163
+        administrator: undefined,
164
+        remark: undefined
165
+      }
166
+    },
167
+    /* 修改按钮 */
168
+    handleUpdate(row) {
169
+      this.form = row;
170
+      this.title = "修改存储地址"
171
+      this.open = true;
172
+    },
173
+    /* 删除按钮 */
174
+    handleDelete(row) {
175
+      const ids = row.id;
176
+      const storageAddress = row.storageAddress
177
+      this.$modal.confirm('是否确认删除用户编号为"' + storageAddress + '"的数据项?').then(() => {
178
+        return delStorage(ids);
179
+      }).then(() => {
180
+        this.getStorageList();
181
+        this.$modal.msgSuccess("删除成功");
182
+      }).catch(() => { });
183
+    },
184
+    /* 批量删除操作 */
185
+    handleDeleteMany() {
186
+      this.$modal.confirm('是否确认删除?').then(() => {
187
+        return delStorage(this.ids);
188
+      }).then(() => {
189
+        this.getStorageList();
190
+        this.$modal.msgSuccess("删除成功");
191
+      }).catch(() => { });
192
+    },
193
+    /** 多选框选中数据 */
194
+    handleSelectionChange(selection) {
195
+      this.ids = selection.map(item => item.id);
196
+      this.multiple = !selection.length;
197
+    },
198
+  }
199
+}
200
+</script>
201
+
202
+<style lang="scss" scoped></style>

+ 27
- 5
oa-ui/src/views/flowable/form/archiveForm.vue View File

@@ -6,7 +6,12 @@
6 6
         <el-divider></el-divider>
7 7
         <el-form ref="form" :model="form" :rules="rules" label-width="120px">
8 8
           <el-form-item label="项目信息" prop="projectId">
9
-            <el-descriptions border style="margin-top: 10px;" :column="2" direction="vertical">
9
+            <el-select v-model="form.projectId" filterable placeholder="请选择" @change="handleSelectProject"
10
+              :disabled="taskName != '成果上传'" clearable>
11
+              <el-option v-for="item in projectList" :key="item.value" :label="item.projectName" :value="item.projectId">
12
+              </el-option>
13
+            </el-select>
14
+            <el-descriptions border v-if="isSelect" style="margin-top: 10px;" :column="2" direction="vertical">
10 15
               <el-descriptions-item label="项目名称" label-class-name="my-label">{{ chooseProject.projectName
11 16
               }}</el-descriptions-item>
12 17
               <el-descriptions-item label="项目编号" label-class-name="my-label">{{ chooseProject.projectNumber
@@ -222,6 +227,7 @@ export default {
222 227
       rules: {
223 228
       },
224 229
       chooseProject: {},
230
+      isSelect: false,
225 231
       formTotal: 0,
226 232
       flowData: {},
227 233
       projectList: [],
@@ -248,7 +254,7 @@ export default {
248 254
       this.archiveUser = this.$store.getters.name;
249 255
       this.archiveTime = parseTime(new Date(), '{y}-{m}-{d}')
250 256
     }
251
-    this.getProjectInfo();
257
+    this.getProjectList();
252 258
     this.getList();
253 259
     flowXmlAndNode({ procInsId: this.taskForm.procInsId, deployId: this.taskForm.deployId }).then(res => {
254 260
       this.flowData = res.data;
@@ -269,6 +275,7 @@ export default {
269 275
           if (res.data.projectId) {
270 276
             getProject(res.data.projectId).then(response => {
271 277
               this.chooseProject = response.data;
278
+              this.isSelect = true;
272 279
               listProjectContract({ projectId: response.data.projectId }).then(res => {
273 280
                 if (res.rows.length > 0) {
274 281
                   for (let row of res.rows) {
@@ -306,10 +313,22 @@ export default {
306 313
       this.open = false;
307 314
       this.reset();
308 315
     },
309
-    // 查询项目信息
310
-    getProjectInfo() {
311
-      getProject(this.taskForm.formId).then(response => {
316
+    // 查询项目列表
317
+    getProjectList() {
318
+      this.loading = true
319
+      listProject({
320
+        pageNum: 1,
321
+        pageSize: 99999999
322
+      }).then(response => {
323
+        this.projectList = response.rows;
324
+      })
325
+    },
326
+    // 选择项目
327
+    handleSelectProject(val) {
328
+      if (val != "" && val != undefined && val != null) {
329
+        getProject(val).then(response => {
312 330
           this.chooseProject = response.data;
331
+          this.isSelect = true;
313 332
           listProjectContract({ projectId: response.data.projectId }).then(res => {
314 333
             if (res.rows.length > 0) {
315 334
               for (let row of res.rows) {
@@ -328,6 +347,9 @@ export default {
328 347
               this.contractCode = '';
329 348
           })
330 349
         })
350
+      } else {
351
+        this.isSelect = false
352
+      }
331 353
     },
332 354
     isEmptyObject(obj) {
333 355
       for (var key in obj) {

Loading…
Cancel
Save