askbot-dragon 0.7.95 → 0.7.96

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": "0.7.95",
3
+ "version": "0.7.96",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -494,7 +494,7 @@
494
494
  readonly
495
495
  clickable
496
496
  name="area"
497
- :value="extInfoFieldValue[item.fieldId] && Array.isArray(extInfoFieldValue[item.fieldId])?extInfoFieldValue[item.fieldId].map(e=>e.label).join(','):''"
497
+ :value="extInfoFieldValue[item.fieldId] && Array.isArray(extInfoFieldValue[item.fieldId])?extInfoFieldValue[item.fieldId].map(e=>e.label).join('/'):''"
498
498
  :label=item.formField.name
499
499
  :placeholder="item.formField.extInfo&&item.formField.extInfo.placeholder?item.formField.extInfo.placeholder:'请选择'"
500
500
  @click="openDrawer(item,'cascader')"
@@ -701,7 +701,7 @@ export default {
701
701
  detailField:{
702
702
  formField:{}
703
703
  },
704
- extInfoFieldValue:[],
704
+ extInfoFieldValue:{},
705
705
  selectPopUp:false,
706
706
  options:[],
707
707
  defaultValue:[],
@@ -1177,10 +1177,8 @@ export default {
1177
1177
  let type = this.formList.form.formFieldRelation[i].formField.type
1178
1178
  let extInfo = this.formList.form.formFieldRelation[i].formField.extInfo
1179
1179
  if (type === 'CASCADER') {
1180
- let fieldValue = this.formList.form.formFieldRelation[i].formField.extInfo.extInfoFieldValue?
1181
- this.formList.form.formFieldRelation[i].formField.extInfo.extInfoFieldValue:
1182
- (this.formList.form.formFieldRelation[i].formField.extInfo.fieldValue?
1183
- this.formList.form.formFieldRelation[i].formField.extInfo.fieldValue:[])
1180
+ let fieldValue = this.formList.form.formFieldRelation[i].formField.extInfo.fieldValue ?
1181
+ this.formList.form.formFieldRelation[i].formField.extInfo.fieldValue :[]
1184
1182
  if (!this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId]){
1185
1183
  this.extInfoFieldValue[this.formList.form.formFieldRelation[i].fieldId] = fieldValue
1186
1184
  }
@@ -1461,9 +1459,11 @@ export default {
1461
1459
  }
1462
1460
  }
1463
1461
  }
1464
- this.formShow.extInfo = {
1465
- extInfoFieldValue : this.extInfoFieldValue
1462
+ let extInfo = {
1463
+ extInfoFieldValue:this.extInfoFieldValue
1466
1464
  }
1465
+ this.$set(this.formShow,'extInfo',extInfo)
1466
+ console.debug('form',this.formShow)
1467
1467
  this.$emit('submitClick',this.formShow)
1468
1468
  this.disableds = true
1469
1469
  this.submitValue = '已提交'
@@ -31,7 +31,10 @@ export default {
31
31
  name: "tree",
32
32
  data(){
33
33
  return{
34
- defaultProps:{},
34
+ defaultProps:{
35
+ label:"label",
36
+ value:"value"
37
+ },
35
38
  checked:'',
36
39
  dataTree:[],
37
40
  checkList:[],
@@ -96,6 +99,7 @@ export default {
96
99
  else if (this.dataOptions.extInfo.cascadeDown && this.dataOptions.extInfo.cascadeDown[0]){
97
100
  this.dataTree = this.dataOptions.extInfo.cascadeDown[0].options
98
101
  }
102
+ console.debug('dataTree',this.dataTree)
99
103
  }
100
104
  };
101
105
  </script>