cloud-web-corejs 1.0.128 → 1.0.130

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.
Files changed (55) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/view.vue +138 -55
  3. package/src/components/baseInputExport/mixins.js +1 -1
  4. package/src/components/errorMsg/mixins.js +1 -2
  5. package/src/components/excelImport/mixins.js +2 -1
  6. package/src/components/jsonImport/mixins.js +2 -1
  7. package/src/components/langImport/mixins.js +17 -16
  8. package/src/components/wf/content.vue +772 -411
  9. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
  10. package/src/components/wf/wf.js +1 -1
  11. package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
  12. package/src/components/xform/form-designer/designer.js +3 -2
  13. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  14. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -9
  15. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
  16. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -1
  17. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +3 -1
  18. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +17 -4
  19. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -0
  20. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
  21. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
  22. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
  23. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
  24. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +13 -4
  25. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
  26. package/src/components/xform/form-designer/indexMixin.js +3 -2
  27. package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
  28. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -366
  29. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +0 -1
  30. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +372 -253
  31. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +9 -43
  32. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +7 -0
  33. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
  34. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
  35. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +37 -30
  36. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
  37. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +19 -14
  38. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
  39. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +5 -1
  40. package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
  41. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +132 -0
  42. package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
  43. package/src/components/xform/form-render/container-item/data-table-item.vue +13 -10
  44. package/src/components/xform/form-render/container-item/data-table-mixin.js +5 -4
  45. package/src/components/xform/form-render/indexMixin.js +3 -2
  46. package/src/components/xform/lang/zh-CN.js +3 -0
  47. package/src/components/xform/utils/util.js +1 -1451
  48. package/src/utils/request.js +1 -1
  49. package/src/utils/vab.js +1 -1
  50. package/src/views/user/notify_message/dialog.vue +24 -19
  51. package/src/views/user/outLink/form_view.vue +211 -211
  52. package/src/views/user/wf/wfReport/index.vue +448 -0
  53. package/src/views/user/wf/wf_manage/list.vue +344 -251
  54. package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
  55. package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
@@ -609,6 +609,7 @@ import {
609
609
  generateId,
610
610
  loopHandleWidget,
611
611
  deepClone,
612
+ columnFormatMap
612
613
  } from "../../../../../../components/xform/utils/util";
613
614
  import columnRenderDialog from "./columnRenderDialog.vue";
614
615
 
@@ -865,28 +866,7 @@ export default {
865
866
  tableData: [], //树形结构数据转的数组
866
867
  tableDataArray: [],
867
868
  dragSort: null,
868
- columnFormatMap: {
869
- editInput: "input",
870
- editNumber: "number",
871
- editDate: "date",
872
- editSelect: "select",
873
- editSearch: "vabsearch",
874
- editAttachment: "baseAttachment",
875
- editStatus: "status",
876
- aText: "a-text",
877
- aLink: "a-link",
878
- editDelete: "a-link",
879
- editButton: "a-link",
880
- button: "button",
881
- addSiblingEditRow: "a-link",
882
- addChildTreeRow: "a-link",
883
- moveUpRow: "a-link",
884
- moveDownRow: "a-link",
885
- removeTreeRow: "a-link",
886
- text: "text",
887
- checkbox: "checkbox",
888
- radio: "radio",
889
- },
869
+ columnFormatMap,
890
870
 
891
871
  showFormEventDialogFlag: false,
892
872
  formEventHandlerCode: "",
@@ -1275,8 +1255,9 @@ export default {
1275
1255
  changeFormatS(row, isEdit) {
1276
1256
  let formatS = isEdit ? row.editFormatS : row.formatS;
1277
1257
  let isButtontCell = this.getIsButtontCell(formatS);
1278
- let columnWidgetConfig = this.getColumnWidgetConfig(row, true, isEdit);
1279
- let { columnSelectedWidget, columnEditFields } = columnWidgetConfig;
1258
+ // let columnWidgetConfig = this.getColumnWidgetConfig(row, true, isEdit);
1259
+ // let { columnSelectedWidget, columnEditFields } = columnWidgetConfig;
1260
+ let columnSelectedWidget = this.designer.createColumnWidget(row, isEdit)
1280
1261
  if (!isEdit) {
1281
1262
  //格式化类型
1282
1263
  if (columnSelectedWidget) {
@@ -1554,11 +1535,10 @@ export default {
1554
1535
  row.widget.options = columnOption;
1555
1536
  } else {
1556
1537
  let type = this.columnFormatMap[row.formatS];
1557
- let fieldWidget = this.designer.copyNewFieldWidget(
1558
- this.designer.getFieldWidgetByType(type)
1559
- );
1538
+ let fieldWidget = this.designer.createColumnWidget(row, false);
1560
1539
  fieldWidget.options = columnOption;
1561
1540
  row.widget = fieldWidget;
1541
+ this.$forceUpdate();
1562
1542
  }
1563
1543
 
1564
1544
  let isButtontCell = this.getIsButtontCell(row.formatS);
@@ -1569,20 +1549,7 @@ export default {
1569
1549
  }
1570
1550
  },
1571
1551
  openEditFormatConfigDialog(row, index) {
1572
- /*let option = row.columnOption;
1573
- let selectedWidget;
1574
- let columnWidgetConfig = this.getColumnWidgetConfig(row, null, true);
1575
- let {columnSelectedWidget, columnEditFields} = columnWidgetConfig;
1576
- if (columnSelectedWidget) {
1577
- option = columnSelectedWidget.options;
1578
- selectedWidget = columnSelectedWidget;
1579
- } else {
1580
- option = {};
1581
- selectedWidget = {};
1582
- }
1583
1552
 
1584
- let columnOption = this.$baseLodash.cloneDeep(option);
1585
- row.editColumnOption = columnOption;*/
1586
1553
  let selectedWidget = row.editWidget;
1587
1554
  this.operateIndex = index;
1588
1555
 
@@ -1607,11 +1574,10 @@ export default {
1607
1574
  row.editWidget.options = columnOption;
1608
1575
  } else {
1609
1576
  let type = this.columnFormatMap[row.editFormatS];
1610
- let fieldWidget = this.designer.copyNewFieldWidget(
1611
- this.designer.getFieldWidgetByType(type)
1612
- );
1577
+ let fieldWidget = this.designer.createColumnWidget(row, true);
1613
1578
  fieldWidget.options = columnOption;
1614
1579
  row.editWidget = fieldWidget;
1580
+ this.$forceUpdate();
1615
1581
  }
1616
1582
 
1617
1583
  /*row.prop = columnOption.name;
@@ -29,6 +29,13 @@
29
29
  <el-form-item label="执行后台脚本编码">
30
30
  <el-input v-model="optionModel.importScriptCode"></el-input>
31
31
  </el-form-item>
32
+ <el-form-item label="批量导入">
33
+ <el-switch v-model="optionModel.importMultiple"></el-switch>
34
+ </el-form-item>
35
+ <el-form-item label="批量导入大小">
36
+ <base-input-number v-model="optionModel.importMultiSize" :max="200"></base-input-number>
37
+ </el-form-item>
38
+
32
39
  <el-form-item label="启用图片处理">
33
40
  <el-switch v-model="optionModel.enabledImportPreHandle"></el-switch>
34
41
  </el-form-item>
@@ -6,6 +6,13 @@
6
6
  <el-form-item label="表格唯一名称">
7
7
  <el-input v-model="optionModel.printTableRef"></el-input>
8
8
  </el-form-item>
9
+ <!-- <el-form-item label="打印自定义条件参数">
10
+ <a href="javascript:void(0);" class="a-link link-oneLind"
11
+ @click="editEventHandler('printCustomCondition', printConditionParams)">
12
+ <span>{{ optionModel.printCustomCondition }}</span>
13
+ <i class="el-icon-edit"></i>
14
+ </a>
15
+ </el-form-item> -->
9
16
  <el-form-item label="输出模板编码"></el-form-item>
10
17
  <el-form-item label-width="0">
11
18
  <draggable tag="ul" class="draggable-box" :list="optionModel.printItems"
@@ -47,6 +54,7 @@ export default {
47
54
  data() {
48
55
  return {
49
56
  eventParams: [],
57
+ printConditionParams: ["dataId", "formCode", "exportTemplate"]
50
58
  };
51
59
  },
52
60
  methods: {
@@ -0,0 +1,91 @@
1
+ <template>
2
+ <div>
3
+ <el-form-item label-width="0">
4
+ <el-divider class="custom-divider">详情打印设置</el-divider>
5
+ </el-form-item>
6
+ <el-form-item label="打印自定义条件参数">
7
+ <a href="javascript:void(0);" class="a-link link-oneLind"
8
+ @click="editEventHandler('printCustomCondition', printConditionParams)">
9
+ <span>{{ optionModel.printCustomCondition }}</span>
10
+ <i class="el-icon-edit"></i>
11
+ </a>
12
+ </el-form-item>
13
+ <el-form-item label="输出模板编码"></el-form-item>
14
+ <el-form-item label-width="0">
15
+ <draggable tag="ul" class="draggable-box" :list="optionModel.printItems"
16
+ v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
17
+ <li v-for="(item, index) in optionModel.printItems" :key="index" class="col-item">
18
+ <i class="el-icon-s-operation drag-option"></i>
19
+ <el-input v-model="item.code" class="cell-span-input" style="width: 160px !important;"></el-input>
20
+ <el-button circle plain size="mini" type="danger" @click="deleteItem(index)"
21
+ icon="el-icon-minus" class="col-delete-button" style="position: unset;"></el-button>
22
+ </li>
23
+ </draggable>
24
+ <div>
25
+ <el-button type="text" @click="addItem" icon="el-icon-circle-plus-outline"
26
+ class="add-option">
27
+ 新增
28
+ </el-button>
29
+ </div>
30
+ </el-form-item>
31
+ </div>
32
+ </template>
33
+
34
+ <script>
35
+ import i18n from "../../../../../../components/xform/utils/i18n";
36
+ import eventMixin
37
+ from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
38
+ import Draggable from 'vuedraggable';
39
+
40
+ export default {
41
+ name: "print-detail-button-editor",
42
+ mixins: [i18n, eventMixin],
43
+ components: {
44
+ Draggable,
45
+ },
46
+ props: {
47
+ designer: Object,
48
+ selectedWidget: Object,
49
+ optionModel: Object,
50
+ },
51
+ data() {
52
+ return {
53
+ eventParams: [],
54
+ printConditionParams: ["dataId", "formCode", "exportTemplate"]
55
+ };
56
+ },
57
+ methods: {
58
+ deleteItem(index) {
59
+ this.optionModel.printItems.splice(index, 1)
60
+ },
61
+ addItem() {
62
+ this.optionModel.printItems.push({code: null});
63
+ }
64
+ }
65
+ };
66
+ </script>
67
+
68
+ <style lang="scss" scoped>
69
+ .option-items-pane ul {
70
+ padding-inline-start: 6px;
71
+ padding-left: 6px; /* 重置IE11默认样式 */
72
+ }
73
+
74
+ li.ghost {
75
+ background: #fff;
76
+ border: 2px dotted $--color-primary;
77
+ }
78
+
79
+ .drag-option {
80
+ cursor: move;
81
+ }
82
+
83
+ .small-padding-dialog ::v-deep .el-dialog__body {
84
+ padding: 10px 15px;
85
+ }
86
+
87
+ .dialog-footer .el-button {
88
+ width: 100px;
89
+ }
90
+ </style>
91
+
@@ -1,5 +1,29 @@
1
1
  <template>
2
2
  <div>
3
+ <el-form-item label-width="0">
4
+ <el-divider class="custom-divider-margin-top">选项设置</el-divider>
5
+ </el-form-item>
6
+ <el-form-item label="选项值类型">
7
+ <el-radio-group v-model="optionModel.optionItemValueType" @change="changeValueType">
8
+ <el-radio :label="0">文本</el-radio>
9
+ <el-radio :label="1">数值</el-radio>
10
+ <el-radio :label="2">布尔值</el-radio>
11
+ </el-radio-group>
12
+ </el-form-item>
13
+ <el-form-item label="默认值">
14
+ <el-input v-model="optionModel.defaultValue" size="mini" style="width: 100px" v-if="!optionModel.optionItemValueType"></el-input>
15
+ <base-input-number v-model="optionModel.defaultValue" size="mini" style="width: 100%" v-if="optionModel.optionItemValueType==1" />
16
+ <el-select v-model="optionModel.defaultValue" style="width: 100%" v-if="optionModel.optionItemValueType===2" clearable @clear="optionModel.defaultValue=null">
17
+ <el-option :value="true" label="true"></el-option>
18
+ <el-option :value="false" label="false"></el-option>
19
+ </el-select>
20
+ </el-form-item>
21
+ <el-form-item :label="i18nt('显示字段')" v-if="optionModel.commonAttributeEnabled || optionModel.formScriptEnabled">
22
+ <el-input type="text" v-model="optionModel.labelKey" placeholder="默认label" :disabled="optionModel.commonAttributeEnabled"></el-input>
23
+ </el-form-item>
24
+ <el-form-item :label="i18nt('关联字段')" v-if="optionModel.commonAttributeEnabled || optionModel.formScriptEnabled">
25
+ <el-input type="text" v-model="optionModel.valueKey" placeholder="默认value" :disabled="optionModel.commonAttributeEnabled"></el-input>
26
+ </el-form-item>
3
27
  <el-form-item label="状态配置">
4
28
  <a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
5
29
  <span>{{ optionModel.statusParam.length ? "已维护" : "" }}</span>
@@ -15,30 +39,12 @@
15
39
  :close-on-click-modal="!1"
16
40
  :close-on-press-escape="!1"
17
41
  :destroy-on-close="!0"
18
- top="5vh"
19
- width="1220px"
42
+ width="800px"
43
+ top="0px"
20
44
  v-dialog-drag
21
45
  @closed="closeHandle"
22
46
  >
23
47
  <div class="cont">
24
- <el-form-item label="选项值类型" style="width: 350px;">
25
- <!-- <el-switch v-model="optionItemValueType" @change="changeValueType"></el-switch>-->
26
- <el-radio-group v-model="optionItemValueType" @change="changeValueType">
27
- <el-radio :label="0">文本</el-radio>
28
- <el-radio :label="1">数值</el-radio>
29
- <el-radio :label="2">布尔值</el-radio>
30
- </el-radio-group>
31
- </el-form-item>
32
- <el-form-item label="默认值" style="width: 300px;">
33
- <el-input v-model="defaultValue" v-if="!optionItemValueType"></el-input>
34
- <base-input-number v-model="defaultValue" ref="defaultNumberInput"
35
- v-if="optionItemValueType==1"/>
36
- <el-select v-model="defaultValue" v-if="optionItemValueType===2" clearable
37
- @clear="defaultValue=null">
38
- <el-option :value="true" label="true"></el-option>
39
- <el-option :value="false" label="false"></el-option>
40
- </el-select>
41
- </el-form-item>
42
48
  <el-table
43
49
  ref="singleTable"
44
50
  width="100%"
@@ -64,9 +70,9 @@
64
70
  </el-table-column>
65
71
  <el-table-column label="字段值" width="150" prop="value">
66
72
  <template slot-scope="scope">
67
- <el-input v-model="scope.row.value" v-if="optionItemValueType===0"></el-input>
68
- <base-input-number v-model="scope.row.value" v-if="optionItemValueType===1"></base-input-number>
69
- <template v-if="optionItemValueType===2">{{ scope.row.value }}</template>
73
+ <el-input v-model="scope.row.value" v-if="optionModel.optionItemValueType===0"></el-input>
74
+ <base-input-number v-model="scope.row.value" v-if="optionModel.optionItemValueType===1"></base-input-number>
75
+ <template v-if="optionModel.optionItemValueType===2">{{ scope.row.value }}</template>
70
76
  </template>
71
77
  </el-table-column>
72
78
  <el-table-column label="状态颜色" width="100" prop="type">
@@ -181,8 +187,8 @@ export default {
181
187
  })
182
188
  },
183
189
  confirmDialog() {
184
- this.optionModel.optionItemValueType = this.optionItemValueType;
185
- this.optionModel.defaultValue = (this.defaultValue === "" || this.defaultValue === undefined) ? null : this.defaultValue;
190
+ // this.optionModel.optionItemValueType = this.optionItemValueType;
191
+ // this.optionModel.defaultValue = (this.defaultValue === "" || this.defaultValue === undefined) ? null : this.defaultValue;
186
192
  this.optionModel.statusParam = this.$baseLodash.cloneDeep(this.tableData);
187
193
  this.showDialog = false;
188
194
  this.$nextTick(() => {
@@ -195,23 +201,24 @@ export default {
195
201
  this.tableData.splice(rowIndex, 1);
196
202
  },
197
203
  changeValueType(val) {
198
- this.tableData = [];
204
+ // this.tableData = this.$baseLodash.cloneDeep(this.optionModel.statusParam);
205
+ this.optionModel.statusParam = [];
199
206
  if (val == 2) {
200
- this.tableData.push({
207
+ this.optionModel.statusParam.push({
201
208
  label: "是",
202
209
  value: true,
203
210
  type: "success"
204
211
  });
205
- this.tableData.push({
212
+ this.optionModel.statusParam.push({
206
213
  label: "否",
207
214
  value: false,
208
215
  type: "danger"
209
216
  });
210
217
  }
211
218
  if (val == 1) {
212
- this.defaultValue = undefined
219
+ this.optionModel.defaultValue = undefined
213
220
  } else {
214
- this.defaultValue = null
221
+ this.optionModel.defaultValue = null
215
222
  }
216
223
 
217
224
  }
@@ -0,0 +1,62 @@
1
+ <template>
2
+ <div>
3
+ <el-form-item label="上传信息获取脚本"></el-form-item>
4
+ <el-form-item label-width="0">
5
+ <el-input
6
+ v-model="optionModel.vabupload2_scriptCode"
7
+ placeholder="默认/intf/getHxFileUploadConfig"
8
+ ></el-input>
9
+ </el-form-item>
10
+ <el-form-item label="上传参数定义" label-width="150px">
11
+ <a
12
+ href="javascript:void(0);"
13
+ class="a-link link-oneLind"
14
+ @click="editEventHandler('vabupload2_uploadParam', params)"
15
+ >
16
+ <span>{{ optionModel.vabupload2_uploadParam }}</span>
17
+ <i class="el-icon-edit"></i>
18
+ </a>
19
+ </el-form-item>
20
+ <el-form-item label="删除参数定义" label-width="150px">
21
+ <a
22
+ href="javascript:void(0);"
23
+ class="a-link link-oneLind"
24
+ @click="editEventHandler('vabupload2_deleteParam', params)"
25
+ >
26
+ <span>{{ optionModel.vabupload2_deleteParam }}</span>
27
+ <i class="el-icon-edit"></i>
28
+ </a>
29
+ </el-form-item>
30
+ <el-form-item label="获取文件参数定义" label-width="150px">
31
+ <a
32
+ href="javascript:void(0);"
33
+ class="a-link link-oneLind"
34
+ @click="editEventHandler('vabupload2_getFileParam', params)"
35
+ >
36
+ <span>{{ optionModel.vabupload2_getFileParam }}</span>
37
+ <i class="el-icon-edit"></i>
38
+ </a>
39
+ </el-form-item>
40
+ </div>
41
+ </template>
42
+
43
+ <script>
44
+ import i18n from "../../../../utils/i18n";
45
+ import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
46
+ export default {
47
+ name: "field-vabUpload2-editor",
48
+ mixins: [i18n, eventMixin],
49
+ props: {
50
+ designer: Object,
51
+ selectedWidget: Object,
52
+ optionModel: Object,
53
+ },
54
+ data() {
55
+ return {
56
+ params: ["dataId", "formCode"],
57
+ };
58
+ },
59
+ };
60
+ </script>
61
+
62
+ <style scoped></style>
@@ -14,7 +14,7 @@
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>
17
- <el-form-item label="查询参数" v-if="optionModel.formScriptEnabled">
17
+ <el-form-item label="查询参数" v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled">
18
18
  <a href="javascript:void(0);" class="a-link link-oneLind"
19
19
  @click="editEventHandler('formScriptParam', ['dataId', 'formCode'])">
20
20
  <span>{{ optionModel.formScriptParam }}</span>
@@ -29,14 +29,14 @@
29
29
  <el-form-item :label="i18nt('词汇编码')" v-if="optionModel.commonAttributeEnabled">
30
30
  <el-input type="text" v-model="optionModel.commonAttributeCode"></el-input>
31
31
  </el-form-item>
32
- <el-form-item :label="i18nt('显示字段')" v-if="optionModel.formScriptEnabled">
33
- <el-input type="text" v-model="optionModel.labelKey"></el-input>
34
- </el-form-item>
35
- <el-form-item :label="i18nt('关联字段')" v-if="optionModel.formScriptEnabled">
36
- <el-input type="text" v-model="optionModel.valueKey"></el-input>
32
+ <!-- <el-form-item :label="i18nt('显示字段')" v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled">
33
+ <el-input type="text" v-model="optionModel.labelKey" :disabled="optionModel.commonAttributeEnabled"></el-input>
37
34
  </el-form-item>
35
+ <el-form-item :label="i18nt('关联字段')" v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled">
36
+ <el-input type="text" v-model="optionModel.valueKey" :disabled="optionModel.commonAttributeEnabled"></el-input>
37
+ </el-form-item> -->
38
38
  </template>
39
- <el-form-item label="查询回调">
39
+ <el-form-item label="查询回调" v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled">
40
40
  <a href="javascript:void(0);" class="a-link link-oneLind"
41
41
  @click="editEventHandler('formScriptSuccess', ['dataId', 'formCode','res'])">
42
42
  <span>{{ optionModel.formScriptSuccess }}</span>
@@ -61,7 +61,7 @@ export default {
61
61
  },
62
62
  data() {
63
63
  return {
64
- formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census']
64
+ formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census','status']
65
65
  }
66
66
  },
67
67
  methods: {
@@ -70,20 +70,25 @@ export default {
70
70
  },
71
71
  changeFormScriptEnabled(val){
72
72
  if(val){
73
- if(this.optionModel.hasOwnProperty("commonAttributeEnabled")){
74
- this.optionModel.commonAttributeEnabled = false
75
- }
73
+ this.optionModel.commonAttributeEnabled = false
76
74
  }
75
+ this.handleLabelAndValueKey();
77
76
  },
78
77
  changeCommonAttributeEnabled(val){
79
78
  if(val){
80
79
  this.optionModel.formScriptEnabled = false;
80
+ }
81
+ this.handleLabelAndValueKey();
82
+ },
83
+ handleLabelAndValueKey(){
84
+ if(this.optionModel.commonAttributeEnabled){
81
85
  this.optionModel.labelKey = "value";
82
86
  this.optionModel.valueKey = "sn";
83
- }else{
84
- this.optionModel.labelKey = null;
85
- this.optionModel.valueKey = null;
87
+ }else {
88
+ this.optionModel.labelKey = "label";
89
+ this.optionModel.valueKey = "value";
86
90
  }
91
+
87
92
  }
88
93
  }
89
94
  }
@@ -0,0 +1,31 @@
1
+ <template>
2
+ <div>
3
+ <el-form-item :label="i18nt('脚本编码')">
4
+ <el-input type="text" v-model="optionModel.formScriptCode"></el-input>
5
+ </el-form-item>
6
+ <el-form-item :label="i18nt('日志类型')">
7
+ <el-input type="text" v-model="optionModel.oplogTypeCode" placeholder="默认表单模板编码"></el-input>
8
+ </el-form-item>
9
+ <el-form-item :label="i18nt('业务唯一字段')">
10
+ <el-input type="text" v-model="optionModel.oplogBusinessKey" placeholder="默认单据id"></el-input>
11
+ </el-form-item>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import i18n from "../../../utils/i18n"
17
+
18
+ export default {
19
+ name: "oplogFlag-editor",
20
+ mixins: [i18n],
21
+ props: {
22
+ designer: Object,
23
+ selectedWidget: Object,
24
+ optionModel: Object,
25
+ },
26
+ }
27
+ </script>
28
+
29
+ <style scoped>
30
+
31
+ </style>
@@ -116,6 +116,8 @@ const COMMON_PROPERTIES = {
116
116
  'dropdownMenuFlag': 'dropdown-menu-editor',
117
117
  'dropdownItemFlag': 'dropdown-item-editor',
118
118
 
119
+ 'oplogFlag': 'oplogFlag-editor',
120
+
119
121
  //弹框
120
122
  title: "title-editor",
121
123
  width: "width-editor",
@@ -149,11 +151,13 @@ const COMMON_PROPERTIES = {
149
151
  selectExportFlag: "select-export-button-editor",
150
152
  importEntity: "import-button-editor",
151
153
  frontImportFlag: "import2-button-editor",
152
- printTableRef: "print-button-editor",
154
+ printButtonFlag: "print-button-editor",
155
+ printDetailButtonFlag: "print-detail-button-editor",
153
156
  statusParam: "field-status-editor",
154
157
  // searchDialogEventEnabled: "search-dialog-event-editor"
155
158
  clickBindEvent: "clickBindEvent-editor",
156
159
  vabUpload: "field-vabUpload-editor",
160
+ vabUpload2Flag: "field-vabUpload2-editor",
157
161
  "submitFlag": "submitFlag-editor",
158
162
  "aLinkFlag": "a-link-editor",
159
163
  "aTextFlag": "a-text-editor",