jufubao-forms 1.0.0-beta10 → 1.0.0-beta12
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
CHANGED
|
@@ -188,6 +188,7 @@
|
|
|
188
188
|
dynamicFormList: [],
|
|
189
189
|
renderForm: "renderForm",
|
|
190
190
|
form_id: "",
|
|
191
|
+
foreign_id: "",
|
|
191
192
|
isShowDialog: false,
|
|
192
193
|
validImageAPIUrl: "",
|
|
193
194
|
valid_token: "",
|
|
@@ -236,6 +237,7 @@
|
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
239
|
this.form_id = options.form_id;
|
|
240
|
+
this.foreign_id = options.foreign_id;
|
|
239
241
|
}else{
|
|
240
242
|
this.form_id = 1;
|
|
241
243
|
}
|
|
@@ -247,7 +249,8 @@
|
|
|
247
249
|
vm: this,
|
|
248
250
|
data: {
|
|
249
251
|
form_id: this.form_id,
|
|
250
|
-
bucket: this.bucket
|
|
252
|
+
bucket: this.bucket,
|
|
253
|
+
foreign_id: this.foreign_id
|
|
251
254
|
}
|
|
252
255
|
}).then(res => {
|
|
253
256
|
this.$xdHideLoading();
|
|
@@ -429,6 +432,7 @@
|
|
|
429
432
|
contents,
|
|
430
433
|
form_id: this.form_id,
|
|
431
434
|
bucket: this.bucket,
|
|
435
|
+
foreign_id: this.foreign_id
|
|
432
436
|
}
|
|
433
437
|
}).then(res => {
|
|
434
438
|
this.$xdHideLoading();
|
|
@@ -18,6 +18,17 @@ export default {
|
|
|
18
18
|
{ label: 'saas系统', value: 'saas'}
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
label: "表单类型",
|
|
23
|
+
ele: "xd-radio",
|
|
24
|
+
valueKey: "base_type",
|
|
25
|
+
value: data['base_type'] || '',
|
|
26
|
+
groupKey:'content',
|
|
27
|
+
list: [
|
|
28
|
+
{ label: "员工调研", value: "form"},
|
|
29
|
+
{ label: '知识竞赛', value: 'answer'}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
21
32
|
{
|
|
22
33
|
label: "列表外边距设置",
|
|
23
34
|
groupKey:'style',
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
detailPath: "",
|
|
76
76
|
bucket: "default",
|
|
77
77
|
qaDetailPath: "",
|
|
78
|
+
base_type: "",
|
|
78
79
|
}
|
|
79
80
|
},
|
|
80
81
|
computed: {
|
|
@@ -124,6 +125,7 @@
|
|
|
124
125
|
this.listPadding = getContainerPropsValue(container, 'content.listPadding', {});
|
|
125
126
|
this.itemRadius = getContainerPropsValue(container, 'content.itemRadius', 0);
|
|
126
127
|
this.bucket = getContainerPropsValue(container, 'content.bucket', 'default');
|
|
128
|
+
this.base_type = getContainerPropsValue(container, 'content.base_type', '');
|
|
127
129
|
this.detailPath = getContainerPropsValue(container, 'content.detailPath', {value: ""}).value;
|
|
128
130
|
this.qaDetailPath = getContainerPropsValue(container, 'content.qaDetailPath', {value: ""}).value;
|
|
129
131
|
},
|
|
@@ -131,7 +133,8 @@
|
|
|
131
133
|
let data = {
|
|
132
134
|
page_token: this.page_token+'',
|
|
133
135
|
page_size: this.page_size,
|
|
134
|
-
bucket: this.bucket
|
|
136
|
+
bucket: this.bucket,
|
|
137
|
+
base_type: this.base_type
|
|
135
138
|
}
|
|
136
139
|
jfbRootExec("getSaasFormList", {
|
|
137
140
|
vm: this,
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
data() {
|
|
120
120
|
return {
|
|
121
121
|
form_id: '',
|
|
122
|
+
foreign_id: "",
|
|
122
123
|
loaded: false,
|
|
123
124
|
isPreview: false,
|
|
124
125
|
form_status: "content",
|
|
@@ -240,12 +241,14 @@
|
|
|
240
241
|
this.form_id = '123';
|
|
241
242
|
}else{
|
|
242
243
|
this.form_id = options.form_id;
|
|
244
|
+
this.foreign_id = options.foreign_id;
|
|
243
245
|
}
|
|
244
246
|
this.$xdShowLoading({});
|
|
245
247
|
jfbRootExec("getDynamicForm", {
|
|
246
248
|
vm: this,
|
|
247
249
|
data: {
|
|
248
250
|
form_id: this.form_id,
|
|
251
|
+
foreign_id: this.foreign_id
|
|
249
252
|
}
|
|
250
253
|
}).then(res => {
|
|
251
254
|
this.$xdHideLoading();
|
|
@@ -302,6 +305,7 @@
|
|
|
302
305
|
vm: this,
|
|
303
306
|
data: {
|
|
304
307
|
form_id: this.form_id,
|
|
308
|
+
foreign_id: this.foreign_id,
|
|
305
309
|
contents: this.formList.map(item => {
|
|
306
310
|
let content = Array.isArray(item.value) ? item.value : (item.value ? [item.value] : []);
|
|
307
311
|
return {
|
|
@@ -330,7 +334,7 @@
|
|
|
330
334
|
if(url){
|
|
331
335
|
if(this.marketing_tool === 'prize') url = url + '?id=' + this.activity_id;
|
|
332
336
|
if(this.marketing_tool === 'coupon') url = url + '?activity_id=' + this.activity_id;
|
|
333
|
-
else url = url + `?id=${this.activity_id}&activity_id=${this.activity_id}`;
|
|
337
|
+
else url = url + `?id=${this.activity_id}&activity_id=${this.activity_id}&foreign_id=${this.foreign_id}`;
|
|
334
338
|
this.$xdUniHelper.navigateTo({
|
|
335
339
|
url: url
|
|
336
340
|
})
|