cloud-web-corejs 1.0.131 → 1.0.133
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/tempStorage/index.vue +70 -52
- package/src/components/tempStorage/tempStorageDialog.vue +178 -53
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +86 -64
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +4 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/edit.vue +100 -70
- package/src/views/bd/setting/config_manage/list.vue +20 -5
- package/src/views/bd/setting/form_import_log/list.vue +1 -0
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +122 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +93 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +358 -0
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +311 -0
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
@@ -1,12 +1,25 @@
|
|
1
1
|
<template>
|
2
|
-
<form-item-wrapper
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<form-item-wrapper
|
3
|
+
:designer="designer"
|
4
|
+
:field="field"
|
5
|
+
:rules="rules"
|
6
|
+
:design-state="designState"
|
7
|
+
:parent-widget="parentWidget"
|
8
|
+
:parent-list="parentList"
|
9
|
+
:index-of-parent-list="indexOfParentList"
|
10
|
+
:sub-form-row-index="subFormRowIndex"
|
11
|
+
:sub-form-col-index="subFormColIndex"
|
12
|
+
:sub-form-row-id="subFormRowId"
|
13
|
+
>
|
14
|
+
<el-button
|
15
|
+
icon="el-icon-plus"
|
16
|
+
type="warning"
|
17
|
+
class="el-button-tag"
|
18
|
+
v-if="designState"
|
19
|
+
></el-button>
|
7
20
|
<div v-else>
|
8
21
|
<el-tag
|
9
|
-
v-for="(tag,index) in fieldModel"
|
22
|
+
v-for="(tag, index) in fieldModel"
|
10
23
|
:key="index"
|
11
24
|
type="warning"
|
12
25
|
:disable-transitions="false"
|
@@ -15,22 +28,26 @@
|
|
15
28
|
>
|
16
29
|
{{ tag[field.options.tagLabelField] }}
|
17
30
|
</el-tag>
|
18
|
-
<el-button
|
19
|
-
|
31
|
+
<el-button
|
32
|
+
icon="el-icon-plus"
|
33
|
+
type="warning"
|
34
|
+
class="el-button-tag"
|
35
|
+
@click="openProjectTagDialog"
|
36
|
+
v-if="!field.options.disabled"
|
37
|
+
></el-button>
|
20
38
|
</div>
|
21
|
-
|
22
39
|
</form-item-wrapper>
|
23
40
|
</template>
|
24
41
|
|
25
42
|
<script>
|
26
|
-
import FormItemWrapper from
|
27
|
-
import emitter from
|
43
|
+
import FormItemWrapper from "./form-item-wrapper";
|
44
|
+
import emitter from "../../../../../components/xform/utils/emitter";
|
28
45
|
import i18n from "../../../../../components/xform/utils/i18n";
|
29
46
|
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
30
47
|
|
31
48
|
export default {
|
32
49
|
name: "project-tag-widget",
|
33
|
-
componentName:
|
50
|
+
componentName: "FieldWidget", //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
34
51
|
mixins: [emitter, fieldMixin, i18n],
|
35
52
|
props: {
|
36
53
|
field: Object,
|
@@ -41,37 +58,37 @@ export default {
|
|
41
58
|
|
42
59
|
designState: {
|
43
60
|
type: Boolean,
|
44
|
-
default: false
|
61
|
+
default: false,
|
45
62
|
},
|
46
63
|
|
47
|
-
subFormRowIndex: {
|
48
|
-
type: Number,
|
49
|
-
default: -1
|
64
|
+
subFormRowIndex: {
|
65
|
+
/* 子表单组件行索引,从0开始计数 */ type: Number,
|
66
|
+
default: -1,
|
67
|
+
},
|
68
|
+
subFormColIndex: {
|
69
|
+
/* 子表单组件列索引,从0开始计数 */ type: Number,
|
70
|
+
default: -1,
|
50
71
|
},
|
51
|
-
|
52
|
-
type:
|
53
|
-
default:
|
72
|
+
subFormRowId: {
|
73
|
+
/* 子表单组件行Id,唯一id且不可变 */ type: String,
|
74
|
+
default: "",
|
54
75
|
},
|
55
|
-
subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
|
56
|
-
type: String,
|
57
|
-
default: ''
|
58
|
-
}
|
59
76
|
},
|
60
77
|
components: {
|
61
78
|
FormItemWrapper,
|
62
79
|
},
|
63
|
-
inject: [
|
80
|
+
inject: ["refList", "globalOptionData", "globalModel", "getFormConfig"],
|
64
81
|
data() {
|
65
82
|
return {
|
66
83
|
oldFieldValue: [], //field组件change之前的值
|
67
84
|
fieldModel: [],
|
68
85
|
rules: [],
|
69
|
-
}
|
86
|
+
};
|
70
87
|
},
|
71
88
|
watch: {
|
72
89
|
fieldModel(val) {
|
73
90
|
this.handleChangeEvent(val);
|
74
|
-
}
|
91
|
+
},
|
75
92
|
},
|
76
93
|
computed: {
|
77
94
|
formDataId() {
|
@@ -83,7 +100,7 @@ export default {
|
|
83
100
|
},
|
84
101
|
multi() {
|
85
102
|
return this.limit !== 1;
|
86
|
-
}
|
103
|
+
},
|
87
104
|
},
|
88
105
|
beforeCreate() {
|
89
106
|
/* 这里不能访问方法和属性!! */
|
@@ -93,21 +110,20 @@ export default {
|
|
93
110
|
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
94
111
|
需要在父组件created中初始化!! */
|
95
112
|
|
113
|
+
this.initFieldModel();
|
114
|
+
this.registerToRefList();
|
115
|
+
this.initEventHandler();
|
116
|
+
this.buildFieldRules();
|
96
117
|
|
97
|
-
this.
|
98
|
-
this.registerToRefList()
|
99
|
-
this.initEventHandler()
|
100
|
-
this.buildFieldRules()
|
101
|
-
|
102
|
-
this.handleOnCreated()
|
118
|
+
this.handleOnCreated();
|
103
119
|
},
|
104
120
|
|
105
121
|
mounted() {
|
106
|
-
this.handleOnMounted()
|
122
|
+
this.handleOnMounted();
|
107
123
|
},
|
108
124
|
|
109
125
|
beforeDestroy() {
|
110
|
-
this.unregisterFromRefList()
|
126
|
+
this.unregisterFromRefList();
|
111
127
|
},
|
112
128
|
methods: {
|
113
129
|
loadDataDefaultHandle() {
|
@@ -115,9 +131,9 @@ export default {
|
|
115
131
|
let reportTemplate = this.getFormRef().reportTemplate;
|
116
132
|
let formCode = reportTemplate.formCode;
|
117
133
|
let formScriptEnabled = this.field.options.formScriptEnabled || false;
|
118
|
-
let scriptCode = this.field.options.formScriptCode || "getList"
|
134
|
+
let scriptCode = this.field.options.formScriptCode || "getList";
|
119
135
|
if (!scriptCode) return;
|
120
|
-
let accessParam = this.handleCustomEvent(this.field.options.formScriptParam)
|
136
|
+
let accessParam = this.handleCustomEvent(this.field.options.formScriptParam);
|
121
137
|
return this.formHttp({
|
122
138
|
scriptCode: scriptCode,
|
123
139
|
data: {
|
@@ -126,20 +142,20 @@ export default {
|
|
126
142
|
taBm: this.fieldKeyName,
|
127
143
|
data: {
|
128
144
|
...accessParam,
|
129
|
-
id: dataId
|
130
|
-
}
|
145
|
+
id: dataId,
|
146
|
+
},
|
131
147
|
},
|
132
|
-
callback: res => {
|
148
|
+
callback: (res) => {
|
133
149
|
let rows = res.objx || [];
|
134
|
-
this.setValue(rows)
|
135
|
-
|
150
|
+
this.setValue(rows);
|
151
|
+
this.handleCustomEvent(this.field.options.formScriptSuccess, ["res"], [res]);
|
152
|
+
},
|
136
153
|
});
|
137
|
-
|
138
154
|
},
|
139
155
|
openProjectTagDialog() {
|
140
156
|
if (this.field.options.onClick) {
|
141
157
|
this.handleCustomEvent(this.field.options.onClick);
|
142
|
-
return
|
158
|
+
return;
|
143
159
|
}
|
144
160
|
let formCode = this.field.options.tagFormCode;
|
145
161
|
let tagLabelField = this.field.options.tagLabelField;
|
@@ -154,7 +170,7 @@ export default {
|
|
154
170
|
})*/
|
155
171
|
let queryParam = null;
|
156
172
|
if (this.field.options.tagFormParam) {
|
157
|
-
queryParam = this.handleCustomEvent(this.field.options.tagFormParam)
|
173
|
+
queryParam = this.handleCustomEvent(this.field.options.tagFormParam);
|
158
174
|
}
|
159
175
|
this.getFormRef().openSearchDialog({
|
160
176
|
formCode,
|
@@ -164,35 +180,39 @@ export default {
|
|
164
180
|
confirm: (rows) => {
|
165
181
|
if (!this.field.options.tagConfirmCallback) {
|
166
182
|
let tagFillConfig = this.field.options.tagFillConfig || [];
|
167
|
-
let items = rows.map(item => {
|
183
|
+
let items = rows.map((item) => {
|
168
184
|
let newData = {
|
169
185
|
[tagUniqueField]: item[tagFormUniqueField],
|
170
186
|
[tagLabelField]: item[tagFormLabelField],
|
171
|
-
}
|
172
|
-
tagFillConfig.forEach(item1 => {
|
173
|
-
newData[item1.targetField] = item[item1.sourceField]
|
174
|
-
})
|
175
|
-
return newData
|
187
|
+
};
|
188
|
+
tagFillConfig.forEach((item1) => {
|
189
|
+
newData[item1.targetField] = item[item1.sourceField];
|
190
|
+
});
|
191
|
+
return newData;
|
176
192
|
});
|
177
193
|
this.addTagData(items);
|
178
194
|
} else {
|
179
|
-
this.handleCustomEvent(
|
195
|
+
this.handleCustomEvent(
|
196
|
+
this.field.options.tagConfirmCallback,
|
197
|
+
["rows"],
|
198
|
+
[rows]
|
199
|
+
);
|
180
200
|
}
|
181
|
-
}
|
201
|
+
},
|
182
202
|
});
|
183
203
|
},
|
184
204
|
addTagData(rows) {
|
185
205
|
let tagUniqueField = this.field.options.tagUniqueField;
|
186
|
-
let keys = this.fieldModel.map(item => item[tagUniqueField]);
|
187
|
-
let items = rows.filter(item => !keys.includes(item[tagUniqueField]))
|
206
|
+
let keys = this.fieldModel.map((item) => item[tagUniqueField]);
|
207
|
+
let items = rows.filter((item) => !keys.includes(item[tagUniqueField]));
|
188
208
|
this.fieldModel.push(...items);
|
189
209
|
},
|
190
210
|
deleteCallback(index) {
|
191
|
-
this.fieldModel.splice(index, 1)
|
192
|
-
this.handleCustomEvent(this.field.options.tagDeleteCallback)
|
193
|
-
}
|
194
|
-
}
|
195
|
-
}
|
211
|
+
this.fieldModel.splice(index, 1);
|
212
|
+
this.handleCustomEvent(this.field.options.tagDeleteCallback);
|
213
|
+
},
|
214
|
+
},
|
215
|
+
};
|
196
216
|
</script>
|
197
217
|
|
198
218
|
<style lang="scss" scoped>
|
@@ -203,17 +223,19 @@ export default {
|
|
203
223
|
}
|
204
224
|
|
205
225
|
.hideUploadDiv {
|
206
|
-
::v-deep div.el-upload--picture-card {
|
226
|
+
::v-deep div.el-upload--picture-card {
|
227
|
+
/* 隐藏最后的图片上传按钮 */
|
207
228
|
display: none;
|
208
229
|
}
|
209
230
|
|
210
|
-
::v-deep div.el-upload--text {
|
231
|
+
::v-deep div.el-upload--text {
|
232
|
+
/* 隐藏最后的文件上传按钮 */
|
211
233
|
display: none;
|
212
234
|
}
|
213
235
|
|
214
|
-
::v-deep div.el-upload__tip {
|
236
|
+
::v-deep div.el-upload__tip {
|
237
|
+
/* 隐藏最后的文件上传按钮提示 */
|
215
238
|
display: none;
|
216
239
|
}
|
217
240
|
}
|
218
|
-
|
219
241
|
</style>
|
@@ -878,7 +878,7 @@ const projectTagConfig = {
|
|
878
878
|
required: !1,
|
879
879
|
labelWidth: null,
|
880
880
|
labelHidden: !1,
|
881
|
-
onCreated: "if(
|
881
|
+
onCreated: "if(dataId)this.loadDataDefaultHandle();",
|
882
882
|
onMounted: "",
|
883
883
|
onClick: "",
|
884
884
|
// vabUpload: 1,
|
@@ -3320,6 +3320,7 @@ export const advancedFields = [
|
|
3320
3320
|
tableField: null,
|
3321
3321
|
options: {
|
3322
3322
|
...projectTagConfig,
|
3323
|
+
formScriptEnabled: true
|
3323
3324
|
},
|
3324
3325
|
},
|
3325
3326
|
{
|
@@ -3608,6 +3609,7 @@ export const businessFields = [
|
|
3608
3609
|
tableField: null,
|
3609
3610
|
options: {
|
3610
3611
|
...projectTagConfig,
|
3612
|
+
formScriptEnabled: true,
|
3611
3613
|
label: "用户",
|
3612
3614
|
labelColor: "",
|
3613
3615
|
tagFormCode: "user_dialog",
|
@@ -3628,6 +3630,7 @@ export const businessFields = [
|
|
3628
3630
|
tableField: null,
|
3629
3631
|
options: {
|
3630
3632
|
...projectTagConfig,
|
3633
|
+
formScriptEnabled: true,
|
3631
3634
|
label: "机构",
|
3632
3635
|
labelColor: "",
|
3633
3636
|
tagFormCode: "sale_org_dialog",
|