|
@@ -15,7 +15,6 @@
|
|
|
<!-- {{ form.name }}-->
|
|
<!-- {{ form.name }}-->
|
|
|
<!-- </div>-->
|
|
<!-- </div>-->
|
|
|
<fm-generate-form
|
|
<fm-generate-form
|
|
|
- @on-change="onChange"
|
|
|
|
|
:preview="true"
|
|
:preview="true"
|
|
|
class="el-form-box"
|
|
class="el-form-box"
|
|
|
v-if="Object.keys(form?.formJson || {}).length !== 0"
|
|
v-if="Object.keys(form?.formJson || {}).length !== 0"
|
|
@@ -632,32 +631,7 @@ this.postOptions.push(...response.data);
|
|
|
return result.trim();
|
|
return result.trim();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- onChange(field, value) {
|
|
|
|
|
- console.log(field, value);
|
|
|
|
|
- // input_if1cav3p
|
|
|
|
|
-
|
|
|
|
|
- if (field === 'date_fxb0rd2w') {
|
|
|
|
|
- this.editForm.start = value;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (field === 'date_mz7gmwkm') {
|
|
|
|
|
- this.editForm.end = value;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (this.editForm.start && this.editForm.end) {
|
|
|
|
|
- this.editForm.days = this.getDays(
|
|
|
|
|
- this.editForm.start,
|
|
|
|
|
- this.editForm.end
|
|
|
|
|
- );
|
|
|
|
|
- this.$refs.generateForm.setData({
|
|
|
|
|
- input_if1cav3p: this.editForm.days
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$refs.generateForm.setData({
|
|
|
|
|
- input_if1cav3p: 0
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|