askbot-dragon 1.5.90-beta → 1.5.92-beta

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.5.90-beta",
3
+ "version": "1.5.92-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -16,7 +16,7 @@
16
16
  <span v-html="aiGuide.content.description"></span>
17
17
  </div>
18
18
  <!-- 一级分类 -->
19
- <div v-show="aiGuide.content.typesVisible" class="ig-types-f">
19
+ <div v-show="aiGuide.content.typesVisible && aiGuide.content.options && aiGuide.content.options.length > 0" class="ig-types-f">
20
20
  <span
21
21
  v-for="(fType, fTypeIndex) in aiGuide.content.options"
22
22
  :key="`f_${fTypeIndex}`"
@@ -31,9 +31,7 @@
31
31
  >
32
32
  </div>
33
33
  <!-- 二级分类 -->
34
- <div v-show="aiGuide.content.typesVisible && aiGuide.content.options[
35
- activeFirstTypeIndex
36
- ].types.length !== 0" class="ig-types-s">
34
+ <div v-if="aiGuide.content.typesVisible && aiGuide.content.options[activeFirstTypeIndex] && aiGuide.content.options[activeFirstTypeIndex].types && aiGuide.content.options[activeFirstTypeIndex].types.length !== 0" class="ig-types-s">
37
35
  <span
38
36
  v-for="(sType, sTypeIndex) in aiGuide.content.options[
39
37
  activeFirstTypeIndex
@@ -234,11 +232,11 @@ export default {
234
232
  beforeMount() {},
235
233
  mounted() {
236
234
  this.isMobile();
237
- if (this.aiGuide.content.options[0].types.length === 0) {
235
+ if (this.aiGuide.content.options[0] && this.aiGuide.content.options[0] && this.aiGuide.content.options[0].types && this.aiGuide.content.options[0].types.length === 0) {
238
236
  this.activeOtherObj = this.aiGuide.content.options[0];
239
237
  } else {
240
238
  this.activeSecondTypeIndex = 0;
241
- this.activeOtherObj = this.aiGuide.content.options[0].types[0];
239
+ this.activeOtherObj = this.aiGuide.content.options[0] && this.aiGuide.content.options[0].types && this.aiGuide.content.options[0].types[0] ? this.aiGuide.content.options[0].types[0] : [];
242
240
  }
243
241
  },
244
242
  methods: {
@@ -1863,12 +1863,12 @@ export default {
1863
1863
  }
1864
1864
  }
1865
1865
  if (type === 'DATE_PICKER') {
1866
- if(this.formList.form.formFieldRelation[i].value!==null && this.formList.form.formFieldRelation[i].value!=='' ) {
1866
+ if(this.formList.form.formFieldRelation[i].value && this.formList.form.formFieldRelation[i].value!==null && this.formList.form.formFieldRelation[i].value!=='' ) {
1867
1867
  this.dateValue[this.formList.form.formFieldRelation[i].fieldId]=this.formatDate(this.formList.form.formFieldRelation[i].value)
1868
1868
  }
1869
1869
  }
1870
1870
  if (type === 'TIME_PICKER') {
1871
- if(this.formList.form.formFieldRelation[i].value!==''&& this.formList.form.formFieldRelation[i].value!==null)
1871
+ if(this.formList.form.formFieldRelation[i].value && this.formList.form.formFieldRelation[i].value!==''&& this.formList.form.formFieldRelation[i].value!==null)
1872
1872
  {
1873
1873
  // 判断是否是时间戳 时间戳为字符串转换为Number
1874
1874
  var regex = /^\d{13}$/;
@@ -2015,7 +2015,7 @@ export default {
2015
2015
  else if (type == 'TIME'){
2016
2016
  this.timePicker = false;
2017
2017
  this.extInfoFieldValue[this.timeDetailData.fieldId] = value;
2018
- this.timeDetailData.value = forMatTime(value)
2018
+ this.timeDetailData.value = value;
2019
2019
  }
2020
2020
  else if (type == 'DATE_TIME'){
2021
2021
  this.dateTimePicker = false;
@@ -2273,7 +2273,7 @@ export default {
2273
2273
  newForm.form.formFieldRelation[i].value = new Date(newForm.form.formFieldRelation[i].value).Format('hh:mm')
2274
2274
  }
2275
2275
  }
2276
- console.debug('formShow',this.formShow,this.formShow.form,newForm.form)
2276
+ console.error('formShow',newForm)
2277
2277
  this.$emit('submitClick',newForm)
2278
2278
  this.disableds = true
2279
2279
  this.submitValue = '已提交'
@@ -2298,6 +2298,9 @@ export default {
2298
2298
  if (this.disableds){
2299
2299
  return
2300
2300
  }
2301
+ if (item.value === undefined || item.value === null){
2302
+ this.$set(item,'value',"")
2303
+ }
2301
2304
  this.timeDetailData = item
2302
2305
  if (type == 'DATE'){
2303
2306
  this.datePicker = true
@@ -2311,10 +2314,12 @@ export default {
2311
2314
  },
2312
2315
  //下拉的点击事件
2313
2316
  selectClick(id,type,item) {
2314
- console.debug('111',item)
2315
2317
  if (this.disableds){
2316
2318
  return
2317
2319
  }
2320
+ if (item.value === undefined || item.value === null){
2321
+ this.$set(item,'value',"")
2322
+ }
2318
2323
  this.selectDetail = item;
2319
2324
  this.defaultValue = []
2320
2325
  if(type == 'client') {