@ebiz/designer-components 0.0.45 → 0.0.47
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
@@ -180,7 +180,7 @@ const props = defineProps({
|
|
180
180
|
});
|
181
181
|
|
182
182
|
const computedData = computed(() => {
|
183
|
-
const developMode =
|
183
|
+
const developMode = localStorage.getItem('ebiz-develop-mode')
|
184
184
|
if (developMode === 'designer') {
|
185
185
|
if (props.showDemoData) {
|
186
186
|
return props.demoData
|
@@ -205,7 +205,10 @@ const loadData = async () => {
|
|
205
205
|
pagesize: pageSize.value,
|
206
206
|
}
|
207
207
|
}
|
208
|
-
const res = await dataService.fetch({
|
208
|
+
const res = await dataService.fetch({
|
209
|
+
queryParams:{
|
210
|
+
...params, ...props.defaultParams, ...props.formData
|
211
|
+
} }, props.apiConfig, props.fetchUrl)
|
209
212
|
|
210
213
|
data.value = res.data || []
|
211
214
|
total.value = res.total || 0
|
@@ -335,7 +335,7 @@ const callApi = async (config = props.apiConfig) => {
|
|
335
335
|
apiLoading.value = true
|
336
336
|
|
337
337
|
// 准备请求参数
|
338
|
-
const fetchParams = { ...localFormData.value }
|
338
|
+
const fetchParams = { ...localFormData.value, ...props.formData }
|
339
339
|
|
340
340
|
// 如果有ID,添加到请求参数中
|
341
341
|
if (currentId.value) {
|
@@ -352,7 +352,7 @@ const callApi = async (config = props.apiConfig) => {
|
|
352
352
|
}
|
353
353
|
|
354
354
|
// 调用dataService进行API请求,直接使用config
|
355
|
-
const response = await dataService.fetch(fetchParams, config)
|
355
|
+
const response = await dataService.fetch({ saveData: fetchParams }, config)
|
356
356
|
|
357
357
|
// 显示成功消息
|
358
358
|
if (props.showResultMessage) {
|
@@ -30,7 +30,7 @@
|
|
30
30
|
:placeholder="placeholder || '请选择'"
|
31
31
|
:disabled="disabled"
|
32
32
|
:clearable="clearable"
|
33
|
-
:filterable="
|
33
|
+
:filterable="true"
|
34
34
|
:multiple="multiple"
|
35
35
|
:loading="loading"
|
36
36
|
:remote-api-config="remoteApiConfig"
|
@@ -322,7 +322,7 @@ const props = defineProps({
|
|
322
322
|
*/
|
323
323
|
filterable: {
|
324
324
|
type: Boolean,
|
325
|
-
default:
|
325
|
+
default: true
|
326
326
|
},
|
327
327
|
/**
|
328
328
|
* 是否支持多选
|