cloud-web-corejs 1.0.109 → 1.0.111
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/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +2 -2
- package/src/components/baseAttachment/index.vue +49 -49
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +5 -3
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +104 -45
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +18 -17
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +588 -164
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +69 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +32 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +17 -2
- 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/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +161 -74
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +236 -92
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +74 -31
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +10 -9
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +52 -17
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/store/config/index.js +1 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +51 -0
- package/src/views/user/wf/wf_manage/list.vue +29 -0
package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue
CHANGED
@@ -12,12 +12,6 @@
|
|
12
12
|
<i class="el-icon-edit"></i>
|
13
13
|
</a>
|
14
14
|
</el-form-item>
|
15
|
-
<el-form-item :label="i18nt('仅显示明文文本')">
|
16
|
-
<el-switch v-model="optionModel.showTextEnabled" @change="optionModel.showEncryptTextEnabled=false;optionModel.showLinkTextEnabled=false;"></el-switch>
|
17
|
-
</el-form-item>
|
18
|
-
<el-form-item :label="i18nt('仅显示密文文本')">
|
19
|
-
<el-switch v-model="optionModel.showEncryptTextEnabled" @change="optionModel.showTextEnabled=false;optionModel.showLinkTextEnabled=false;"></el-switch>
|
20
|
-
</el-form-item>
|
21
15
|
<el-form-item :label="i18nt('启用特定用户显示规则设置')">
|
22
16
|
<el-switch v-model="optionModel.userTextRuleEnabled"></el-switch>
|
23
17
|
</el-form-item>
|
@@ -27,30 +21,38 @@
|
|
27
21
|
<i class="el-icon-edit"></i>
|
28
22
|
</a>
|
29
23
|
</el-form-item>
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
24
|
+
<!-- <el-form-item :label="i18nt('仅显示明文文本')">
|
25
|
+
<el-switch v-model="optionModel.showTextEnabled" @change="optionModel.showEncryptTextEnabled=false;optionModel.showLinkTextEnabled=false;"></el-switch>
|
26
|
+
</el-form-item>
|
27
|
+
<el-form-item :label="i18nt('仅显示密文文本')">
|
28
|
+
<el-switch v-model="optionModel.showEncryptTextEnabled" @change="optionModel.showTextEnabled=false;optionModel.showLinkTextEnabled=false;"></el-switch>
|
29
|
+
</el-form-item>
|
30
|
+
|
31
|
+
<template v-if="optionModel.showEncryptTextEnabled || optionModel.userTextRuleEnabled">
|
32
|
+
<el-form-item label-width="0">
|
33
|
+
<el-divider class="custom-divider-margin-top">密文显示规则</el-divider>
|
34
|
+
</el-form-item>
|
35
|
+
<el-form-item :label="i18nt('全部显示为*')">
|
36
|
+
<el-switch v-model="optionModel.textRule1" @change="changeTextRule1"
|
37
|
+
:disabled="optionModel.textRule1 && !optionModel.textRule2 && !optionModel.textRule3"></el-switch>
|
38
|
+
</el-form-item>
|
39
|
+
<el-form-item :label="i18nt('前面明文,其他为*')">
|
40
|
+
<el-switch v-model="optionModel.textRule2" @change="changeTextRule2"></el-switch>
|
41
|
+
</el-form-item>
|
42
|
+
<el-form-item :label="i18nt('前面明文位数')">
|
43
|
+
<base-input-number v-model="optionModel.textRule2Number" :scale="0"></base-input-number>
|
44
|
+
</el-form-item>
|
45
|
+
<el-form-item :label="i18nt('后面明文,其他为*')">
|
46
|
+
<el-switch v-model="optionModel.textRule3" @change="changeTextRule3"></el-switch>
|
47
|
+
</el-form-item>
|
48
|
+
<el-form-item :label="i18nt('后面明文位数')">
|
49
|
+
<base-input-number v-model="optionModel.textRule3Number" :scale="0"></base-input-number>
|
50
|
+
</el-form-item>
|
51
|
+
<el-form-item label-width="0">
|
52
|
+
<el-divider class="custom-divider-margin-top"></el-divider>
|
53
|
+
</el-form-item>
|
54
|
+
</template>
|
55
|
+
-->
|
54
56
|
<el-dialog
|
55
57
|
v-if="dialogVisible"
|
56
58
|
custom-class="dialog-style list-dialog"
|
@@ -79,51 +81,48 @@
|
|
79
81
|
style="margin-bottom: 0px;"
|
80
82
|
>
|
81
83
|
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
82
|
-
<el-table-column :label="i18nt('
|
83
|
-
<template slot-scope="{row}">
|
84
|
-
<el-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
84
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
85
|
+
<template slot-scope="{ row, $index }">
|
86
|
+
<el-input
|
87
|
+
class="search-input"
|
88
|
+
max="200"
|
89
|
+
v-model="row.companyCodes"
|
90
|
+
@clear="clearBdCompanyEnv(row)"
|
91
|
+
v-el-readonly
|
92
|
+
clearable
|
93
|
+
>
|
94
|
+
<i
|
95
|
+
slot="suffix"
|
96
|
+
class="el-input__icon el-icon-search"
|
97
|
+
@click="openBdCompanyEnvDialog($index)"
|
98
|
+
></i>
|
99
|
+
</el-input>
|
95
100
|
</template>
|
96
101
|
</el-table-column>
|
97
|
-
<el-table-column :label="i18nt('
|
98
|
-
<template slot-scope="{row
|
99
|
-
|
102
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
103
|
+
<template slot-scope="{ row }">
|
104
|
+
{{ row.serveName }}
|
100
105
|
</template>
|
101
106
|
</el-table-column>
|
102
|
-
<!-- <el-table-column :label="i18nt('登录名')" width="150">
|
103
|
-
<template slot-scope="{row}">
|
104
|
-
<el-input v-model="row.loginAccounts" clearable></el-input>
|
105
|
-
</template>
|
106
|
-
</el-table-column>-->
|
107
107
|
<el-table-column :label="i18nt('角色编码')" width="250">
|
108
108
|
<template slot-scope="{row}">
|
109
109
|
<el-input v-model="row.roleCodes" clearable></el-input>
|
110
110
|
</template>
|
111
111
|
</el-table-column>
|
112
|
-
|
113
|
-
<template slot-scope="{row}">
|
114
|
-
<el-input v-model="row.saleOrgCodes" clearable></el-input>
|
115
|
-
</template>
|
116
|
-
</el-table-column>-->
|
112
|
+
|
117
113
|
<el-table-column :label="i18nt('设置')" width="150">
|
118
114
|
<template slot-scope="{row}">
|
119
|
-
<el-select v-model="row.type"
|
120
|
-
<el-option :value="1" label="
|
121
|
-
<el-option :value="2" label="
|
122
|
-
<el-option :value="0" label="组件显示"></el-option>
|
123
|
-
<el-option :value="3" label="超链接显示"></el-option>
|
115
|
+
<el-select v-model="row.type">
|
116
|
+
<el-option :value="1" label="明文"></el-option>
|
117
|
+
<el-option :value="2" label="密文"></el-option>
|
124
118
|
</el-select>
|
125
119
|
</template>
|
126
120
|
</el-table-column>
|
121
|
+
<el-table-column label='加密规则(格式:“3*3”,“3*”,“*3”,“*”,“-”,数值表示明文位数)' width="400">
|
122
|
+
<template slot-scope="{row}">
|
123
|
+
<el-input v-model="row.encryptFormula" clearable></el-input>
|
124
|
+
</template>
|
125
|
+
</el-table-column>
|
127
126
|
<el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
|
128
127
|
<template #header>
|
129
128
|
<span>{{ i18nt('designer.setting.actionColumn') }}</span>
|
@@ -153,14 +152,22 @@
|
|
153
152
|
</el-button>
|
154
153
|
</div>
|
155
154
|
</el-dialog>
|
155
|
+
<bdCompanyEnvDialog
|
156
|
+
v-if="showBdCompanyEnvDialog"
|
157
|
+
:visiable.sync="showBdCompanyEnvDialog"
|
158
|
+
@confirm="confirmBdCompanyEnvDialog"
|
159
|
+
:multi="false"
|
160
|
+
/>
|
156
161
|
</div>
|
157
162
|
</template>
|
158
163
|
|
159
164
|
<script>
|
160
165
|
import i18n from "../../../../../components/xform/utils/i18n"
|
166
|
+
import bdCompanyEnvDialog from "@base/views/bd/setting/bd_company_env/dialog";
|
161
167
|
|
162
168
|
export default {
|
163
169
|
name: "textFlag-editor",
|
170
|
+
components: {bdCompanyEnvDialog},
|
164
171
|
mixins: [i18n],
|
165
172
|
props: {
|
166
173
|
designer: Object,
|
@@ -172,6 +179,9 @@ export default {
|
|
172
179
|
return {
|
173
180
|
dialogVisible: false,
|
174
181
|
tableData: [],
|
182
|
+
|
183
|
+
operateIndex: 0,
|
184
|
+
showBdCompanyEnvDialog: false,
|
175
185
|
}
|
176
186
|
},
|
177
187
|
methods: {
|
@@ -200,37 +210,96 @@ export default {
|
|
200
210
|
},
|
201
211
|
addItem() {
|
202
212
|
let newItem = {
|
203
|
-
type:
|
213
|
+
type: 2,
|
204
214
|
serveType: null,
|
205
215
|
serveName: null,
|
206
216
|
// loginAccounts: null,
|
207
217
|
roleCodes: null,
|
208
218
|
// saleOrgCodes: null,
|
209
|
-
companyCodes: null
|
219
|
+
companyCodes: null,
|
220
|
+
encryptFormula: null
|
210
221
|
}
|
211
222
|
this.tableData.push(newItem);
|
212
223
|
},
|
213
224
|
colSubmit() {
|
225
|
+
// 定义正则表达式
|
226
|
+
const pattern = /^(?:\d*\*\d*|-)$/;
|
227
|
+
let tableData = this.tableData;
|
228
|
+
let map = {};
|
229
|
+
for (let i = 0; i < tableData.length; i++) {
|
230
|
+
let item = tableData[i];
|
231
|
+
if (!item.serveName) {
|
232
|
+
this.$message({
|
233
|
+
type: "error",
|
234
|
+
message: "服务名称不能为空",
|
235
|
+
});
|
236
|
+
return
|
237
|
+
}
|
238
|
+
if (!item.companyCodes) {
|
239
|
+
this.$message({
|
240
|
+
type: "error",
|
241
|
+
message: "组织编码不能为空",
|
242
|
+
});
|
243
|
+
return
|
244
|
+
}
|
245
|
+
if (!item.encryptFormula) {
|
246
|
+
this.$message({
|
247
|
+
type: "error",
|
248
|
+
message: "加密规则不能为空",
|
249
|
+
});
|
250
|
+
return
|
251
|
+
}
|
252
|
+
if (!item.type) {
|
253
|
+
this.$message({
|
254
|
+
type: "error",
|
255
|
+
message: "设置不能为空",
|
256
|
+
});
|
257
|
+
return
|
258
|
+
}
|
259
|
+
|
260
|
+
let serveName = item.serveName;
|
261
|
+
let companyCodes = item.companyCodes;
|
262
|
+
let key = serveName + "_" + companyCodes;
|
263
|
+
if (!map[key]) {
|
264
|
+
map[key] = true;
|
265
|
+
} else {
|
266
|
+
this.$message({
|
267
|
+
type: "error",
|
268
|
+
message: "[服务+组织]不能重复",
|
269
|
+
});
|
270
|
+
return;
|
271
|
+
}
|
272
|
+
if (!pattern.test(item.encryptFormula)) {
|
273
|
+
this.$message({
|
274
|
+
type: "error",
|
275
|
+
message: `第${i}行的加密规则格式错误`,
|
276
|
+
});
|
277
|
+
return;
|
278
|
+
}
|
279
|
+
|
280
|
+
}
|
281
|
+
|
214
282
|
this.dialogVisible = !1;
|
215
283
|
this.optionModel.userTextRuleConfig = this.tableData;
|
216
284
|
},
|
217
|
-
changeShowLinkTextEnabled(val){
|
218
|
-
this.optionModel.widgetTextLinkConfig = null;
|
219
|
-
|
220
|
-
this.optionModel.
|
221
|
-
|
285
|
+
changeShowLinkTextEnabled(val) {
|
286
|
+
this.optionModel.widgetTextLinkConfig = null;
|
287
|
+
''
|
288
|
+
this.optionModel.showEncryptTextEnabled = false;
|
289
|
+
this.optionModel.showTextEnabled = false;
|
290
|
+
if (val) {
|
222
291
|
this.initLinkWidget();
|
223
292
|
}
|
224
293
|
},
|
225
|
-
initLinkWidget(){
|
294
|
+
initLinkWidget() {
|
226
295
|
let widget = null
|
227
296
|
let keyName = this.optionModel.keyName;
|
228
297
|
let label = this.optionModel.label;
|
229
|
-
if(!this.optionModel.widgetTextLinkConfig){
|
298
|
+
if (!this.optionModel.widgetTextLinkConfig) {
|
230
299
|
widget = this.designer.copyNewFieldWidget(this.designer.getFieldWidgetByType("a-link2"));
|
231
|
-
this.$set(this.optionModel,'widgetTextLinkConfig',widget)
|
300
|
+
this.$set(this.optionModel, 'widgetTextLinkConfig', widget)
|
232
301
|
widget.options.underline = true;
|
233
|
-
}else{
|
302
|
+
} else {
|
234
303
|
widget = this.optionModel.widgetTextLinkConfig
|
235
304
|
}
|
236
305
|
// widget.options.label = label;
|
@@ -239,7 +308,7 @@ export default {
|
|
239
308
|
// widget.options.isFormLabel = true
|
240
309
|
return widget;
|
241
310
|
},
|
242
|
-
openLinkConfig(){
|
311
|
+
openLinkConfig() {
|
243
312
|
let widget = this.initLinkWidget();
|
244
313
|
this.openWidgetPropertyDialog({
|
245
314
|
// row: row,
|
@@ -251,7 +320,25 @@ export default {
|
|
251
320
|
// this.confirmFormatConfigDialog(columnOption, row);
|
252
321
|
},
|
253
322
|
});
|
254
|
-
}
|
323
|
+
},
|
324
|
+
|
325
|
+
clearBdCompanyEnv(row) {
|
326
|
+
row.serveName = null;
|
327
|
+
row.companyCodes = null;
|
328
|
+
},
|
329
|
+
openBdCompanyEnvDialog(rowIndex) {
|
330
|
+
this.operateIndex = rowIndex;
|
331
|
+
this.showBdCompanyEnvDialog = true;
|
332
|
+
},
|
333
|
+
confirmBdCompanyEnvDialog(rows) {
|
334
|
+
if (rows.length) {
|
335
|
+
let row = rows[0];
|
336
|
+
let item = this.tableData[this.operateIndex];
|
337
|
+
item.serveName = row.bdService;
|
338
|
+
item.companyCodes = row.bdCompanyCode;
|
339
|
+
}
|
340
|
+
},
|
341
|
+
|
255
342
|
}
|
256
343
|
}
|
257
344
|
</script>
|
package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue
CHANGED
@@ -15,9 +15,9 @@
|
|
15
15
|
</template>
|
16
16
|
|
17
17
|
<script>
|
18
|
-
|
18
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
19
19
|
|
20
|
-
|
20
|
+
export default {
|
21
21
|
name: "validation-editor",
|
22
22
|
mixins: [i18n],
|
23
23
|
props: {
|
package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
</template>
|
6
6
|
|
7
7
|
<script>
|
8
|
-
|
8
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
9
9
|
|
10
|
-
|
10
|
+
export default {
|
11
11
|
name: "validationHint-editor",
|
12
12
|
mixins: [i18n],
|
13
13
|
props: {
|