askbot-dragon 1.4.59 → 1.4.61
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/formTemplate.vue +25 -15
package/package.json
CHANGED
|
@@ -1103,20 +1103,21 @@ export default {
|
|
|
1103
1103
|
},
|
|
1104
1104
|
mounted() {
|
|
1105
1105
|
|
|
1106
|
-
if (this.formList.form.formFieldRelation && this.formList.form.formFieldRelation.length > 0) {
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
}
|
|
1106
|
+
// if (this.formList.form.formFieldRelation && this.formList.form.formFieldRelation.length > 0) {
|
|
1107
|
+
// this.formList.form.formFieldRelation.forEach(item => {
|
|
1108
|
+
// if (item.formField.type === "TIME_PICKER") {
|
|
1109
|
+
// if (item.value.length === 5 && item.value.split(":").length === 2) {
|
|
1110
|
+
// console.log(1112, item.value);
|
|
1111
|
+
// this.extInfoFieldValue[item.fieldId] = item.value;
|
|
1112
|
+
// item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value + ":00";
|
|
1113
|
+
// }
|
|
1114
|
+
// if (item.value.length === 8 && item.value.split(":").length === 3) {
|
|
1115
|
+
// this.extInfoFieldValue[item.fieldId] = item.value;
|
|
1116
|
+
// item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value;
|
|
1117
|
+
// }
|
|
1118
|
+
// }
|
|
1119
|
+
// })
|
|
1120
|
+
// }
|
|
1120
1121
|
if (this.mainId == '8b9bd566e3e64156ab764b19defc9d48' || this.mainId == '0b73521f96e4486aaf6be42932bd7b07'){
|
|
1121
1122
|
this.ckeditor.editorConfig.toolbar = []
|
|
1122
1123
|
}
|
|
@@ -1727,7 +1728,16 @@ export default {
|
|
|
1727
1728
|
if (!this.formList.form.formFieldRelation[i].formField.extInfo.mold ||
|
|
1728
1729
|
this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'TIME' ||
|
|
1729
1730
|
this.getMoldTime(this.formList.form.formFieldRelation[i].formField.formField) == 'TIME'){
|
|
1730
|
-
this.
|
|
1731
|
+
if (this.formList.form.formFieldRelation[i].value.length === 5 && this.formList.form.formFieldRelation[i].value.split(":").length === 2) {
|
|
1732
|
+
this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId] = this.formList.form.formFieldRelation[i].value;
|
|
1733
|
+
this.formList.form.formFieldRelation[i].value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + this.formList.form.formFieldRelation[i].value + ":00";
|
|
1734
|
+
}
|
|
1735
|
+
else if (this.formList.form.formFieldRelation[i].value.length === 8 && this.formList.form.formFieldRelation[i].value.split(":").length === 3) {
|
|
1736
|
+
this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId] = this.formList.form.formFieldRelation[i].value;
|
|
1737
|
+
this.formList.form.formFieldRelation[i].value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + this.formList.form.formFieldRelation[i].value;
|
|
1738
|
+
} else {
|
|
1739
|
+
this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId] = this.formList.form.formFieldRelation[i].value
|
|
1740
|
+
}
|
|
1731
1741
|
}
|
|
1732
1742
|
else if (this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATA_TIME' ||
|
|
1733
1743
|
this.formList.form.formFieldRelation[i].formField.extInfo.mold == 'DATE_TIME' ||
|