cloud-web-corejs 1.0.116 → 1.0.117
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 +3 -1
- package/src/components/VabUpload/view.vue +135 -135
- package/src/components/errorMsg/mixins.js +7 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/index.js +7 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/index.js +1 -1
- package/src/components/table/util/index.js +1 -1
- package/src/components/tempStorage/index.vue +9 -6
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/wf/content.vue +17 -1
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/setCandidateDialog.vue +9 -0
- package/src/components/wf/setCandidateDialog2.vue +320 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +131 -0
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +93 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +18 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +31 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/indexMixin.js +3 -1
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/util.js +1451 -1
- package/src/utils/index.js +2 -5
- package/src/views/user/form/view/list.vue +18 -3
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +3 -3
- package/src/views/user/wf/wf_obj_config/list.vue +5 -5
@@ -3,7 +3,7 @@
|
|
3
3
|
<template v-if="layoutType=='PC'">
|
4
4
|
<x-tabs ref="xTabs" v-model="activeName" class="tab-box">
|
5
5
|
<el-tab-pane :label="$t2('常规')" name="first">
|
6
|
-
<vFormRender :formCode="
|
6
|
+
<vFormRender :formCode.sync="formCode1" :dataId.sync="dataId" :param="param" :formData="formData"
|
7
7
|
v-if="showEdit" visible-key="showEdit" :parent-target="_self"
|
8
8
|
@reload="reload" @openCopyEditTab="openCopyEditTab"></vFormRender>
|
9
9
|
</el-tab-pane>
|
@@ -74,7 +74,9 @@ export default {
|
|
74
74
|
/* formCode: null,*/
|
75
75
|
layoutType: null,
|
76
76
|
formCode: null,
|
77
|
+
formCode1: null,
|
77
78
|
formCode2: null,
|
79
|
+
addFormCode:null,
|
78
80
|
dataId: null,
|
79
81
|
showEditDialog: false,
|
80
82
|
param: {},
|
@@ -109,7 +111,13 @@ export default {
|
|
109
111
|
let formJson = formTemplate.formViewContent ? JSON.parse(formTemplate.formViewContent) : {};
|
110
112
|
this.formJson = formJson;
|
111
113
|
this.layoutType = formJson.formConfig?.layoutType
|
112
|
-
|
114
|
+
let addFormCode = formJson.formConfig?.addFormCode ?? null;
|
115
|
+
let formCode2 = formJson.formConfig?.editFormCode ?? null;
|
116
|
+
this.formCode2 = formCode2
|
117
|
+
if(!addFormCode) {
|
118
|
+
addFormCode = formCode2
|
119
|
+
}
|
120
|
+
this.addFormCode = addFormCode;
|
113
121
|
this.multiTabLabelField = formJson.formConfig?.multiTabLabelField
|
114
122
|
}
|
115
123
|
});
|
@@ -122,10 +130,15 @@ export default {
|
|
122
130
|
let formConfig = this.formJson.formConfig
|
123
131
|
let multiTabEnabled = formConfig.multiTabEnabled && formConfig.multiTabLabelField
|
124
132
|
let dataId = row && row.id ? row.id : null;
|
133
|
+
this.dataId = dataId
|
134
|
+
if(!dataId){
|
135
|
+
this.formCode1 = this.addFormCode;
|
136
|
+
}else{
|
137
|
+
this.formCode1 = this.formCode2;
|
138
|
+
}
|
125
139
|
if(multiTabEnabled && dataId){
|
126
140
|
this.$refs.xTabs.openEditTab(row,param);
|
127
141
|
}else{
|
128
|
-
this.dataId = dataId
|
129
142
|
this.activeName = 'first';
|
130
143
|
this.showEdit = false;
|
131
144
|
this.showEditDialog = true;
|
@@ -136,6 +149,7 @@ export default {
|
|
136
149
|
|
137
150
|
},
|
138
151
|
openEditH5Dialog(row) {
|
152
|
+
this.formCode1 = this.addFormCode;
|
139
153
|
this.dataId = row && row.id ? row.id : null;
|
140
154
|
this.activeName = 'first';
|
141
155
|
this.showEdit = false;
|
@@ -147,6 +161,7 @@ export default {
|
|
147
161
|
|
148
162
|
openCopyEditTab(formData) {
|
149
163
|
this.dataId = null
|
164
|
+
this.formCode1 = this.addFormCode;
|
150
165
|
this.activeName = 'first';
|
151
166
|
this.showEdit = false;
|
152
167
|
this.showEditDialog = true;
|
@@ -122,13 +122,13 @@
|
|
122
122
|
</tr>
|
123
123
|
<tr>
|
124
124
|
<th>
|
125
|
-
{{ $t1('
|
125
|
+
{{ $t1('是否允许流程启动更改候选人') }}
|
126
126
|
</th>
|
127
127
|
<td>
|
128
128
|
<el-form-item prop="startNoSetCandidate" :rules="[{ required: false, trigger: 'blur' }]">
|
129
129
|
<el-radio-group v-model="wfObjConfigItem.startNoSetCandidate">
|
130
|
-
<el-radio :label="
|
131
|
-
<el-radio :label="
|
130
|
+
<el-radio :label="false">{{ $t1('是') }}</el-radio>
|
131
|
+
<el-radio :label="true">{{ $t1('否') }}</el-radio>
|
132
132
|
</el-radio-group>
|
133
133
|
</el-form-item>
|
134
134
|
</td>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
<iframe :src="wfUrl" :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"></iframe>
|
106
106
|
</el-dialog>
|
107
107
|
|
108
|
-
<userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser"
|
108
|
+
<userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser"
|
109
109
|
:multi.sync="wfAssignMulti"/>
|
110
110
|
<positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" :rows="wfAssignPositionData" @confirm="confirmPosition"/>
|
111
111
|
<scriptDescriptionDialog path="static/readme/Wf.txt" v-if="showScriptDescriptionDialog"
|
@@ -474,15 +474,15 @@ export default {
|
|
474
474
|
}
|
475
475
|
},
|
476
476
|
{
|
477
|
-
title: this.$t1('
|
477
|
+
title: this.$t1('是否允许流程启动更改候选人'),
|
478
478
|
field: 'startNoSetCandidate',
|
479
|
-
width:
|
479
|
+
width: 230,
|
480
480
|
slots: {
|
481
481
|
default: ({row}) => {
|
482
482
|
if (row.startNoSetCandidate) {
|
483
|
-
return [<div class="txt-status">{this.$t1('
|
483
|
+
return [<div class="txt-status">{this.$t1('否')}</div>];
|
484
484
|
} else {
|
485
|
-
return [<div class="txt-status s-3">{this.$t1('
|
485
|
+
return [<div class="txt-status s-3">{this.$t1('是')}</div>];
|
486
486
|
}
|
487
487
|
}
|
488
488
|
}
|