@ebiz/designer-components 0.1.34 → 0.1.36
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
|
@@ -69,9 +69,10 @@
|
|
|
69
69
|
</t-card>
|
|
70
70
|
|
|
71
71
|
<!-- 审批人选择弹窗 -->
|
|
72
|
-
<ebiz-employee-selector :showDefault="false" v-model:visible="showApproverSelector"
|
|
73
|
-
:single="true" />
|
|
74
|
-
<ebiz-employee-selector :showDefault="false" v-model:visible="showCCSelector"
|
|
72
|
+
<ebiz-employee-selector v-if="showApproverSelector" :showDefault="false" v-model:visible="showApproverSelector"
|
|
73
|
+
@change="handleApproverSelect" :single="true" />
|
|
74
|
+
<ebiz-employee-selector v-if="showCCSelector" :showDefault="false" v-model:visible="showCCSelector"
|
|
75
|
+
@change="handleCCSelect" />
|
|
75
76
|
</div>
|
|
76
77
|
</template>
|
|
77
78
|
|
|
@@ -118,19 +118,12 @@
|
|
|
118
118
|
<div>
|
|
119
119
|
<ebiz-employee-selector content="增加抄送人" :single="false"
|
|
120
120
|
defaultTab="organization" class="component-base-style"
|
|
121
|
-
|
|
122
|
-
@confirm="onAddCcListConfirm">
|
|
121
|
+
@click="handleAddCcUser" @confirm="onAddCcListConfirm">
|
|
123
122
|
<template #selected-items="{ event, data }">
|
|
124
123
|
<div></div>
|
|
125
124
|
</template>
|
|
126
125
|
</ebiz-employee-selector>
|
|
127
126
|
</div>
|
|
128
|
-
|
|
129
|
-
<!-- <t-button theme="default" variant="outline" size="mini" @click="handleAddCcUser"
|
|
130
|
-
class="add-cc-button-inline">
|
|
131
|
-
<t-icon name="add" size="12px" />
|
|
132
|
-
增加抄送人
|
|
133
|
-
</t-button> -->
|
|
134
127
|
</div>
|
|
135
128
|
</div>
|
|
136
129
|
</div>
|
|
@@ -511,6 +504,7 @@ const getStartUserInfo = () => {
|
|
|
511
504
|
|
|
512
505
|
// 处理增加抄送人
|
|
513
506
|
const handleAddCcUser = () => {
|
|
507
|
+
console.log("handleAddCcUser")
|
|
514
508
|
state.showCcListSelector = true
|
|
515
509
|
emit('add-cc-user', {
|
|
516
510
|
processInstanceId: state.processInfo?.processInstanceId,
|
|
@@ -520,14 +514,15 @@ const handleAddCcUser = () => {
|
|
|
520
514
|
}
|
|
521
515
|
|
|
522
516
|
function onAddCcListConfirm(event) {
|
|
523
|
-
|
|
517
|
+
let selectedCCList = event.map(item => Number(item))
|
|
518
|
+
if (selectedCCList?.length === 0) return
|
|
524
519
|
state.showCcListSelector = false
|
|
525
520
|
dataService.fetch(
|
|
526
521
|
{
|
|
527
522
|
businessKey: state.processInfo?.businessKey,
|
|
528
523
|
type: state.processInfo?.processDefinitionKey,
|
|
529
524
|
processInstanceId: state.processInfo?.processInstanceId,
|
|
530
|
-
ccUsers:
|
|
525
|
+
ccUsers: selectedCCList
|
|
531
526
|
},
|
|
532
527
|
{},
|
|
533
528
|
'/tasks/batchAddCcInfo'
|
|
@@ -69,8 +69,8 @@ export default {
|
|
|
69
69
|
|
|
70
70
|
<script setup>
|
|
71
71
|
import { defineProps, defineEmits, ref, onMounted, computed, defineExpose } from 'vue';
|
|
72
|
-
import { dataService, EbizTableSort, EbizTdesignButton, EbizTdesignCard, EbizPageHeader, EbizSForm
|
|
73
|
-
import {
|
|
72
|
+
import { dataService, EbizTableSort, EbizTdesignButton, EbizTdesignCard, EbizPageHeader, EbizSForm } from "../../../index"
|
|
73
|
+
import { Space as TSpace, Pagination as TPagination, Input as TInput, Icon as TIcon } from 'tdesign-vue-next';
|
|
74
74
|
|
|
75
75
|
const currentPage = ref(1)
|
|
76
76
|
const pageSize = ref(10)
|
|
@@ -95,13 +95,13 @@ const props = defineProps({
|
|
|
95
95
|
gender: '男',
|
|
96
96
|
address: '北京市海淀区'
|
|
97
97
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
{
|
|
99
|
+
id: 2,
|
|
100
|
+
name: '李四',
|
|
101
|
+
age: 20,
|
|
102
|
+
gender: '女',
|
|
103
|
+
address: '北京市朝阳区'
|
|
104
|
+
}]
|
|
105
105
|
},
|
|
106
106
|
showPageHeader: {
|
|
107
107
|
type: Boolean,
|
|
@@ -199,12 +199,13 @@ const loadData = async () => {
|
|
|
199
199
|
const params = {
|
|
200
200
|
keyword: searchValue.value
|
|
201
201
|
}
|
|
202
|
-
const res = await dataService.fetch({
|
|
202
|
+
const res = await dataService.fetch({
|
|
203
203
|
page: currentPage.value,
|
|
204
204
|
pagesize: pageSize.value,
|
|
205
|
-
queryParams:{
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
queryParams: {
|
|
206
|
+
...params, ...props.defaultParams, ...props.formData
|
|
207
|
+
}
|
|
208
|
+
}, props.apiConfig, props.fetchUrl)
|
|
208
209
|
|
|
209
210
|
data.value = res.data || []
|
|
210
211
|
total.value = res.total || 0
|
|
@@ -239,9 +240,12 @@ const handleReset = (context) => {
|
|
|
239
240
|
if (result === false) {
|
|
240
241
|
return
|
|
241
242
|
}
|
|
243
|
+
|
|
242
244
|
emit('update:formData', { ...defaultFormData.value })
|
|
243
245
|
currentPage.value = 1
|
|
244
|
-
|
|
246
|
+
setTimeout(() => {
|
|
247
|
+
loadData()
|
|
248
|
+
}, 10)
|
|
245
249
|
}
|
|
246
250
|
|
|
247
251
|
|