@ebiz/designer-components 0.1.24 → 0.1.26
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
|
@@ -115,10 +115,14 @@
|
|
|
115
115
|
<div class="step-title-row">
|
|
116
116
|
<span class="step-title">抄送</span>
|
|
117
117
|
<!-- 增加抄送人按钮 -->
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
<div>
|
|
119
|
+
<ebiz-employee-selector content="增加抄送人" :single="false"
|
|
120
|
+
defaultTab="organization" class="component-base-style"
|
|
121
|
+
v-model="state.selectedCCList" @click="handleAddCcUser"
|
|
122
|
+
@confirm="onAddCcListConfirm">
|
|
123
|
+
</ebiz-employee-selector>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
122
126
|
<!-- <t-button theme="default" variant="outline" size="mini" @click="handleAddCcUser"
|
|
123
127
|
class="add-cc-button-inline">
|
|
124
128
|
<t-icon name="add" size="12px" />
|
|
@@ -347,6 +351,8 @@ const getOperationTypeText = (approver) => {
|
|
|
347
351
|
case 'ADD_SIGN':
|
|
348
352
|
return '加签'
|
|
349
353
|
case 'REJECT':
|
|
354
|
+
return '驳回'
|
|
355
|
+
case 'RETURN':
|
|
350
356
|
return '退回'
|
|
351
357
|
case 'CLAIM':
|
|
352
358
|
return '认领'
|
|
@@ -575,7 +581,7 @@ const needShowTargetUser = (approver) => {
|
|
|
575
581
|
if (!approver.operation || !approver.targetUser) return false
|
|
576
582
|
|
|
577
583
|
const operationType = approver.operation.operationType
|
|
578
|
-
return ['TRANSFER', 'ADD_SIGN'].includes(operationType)
|
|
584
|
+
return ['TRANSFER', 'ADD_SIGN', 'RETURN'].includes(operationType)
|
|
579
585
|
}
|
|
580
586
|
|
|
581
587
|
// 获取目标用户标签
|
|
@@ -588,6 +594,8 @@ const getTargetUserLabel = (approver) => {
|
|
|
588
594
|
return '转审给:'
|
|
589
595
|
case 'ADD_SIGN':
|
|
590
596
|
return '加签:'
|
|
597
|
+
case 'RETURN':
|
|
598
|
+
return '退回给:'
|
|
591
599
|
default:
|
|
592
600
|
return '目标:'
|
|
593
601
|
}
|
|
@@ -970,7 +978,7 @@ defineExpose({
|
|
|
970
978
|
.step-title-row {
|
|
971
979
|
display: flex;
|
|
972
980
|
align-items: center;
|
|
973
|
-
justify-content:
|
|
981
|
+
justify-content: flex-start;
|
|
974
982
|
width: 100%;
|
|
975
983
|
}
|
|
976
984
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ebiz-tdesign-button-dialog">
|
|
3
|
-
<div v-if="$slots.trigger"
|
|
4
|
-
<slot name="trigger"
|
|
3
|
+
<div v-if="$slots.trigger">
|
|
4
|
+
<slot name="trigger" :event="{
|
|
5
|
+
open: openDialog
|
|
6
|
+
}"></slot>
|
|
5
7
|
</div>
|
|
6
8
|
<t-dialog v-model:visible="dialogVisible" :header="title || computedTitle" :width="dialogWidth" :top="dialogTop"
|
|
7
9
|
:attach="dialogAttach" :destroy-on-close="dialogDestroyOnClose" :mode="dialogMode" :placement="dialogPlacement"
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
<div class="demo-section">
|
|
6
6
|
<h3>1. 标准弹窗</h3>
|
|
7
|
-
<t-button @click="openNormalDialog">打开标准弹窗</t-button>
|
|
8
7
|
<EbizSDialog ref="normalDialogRef" dialogType="normal" title="标准弹窗示例">
|
|
9
8
|
<template #body>
|
|
10
9
|
<div class="dialog-content">
|
|
@@ -12,6 +11,9 @@
|
|
|
12
11
|
<p>可以通过ref调用openDialog和closeDialog方法来控制弹窗的显示和隐藏。</p>
|
|
13
12
|
</div>
|
|
14
13
|
</template>
|
|
14
|
+
<template #trigger="{ event }">
|
|
15
|
+
<t-button @click="event.open">打开标准弹窗</t-button>
|
|
16
|
+
</template>
|
|
15
17
|
</EbizSDialog>
|
|
16
18
|
</div>
|
|
17
19
|
|
|
@@ -49,13 +51,13 @@
|
|
|
49
51
|
</template>
|
|
50
52
|
</t-table>
|
|
51
53
|
|
|
52
|
-
<EbizSDialog ref="deleteDialogRef" :apiConfig="mockDeleteApiConfig" dialogType="delete"
|
|
53
|
-
@dialog-confirm="handleDelete">
|
|
54
|
+
<EbizSDialog ref="deleteDialogRef" :apiConfig="mockDeleteApiConfig" dialogType="delete"
|
|
55
|
+
deleteConfirmMessage="确定要删除该用户吗?此操作不可恢复!" @dialog-confirm="handleDelete">
|
|
54
56
|
</EbizSDialog>
|
|
55
57
|
|
|
56
58
|
<EbizSDialog ref="editDialogRef" dialogType="edit" title="编辑用户" :rules="formRules" layout="vertical"
|
|
57
|
-
labelWidth="100px" :detailApiConfig="mockDetailApiConfig" :apiConfig="mockApiConfig"
|
|
58
|
-
@dialog-confirm="handleEditSubmit">
|
|
59
|
+
labelWidth="100px" :detailApiConfig="mockDetailApiConfig" :apiConfig="mockApiConfig"
|
|
60
|
+
@detail-loaded="handleDetailLoaded" @dialog-confirm="handleEditSubmit">
|
|
59
61
|
<template #body>
|
|
60
62
|
<t-form-item label="用户名" name="username">
|
|
61
63
|
<t-input v-model="editUsername" placeholder="请输入用户名"></t-input>
|