Browse Source

修改主页的日历

余思翰 1 year ago
parent
commit
f035b66913

+ 20
- 20
oa-ui/src/components/Calendar/index.vue View File

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-03-07 10:00:26
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-03-07 10:14:41
5
+ * @LastEditTime: 2024-03-12 13:54:04
6 6
 -->
7 7
 
8 8
 <template>
@@ -67,18 +67,18 @@ export default {
67 67
       };
68 68
       let calendar = document.querySelector('.calendar');
69 69
       const month_names = [
70
-        'January',
71
-        'February',
72
-        'March',
73
-        'April',
74
-        'May',
75
-        'June',
76
-        'July',
77
-        'August',
78
-        'September',
79
-        'October',
80
-        'November',
81
-        'December',
70
+        '一月',
71
+        '二月',
72
+        '三月',
73
+        '四月',
74
+        '五月',
75
+        '六月',
76
+        '七月',
77
+        '八月',
78
+        '九月',
79
+        '十月',
80
+        '十一月',
81
+        '十二月',
82 82
       ];
83 83
       let month_picker = document.querySelector('#month-picker');
84 84
       const dayTextFormate = document.querySelector('.day-text-formate');
@@ -238,12 +238,12 @@ export default {
238 238
   height: max-content;
239 239
   position: relative;
240 240
   display: flex;
241
-  padding: 2% 0px 0px 0px;
241
+  // padding: 2% 0px 0px 0px;
242 242
   justify-content: center;
243
-  top: 10%;
244
-  right: 0%;
245
-  width: 100%;
246
-  height: 100%;
243
+  // top: 10%;
244
+  // right: 0%;
245
+  // width: 100%;
246
+  // height: 100%;
247 247
 }
248 248
 
249 249
 .calendar {
@@ -333,7 +333,7 @@ export default {
333 333
 }
334 334
 
335 335
 .year-change {
336
-  height: 30px;
336
+  // height: 30px;
337 337
   width: 30px;
338 338
   border-radius: 50%;
339 339
   display: grid;
@@ -437,7 +437,7 @@ export default {
437 437
   font-family: Dubai Light, Century Gothic;
438 438
   position: relative;
439 439
   display: inline;
440
-  top: 140px;
440
+  top: 74px;
441 441
   justify-content: center;
442 442
 }
443 443
 

+ 10
- 3
oa-ui/src/views/flowable/form/carForm.vue View File

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-29 11:44:28
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-03-11 16:55:39
5
+ * @LastEditTime: 2024-03-12 09:46:54
6 6
 -->
7 7
 <!--
8 8
  * @Author: wrh
@@ -93,13 +93,13 @@
93 93
               </el-row>
94 94
               <el-divider></el-divider>
95 95
               <!-- 部门审核意见 -->
96
-              <el-form-item label="部门审核意见:" prop="deptComment" label-width="120px">
96
+              <el-form-item label="部门审核意见:" prop="deptComment" label-width="120px"  v-if="taskName != '工会审核'">
97 97
                 <el-input type="textarea" :rows="2" placeholder="请输入部门审核意见" v-model="form.deptComment"
98 98
                   :disabled="taskName != '部门审核'">
99 99
                 </el-input>
100 100
               </el-form-item>
101 101
               <!-- 分管审核意见 -->
102
-              <el-form-item label="分管审核意见:" prop="managerComment" label-width="120px">
102
+              <el-form-item label="分管审核意见:" prop="managerComment" label-width="120px"  v-if="taskName != '工会审核'">
103 103
                 <el-input type="textarea" :rows="2" placeholder="请输入分管审核意见" v-model="form.managerComment"
104 104
                   :disabled="taskName != '分管审核'">
105 105
                 </el-input>
@@ -415,4 +415,11 @@ export default {
415 415
   width: 100px;
416 416
   background: #E1F3D8;
417 417
 }
418
+::v-deep .el-input.is-disabled .el-input__inner {
419
+  color: #121212 !important;
420
+}
421
+
422
+::v-deep .el-textarea.is-disabled .el-textarea__inner {
423
+  color: #121212 !important;
424
+}
418 425
 </style>

+ 1
- 1
oa-ui/src/views/flowable/task/todo/detail/flowview.vue View File

@@ -56,7 +56,7 @@ export default {
56 56
       const self = this
57 57
       try {
58 58
         await self.bpmnViewer.importXML(flowData.xmlData);
59
-        // self.fitViewport()
59
+        self.fitViewport()
60 60
         if (flowData.nodeData !==undefined && flowData.nodeData.length > 0 ) {
61 61
           self.fillColor(flowData.nodeData)
62 62
         }

+ 60
- 13
oa-ui/src/views/index.vue View File

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-01-03 09:23:11
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-03-07 10:13:48
5
+ * @LastEditTime: 2024-03-12 15:59:04
6 6
 -->
7 7
 
8 8
 <template>
@@ -17,9 +17,12 @@
17 17
           <div class="username">
18 18
             {{ user.nickName }}
19 19
           </div>
20
+          <div class="user-info">
21
+            
22
+          </div>
20 23
         </div>
21 24
       </el-col>
22
-      <el-col :span="15" :xs="24">
25
+      <el-col :span="16" :xs="24">
23 26
         <div class="header">快捷入口</div>
24 27
         <div class="nav-wrapper">
25 28
           <div class="nav-item" v-for="nav in navItem" @click="goToPath(nav.id)">
@@ -32,18 +35,29 @@
32 35
           </div>
33 36
         </div>
34 37
       </el-col>
38
+      
35 39
     </el-row>
36
-    <el-row>
40
+    <el-row :gutter="20">
37 41
       <el-col :span="8">
38 42
         <div class="header">日历</div>
39
-        <div class="calendar">
40
-          <Calendar></Calendar>
41
-          <!-- <el-calendar v-model="times">
42
-          </el-calendar> -->
43
+        <div class="calendar-warpper">
44
+          <!-- <Calendar></Calendar> -->
45
+          <el-calendar v-model="times">
46
+          </el-calendar>
47
+        </div>
48
+      </el-col>
49
+      <el-col :span="8">
50
+        <div class="header">公告</div>
51
+        <div class="notice-content">
52
+          
53
+        </div>
54
+      </el-col>
55
+      <el-col :span="8">
56
+        <div class="header">项目流转</div>
57
+        <div class="project-content">
58
+          
43 59
         </div>
44 60
       </el-col>
45
-      <el-col></el-col>
46
-      <el-col></el-col>
47 61
     </el-row>
48 62
   </div>
49 63
 </template>
@@ -273,14 +287,47 @@ export default {
273 287
     font-weight: bold;
274 288
     font-family: '微软雅黑';
275 289
   }
290
+  .user-info{
291
+    display: grid;
292
+    
293
+  }
294
+}
295
+.notice-content{
296
+  width: 100%;
297
+  height: 400px;
298
+  background-color: #ffffff;
299
+  border-radius: 15px;
276 300
 }
277 301
 
278
-
279
-.calendar {
280
-  // height: 300px;
302
+.calendar-warpper {
303
+  width: 100%;
304
+  height: 400px;
305
+  background-color: #ffffff;
306
+  border-radius: 15px;
307
+}
308
+.project-content{
309
+  width: 100%;
310
+  height: 400px;
311
+  background-color: #ffffff;
312
+  border-radius: 15px;
281 313
 }
282 314
 
283 315
 ::v-deep .el-calendar-table .el-calendar-day {
284
-  height: 32px;
316
+  height: 39px;
317
+  text-align: center;
318
+  line-height: 22px;
319
+}
320
+::v-deep .el-calendar__body{
321
+  padding: 15px 31px 10px;
322
+}
323
+::v-deep .el-calendar__header{
324
+  padding: 20px;
325
+}
326
+::v-deep .el-calendar-table td.is-today{
327
+  background-color: #1890ff;
328
+  color: #ffffff;
329
+}
330
+::v-deep .el-calendar-table td.is-selected{
331
+  color: #242d42;
285 332
 }
286 333
 </style>

+ 5
- 1
oa-ui/src/views/oa/car/index.vue View File

@@ -41,7 +41,11 @@
41 41
       <el-table-column label="品牌" align="center" prop="brand" />
42 42
       <el-table-column label="车型" align="center" prop="series" />
43 43
       <el-table-column label="购置时间" align="center" prop="acquisitionTime" />
44
-      <el-table-column label="是否为租车" align="center" prop="isRent" >{{ idRent == "0" ? "否" : "是" }}</el-table-column>
44
+      <el-table-column label="是否为租车" align="center" prop="isRent" >
45
+        <template slot-scope="scope">
46
+          {{ scope.row.isRent == "0" ? "否" : "是" }}
47
+        </template>
48
+      </el-table-column>
45 49
       <el-table-column label="总价" align="center" prop="cost">
46 50
         <template slot-scope="scope">
47 51
           {{ scope.row.cost + '万元' }}

Loading…
Cancel
Save