askbot-dragon 1.4.56 → 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.56",
3
+ "version": "1.4.58",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -364,7 +364,7 @@
364
364
  @confirm="onConfirmCalendar($event,item)"
365
365
  />
366
366
  </div>
367
- <div v-else-if="item.formField.type==='TIME_PICKER'&&(!item.formField.extInfo.mold||item.formField.extInfo.mold==='DATA_TIME' || item.formField.extInfo.mold==='DATE_TIME' || getMoldTime(item.formField) == 'DATE_TIME')" class="form-field-item-value">
367
+ <div v-else-if="item.formField.type==='TIME_PICKER'&&(item.formField.extInfo.mold==='DATA_TIME' || item.formField.extInfo.mold==='DATE_TIME' || getMoldTime(item.formField) == 'DATE_TIME')" class="form-field-item-value">
368
368
  <van-field
369
369
  readonly
370
370
  clickable
@@ -1106,9 +1106,13 @@ 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
- item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value + ":00"
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
+ item.value = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate() + " " + item.value;
1112
1116
  }
1113
1117
  }
1114
1118
  })
@@ -2078,6 +2082,12 @@ export default {
2078
2082
  newForm.form.formFieldRelation[i].value = newForm.form.formFieldRelation[i].value.replace(/<img/g, "<img onclick='previewImage(this)' ")
2079
2083
  console.log(newForm.form.formFieldRelation[i]);
2080
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
+ }
2081
2091
  }
2082
2092
  console.debug('formShow',this.formShow,this.formShow.form,newForm.form)
2083
2093
  this.$emit('submitClick',newForm)