askbot-dragon 1.4.57 → 1.4.58

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.4.57",
3
+ "version": "1.4.58",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1106,11 +1106,14 @@ export default {
1106
1106
  if (this.formList.form.formFieldRelation && this.formList.form.formFieldRelation.length > 0) {
1107
1107
  this.formList.form.formFieldRelation.forEach(item => {
1108
1108
  if (item.formField.type === "TIME_PICKER") {
1109
+ this.extInfoFieldValue[item.fieldId] = item.value;
1109
1110
  if (item.value.length === 5 && item.value.split(":").length === 2) {
1110
1111
  console.log(1112, item.value);
1111
- this.extInfoFieldValue[item.fieldId] = item.value;
1112
1112
  item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value + ":00";
1113
1113
  }
1114
+ if (item.value.length === 8 && item.value.split(":").length === 3) {
1115
+ item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value;
1116
+ }
1114
1117
  }
1115
1118
  })
1116
1119
  }
@@ -2079,6 +2082,12 @@ export default {
2079
2082
  newForm.form.formFieldRelation[i].value = newForm.form.formFieldRelation[i].value.replace(/<img/g, "<img onclick='previewImage(this)' ")
2080
2083
  console.log(newForm.form.formFieldRelation[i]);
2081
2084
  }
2085
+ if (newForm.form.formFieldRelation[i].formField.type === "TIME_PICKER" &&
2086
+ newForm.form.formFieldRelation[i].value &&
2087
+ !(newForm.form.formFieldRelation[i].value.length === 5 && newForm.form.formFieldRelation[i].value.split(":").length === 2) &&
2088
+ !(newForm.form.formFieldRelation[i].value.length === 8 && newForm.form.formFieldRelation[i].value.split(":").length === 3)){
2089
+ newForm.form.formFieldRelation[i].value = new Date(newForm.form.formFieldRelation[i].value).Format('hh:mm:ss')
2090
+ }
2082
2091
  }
2083
2092
  console.debug('formShow',this.formShow,this.formShow.form,newForm.form)
2084
2093
  this.$emit('submitClick',newForm)