w-ui-v1 1.0.51 → 1.0.52
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
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</view>
|
|
37
37
|
</wd-cell>
|
|
38
38
|
|
|
39
|
-
<wd-cell v-else-if="subItem.extControlType === 'file'"
|
|
39
|
+
<wd-cell v-else-if="subItem.extControlType === 'file'||subItem.extControlType === 'picture'"
|
|
40
40
|
:rules="[{ required: subItem.required, message: `请选择${subItem.title}文件` }]" :title="subItem.title"
|
|
41
41
|
title-width="100px" :prop="subItem.id">
|
|
42
42
|
<wd-upload :limit="1" :accept="subItem.extControlType"
|
|
@@ -104,7 +104,7 @@ const modelValue = computed(() => {
|
|
|
104
104
|
|
|
105
105
|
return selectArr2
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
case 'picture':
|
|
108
108
|
case 'file':
|
|
109
109
|
return props.model[props.subItem.id] ? JSON.parse(props.model[props.subItem.id]).valid === 'new' ? [{ url: JSON.parse(props.model[props.subItem.id]).base.path }] : [{ url: baseUrl + "/v3/files" + JSON.parse(props.model[props.subItem.id]).base.path }] : []
|
|
110
110
|
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
let qrueKey = ""
|
|
290
290
|
if (ltmplConfig.value.primaryCriteria.sourceId) qrueKey = "c_" + ltmplConfig.value.primaryCriteria.sourceId + `=${filterVal.value}`
|
|
291
291
|
const key = await getPageKey(props.sourceId, props.mainCode, qrueKey)// 获取key
|
|
292
|
-
const data = await getPageData(key.data?.key, pageNo.value,
|
|
292
|
+
const data = await getPageData(key.data?.key, pageNo.value, 50)// 获取数据
|
|
293
293
|
if (data.data?.entities?.length === 0) {
|
|
294
294
|
return
|
|
295
295
|
}
|
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
let qrueKey = ""
|
|
437
437
|
if (ltmplConfig.value.primaryCriteria.sourceId) qrueKey = "c_" + ltmplConfig.value.primaryCriteria.sourceId + `=${value}`
|
|
438
438
|
const key = await getPageKey(props.sourceId, "", qrueKey)// 获取key
|
|
439
|
-
const data = await getPageData(key.data?.key, 1,
|
|
439
|
+
const data = await getPageData(key.data?.key, 1, 50)// 获取数据
|
|
440
440
|
getlist(data.data?.entities || [])
|
|
441
441
|
|
|
442
442
|
}
|