askbot-dragon 0.8.29 → 0.8.30

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.8.29",
3
+ "version": "0.8.30",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -575,6 +575,20 @@
575
575
  </span>
576
576
  </template>
577
577
  </van-field>
578
+ <van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }">
579
+ <select-popup
580
+ :options="optionsList[selectDetail.fieldId]"
581
+ :defaultValue="defaultValue"
582
+ @onConfim="confirmSelect"
583
+ @onclose= "selectPicker = false"
584
+ :multiple="selectDetail.formField && selectDetail.formField.extInfo && selectDetail.formField.extInfo.selectType ==='多选'?true:false"
585
+ ref="selectPopup"
586
+ :props="{
587
+ value:'value',
588
+ label:'label'
589
+ }"
590
+ ></select-popup>
591
+ </van-popup>
578
592
  </template>
579
593
  </div>
580
594
  <div v-if="item.formField.type === 'REF_TEMPLATE' || item.formField.type === 'REF'" class="form-field-item-value">
@@ -720,20 +734,7 @@
720
734
  }"
721
735
  ></select-popup>
722
736
  </el-drawer>
723
- <van-popup v-model="selectPicker" position="bottom" :style="{ height: '300px' }">
724
- <select-popup
725
- :options="optionsList[selectDetail.fieldId]"
726
- :defaultValue="defaultValue"
727
- @onConfim="confirmSelect"
728
- @onclose= "selectPicker = false"
729
- :multiple="selectDetail.formField && selectDetail.formField.extInfo && selectDetail.formField.extInfo.selectType ==='多选'?true:false"
730
- ref="selectPopup"
731
- :props="{
732
- value:'value',
733
- label:'label'
734
- }"
735
- ></select-popup>
736
- </van-popup>
737
+
737
738
  </div>
738
739
  </template>
739
740
 
@@ -936,7 +937,12 @@ export default {
936
937
  }
937
938
  }
938
939
  if (!item.relationDisplay){
939
- item.value = []
940
+ if(item.formField.type === 'CHECKBOX'){
941
+ item.value = []
942
+ }
943
+ else {
944
+ item.value = ""
945
+ }
940
946
  this.extInfoFieldValue[item.fieldId] = []
941
947
  this.selectValues[item.fieldId] = []
942
948
  this.extInfoFieldValue[item.fieldId] = []