cloud-web-corejs 1.0.54-dev.335 → 1.0.54-dev.337
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 +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +15 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +27 -5
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +2 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +171 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +13 -4
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -366
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +37 -30
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +15 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +29 -0
- package/src/components/xform/form-render/container-item/data-table-item.vue +10 -7
- package/src/components/xform/form-render/container-item/data-table-mixin.js +112 -4
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/components/xform/mixins/scriptHttp.js +62 -61
- package/src/utils/request.js +43 -8
- package/src/utils/vab.js +1095 -1
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +295 -2
package/src/utils/request.js
CHANGED
@@ -182,14 +182,20 @@ function handleCreateInfo(config, res) {
|
|
182
182
|
let data = res.objx;
|
183
183
|
if (typeof res.objx === "object") {
|
184
184
|
if (Array.isArray(data)) {
|
185
|
-
|
185
|
+
for(let item of res.objx){
|
186
186
|
toDo(item);
|
187
|
-
}
|
187
|
+
}
|
188
|
+
/* res.objx.forEach(item => {
|
189
|
+
toDo(item);
|
190
|
+
}) */
|
188
191
|
} else if (data && res.objx.hasOwnProperty("records")) {
|
189
192
|
let records = res.objx.records || [];
|
190
|
-
|
193
|
+
for(let item of records){
|
194
|
+
toDo(item);
|
195
|
+
}
|
196
|
+
/* records.forEach(item => {
|
191
197
|
toDo(item);
|
192
|
-
})
|
198
|
+
}) */
|
193
199
|
} else {
|
194
200
|
toDo(res.objx);
|
195
201
|
}
|
@@ -231,7 +237,18 @@ async function handleNickName2(option) {
|
|
231
237
|
data = res.objx.records;
|
232
238
|
}
|
233
239
|
let requestData = [];
|
234
|
-
|
240
|
+
for(let item of data){
|
241
|
+
let createBy = getCreateBy(item);
|
242
|
+
let modifyBy = getModifyBy(item);
|
243
|
+
|
244
|
+
if (createBy && !requestData.includes(createBy)) {
|
245
|
+
requestData.push(createBy)
|
246
|
+
}
|
247
|
+
if (modifyBy && !requestData.includes(modifyBy)) {
|
248
|
+
requestData.push(modifyBy)
|
249
|
+
}
|
250
|
+
}
|
251
|
+
/* data.forEach(item => {
|
235
252
|
let createBy = getCreateBy(item);
|
236
253
|
let modifyBy = getModifyBy(item);
|
237
254
|
|
@@ -241,7 +258,7 @@ async function handleNickName2(option) {
|
|
241
258
|
if (modifyBy && !requestData.includes(modifyBy)) {
|
242
259
|
requestData.push(modifyBy)
|
243
260
|
}
|
244
|
-
})
|
261
|
+
}) */
|
245
262
|
if (!requestData.length) {
|
246
263
|
callback && callback(res)
|
247
264
|
return
|
@@ -259,7 +276,25 @@ async function handleNickName2(option) {
|
|
259
276
|
isLoading: isLoading,
|
260
277
|
success: res2 => {
|
261
278
|
let arr = res2.objx || [];
|
262
|
-
|
279
|
+
for(let item of data){
|
280
|
+
let createBy = getCreateBy(item);
|
281
|
+
let modifyBy = getModifyBy(item);
|
282
|
+
if (createBy) {
|
283
|
+
let obj = arr.find(item => item.loginAccount === createBy);
|
284
|
+
if (obj && obj.nickName) {
|
285
|
+
item._createNickName = obj.nickName;
|
286
|
+
item._createMobile = obj.mobile;
|
287
|
+
}
|
288
|
+
}
|
289
|
+
if (modifyBy) {
|
290
|
+
let obj = arr.find(item => item.loginAccount === modifyBy);
|
291
|
+
if (obj && obj.nickName) {
|
292
|
+
item._modifyNickName = obj.nickName;
|
293
|
+
item._modifyMobile = obj.mobile;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
/* data.forEach(item => {
|
263
298
|
let createBy = getCreateBy(item);
|
264
299
|
let modifyBy = getModifyBy(item);
|
265
300
|
if (createBy) {
|
@@ -276,7 +311,7 @@ async function handleNickName2(option) {
|
|
276
311
|
item._modifyMobile = obj.mobile;
|
277
312
|
}
|
278
313
|
}
|
279
|
-
})
|
314
|
+
}) */
|
280
315
|
}
|
281
316
|
});
|
282
317
|
}
|