cloud-web-corejs 1.0.54-dev.247 → 1.0.54-dev.249
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/field-widget/fieldMixin.js +13 -4
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +69 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +2 -2
- package/src/components/xform/form-render/indexMixin.js +7 -6
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/index.js +1 -1
- package/src/views/user/home/default.vue +11 -9
- package/src/views/user/project_tag/dialog.vue +9 -4
package/package.json
CHANGED
@@ -239,8 +239,17 @@ modules = {
|
|
239
239
|
}*/
|
240
240
|
let defaultValue = this.field.options.defaultValue;
|
241
241
|
let dataId = this.getFormRef()?.dataId ?? null;
|
242
|
+
let nullValue = null;
|
243
|
+
let widgetType = this.field.type;
|
244
|
+
if (widgetType == "number") {
|
245
|
+
nullValue = undefined;
|
246
|
+
} else if (widgetType === 'checkbox' || (widgetType === 'select' && this.field.options.multiple)) {
|
247
|
+
nullValue = [];
|
248
|
+
}else if(widgetType == "time-range" || widgetType=="date-range" || (widgetType === 'date' && this.field.options.type=="dates")){
|
249
|
+
nullValue = [];
|
250
|
+
}
|
242
251
|
if (void 0 === currentData[this.fieldKeyName]) {
|
243
|
-
this.$set(currentData, this.fieldKeyName,
|
252
|
+
this.$set(currentData, this.fieldKeyName, nullValue);
|
244
253
|
}
|
245
254
|
if (flag) {
|
246
255
|
this.fieldModel = currentData[this.fieldKeyName];
|
@@ -387,7 +396,7 @@ modules = {
|
|
387
396
|
let changedFieldRef = sourceWidget
|
388
397
|
const changedFieldName = sourceWidget.field.options.name
|
389
398
|
//检查计算公式是否包含当前修改字段
|
390
|
-
if (fieldIsUsedInFormula(changedFieldName, this.field.options.formula, this.getFormRef(),this)) {
|
399
|
+
if (fieldIsUsedInFormula(changedFieldName, this.field.options.formula, this.getFormRef(), this)) {
|
391
400
|
|
392
401
|
/* 计算公式的计算改成延时执行,否则当子表单开启默认创建新行后,子表单字段的计算公式中使用到主表单字段则会出现计算错误!! */
|
393
402
|
//calculateFormula(this.getFormRef(), this.getGlobalDsv(), formulajs, this, changedFieldRef)
|
@@ -457,7 +466,7 @@ modules = {
|
|
457
466
|
if (null !== this.refList && this.field.options.name) {
|
458
467
|
if (this.tableParam && !this.designState) {
|
459
468
|
let row = this.tableParam.row;
|
460
|
-
if(!row._X_ROW_KEY){
|
469
|
+
if (!row._X_ROW_KEY) {
|
461
470
|
row._X_ROW_KEY = "row_" + generateId()
|
462
471
|
}
|
463
472
|
let keyVal = row._X_ROW_KEY;
|
@@ -771,7 +780,7 @@ modules = {
|
|
771
780
|
});
|
772
781
|
},
|
773
782
|
emitFieldDataChange(newValue, oldValue) {
|
774
|
-
if(this.designState)return
|
783
|
+
if (this.designState) return
|
775
784
|
this.$emit('field-value-changed', [newValue, oldValue])
|
776
785
|
|
777
786
|
/* 同步更新keyName属性一致的字段组件值!! */
|
@@ -9,12 +9,22 @@
|
|
9
9
|
</el-form-item>
|
10
10
|
|
11
11
|
<el-form-item label="默认值">
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
<template v-if="selectedWidget.type === 'checkbox' || (selectedWidget.type === 'select' && selectedWidget.options.multiple)">
|
13
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
14
|
+
@click="openTableDataEdit()">
|
15
|
+
<span>{{ getDefaultValue() }}</span>
|
16
|
+
<i class="el-icon-edit"></i>
|
17
|
+
</a>
|
18
|
+
</template>
|
19
|
+
<template v-else>
|
20
|
+
<el-input v-model="optionModel.defaultValue" size="mini" style="width: 100px" v-if="!optionModel.optionItemValueType"></el-input>
|
21
|
+
<base-input-number v-model="optionModel.defaultValue" size="mini" style="width: 100px" v-if="optionModel.optionItemValueType==1" />
|
22
|
+
<el-select v-model="optionModel.defaultValue" style="width: 100px" v-if="optionModel.optionItemValueType===2" clearable @clear="optionModel.defaultValue=null">
|
23
|
+
<el-option :value="true" label="true"></el-option>
|
24
|
+
<el-option :value="false" label="false"></el-option>
|
25
|
+
</el-select>
|
26
|
+
</template>
|
27
|
+
|
18
28
|
</el-form-item>
|
19
29
|
<el-radio-group
|
20
30
|
v-if="selectedWidget.type === 'radio' || (selectedWidget.type === 'select' && !selectedWidget.options.multiple)"
|
@@ -112,6 +122,31 @@
|
|
112
122
|
<el-button size="large" type="" @click="showImportCascaderDialogFlag = false">{{ i18nt('designer.hint.cancel') }}</el-button>
|
113
123
|
</div>
|
114
124
|
</el-dialog>
|
125
|
+
<el-dialog
|
126
|
+
v-if="dataDialogVisible"
|
127
|
+
custom-class="dialog-style list-dialog"
|
128
|
+
:title="i18nt('默认值编辑')"
|
129
|
+
:visible.sync="dataDialogVisible"
|
130
|
+
:show-close="!0"
|
131
|
+
append-to-body=""
|
132
|
+
:close-on-click-modal="!1"
|
133
|
+
:close-on-press-escape="!1"
|
134
|
+
:destroy-on-close="!0"
|
135
|
+
width="75%"
|
136
|
+
v-dialog-drag
|
137
|
+
>
|
138
|
+
<template slot="footer">
|
139
|
+
<div class="dialog-footer">
|
140
|
+
<el-button type="" @click="dataDialogVisible = !1" class="button-sty" icon="el-icon-close">
|
141
|
+
{{ i18nt('designer.hint.cancel') }}
|
142
|
+
</el-button>
|
143
|
+
<el-button type="primary" @click="saveTableData" class="button-sty" icon="el-icon-check">
|
144
|
+
{{ i18nt('designer.hint.confirm') }}
|
145
|
+
</el-button>
|
146
|
+
</div>
|
147
|
+
</template>
|
148
|
+
<code-editor mode="json" :readonly="!1" v-model="tableDataOptions"></code-editor>
|
149
|
+
</el-dialog>
|
115
150
|
</div>
|
116
151
|
</template>
|
117
152
|
|
@@ -138,7 +173,9 @@ export default {
|
|
138
173
|
showImportCascaderDialogFlag: false,
|
139
174
|
|
140
175
|
//separator: '||',
|
141
|
-
separator: ','
|
176
|
+
separator: ',',
|
177
|
+
dataDialogVisible:false,
|
178
|
+
tableDataOptions:[],
|
142
179
|
};
|
143
180
|
},
|
144
181
|
computed: {
|
@@ -237,7 +274,7 @@ export default {
|
|
237
274
|
if (this.selectedWidget.type === 'checkbox' || (this.selectedWidget.type === 'select' && this.selectedWidget.options.multiple)) {
|
238
275
|
this.optionModel.defaultValue = [];
|
239
276
|
} else {
|
240
|
-
this.optionModel.defaultValue =
|
277
|
+
this.optionModel.defaultValue = undefined;
|
241
278
|
}
|
242
279
|
|
243
280
|
this.emitDefaultValueChange();
|
@@ -261,7 +298,8 @@ export default {
|
|
261
298
|
},
|
262
299
|
changeValueType(val){
|
263
300
|
let optionItems = this.optionModel.optionItems;
|
264
|
-
this.optionModel.defaultValue =
|
301
|
+
// this.optionModel.defaultValue = undefined;
|
302
|
+
this.resetDefault();
|
265
303
|
this.optionModel.optionItems.length = 0;
|
266
304
|
if(val==2){
|
267
305
|
optionItems.push({
|
@@ -277,7 +315,28 @@ export default {
|
|
277
315
|
}
|
278
316
|
this.$forceUpdate()
|
279
317
|
this.emitDefaultValueChange();
|
280
|
-
}
|
318
|
+
},
|
319
|
+
|
320
|
+
|
321
|
+
openTableDataEdit: function () {
|
322
|
+
(this.dataDialogVisible = !0), (this.tableDataOptions = JSON.stringify(this.optionModel.defaultValue, null, ' '));
|
323
|
+
},
|
324
|
+
saveTableData: function () {
|
325
|
+
try {
|
326
|
+
(this.optionModel.defaultValue = JSON.parse(this.tableDataOptions)), (this.dataDialogVisible = !1);
|
327
|
+
} catch (e) {
|
328
|
+
this.$message.error(this.i18nt('designer.hint.invalidOptionsData') + e.message);
|
329
|
+
}
|
330
|
+
},
|
331
|
+
getDefaultValue(){
|
332
|
+
let result = this.optionModel.defaultValue;
|
333
|
+
if(result){
|
334
|
+
if(Array.isArray(result)){
|
335
|
+
result = result.join(",");
|
336
|
+
}
|
337
|
+
}
|
338
|
+
return result;
|
339
|
+
},
|
281
340
|
}
|
282
341
|
};
|
283
342
|
</script>
|
@@ -8,9 +8,9 @@
|
|
8
8
|
</el-form-item>
|
9
9
|
<template>
|
10
10
|
|
11
|
-
<el-form-item label="请求表单编码" v-if="optionModel.formScriptEnabled">
|
11
|
+
<!-- <el-form-item label="请求表单编码" v-if="optionModel.formScriptEnabled">
|
12
12
|
<el-input v-model="optionModel.httpFormCode" clearable></el-input>
|
13
|
-
</el-form-item
|
13
|
+
</el-form-item>-->
|
14
14
|
<el-form-item label="表单脚本编码" v-if="optionModel.formScriptEnabled">
|
15
15
|
<el-input v-model="optionModel.formScriptCode" clearable></el-input>
|
16
16
|
</el-form-item>
|
@@ -1082,12 +1082,13 @@ modules = {
|
|
1082
1082
|
this.showFormContent = true;
|
1083
1083
|
this.$nextTick(() => {
|
1084
1084
|
this.handleShowHideRule();
|
1085
|
-
if (hasWf) {
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1085
|
+
/*if (hasWf) {
|
1086
|
+
|
1087
|
+
}*/
|
1088
|
+
setTimeout(() => {
|
1089
|
+
callback && callback()
|
1090
|
+
callback1 && callback1(wfParam)
|
1091
|
+
}, 1000)
|
1091
1092
|
wfParam.done()
|
1092
1093
|
})
|
1093
1094
|
}
|
@@ -112,7 +112,7 @@ modules = {
|
|
112
112
|
let reportGlobalMap = getReportGlobalMap() || {};
|
113
113
|
let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
|
114
114
|
return this.getHttpTarget().$http({
|
115
|
-
aes: true,
|
115
|
+
// aes: true,
|
116
116
|
url: url,
|
117
117
|
method: `post`,
|
118
118
|
// loadingTarget: this.getLoadingTarget(),
|
package/src/index.js
CHANGED
@@ -81,7 +81,7 @@ import vxeFilter from '@base/components/table/vxeFilter/index.js';
|
|
81
81
|
|
82
82
|
Vue.use(vxeFilter);
|
83
83
|
|
84
|
-
import baseTableExport from "@base/components/
|
84
|
+
import baseTableExport from "@base/components/excelExport2/button";
|
85
85
|
|
86
86
|
Vue.component(baseTableExport.name, baseTableExport);
|
87
87
|
|
@@ -287,7 +287,7 @@ export default {
|
|
287
287
|
initSystemNotice() {
|
288
288
|
this.$http({
|
289
289
|
url: USER_PREFIX + '/system_notice/listPage',
|
290
|
-
data: {publish: true},
|
290
|
+
data: {publish: true, searchCount: false},
|
291
291
|
method: 'post',
|
292
292
|
success: res => {
|
293
293
|
this.systemNotices = res.objx && res.objx.records ? res.objx.records : [];
|
@@ -301,7 +301,7 @@ export default {
|
|
301
301
|
initUnDoWfInfo() {
|
302
302
|
this.$http({
|
303
303
|
url: AGILEBPM_PREFIX + '/wf_manage/listPage',
|
304
|
-
data: {type: 0},
|
304
|
+
data: {type: 0, searchCount: false},
|
305
305
|
method: 'post',
|
306
306
|
success: res => {
|
307
307
|
this.unDoWfRows = res.objx.records || [];
|
@@ -412,7 +412,7 @@ export default {
|
|
412
412
|
initNotifyMessage() {
|
413
413
|
this.$http({
|
414
414
|
url: USER_PREFIX + '/notify_message/listPage',
|
415
|
-
data: {},
|
415
|
+
data: {searchCount: false},
|
416
416
|
method: 'post',
|
417
417
|
success: res => {
|
418
418
|
this.notifyMessages = res.objx && res.objx.records ? res.objx.records : [];
|
@@ -452,9 +452,9 @@ export default {
|
|
452
452
|
this.$http({
|
453
453
|
url: USER_PREFIX + `/notify_template/listPage`,
|
454
454
|
method: `post`,
|
455
|
-
data: {},
|
455
|
+
data: {searchCount: false},
|
456
456
|
isLoading: true,
|
457
|
-
loadingTarget: document.body,
|
457
|
+
// loadingTarget: document.body,
|
458
458
|
success: res => {
|
459
459
|
this.notifyTemplates = res.objx && res.objx.records ? res.objx.records : [];
|
460
460
|
this.showGroupDialog = true;
|
@@ -515,7 +515,7 @@ export default {
|
|
515
515
|
method: `post`,
|
516
516
|
data: {},
|
517
517
|
isLoading: true,
|
518
|
-
loadingTarget: document.body,
|
518
|
+
// loadingTarget: document.body,
|
519
519
|
modalStrictly: true,
|
520
520
|
success: res => {
|
521
521
|
this.wfParamDTOs = res.objx || [];
|
@@ -529,10 +529,11 @@ export default {
|
|
529
529
|
}
|
530
530
|
this.$http({
|
531
531
|
url: USER_PREFIX + '/wf_info/listPage',
|
532
|
-
data: {type: 0, size: 20},
|
532
|
+
data: {type: 0, size: 20, searchCount: false},
|
533
533
|
method: 'post',
|
534
534
|
isLoading: isLoading,
|
535
|
-
|
535
|
+
modal: isLoading || false,
|
536
|
+
// loadingTarget: document.body,
|
536
537
|
success: res => {
|
537
538
|
this.unDoWfRows = res.objx && res.objx.records ? res.objx.records : [];
|
538
539
|
},
|
@@ -554,7 +555,8 @@ export default {
|
|
554
555
|
method: `post`,
|
555
556
|
data: {},
|
556
557
|
isLoading: isLoading,
|
557
|
-
|
558
|
+
modal: isLoading || false,
|
559
|
+
// loadingTarget: document.body,
|
558
560
|
success: res => {
|
559
561
|
this.unreadMessageNum = res.objx || 0;
|
560
562
|
},
|
@@ -144,19 +144,24 @@ export default {
|
|
144
144
|
field: 'tagRemark',
|
145
145
|
width: 250
|
146
146
|
},
|
147
|
+
{
|
148
|
+
field: 'createBy',
|
149
|
+
title: this.$t1('创建人'),
|
150
|
+
width: 150
|
151
|
+
},
|
147
152
|
{
|
148
153
|
field: 'createDate',
|
149
154
|
title: this.$t1('创建时间'),
|
150
155
|
width: 150
|
151
156
|
},
|
152
157
|
{
|
153
|
-
field: '
|
154
|
-
title: this.$t1('
|
158
|
+
field: 'modifyBy',
|
159
|
+
title: this.$t1('更新人'),
|
155
160
|
width: 150
|
156
161
|
},
|
157
162
|
{
|
158
|
-
field: '
|
159
|
-
title: this.$t1('
|
163
|
+
field: 'modifyDate',
|
164
|
+
title: this.$t1('更新时间'),
|
160
165
|
width: 150
|
161
166
|
},
|
162
167
|
{
|