adtec-core-package 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -149,7 +149,7 @@ const open = async (taskVo: IWfTaskVo, type: string, params: ITaskOperate, comme
|
|
|
149
149
|
if (type === 'complete') {
|
|
150
150
|
//同意
|
|
151
151
|
dialogLabel.value = '审批意见'
|
|
152
|
-
dialogTitle.value = '
|
|
152
|
+
dialogTitle.value = '流程审批'
|
|
153
153
|
task.value.comment = task.value.comment ? task.value.comment : '同意。'
|
|
154
154
|
} else if (type === 'refuse') {
|
|
155
155
|
//终止
|
|
@@ -120,7 +120,7 @@ const getStatus = (task: IWfTaskVo) => {
|
|
|
120
120
|
if (task.commentList && task.commentList.length > 0) {
|
|
121
121
|
return ['待办', '已办', '已办', '终止', '委派', '转办', '终止', '撤回'][
|
|
122
122
|
Number(task.commentList[task.commentList.length - 1].type)
|
|
123
|
-
|
|
123
|
+
]
|
|
124
124
|
}
|
|
125
125
|
return ''
|
|
126
126
|
}
|
|
@@ -132,7 +132,7 @@ defineExpose({
|
|
|
132
132
|
|
|
133
133
|
<template>
|
|
134
134
|
<el-flex justify="space-around" align="center" v-loading="loading" width="100%">
|
|
135
|
-
<el-steps direction="vertical" align-center :space="160">
|
|
135
|
+
<el-steps direction="vertical" align-center :space="160" style="width:81%;">
|
|
136
136
|
<el-step
|
|
137
137
|
v-for="item in taskGroup"
|
|
138
138
|
:key="item.parentExecutionId"
|
|
@@ -147,20 +147,24 @@ defineExpose({
|
|
|
147
147
|
<template #description>
|
|
148
148
|
<el-flex
|
|
149
149
|
:vertical="false"
|
|
150
|
-
style="max-
|
|
150
|
+
style="max-width: 100%; min-width: 180px; min-height: 60px"
|
|
151
151
|
justify="flex-start"
|
|
152
152
|
>
|
|
153
|
+
<!-- width="170px"-->
|
|
153
154
|
<el-flex
|
|
154
155
|
:vertical="true"
|
|
155
156
|
v-for="task in item.tasks"
|
|
156
157
|
:key="task.taskId"
|
|
157
|
-
|
|
158
|
+
|
|
158
159
|
style="
|
|
159
160
|
margin-bottom: 5px;
|
|
160
161
|
padding: 5px;
|
|
161
162
|
margin-right: 5px;
|
|
162
163
|
border-radius: 8px;
|
|
163
164
|
background: #f8f8f8;
|
|
165
|
+
width: 31%;
|
|
166
|
+
min-width: 160px;
|
|
167
|
+
max-width: 210px;
|
|
164
168
|
"
|
|
165
169
|
>
|
|
166
170
|
<el-flex height="30px" align="center" justify="space-between">
|
|
@@ -173,18 +177,19 @@ defineExpose({
|
|
|
173
177
|
<span class="ellipsis" style="font-size: 14px">{{ task.assigneeName }}</span>
|
|
174
178
|
</el-tooltip>
|
|
175
179
|
<el-tag size="small" :type="task.finishTime ? 'success' : 'primary'">{{
|
|
176
|
-
|
|
177
|
-
|
|
180
|
+
getStatus(task)
|
|
181
|
+
}}</el-tag>
|
|
178
182
|
</el-flex>
|
|
179
|
-
<el-tooltip
|
|
180
|
-
v-if="task.comment"
|
|
181
|
-
:content="task.comment"
|
|
182
|
-
placement="top"
|
|
183
|
-
effect="light"
|
|
184
|
-
|
|
185
|
-
<span class="
|
|
186
|
-
</el-tooltip
|
|
187
|
-
<
|
|
183
|
+
<!-- <el-tooltip-->
|
|
184
|
+
<!-- v-if="task.comment"-->
|
|
185
|
+
<!-- :content="task.comment"-->
|
|
186
|
+
<!-- placement="top"-->
|
|
187
|
+
<!-- effect="light"-->
|
|
188
|
+
<!-- >-->
|
|
189
|
+
<!-- <span class="ellipsis2">{{ task.comment }}</span>-->
|
|
190
|
+
<!-- </el-tooltip>-->
|
|
191
|
+
<span class="ellipsis2">{{ task.comment }}</span>
|
|
192
|
+
<el-flex v-if="taskFiles.some((x) => x.businessId === task.taskId)" width="100%">
|
|
188
193
|
<!-- <span style="font-size: 14px">附件:</span>-->
|
|
189
194
|
<el-uploads
|
|
190
195
|
:is-edlt="false"
|
|
@@ -195,8 +200,8 @@ defineExpose({
|
|
|
195
200
|
</el-flex>
|
|
196
201
|
|
|
197
202
|
<span style="display: block; color: #909399" v-if="task.comment">{{
|
|
198
|
-
|
|
199
|
-
|
|
203
|
+
task.finishTime?.substring(0, 19)
|
|
204
|
+
}}</span>
|
|
200
205
|
</el-flex>
|
|
201
206
|
</el-flex>
|
|
202
207
|
</template>
|
|
@@ -215,7 +220,16 @@ defineExpose({
|
|
|
215
220
|
min-height: 20px;
|
|
216
221
|
font-size: 14px;
|
|
217
222
|
}
|
|
218
|
-
|
|
223
|
+
.ellipsis2 {
|
|
224
|
+
/* 移除多行限制相关属性 */
|
|
225
|
+
display: inline-block; /* 恢复为 inline-block 让高度自适应 */
|
|
226
|
+
width: 100%;
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
line-height: 20px; /* 保持行高便于可能的计算 */
|
|
229
|
+
overflow: visible; /* 改为visible让内容完全显示 */
|
|
230
|
+
text-overflow: clip; /* 不需要省略号 */
|
|
231
|
+
min-height: 20px; /* 保持最小高度为单行高度 */
|
|
232
|
+
}
|
|
219
233
|
:deep .el-step__line {
|
|
220
234
|
background-color: transparent;
|
|
221
235
|
border: 1.5px solid;
|