cloud-web-corejs 1.0.54-dev.221 → 1.0.54-dev.223
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/formOplog/mixins.js +77 -1
- package/src/components/xform/form-designer/indexMixin.js +811 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +4 -3
- package/src/components/xform/form-render/indexMixin.js +14 -66
- package/src/components/xform/mixins/scriptHttp.js +14 -10
- package/src/layout/defaultLayout.vue +1 -1
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +3 -3
- package/src/views/user/form/view/list.vue +3 -3
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +2 -2
@@ -1,8 +1,8 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
|
4
|
-
<el-
|
5
|
-
</el-form-item
|
3
|
+
<el-form-item :label="i18nt('内容默认收起')">
|
4
|
+
<el-switch v-model="optionModel.defaultCollapse"></el-switch>
|
5
|
+
</el-form-item>
|
6
6
|
</div>
|
7
7
|
</template>
|
8
8
|
|
@@ -1,11 +1,12 @@
|
|
1
1
|
<template>
|
2
|
-
<baseTabPane :label="getI18nLabel(widget.options.label)" ref="baseTabRef" :visible="!widget.options.hidden" v-show="!widget.options.hidden"
|
2
|
+
<baseTabPane :label="getI18nLabel(widget.options.label)" ref="baseTabRef" :visible="!widget.options.hidden" v-show="!widget.options.hidden" :showFold="true"
|
3
|
+
:defaultShowContent="!widget.options.defaultCollapse">
|
3
4
|
|
4
5
|
<template #button>
|
5
|
-
<div class='btn-close-open' @click="opeaShowCont()">
|
6
|
+
<!-- <div class='btn-close-open' @click="opeaShowCont()">
|
6
7
|
<span v-if="showStatus==true"><i class="el-icon-arrow-up"></i>收起</span>
|
7
8
|
<span v-else><i class="el-icon-arrow-down"></i>展开</span>
|
8
|
-
</div
|
9
|
+
</div>-->
|
9
10
|
<template v-for="(subWidget, swIdx) in widget.buttonWidgetList">
|
10
11
|
<template v-if="'container' === subWidget.category">
|
11
12
|
<component :is="subWidget.type + '-item'" :widget="subWidget" :key="swIdx"
|
@@ -310,6 +310,9 @@ modules = {
|
|
310
310
|
return this.$http({
|
311
311
|
url: USER_PREFIX + '/user/currentUser',
|
312
312
|
method: 'post',
|
313
|
+
// isLoading: true,
|
314
|
+
// loadingTarget: document.body,
|
315
|
+
modalStrictly: true,
|
313
316
|
success: res => {
|
314
317
|
let userInfo = res.objx;
|
315
318
|
let row = this.formatHumpLineTransfer(userInfo, "toLine")
|
@@ -323,8 +326,8 @@ modules = {
|
|
323
326
|
url: USER_PREFIX + '/user/getUserSaleOrg',
|
324
327
|
method: `post`,
|
325
328
|
data: {id: this.$store.getters.userId},
|
326
|
-
isLoading: true,
|
327
|
-
loadingTarget: document.body,
|
329
|
+
// isLoading: true,
|
330
|
+
// loadingTarget: document.body,
|
328
331
|
modalStrictly: true,
|
329
332
|
success: res => {
|
330
333
|
let rows = res.objx || [];
|
@@ -344,8 +347,8 @@ modules = {
|
|
344
347
|
url: USER_PREFIX + '/user/getUserRole',
|
345
348
|
method: `post`,
|
346
349
|
data: {id: this.$store.getters.userId},
|
347
|
-
isLoading: true,
|
348
|
-
loadingTarget: document.body,
|
350
|
+
// isLoading: true,
|
351
|
+
// loadingTarget: document.body,
|
349
352
|
modalStrictly: true,
|
350
353
|
success: res => {
|
351
354
|
let rows = res.objx || [];
|
@@ -362,9 +365,9 @@ modules = {
|
|
362
365
|
url: USER_PREFIX + '/form_develop/getBdService',
|
363
366
|
method: `post`,
|
364
367
|
data: {},
|
365
|
-
isLoading: true,
|
366
|
-
loadingTarget: document.body,
|
367
|
-
|
368
|
+
// isLoading: true,
|
369
|
+
// loadingTarget: document.body,
|
370
|
+
modalStrictly: true,
|
368
371
|
success: res => {
|
369
372
|
this.bdService = res.objx;
|
370
373
|
}
|
@@ -2268,30 +2271,6 @@ modules = {
|
|
2268
2271
|
});
|
2269
2272
|
}
|
2270
2273
|
})
|
2271
|
-
|
2272
|
-
|
2273
|
-
/*let saveUrl = this.formConfig.saveUrl || (USER_PREFIX + `/form_ins/saveFormInsData`);
|
2274
|
-
this.$http({
|
2275
|
-
url: saveUrl,
|
2276
|
-
method: `post`,
|
2277
|
-
data: reqData,
|
2278
|
-
isLoading: true,
|
2279
|
-
loadingTarget: document.body,
|
2280
|
-
success: res => {
|
2281
|
-
this.$message({
|
2282
|
-
message: res.content,
|
2283
|
-
type: 'success',
|
2284
|
-
duration: 500,
|
2285
|
-
onClose: t => {
|
2286
|
-
callback && callback(res)
|
2287
|
-
this.$parent.$emit('update:object_foreign_id', res.objx)
|
2288
|
-
// this.$parent.$attrs.wfParam.submitCallback();
|
2289
|
-
this.$parent.$baseReload()
|
2290
|
-
}
|
2291
|
-
});
|
2292
|
-
|
2293
|
-
}
|
2294
|
-
});*/
|
2295
2274
|
})
|
2296
2275
|
});
|
2297
2276
|
})
|
@@ -2306,7 +2285,8 @@ modules = {
|
|
2306
2285
|
method: `post`,
|
2307
2286
|
data: {stringOne: insUuid},
|
2308
2287
|
isLoading: true,
|
2309
|
-
loadingTarget: document.body,
|
2288
|
+
// loadingTarget: document.body,
|
2289
|
+
modalStrictly: true,
|
2310
2290
|
success: res => {
|
2311
2291
|
this.$message({
|
2312
2292
|
message: res.content,
|
@@ -2324,39 +2304,6 @@ modules = {
|
|
2324
2304
|
})
|
2325
2305
|
}
|
2326
2306
|
},
|
2327
|
-
async getInsFormData(insUuid) {
|
2328
|
-
let formData = {};
|
2329
|
-
let formTemplateTableDTOs = this.getFormTemplateTableDTOs();
|
2330
|
-
formTemplateTableDTOs.forEach(async (formTemplateTableDTO) => {
|
2331
|
-
let tableAlias = formTemplateTableDTO.tableAlias || formTemplateTableDTO.formCode;
|
2332
|
-
await this.getFormInsData({
|
2333
|
-
insUuid: insUuid,
|
2334
|
-
tableAlias: tableAlias
|
2335
|
-
}, (data) => {
|
2336
|
-
if (formTemplateTableDTO.tableType == 0) {
|
2337
|
-
Object.assign(formData, data)
|
2338
|
-
} else {
|
2339
|
-
let map = {};
|
2340
|
-
map[tableAlias] = data;
|
2341
|
-
Object.assign(formData, map)
|
2342
|
-
}
|
2343
|
-
})
|
2344
|
-
})
|
2345
|
-
},
|
2346
|
-
async getFormInsData(param, callback) {
|
2347
|
-
return this.$http({
|
2348
|
-
url: USER_PREFIX + `/form_ins/getFormInsData`,
|
2349
|
-
method: `post`,
|
2350
|
-
data: param,
|
2351
|
-
isLoading: true,
|
2352
|
-
loadingTarget: document.body,
|
2353
|
-
modalStrictly: true,
|
2354
|
-
success: res => {
|
2355
|
-
let formData = res.objx && res.objx.data ? res.objx.data : {};
|
2356
|
-
callback && callback(formData)
|
2357
|
-
}
|
2358
|
-
});
|
2359
|
-
},
|
2360
2307
|
jumpFormView(row) {
|
2361
2308
|
// let data = {};
|
2362
2309
|
let data = this.getFormData2(row);
|
@@ -2417,11 +2364,12 @@ modules = {
|
|
2417
2364
|
this.$http({
|
2418
2365
|
url: path,
|
2419
2366
|
method: `post`,
|
2420
|
-
loadingTarget: document.body,
|
2421
2367
|
data: {
|
2422
2368
|
...params
|
2423
2369
|
},
|
2424
2370
|
isLoading: true,
|
2371
|
+
// loadingTarget: document.body,
|
2372
|
+
modalStrictly: true,
|
2425
2373
|
success: res => {
|
2426
2374
|
let e1 = new Function('resultMsg', item.onScriptSuccess);
|
2427
2375
|
e1.call(this, res);
|
@@ -45,11 +45,14 @@ modules = {
|
|
45
45
|
return this.getFormRef ? this.getFormRef() : this;
|
46
46
|
},
|
47
47
|
getLoadingTarget() {
|
48
|
-
|
49
|
-
|
48
|
+
let that = this.getHttpTarget();
|
49
|
+
if(!that ||!that.$el){
|
50
|
+
debugger
|
51
|
+
}
|
52
|
+
let loadingTarget = that.$el || document.body;
|
50
53
|
|
51
|
-
let loadingTarget = document.body;
|
52
|
-
return loadingTarget;
|
54
|
+
// let loadingTarget = document.body;
|
55
|
+
// return loadingTarget;
|
53
56
|
},
|
54
57
|
formHttp(opts) {
|
55
58
|
let data = opts.data;
|
@@ -85,7 +88,7 @@ modules = {
|
|
85
88
|
let getServiceName = (callback) => {
|
86
89
|
|
87
90
|
if (formCode && formCode !== reportTemplate.formCode) {
|
88
|
-
|
91
|
+
this.getHttpTarget().$http({
|
89
92
|
aes: true,
|
90
93
|
url: USER_PREFIX + `/formScript/getServiceName`,
|
91
94
|
method: `post`,
|
@@ -94,7 +97,7 @@ modules = {
|
|
94
97
|
scriptCode
|
95
98
|
},
|
96
99
|
isLoading,
|
97
|
-
loadingTarget: this.getLoadingTarget(),
|
100
|
+
// loadingTarget: this.getLoadingTarget(),
|
98
101
|
// modalStrictly: true,
|
99
102
|
success: res => {
|
100
103
|
let serviceName = res.objx;
|
@@ -118,11 +121,11 @@ modules = {
|
|
118
121
|
|
119
122
|
let reportGlobalMap = getReportGlobalMap() || {};
|
120
123
|
let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
|
121
|
-
return this.$http({
|
124
|
+
return this.getHttpTarget().$http({
|
122
125
|
aes: true,
|
123
126
|
url: url,
|
124
127
|
method: `post`,
|
125
|
-
loadingTarget: this.getLoadingTarget(),
|
128
|
+
// loadingTarget: this.getLoadingTarget(),
|
126
129
|
isLoading,
|
127
130
|
...opts,
|
128
131
|
data: {
|
@@ -152,9 +155,10 @@ modules = {
|
|
152
155
|
serviceId: serviceId
|
153
156
|
});
|
154
157
|
//初始化流程
|
155
|
-
let target1 = formTarget.$attrs['parent-target'];
|
158
|
+
/*let target1 = formTarget.$attrs['parent-target'];
|
156
159
|
let target2 = target1?.$attrs['parent-target'];
|
157
|
-
let target = !target2 ? this : target1
|
160
|
+
let target = !target2 ? this : target1;*/
|
161
|
+
let target = formTarget;
|
158
162
|
initWf.call(target, opt2);
|
159
163
|
}
|
160
164
|
}
|
@@ -72,9 +72,9 @@ export default {
|
|
72
72
|
url: url,
|
73
73
|
method: `post`,
|
74
74
|
data: data,
|
75
|
-
isLoading: true,
|
76
|
-
loadingTarget: document.body,
|
77
|
-
modalStrictly: true,
|
75
|
+
// isLoading: true,
|
76
|
+
// loadingTarget: document.body,
|
77
|
+
// modalStrictly: true,
|
78
78
|
success: async res => {
|
79
79
|
let formTemplate = res.objx || {};
|
80
80
|
this.formTemplate = formTemplate;
|
@@ -99,9 +99,9 @@ export default {
|
|
99
99
|
url: USER_PREFIX + `/formTemplate/getByFormCode`,
|
100
100
|
method: `post`,
|
101
101
|
data: {stringOne: this.formCode},
|
102
|
-
isLoading: true,
|
103
|
-
loadingTarget: document.body,
|
104
|
-
modalStrictly: true,
|
102
|
+
// isLoading: true,
|
103
|
+
// loadingTarget: document.body,
|
104
|
+
// modalStrictly: true,
|
105
105
|
success: async res => {
|
106
106
|
let formTemplate = res.objx || {};
|
107
107
|
this.formTemplate = formTemplate;
|
@@ -46,11 +46,11 @@
|
|
46
46
|
</tr>
|
47
47
|
<tr>
|
48
48
|
<th>{{ $t1('创建人') }}</th>
|
49
|
-
<td>{{ projectTag.
|
49
|
+
<td>{{ projectTag.createBy }}</td>
|
50
50
|
<th>{{ $t1('创建时间') }}</th>
|
51
51
|
<td>{{ projectTag.createDate }}</td>
|
52
52
|
<th>{{ $t1('更新人') }}</th>
|
53
|
-
<td>{{ projectTag.
|
53
|
+
<td>{{ projectTag.modifyBy }}</td>
|
54
54
|
<th>{{ $t1('更新时间') }}</th>
|
55
55
|
<td>{{ projectTag.modifyDate }}</td>
|
56
56
|
</tr>
|
@@ -114,7 +114,7 @@ export default {
|
|
114
114
|
width: 250
|
115
115
|
},
|
116
116
|
{
|
117
|
-
field: '
|
117
|
+
field: 'createBy',
|
118
118
|
title: this.$t1('创建人'),
|
119
119
|
width: 150
|
120
120
|
},
|
@@ -124,7 +124,7 @@ export default {
|
|
124
124
|
width: 150
|
125
125
|
},
|
126
126
|
{
|
127
|
-
field: '
|
127
|
+
field: 'modifyBy',
|
128
128
|
title: this.$t1('更新人'),
|
129
129
|
width: 150
|
130
130
|
},
|