@ebiz/designer-components 0.0.53 → 0.0.55
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/dist/designer-components.css +1 -1
- package/dist/index.mjs +126 -126
- package/package.json +1 -1
- package/src/components/EbizApproval.vue +5 -3
- package/src/components/EbizEmployeeSelector.vue +1 -1
- package/src/components/senior/EbizSData/index.vue +3 -7
- package/src/components/senior/EbizSDialog/index.vue +1 -1
package/package.json
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
</div>
|
28
28
|
<t-icon v-if="index < approvers.length - 1" name="chevron-right" class="arrow-icon" />
|
29
29
|
</template>
|
30
|
-
<t-button theme="default" variant="text" @click="handleAddApprover">
|
30
|
+
<t-button theme="default" variant="text" @click="handleAddApprover" v-if="canEdit">
|
31
31
|
<template #icon>
|
32
32
|
<t-icon name="add" />
|
33
33
|
</template>
|
@@ -56,7 +56,7 @@
|
|
56
56
|
</div>
|
57
57
|
</div>
|
58
58
|
</template>
|
59
|
-
<t-button theme="default" variant="text" @click="handleAddCC">
|
59
|
+
<t-button theme="default" variant="text" @click="handleAddCC" v-if="canEdit">
|
60
60
|
<template #icon>
|
61
61
|
<t-icon name="add" />
|
62
62
|
</template>
|
@@ -99,6 +99,7 @@ interface Props {
|
|
99
99
|
showRootOrg?: boolean // 是否显示顶层组织
|
100
100
|
childDeptEnable?: boolean // 是否包含子部门
|
101
101
|
showCC?: boolean // 是否显示抄送人模块
|
102
|
+
canEdit?: boolean // 是否可以编辑审批人,抄送人
|
102
103
|
}
|
103
104
|
|
104
105
|
const props = withDefaults(defineProps<Props>(), {
|
@@ -109,7 +110,8 @@ const props = withDefaults(defineProps<Props>(), {
|
|
109
110
|
required: true,
|
110
111
|
showRootOrg: true,
|
111
112
|
childDeptEnable: false,
|
112
|
-
showCC: true
|
113
|
+
showCC: true,
|
114
|
+
canEdit: true
|
113
115
|
})
|
114
116
|
|
115
117
|
const emit = defineEmits(['update:approverList', 'update:ccList', 'change'])
|
@@ -225,7 +225,7 @@ const props = defineProps({
|
|
225
225
|
});
|
226
226
|
|
227
227
|
// 定义组件事件
|
228
|
-
const emit = defineEmits(['update:modelValue', 'change']);
|
228
|
+
const emit = defineEmits(['update:modelValue', 'change','update:visible']);
|
229
229
|
const tempVisible = ref(false);
|
230
230
|
// 内部状态变量
|
231
231
|
const dialogVisible = computed({
|
@@ -196,16 +196,12 @@ const searchValue = ref('')
|
|
196
196
|
|
197
197
|
const loadData = async () => {
|
198
198
|
|
199
|
-
|
199
|
+
const params = {
|
200
200
|
keyword: searchValue.value
|
201
201
|
}
|
202
|
-
if (props.pageEnable) {
|
203
|
-
params = {
|
204
|
-
page: currentPage.value,
|
205
|
-
pagesize: pageSize.value,
|
206
|
-
}
|
207
|
-
}
|
208
202
|
const res = await dataService.fetch({
|
203
|
+
page: currentPage.value,
|
204
|
+
pagesize: pageSize.value,
|
209
205
|
queryParams:{
|
210
206
|
...params, ...props.defaultParams, ...props.formData
|
211
207
|
} }, props.apiConfig, props.fetchUrl)
|
@@ -355,7 +355,7 @@ const callApi = async (config = props.apiConfig) => {
|
|
355
355
|
}
|
356
356
|
|
357
357
|
// 调用dataService进行API请求,直接使用config
|
358
|
-
const response = await dataService.fetch({
|
358
|
+
const response = await dataService.fetch({ detailId: fetchParams.id }, config)
|
359
359
|
|
360
360
|
// 显示成功消息
|
361
361
|
if (props.showResultMessage) {
|