ソースを参照

修改一些小问题

余思翰 10ヶ月前
コミット
38fa5bb96b

+ 2
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml ファイルの表示

@@ -79,7 +79,7 @@
79 79
     <select id="selectCmcProjectList" parameterType="CmcProject" resultMap="CmcProjectResult">
80 80
         <include refid="selectCmcProjectVo"/>
81 81
         <where>
82
-            (p.project_number REGEXP '^[0-9]+W[0-9]' or p.project_number REGEXP '^[0-9]+C[0-9]') and p.project_number REGEXP '^((?![\\\/\\*\\-]).)*$'
82
+            (p.project_number REGEXP '^[0-9]+W[0-9]' or p.project_number REGEXP '^[0-9]+C[0-9]') AND NOT (p.project_number REGEXP '[/\\*-]')
83 83
             <if test="projectId != null  and projectId != ''"> and p.project_id = #{projectId}</if>
84 84
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
85 85
             <if test="projectName != null  and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
@@ -111,7 +111,7 @@
111 111
     <select id="selectCmcProjectByProjectNumber" parameterType="String" resultMap="CmcProjectResult">
112 112
         <include refid="selectCmcProjectVo"/>
113 113
         where
114
-        (p.project_number REGEXP '^[0-9]+W[0-9]' or p.project_number REGEXP '^[0-9]+C[0-9]') and p.project_number REGEXP '^((?![\\\/\\*\\-]).)*$' and p.project_number = #{projectNumber}
114
+        (p.project_number REGEXP '^[0-9]+W[0-9]' or p.project_number REGEXP '^[0-9]+C[0-9]') AND NOT (p.project_number REGEXP '[/\\*-]') and p.project_number = #{projectNumber}
115 115
     </select>
116 116
 
117 117
     <insert id="insertCmcProject" parameterType="CmcProject">

+ 1
- 1
oa-ui/src/assets/styles/ruoyi.scss ファイルの表示

@@ -118,7 +118,7 @@
118 118
 /** 表格布局 **/
119 119
 .pagination-container {
120 120
   position: relative;
121
-  height: 25px;
121
+  height: 32px;
122 122
   margin-bottom: 10px;
123 123
   margin-top: 15px;
124 124
   padding: 10px 20px !important;

+ 2
- 1
oa-ui/src/views/flowable/form/oa/deviceForm.vue ファイルの表示

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-03-07 13:44:39
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-17 17:31:44
5
+ * @LastEditTime: 2024-07-25 14:05:49
6 6
 -->
7 7
 
8 8
 <template>
@@ -370,6 +370,7 @@ export default {
370 370
           }
371 371
           if (res.data.modifyDevices == null || res.data.modifyDevices == undefined || res.data.modifyDevices == "") {
372 372
             data.modifyDevices = []
373
+            this.modifyDeviceList = []
373 374
           } else {
374 375
             data.modifyDevices = data.modifyDevices.split(',');
375 376
             let arr = []

+ 68
- 27
oa-ui/src/views/oa/project/index.vue ファイルの表示

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-27 14:49:15
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-24 16:28:58
5
+ * @LastEditTime: 2024-07-25 16:35:45
6 6
 -->
7 7
 <template>
8 8
   <div class="project-wrapper">
@@ -37,33 +37,32 @@
37 37
     <!-- 项目统计 -->
38 38
     <!-- <el-row>
39 39
       <el-col>
40
-        <el-row :gutter="10">
41
-          <el-col :span="8">
42
-            <el-card>
43
-              <el-col :span="12">
44
-                <div>项目数量</div>
45
-                <h2>127</h2>
46
-              </el-col>
47
-              <el-col :span="12"></el-col>
48
-            </el-card>
40
+        <el-row :gutter="20">
41
+          <el-col :span="8" :xs="24">
42
+            <div class="static-box">
43
+              <div class="title">今年项目数量</div>
44
+              <div class="box-content">
45
+                <div class="box-left">
46
+                  <div class="number">48</div>
47
+                </div>
48
+                <dir class="box-right">
49
+                  <div style="display: flex;">
50
+                    <div>院内</div>
51
+                    <div class="progress"><el-progress :percentage="100" :stroke-width="14"></el-progress></div>
52
+                  </div>
53
+                  <div style="display: flex;" class="mt10">
54
+                    <div>院外</div>
55
+                    <div class="progress"><el-progress :percentage="100" :stroke-width="14"></el-progress></div>
56
+                  </div>
57
+                </dir>
58
+              </div>
59
+            </div>
49 60
           </el-col>
50
-          <el-col :span="8">
51
-            <el-card>
52
-              <el-col :span="12">
53
-                <div>预算金额</div>
54
-                <h2>679999</h2>
55
-              </el-col>
56
-              <el-col :span="12"></el-col>
57
-            </el-card>
61
+          <el-col :span="8" :xs="24">
62
+
58 63
           </el-col>
59
-          <el-col :span="8">
60
-            <el-card>
61
-              <el-col :span="12">
62
-                <div>项目成本</div>
63
-                <h2>679999</h2>
64
-              </el-col>
65
-              <el-col :span="12"></el-col>
66
-            </el-card>
64
+          <el-col :span="8" :xs="24">
65
+
67 66
           </el-col>
68 67
         </el-row>
69 68
       </el-col>
@@ -118,7 +117,7 @@
118 117
         </el-table-column>
119 118
       </el-table>
120 119
       <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
121
-        @pagination="getList" />
120
+        :autoScroll="false" @pagination="getList" />
122 121
     </el-card>
123 122
     <!-- 新建项目 -->
124 123
     <el-dialog :title="title" :visible.sync="addOpen" append-to-body>
@@ -539,6 +538,7 @@ export default {
539 538
 <style lang="scss" scoped>
540 539
 .project-wrapper {
541 540
   padding: 25px;
541
+  background-color: #f5f5f5;
542 542
 }
543 543
 
544 544
 .table-header {
@@ -561,4 +561,45 @@ table {
561 561
   /*设置背景颜色*/
562 562
   /* background-color: #bfa; */
563 563
 }
564
+
565
+.static-box {
566
+  width: 100%;
567
+  height: 120px;
568
+  background-color: #fff;
569
+  border-radius: 6px;
570
+  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
571
+
572
+  .title {
573
+    padding-left: 30px;
574
+    padding-top: 10px;
575
+    font-size: 18px;
576
+  }
577
+
578
+  .box-content {
579
+    display: flex;
580
+
581
+    .box-left {
582
+      padding: 10px;
583
+
584
+      .number {
585
+        padding-left: 20px;
586
+        font-size: 36px;
587
+        font-family: Arial, Helvetica, sans-serif;
588
+        line-height: 70px;
589
+        min-width: 100px;
590
+      }
591
+    }
592
+
593
+    .box-right {
594
+      flex: 1;
595
+      padding: 0 10px;
596
+
597
+      .progress {
598
+        flex: 1;
599
+        padding-left: 10px;
600
+      }
601
+    }
602
+  }
603
+
604
+}
564 605
 </style>

読み込み中…
キャンセル
保存