cloud-web-corejs 1.0.54-dev.112 → 1.0.54-dev.115

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 (35) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +10 -5
  3. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +40 -3
  4. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +54 -14
  5. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +9 -4
  6. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +8 -2
  7. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
  8. package/src/components/xform/form-designer/indexMixin.js +3 -1
  9. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  10. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -0
  11. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +86 -2
  12. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +39 -1
  13. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +107 -6
  14. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +2 -1
  15. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  16. package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -3
  17. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +35 -2
  18. package/src/components/xform/form-render/container-item/data-table-mixin.js +1926 -1
  19. package/src/components/xform/form-render/indexMixin.js +11 -0
  20. package/src/components/xform/mixins/defaultHandle.js +4 -7
  21. package/src/components/xform/mixins/scriptHttp.js +82 -1
  22. package/src/components/xform/utils/util.js +2 -2
  23. package/src/layout/components/Sidebar/default.vue +35 -3
  24. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  25. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  26. package/src/layout/components/extractedCode/viewDialog.vue +188 -0
  27. package/src/views/bd/setting/form_script/edit1.vue +1 -1
  28. package/src/views/bd/setting/form_script/mixins/edit.js +2 -1
  29. package/src/views/bd/setting/form_script/mixins/edit1.js +2 -1
  30. package/src/views/bd/setting/form_template/edit.vue +9 -1
  31. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  32. package/src/views/bd/setting/table_model/edit.vue +12 -2
  33. package/src/views/bd/setting/table_model/mixins/edit.js +20 -4
  34. package/src/views/user/form/vform/designer.vue +5 -1
  35. package/src/views/user/home/default.vue +15 -11
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div>
3
3
  <el-form-item label-width="0">
4
- <el-divider class="custom-divider-margin-top">请求访问设置</el-divider>
4
+ <el-divider class="custom-divider-margin-top">项目标签设置</el-divider>
5
5
  </el-form-item>
6
6
  <el-form-item label="表单编码">
7
7
  <el-input v-model="optionModel.tagFormCode" clearable></el-input>
@@ -12,13 +12,30 @@
12
12
  <el-form-item label="唯一关键字段">
13
13
  <el-input v-model="optionModel.tagUniqueField" clearable></el-input>
14
14
  </el-form-item>
15
+ <el-form-item label="来源展示字段">
16
+ <el-input v-model="optionModel.tagFormLabelField" clearable></el-input>
17
+ </el-form-item>
18
+ <el-form-item label="来源唯一关键字段">
19
+ <el-input v-model="optionModel.tagFormUniqueField" clearable></el-input>
20
+ </el-form-item>
21
+ <el-form-item label="表单参数">
22
+ <a href="javascript:void(0);" class="a-link link-oneLind"
23
+ @click="editEventHandler('tagFormParam', ['dataId', 'formCode'])">
24
+ <span>{{ optionModel.cf_vendor_item }}</span>
25
+ <i class="el-icon-edit"></i>
26
+ </a>
27
+ </el-form-item>
15
28
  <el-form-item label="明细字段回填">
16
- <el-input v-model="optionModel.tagFillConfig" clearable></el-input>
29
+ <a href="javascript:void(0);" class="a-link link-oneLind"
30
+ @click="openDialog">
31
+ <span>{{ optionModel.tagFillConfig.length ? "已维护" : "" }}</span>
32
+ <i class="el-icon-edit"></i>
33
+ </a>
17
34
  </el-form-item>
18
35
  <el-form-item label="确认回调">
19
36
  <!-- <el-input v-model="optionModel.tagConfirmCallback" clearable></el-input>-->
20
37
  <a href="javascript:void(0);" class="a-link link-oneLind"
21
- @click="editEventHandler('tagConfirmCallback', [])">
38
+ @click="editEventHandler('tagConfirmCallback', ['dataId', 'formCode','rows'])">
22
39
  <span>{{ optionModel.tagConfirmCallback }}</span>
23
40
  <i class="el-icon-edit"></i>
24
41
  </a>
@@ -26,7 +43,7 @@
26
43
  <el-form-item label="删除回调">
27
44
  <!-- <el-input v-model="optionModel.tagDeleteCallback" clearable></el-input>-->
28
45
  <a href="javascript:void(0);" class="a-link link-oneLind"
29
- @click="editEventHandler('tagDeleteCallback', [])">
46
+ @click="editEventHandler('tagDeleteCallback', ['dataId', 'formCode'])">
30
47
  <span>{{ optionModel.tagDeleteCallback }}</span>
31
48
  <i class="el-icon-edit"></i>
32
49
  </a>
@@ -42,6 +59,80 @@
42
59
  <i class="el-icon-edit"></i>
43
60
  </a>
44
61
  </el-form-item>-->
62
+ <el-dialog
63
+ custom-class="dialog-style list-dialog"
64
+ title="数据回填"
65
+ :visible.sync="showDialog"
66
+ :modal="false"
67
+ :show-close="!0"
68
+ :close-on-click-modal="!1"
69
+ :close-on-press-escape="!1"
70
+ :destroy-on-close="!0"
71
+ top="5vh"
72
+ width="500px"
73
+ v-dialog-drag
74
+ >
75
+ <div class="cont">
76
+ <el-table
77
+ ref="singleTable"
78
+ width="100%"
79
+ height="500"
80
+ :data="tableData"
81
+ border=""
82
+ stripe=""
83
+ default-expand-all
84
+ >
85
+ <el-table-column label="目标字段" width="150" prop="targetField">
86
+ <template slot-scope="scope">
87
+ <el-input v-model="scope.row.targetField"></el-input>
88
+ </template>
89
+ </el-table-column>
90
+ <el-table-column label="来源字段" width="150" prop="sourceField">
91
+ <template slot-scope="scope">
92
+ <el-input v-model="scope.row.sourceField"></el-input>
93
+ </template>
94
+ </el-table-column>
95
+ <el-table-column label="操作" min-width="50" fixed="right">
96
+ <template #header="{ row, $index }">
97
+ <el-tooltip
98
+ :hide-after="500"
99
+ class="item"
100
+ effect="dark"
101
+ content="添加"
102
+ placement="top"
103
+ >
104
+ <el-button
105
+ size="mini" type="" circle=""
106
+ icon="el-icon-plus"
107
+ @click="tableData.push({})"
108
+ />
109
+ </el-tooltip>
110
+ </template>
111
+ <template #default="{ row, $index }">
112
+ <el-tooltip
113
+ effect="dark"
114
+ content="删除"
115
+ placement="top"
116
+ >
117
+ <el-button
118
+ size="mini" type="" circle=""
119
+ icon="el-icon-delete"
120
+ @click="tableData.splice($index,1)"
121
+ />
122
+ </el-tooltip>
123
+ </template>
124
+ </el-table-column>
125
+ </el-table>
126
+ </div>
127
+ <div class="dialog-footer" slot="footer">
128
+ <el-button @click="showDialog=false" class="button-sty" icon="el-icon-close">
129
+ {{ i18nt('designer.hint.cancel') }}
130
+ </el-button>
131
+ <el-button type="primary" @click="confirmDialog" class="button-sty" icon="el-icon-check">
132
+ {{ i18nt('designer.hint.confirm') }}
133
+ </el-button>
134
+ </div>
135
+ </el-dialog>
45
136
  </div>
46
137
  </template>
47
138
 
@@ -51,7 +142,7 @@ import eventMixin
51
142
  from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
52
143
 
53
144
  export default {
54
- name: "formScriptEnabled-editor",
145
+ name: "project-tag-editor",
55
146
  mixins: [i18n, eventMixin],
56
147
  props: {
57
148
  designer: Object,
@@ -60,12 +151,22 @@ export default {
60
151
  },
61
152
  data() {
62
153
  return {
63
- formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census']
154
+ formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census'],
155
+ showDialog: false,
156
+ tableData: [],
64
157
  }
65
158
  },
66
159
  methods: {
67
160
  getIsShow() {
68
161
  return this.selectedWidget.type !== 'data-table';
162
+ },
163
+ openDialog() {
164
+ this.tableData = this.$baseLodash.cloneDeep(this.optionModel.tagFillConfig);
165
+ this.showDialog = true;
166
+ },
167
+ confirmDialog() {
168
+ this.optionModel.tagFillConfig = this.$baseLodash.cloneDeep(this.tableData);
169
+ this.showDialog = false;
69
170
  }
70
171
  }
71
172
  }
@@ -17,7 +17,8 @@
17
17
  },
18
18
  methods:{
19
19
  showProperty(){
20
- return this.designer.formWidget.getWidgetRef(this.selectedWidget.options.name).$attrs['table-condition']!==true;
20
+ let widgetRef = this.designer.formWidget.getWidgetRef(this.selectedWidget.options.name);
21
+ return widgetRef.$attrs && $attrs.$attrs['table-condition']!==true;
21
22
  }
22
23
  }
23
24
  }
@@ -148,6 +148,8 @@ const COMMON_PROPERTIES = {
148
148
  "submitFlag": "submitFlag-editor",
149
149
  "aLinkFlag": "a-link-editor",
150
150
  "aTextFlag": "a-text-editor",
151
+ "tagFormCode": "project-tag-editor",
152
+ // "commonAttributeEnabled": "commonAttributeEnabled-editor"
151
153
  }
152
154
 
153
155
  const ADVANCED_PROPERTIES = {
@@ -43,12 +43,12 @@
43
43
  表单/列表设置
44
44
  </el-button>-->
45
45
  <el-button type="primary" @click="saveReportTemplate()" plain
46
- v-if="designer.vueInstance.isDev && designer.vueInstance.menuKindAuth.editAuth===1">
46
+ v-if="designer.vueInstance.isDev && designer.vueInstance.menuKindAuth.editAuth===1 && !readonly">
47
47
  <i class="el-icon-check"/>
48
48
  保存
49
49
  </el-button>
50
50
  <el-divider direction="vertical"></el-divider>
51
- <el-button v-if="showToolButton('clearDesignerButton')" type="text" @click="clearFormWidget">
51
+ <el-button v-if="showToolButton('clearDesignerButton') && !readonly" type="text" @click="clearFormWidget">
52
52
  <i class="el-icon-delete"/>
53
53
  {{ i18nt('designer.toolbar.clear') }}
54
54
  </el-button>
@@ -57,7 +57,7 @@
57
57
  {{ i18nt('designer.toolbar.preview') }}
58
58
  </el-button>
59
59
  <el-divider direction="vertical"></el-divider>
60
- <el-button v-if="showToolButton('importJsonButton')" type="text" @click="importJson">
60
+ <el-button v-if="showToolButton('importJsonButton') && !readonly" type="text" @click="importJson">
61
61
  {{ i18nt('designer.toolbar.importJson') }}
62
62
  </el-button>
63
63
  <el-button v-if="showToolButton('exportJsonButton')" type="text" @click="exportJson">
@@ -437,6 +437,7 @@ export default {
437
437
  Clipboard,
438
438
  FormSetting
439
439
  },
440
+ inject:["readonly"],
440
441
  mixins: [indexMixin],
441
442
  data() {
442
443
  return {
@@ -262,6 +262,7 @@ export const containers = [
262
262
  formScriptEnabled: true,
263
263
  formScriptCode: null,
264
264
  formScriptParam: null,
265
+ formScriptSuccess: null,
265
266
  formScriptCallback: null,
266
267
  /*isLoadDataByAccess: false,
267
268
  scriptEnabled: false,
@@ -1074,8 +1075,12 @@ export const basicFields = [
1074
1075
  formScriptEnabled: false,
1075
1076
  formScriptCode: "getList",
1076
1077
  formScriptParam: null,
1078
+ formScriptSuccess: null,
1077
1079
  ...defaultWfConfig,
1078
1080
 
1081
+ commonAttributeEnabled: false,
1082
+ commonAttributeCode: "",
1083
+
1079
1084
  showRuleFlag: 1,
1080
1085
  showRuleEnabled: 1,
1081
1086
  showRules: [],
@@ -1143,8 +1148,12 @@ export const basicFields = [
1143
1148
  formScriptEnabled: false,
1144
1149
  formScriptCode: "getList",
1145
1150
  formScriptParam: null,
1151
+ formScriptSuccess: null,
1146
1152
  ...defaultWfConfig,
1147
1153
 
1154
+ commonAttributeEnabled: false,
1155
+ commonAttributeCode: "",
1156
+
1148
1157
  showRuleFlag: 1,
1149
1158
  showRuleEnabled: 1,
1150
1159
  showRules: [],
@@ -1223,8 +1232,12 @@ export const basicFields = [
1223
1232
  formScriptEnabled: false,
1224
1233
  formScriptCode: "getList",
1225
1234
  formScriptParam: null,
1235
+ formScriptSuccess: null,
1226
1236
  ...defaultWfConfig,
1227
1237
 
1238
+ commonAttributeEnabled: false,
1239
+ commonAttributeCode: "",
1240
+
1228
1241
  showRuleFlag: 1,
1229
1242
  showRuleEnabled: 1,
1230
1243
  showRules: [],
@@ -1989,6 +2002,7 @@ export const advancedFields = [
1989
2002
  formScriptEnabled: true,
1990
2003
  formScriptCode: "",
1991
2004
  formScriptParam: null,
2005
+ formScriptSuccess: null,
1992
2006
  onClick: "",
1993
2007
  onCreated: "",
1994
2008
  onMounted: "this.loadDataDefaultHandle()",
@@ -2162,6 +2176,7 @@ export const advancedFields = [
2162
2176
  formScriptEnabled: true,
2163
2177
  formScriptCode: "",
2164
2178
  formScriptParam: null,
2179
+ formScriptSuccess: null,
2165
2180
  onClick: "",
2166
2181
  onCreated: "",
2167
2182
  onMounted: "this.loadDataDefaultHandle()",
@@ -2376,6 +2391,7 @@ export const advancedFields = [
2376
2391
  formScriptEnabled: true,
2377
2392
  formScriptCode: "",
2378
2393
  formScriptParam: null,
2394
+ formScriptSuccess: null,
2379
2395
  onClick: "",
2380
2396
  onCreated: "",
2381
2397
  onMounted: "this.loadDataDefaultHandle()",
@@ -2519,6 +2535,7 @@ export const advancedFields = [
2519
2535
  formScriptEnabled: true,
2520
2536
  formScriptCode: "getList",
2521
2537
  formScriptParam: null,
2538
+ formScriptSuccess: null,
2522
2539
  ...defaultWfConfig,
2523
2540
 
2524
2541
  showRuleFlag: 1,
@@ -2964,6 +2981,7 @@ export const advancedFields = [
2964
2981
  formScriptEnabled: true,
2965
2982
  formScriptCode: "",
2966
2983
  formScriptParam: null,
2984
+ formScriptSuccess: null,
2967
2985
  onCreated: "",
2968
2986
  onMounted: "",
2969
2987
  ...defaultWfConfig,
@@ -2991,17 +3009,31 @@ export const advancedFields = [
2991
3009
  required: !1,
2992
3010
  labelWidth: null,
2993
3011
  labelHidden: !1,
2994
- onCreated: "if(this.formDataId)this.loadDataDefaultHandle();",
3012
+ onCreated: "if(this.dataId)this.loadDataDefaultHandle();",
2995
3013
  onMounted: "",
3014
+ onClick: "",
2996
3015
  vabUpload: 1,
2997
3016
  formScriptEnabled: true,
2998
3017
  formScriptCode: "getList",
2999
3018
  formScriptParam: null,
3019
+ formScriptSuccess: null,
3000
3020
  ...defaultWfConfig,
3001
3021
 
3002
3022
  showRuleFlag: 1,
3003
3023
  showRuleEnabled: 1,
3004
- showRules: []
3024
+ showRules: [],
3025
+
3026
+ tagFormCode: null,
3027
+ tagFormParam: null,
3028
+ tagLabelField: null,
3029
+ tagUniqueField: null,
3030
+ tagFormLabelField: null,
3031
+ tagFormUniqueField: null,
3032
+ tagFillConfig: [],
3033
+ tagConfirmCallback: null,
3034
+ tagDeleteCallback: null,
3035
+ tabDeleteEnabled: false,
3036
+
3005
3037
  }
3006
3038
  },
3007
3039
  {
@@ -3023,6 +3055,7 @@ export const advancedFields = [
3023
3055
  formScriptEnabled: true,
3024
3056
  formScriptCode: "",
3025
3057
  formScriptParam: null,
3058
+ formScriptSuccess: null,
3026
3059
  onCreated: "this.loadDataDefaultHandle()",
3027
3060
  onMounted: "",
3028
3061
  ...defaultWfConfig,