瀏覽代碼

1273 字段是多选框类型,填写完记录后,列表展示的字段值格式错误

cyy 2 年之前
父節點
當前提交
4a05c6940f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/business/platform/form/formrender/dynamic-form/dynamic-form-table-item.vue

+ 4 - 0
src/business/platform/form/formrender/dynamic-form/dynamic-form-table-item.vue

@@ -140,6 +140,10 @@ export default {
                 if (this.field.field_type === 'selector' || this.field.field_type === 'select' || this.field.field_type === 'customDialog' || this.field.field_type === 'linkdata') {
                 if (this.field.field_type === 'selector' || this.field.field_type === 'select' || this.field.field_type === 'customDialog' || this.field.field_type === 'linkdata') {
                     this.handleModels(this.field.name, val)
                     this.handleModels(this.field.name, val)
                 }
                 }
+                if (this.field.field_type === 'checkbox'){
+                    this.handleModels(this.field.name, Array.isArray(val)?val.join(","):val)
+                }
+                console.log(val,'1111111111')
                 this.$nextTick(() => {
                 this.$nextTick(() => {
                     // 值改变进行公式计算
                     // 值改变进行公式计算
                     this.runCalFormula()
                     this.runCalFormula()