2 Achegas 594228950f ... f505c15bda

Autor SHA1 Mensaxe Data
  liying333 f505c15bda 样式修改 hai 1 semana
  liying333 44799c87a1 flowable-页面样式修改 hai 1 semana

+ 10 - 2
.env.development

@@ -1,3 +1,11 @@
1
+###
2
+ # @Author: liying333 2698127913@qq.com
3
+ # @Date: 2024-11-14 15:41:20
4
+ # @LastEditors: liying333 2698127913@qq.com
5
+ # @LastEditTime: 2024-11-15 09:21:38
6
+ # @FilePath: \ruoyi\.env.development
7
+ # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+### 
1 9
 # 页面标题
2 10
 VUE_APP_TITLE = 双重预防综合管理系统
3 11
 
@@ -5,8 +13,8 @@ VUE_APP_TITLE = 双重预防综合管理系统
5 13
 ENV = 'development'
6 14
 
7 15
 # 双重防御系统开发环境后台接口地址配置
8
-# VUE_APP_BASE_API = 'http://101.42.248.108:17005'
9
-VUE_APP_BASE_API = 'http://192.168.3.200:18080'
16
+VUE_APP_BASE_API = 'http://101.42.248.108:17005'
17
+# VUE_APP_BASE_API = 'http://192.168.3.200:18080'
10 18
 # VUE_APP_BASE_API = 'http://localhost:18080'
11 19
 
12 20
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 16758 - 1
package-lock.json


+ 3 - 3
src/assets/styles/modules/el-cardCom.scss

@@ -19,7 +19,7 @@
19 19
     color: #fff;
20 20
   }
21 21
 
22
-  .el-tabs__item.is-active {
23
-    color: #031527;
24
-  }
22
+  // .el-tabs__item.is-active {
23
+  //   color: #031527;
24
+  // }
25 25
 }

+ 27 - 47
src/components/Process/designer.vue

@@ -14,53 +14,34 @@
14 14
 
15 15
       <!--   任务信息     -->
16 16
       <el-collapse-item name="Task" v-if="elementType.indexOf('Task') !== -1">
17
-        <template slot="title"
18
-          ><i class="el-icon-s-claim"></i> 任务配置</template
19
-        >
17
+        <template slot="title"><i class="el-icon-s-claim"></i> 任务配置</template>
20 18
         <user-task-panel :id="elementId" />
21 19
       </el-collapse-item>
22 20
 
23 21
       <!--   表单     -->
24 22
       <el-collapse-item name="form" v-if="formVisible">
25
-        <template slot="title"
26
-          ><i class="el-icon-s-order"></i> 表单配置</template
27
-        >
23
+        <template slot="title"><i class="el-icon-s-order"></i> 表单配置</template>
28 24
         <form-panel :id="elementId" />
29 25
       </el-collapse-item>
30 26
 
31 27
       <!--   执行监听器     -->
32 28
       <el-collapse-item name="executionListener">
33
-        <template slot="title"
34
-          ><i class="el-icon-s-promotion"></i> 执行监听器
35
-          <el-badge
36
-            :value="executionListenerCount"
37
-            class="item"
38
-            type="primary"
39
-          />
29
+        <template slot="title"><i class="el-icon-s-promotion"></i> 执行监听器
30
+          <el-badge :value="executionListenerCount" class="item" type="primary" />
40 31
         </template>
41
-        <execution-listener
42
-          :id="elementId"
43
-          @getExecutionListenerCount="getExecutionListenerCount"
44
-        />
32
+        <execution-listener :id="elementId" @getExecutionListenerCount="getExecutionListenerCount" />
45 33
       </el-collapse-item>
46 34
 
47 35
       <!--   任务监听器     -->
48 36
       <el-collapse-item name="taskListener" v-if="elementType === 'UserTask'">
49
-        <template slot="title"
50
-          ><i class="el-icon-s-flag"></i> 任务监听器
37
+        <template slot="title"><i class="el-icon-s-flag"></i> 任务监听器
51 38
           <el-badge :value="taskListenerCount" class="item" type="primary" />
52 39
         </template>
53
-        <task-listener
54
-          :id="elementId"
55
-          @getTaskListenerCount="getTaskListenerCount"
56
-        />
40
+        <task-listener :id="elementId" @getTaskListenerCount="getTaskListenerCount" />
57 41
       </el-collapse-item>
58 42
 
59 43
       <!--   多实例     -->
60
-      <el-collapse-item
61
-        name="multiInstance"
62
-        v-if="elementType.indexOf('Task') !== -1"
63
-      >
44
+      <el-collapse-item name="multiInstance" v-if="elementType.indexOf('Task') !== -1">
64 45
         <template slot="title"><i class="el-icon-s-grid"></i> 多实例</template>
65 46
         <multi-instance :id="elementId" />
66 47
       </el-collapse-item>
@@ -72,9 +53,7 @@
72 53
 
73 54
       <!--   扩展属性     -->
74 55
       <el-collapse-item name="properties">
75
-        <template slot="title"
76
-          ><i class="el-icon-circle-plus"></i> 扩展属性</template
77
-        >
56
+        <template slot="title"><i class="el-icon-circle-plus"></i> 扩展属性</template>
78 57
         <properties-panel :id="elementId" />
79 58
       </el-collapse-item>
80 59
     </el-collapse>
@@ -112,7 +91,7 @@ export default {
112 91
     FlowRole,
113 92
     FlowExp,
114 93
   },
115
-  data() {
94
+  data () {
116 95
     return {
117 96
       activeName: "common",
118 97
       executionListenerCount: 0,
@@ -133,22 +112,22 @@ export default {
133 112
   /** 传值监听 */
134 113
   watch: {
135 114
     elementId: {
136
-      handler() {
115
+      handler () {
137 116
         this.activeName = "common";
138 117
       },
139 118
     },
140 119
   },
141
-  created() {
120
+  created () {
142 121
     this.initModels();
143 122
   },
144 123
   methods: {
145 124
     // 初始化流程设计器
146
-    initModels() {
125
+    initModels () {
147 126
       this.getActiveElement();
148 127
     },
149 128
 
150 129
     // 注册节点事件
151
-    getActiveElement() {
130
+    getActiveElement () {
152 131
       // 初始第一个选中元素 bpmn:Process
153 132
       this.initFormOnChanged(null);
154 133
       this.modelerStore.modeler.on("import.done", (e) => {
@@ -167,7 +146,7 @@ export default {
167 146
     },
168 147
 
169 148
     // 初始化数据
170
-    initFormOnChanged(element) {
149
+    initFormOnChanged (element) {
171 150
       let activatedElement = element;
172 151
       if (!activatedElement) {
173 152
         activatedElement =
@@ -192,14 +171,14 @@ export default {
192 171
     },
193 172
 
194 173
     /** 获取执行监听器数量 */
195
-    getExecutionListenerCount(value) {
174
+    getExecutionListenerCount (value) {
196 175
       this.executionListenerCount = value;
197 176
     },
198 177
     /** 获取任务监听器数量 */
199
-    getTaskListenerCount(value) {
178
+    getTaskListenerCount (value) {
200 179
       this.taskListenerCount = value;
201 180
     },
202
-    translateNodeName(val) {
181
+    translateNodeName (val) {
203 182
       return translateNodeName(val);
204 183
     },
205 184
   },
@@ -207,12 +186,13 @@ export default {
207 186
 </script>
208 187
 
209 188
 <style lang="scss">
210
-.designer-collapse {
211
-  .el-form-item__label {
212
-    color: #000000;
213
-  }
214
-  .el-collapse-item__header {
215
-    color: #000000 !important;
216
-  }
217
-}
189
+// .designer-collapse {
190
+//   .el-form-item__label {
191
+//     color: #000000;
192
+//   }
193
+
194
+//   .el-collapse-item__header {
195
+//     color: #000000 !important;
196
+//   }
197
+// }
218 198
 </style>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 50 - 37
src/components/Process/index.vue


+ 0 - 2
src/views/flowable/definition/model.vue

@@ -128,8 +128,6 @@ export default {
128 128
 <style lang="scss" scoped>
129 129
 .content-box{
130 130
   line-height: 10px;
131
-  background-color: #ffffff;
132
-  color: #000000;
133 131
 }
134 132
 // 修改对话框高度
135 133
 .showAll_dialog {

+ 12 - 13
src/views/flowable/task/finished/detail/index.vue

@@ -1,29 +1,25 @@
1 1
 <template>
2 2
   <div class="app-container">
3
-    <el-card class="box-card" >
3
+    <el-card class="box-card">
4 4
       <div slot="header" class="clearfix">
5 5
         <span class="el-icon-document">已办任务</span>
6 6
         <el-button style="float: right;" size="mini" type="danger" @click="goBack">关闭</el-button>
7 7
       </div>
8
-      <el-tabs  tab-position="top" v-model="activeName" @tab-click="handleClick">
8
+      <el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick">
9 9
         <!--表单信息-->
10 10
         <el-tab-pane label="表单信息" name="1">
11 11
           <el-col :span="16" :offset="4">
12
-              <v-form-render ref="vFormRef"/>
12
+            <v-form-render ref="vFormRef" />
13 13
           </el-col>
14 14
         </el-tab-pane>
15 15
         <!--流程流转记录-->
16 16
         <el-tab-pane label="流转记录" name="2">
17
-          <el-col :span="16" :offset="4" >
17
+          <el-col :span="16" :offset="4">
18 18
             <div class="block">
19 19
               <el-timeline>
20
-                <el-timeline-item
21
-                  v-for="(item,index ) in flowRecordList"
22
-                  :key="index"
23
-                  :icon="setIcon(item.finishTime)"
24
-                  :color="setColor(item.finishTime)"
25
-                >
26
-                  <p style="font-weight: 700">{{item.taskName}}</p>
20
+                <el-timeline-item v-for="(item,index ) in flowRecordList" :key="index" :icon="setIcon(item.finishTime)"
21
+                  :color="setColor(item.finishTime)">
22
+                  <p style="font-weight: 700" class="el-timeline-item-p">{{item.taskName}}</p>
27 23
                   <el-card :body-style="{ padding: '10px' }">
28 24
                     <el-descriptions class="margin-top" :column="1" size="small" border>
29 25
                       <el-descriptions-item v-if="item.assigneeName" label-class-name="my-label">
@@ -43,7 +39,7 @@
43 39
                         <template slot="label"><i class="el-icon-date"></i>处理时间</template>
44 40
                         {{item.finishTime}}
45 41
                       </el-descriptions-item>
46
-                      <el-descriptions-item v-if="item.duration"  label-class-name="my-label">
42
+                      <el-descriptions-item v-if="item.duration" label-class-name="my-label">
47 43
                         <template slot="label"><i class="el-icon-time"></i>耗时</template>
48 44
                         {{item.duration}}
49 45
                       </el-descriptions-item>
@@ -59,7 +55,7 @@
59 55
           </el-col>
60 56
         </el-tab-pane>
61 57
         <el-tab-pane label="流程图" name="3">
62
-          <Bpmn-viewer :flowData="flowData" :procInsId="taskForm.procInsId"/>
58
+          <Bpmn-viewer :flowData="flowData" :procInsId="taskForm.procInsId" />
63 59
         </el-tab-pane>
64 60
       </el-tabs>
65 61
     </el-card>
@@ -201,4 +197,7 @@ export default {
201 197
 .my-label {
202 198
   background: #E1F3D8;
203 199
 }
200
+.el-timeline-item-p {
201
+  color: #ffffff;
202
+}
204 203
 </style>

+ 14 - 15
src/views/flowable/task/myProcess/detail/index.vue

@@ -1,29 +1,25 @@
1 1
 <template>
2 2
   <div class="app-container">
3
-    <el-card class="box-card" >
3
+    <el-card class="box-card">
4 4
       <div slot="header" class="clearfix">
5 5
         <span class="el-icon-document">已发任务</span>
6 6
         <el-button style="float: right;" size="mini" type="danger" @click="goBack">关闭</el-button>
7 7
       </div>
8
-      <el-tabs  tab-position="top" v-model="activeName" @tab-click="handleClick">
8
+      <el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick">
9 9
         <!--表单信息-->
10 10
         <el-tab-pane label="表单信息" name="1">
11 11
           <el-col :span="16" :offset="4">
12
-            <v-form-render ref="vFormRef"/>
13
-         </el-col>
12
+            <v-form-render ref="vFormRef" />
13
+          </el-col>
14 14
         </el-tab-pane>
15 15
         <!--流程流转记录-->
16 16
         <el-tab-pane label="流转记录" name="2">
17
-          <el-col :span="16" :offset="4" >
17
+          <el-col :span="16" :offset="4">
18 18
             <div class="block">
19 19
               <el-timeline>
20
-                <el-timeline-item
21
-                  v-for="(item,index ) in flowRecordList"
22
-                  :key="index"
23
-                  :icon="setIcon(item.finishTime)"
24
-                  :color="setColor(item.finishTime)"
25
-                >
26
-                  <p style="font-weight: 700">{{item.taskName}}</p>
20
+                <el-timeline-item v-for="(item,index ) in flowRecordList" :key="index" :icon="setIcon(item.finishTime)"
21
+                  :color="setColor(item.finishTime)">
22
+                  <p style="font-weight: 700" class="el-timeline-item-p">{{item.taskName}}</p>
27 23
                   <el-card :body-style="{ padding: '10px' }">
28 24
                     <el-descriptions class="margin-top" :column="1" size="small" border>
29 25
                       <el-descriptions-item v-if="item.assigneeName" label-class-name="my-label">
@@ -43,7 +39,7 @@
43 39
                         <template slot="label"><i class="el-icon-date"></i>处理时间</template>
44 40
                         {{item.finishTime}}
45 41
                       </el-descriptions-item>
46
-                      <el-descriptions-item v-if="item.duration"  label-class-name="my-label">
42
+                      <el-descriptions-item v-if="item.duration" label-class-name="my-label">
47 43
                         <template slot="label"><i class="el-icon-time"></i>耗时</template>
48 44
                         {{item.duration}}
49 45
                       </el-descriptions-item>
@@ -60,9 +56,9 @@
60 56
         </el-tab-pane>
61 57
         <!--流程图-->
62 58
         <el-tab-pane label="流程图" name="3">
63
-          <bpmn-viewer :flowData="flowData" :procInsId="taskForm.procInsId"/>
59
+          <bpmn-viewer :flowData="flowData" :procInsId="taskForm.procInsId" />
64 60
         </el-tab-pane>
65
-    </el-tabs>
61
+      </el-tabs>
66 62
     </el-card>
67 63
   </div>
68 64
 </template>
@@ -197,4 +193,7 @@ export default {
197 193
 .my-label {
198 194
   background: #E1F3D8;
199 195
 }
196
+.el-timeline-item-p {
197
+  color: #ffffff;
198
+}
200 199
 </style>

+ 21 - 28
src/views/flowable/task/todo/detail/index.vue

@@ -11,7 +11,7 @@
11 11
         <!--表单信息-->
12 12
         <el-tab-pane label="表单信息" name="1">
13 13
           <el-col :span="16" :offset="4">
14
-            <v-form-render ref="vFormRef"/>
14
+            <v-form-render ref="vFormRef" />
15 15
             <div style="margin-left:10%;margin-bottom: 20px;font-size: 14px;">
16 16
               <el-button type="primary" @click="handleComplete">审 批</el-button>
17 17
             </div>
@@ -24,13 +24,9 @@
24 24
           <el-col :span="16" :offset="4">
25 25
             <div class="block">
26 26
               <el-timeline>
27
-                <el-timeline-item
28
-                  v-for="(item,index ) in flowRecordList"
29
-                  :key="index"
30
-                  :icon="setIcon(item.finishTime)"
31
-                  :color="setColor(item.finishTime)"
32
-                >
33
-                  <p style="font-weight: 700">{{ item.taskName }}</p>
27
+                <el-timeline-item v-for="(item,index ) in flowRecordList" :key="index" :icon="setIcon(item.finishTime)"
28
+                  :color="setColor(item.finishTime)">
29
+                  <p style="font-weight: 700" class="el-timeline-item-p">{{ item.taskName }}</p>
34 30
                   <el-card :body-style="{ padding: '10px' }">
35 31
                     <el-descriptions class="margin-top" :column="1" size="small" border>
36 32
                       <el-descriptions-item v-if="item.assigneeName" label-class-name="my-label">
@@ -67,7 +63,7 @@
67 63
         </el-tab-pane>
68 64
         <!--流程图-->
69 65
         <el-tab-pane label="流程图" name="3">
70
-          <bpmn-viewer :flowData="flowData" :procInsId="taskForm.procInsId"/>
66
+          <bpmn-viewer :flowData="flowData" :procInsId="taskForm.procInsId" />
71 67
         </el-tab-pane>
72 68
       </el-tabs>
73 69
       <!--审批任务-->
@@ -78,8 +74,8 @@
78 74
             <flow-role v-if="checkSendRole" @handleRoleSelect="handleRoleSelect"></flow-role>
79 75
           </el-form-item>
80 76
           <el-form-item label="处理意见" label-width="80px" prop="comment"
81
-                        :rules="[{ required: true, message: '请输入处理意见', trigger: 'blur' }]">
82
-            <el-input type="textarea" v-model="taskForm.comment" placeholder="请输入处理意见"/>
77
+            :rules="[{ required: true, message: '请输入处理意见', trigger: 'blur' }]">
78
+            <el-input type="textarea" v-model="taskForm.comment" placeholder="请输入处理意见" />
83 79
           </el-form-item>
84 80
         </el-form>
85 81
         <span slot="footer" class="dialog-footer">
@@ -92,36 +88,30 @@
92 88
         <el-form ref="taskForm" :model="taskForm" label-width="80px">
93 89
           <el-form-item label="退回节点" prop="targetKey">
94 90
             <el-radio-group v-model="taskForm.targetKey">
95
-              <el-radio-button
96
-                v-for="item in returnTaskList"
97
-                :key="item.id"
98
-                :label="item.id"
99
-              >{{ item.name }}
91
+              <el-radio-button v-for="item in returnTaskList" :key="item.id" :label="item.id">{{ item.name }}
100 92
               </el-radio-button>
101 93
             </el-radio-group>
102 94
           </el-form-item>
103
-          <el-form-item label="退回意见" prop="comment"
104
-                        :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]">
105
-            <el-input style="width: 50%" type="textarea" v-model="taskForm.comment" placeholder="请输入意见"/>
95
+          <el-form-item label="退回意见" prop="comment" :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]">
96
+            <el-input style="width: 50%" type="textarea" v-model="taskForm.comment" placeholder="请输入意见" />
106 97
           </el-form-item>
107 98
         </el-form>
108 99
         <span slot="footer" class="dialog-footer">
109
-              <el-button @click="returnOpen = false">取 消</el-button>
110
-              <el-button type="primary" @click="taskReturn">确 定</el-button>
111
-          </span>
100
+          <el-button @click="returnOpen = false">取 消</el-button>
101
+          <el-button type="primary" @click="taskReturn">确 定</el-button>
102
+        </span>
112 103
       </el-dialog>
113 104
       <!--驳回流程-->
114 105
       <el-dialog :title="rejectTitle" :visible.sync="rejectOpen" width="40%" append-to-body>
115 106
         <el-form ref="taskForm" :model="taskForm" label-width="80px">
116
-          <el-form-item label="驳回意见" prop="comment"
117
-                        :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]">
118
-            <el-input style="width: 50%" type="textarea" v-model="taskForm.comment" placeholder="请输入意见"/>
107
+          <el-form-item label="驳回意见" prop="comment" :rules="[{ required: true, message: '请输入意见', trigger: 'blur' }]">
108
+            <el-input style="width: 50%" type="textarea" v-model="taskForm.comment" placeholder="请输入意见" />
119 109
           </el-form-item>
120 110
         </el-form>
121 111
         <span slot="footer" class="dialog-footer">
122
-            <el-button @click="rejectOpen = false">取 消</el-button>
123
-            <el-button type="primary" @click="taskReject">确 定</el-button>
124
-          </span>
112
+          <el-button @click="rejectOpen = false">取 消</el-button>
113
+          <el-button type="primary" @click="taskReject">确 定</el-button>
114
+        </span>
125 115
       </el-dialog>
126 116
     </el-card>
127 117
   </div>
@@ -458,4 +448,7 @@ export default {
458 448
 .my-label {
459 449
   background: #E1F3D8;
460 450
 }
451
+.el-timeline-item-p {
452
+  color: #ffffff;
453
+}
461 454
 </style>