yuang-framework-ui-pc 1.1.77 → 1.1.78
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/es/yu-framework-attachment-upload/index.js +7 -12
- package/es/yu-uims-role-dialog/index.js +1 -1
- package/es/yu-uims-user-dialog/index.js +1 -1
- package/lib/yu-framework-attachment-upload/index.cjs +7 -12
- package/lib/yu-uims-role-dialog/index.cjs +1 -1
- package/lib/yu-uims-user-dialog/index.cjs +1 -1
- package/package.json +1 -1
|
@@ -62,16 +62,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
init();
|
|
63
63
|
});
|
|
64
64
|
const init = () => {
|
|
65
|
+
console.log("modelValue.value", modelValue.value);
|
|
66
|
+
console.log("componentParam.value", componentParam.value);
|
|
67
|
+
if (!modelValue.value) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
65
70
|
if (isExecuting) {
|
|
66
71
|
pendingExecute = true;
|
|
67
72
|
return;
|
|
68
73
|
}
|
|
69
74
|
isExecuting = true;
|
|
70
75
|
fileList.value = [];
|
|
71
|
-
if (!modelValue.value) {
|
|
72
|
-
EleMessage.error("参数[modelValue]为空");
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
76
|
http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
|
|
76
77
|
let attachemtList = res.data.data.records;
|
|
77
78
|
for (let i = 0; i < attachemtList.length; i++) {
|
|
@@ -188,7 +189,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
188
189
|
};
|
|
189
190
|
const emitChange = () => {
|
|
190
191
|
if (!modelValue.value) {
|
|
191
|
-
EleMessage.error("参数[modelValue]为空");
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
|
|
@@ -209,18 +209,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
209
|
const handleRetryUpload = (uploadItem) => {
|
|
210
210
|
handleUpload(uploadItem, true);
|
|
211
211
|
};
|
|
212
|
-
watch(
|
|
213
|
-
() => props.modelValue,
|
|
214
|
-
() => {
|
|
215
|
-
init();
|
|
216
|
-
}
|
|
217
|
-
);
|
|
218
212
|
watch(
|
|
219
213
|
() => componentParam,
|
|
220
214
|
() => {
|
|
215
|
+
console.log("props.param发生改变", props.param);
|
|
221
216
|
init();
|
|
222
217
|
},
|
|
223
|
-
{ deep: true }
|
|
218
|
+
{ deep: true, immediate: true }
|
|
224
219
|
);
|
|
225
220
|
return (_ctx, _cache) => {
|
|
226
221
|
const _component_ele_upload_list = resolveComponent("ele-upload-list");
|
|
@@ -63,16 +63,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
63
63
|
init();
|
|
64
64
|
});
|
|
65
65
|
const init = () => {
|
|
66
|
+
console.log("modelValue.value", modelValue.value);
|
|
67
|
+
console.log("componentParam.value", componentParam.value);
|
|
68
|
+
if (!modelValue.value) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
66
71
|
if (isExecuting) {
|
|
67
72
|
pendingExecute = true;
|
|
68
73
|
return;
|
|
69
74
|
}
|
|
70
75
|
isExecuting = true;
|
|
71
76
|
fileList.value = [];
|
|
72
|
-
if (!modelValue.value) {
|
|
73
|
-
message.EleMessage.error("参数[modelValue]为空");
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
77
|
httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
|
|
77
78
|
let attachemtList = res.data.data.records;
|
|
78
79
|
for (let i = 0; i < attachemtList.length; i++) {
|
|
@@ -189,7 +190,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
189
190
|
};
|
|
190
191
|
const emitChange = () => {
|
|
191
192
|
if (!modelValue.value) {
|
|
192
|
-
message.EleMessage.error("参数[modelValue]为空");
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
|
|
@@ -210,18 +210,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
210
210
|
const handleRetryUpload = (uploadItem) => {
|
|
211
211
|
handleUpload(uploadItem, true);
|
|
212
212
|
};
|
|
213
|
-
vue.watch(
|
|
214
|
-
() => props.modelValue,
|
|
215
|
-
() => {
|
|
216
|
-
init();
|
|
217
|
-
}
|
|
218
|
-
);
|
|
219
213
|
vue.watch(
|
|
220
214
|
() => componentParam,
|
|
221
215
|
() => {
|
|
216
|
+
console.log("props.param发生改变", props.param);
|
|
222
217
|
init();
|
|
223
218
|
},
|
|
224
|
-
{ deep: true }
|
|
219
|
+
{ deep: true, immediate: true }
|
|
225
220
|
);
|
|
226
221
|
return (_ctx, _cache) => {
|
|
227
222
|
const _component_ele_upload_list = vue.resolveComponent("ele-upload-list");
|