自学内容网 自学内容网

下拉框根据sql数据回显

vue

<a-form-item label="XXXX" :labelCol="labelCol" :wrapperCol="wrapperCol" required>
  <a-select v-decorator="['disputeType', validatorRules.disputeType]" style="width: 200px" placeholder="请选择XXXX">
<a-select-option
  v-for="option in options"
  :key="option.id"
  :value="option.id"
>
  {{ option.name }}
</a-select-option>
  </a-select>
</a-form-item>

java实体类

/**XXXX*/
@Excel(name = "XXXX", width = 15)
@ApiModelProperty(value = "XXXX")
@Dict(dictTable = "xccg_tj_type", dicText = "name", dicCode = "id")
private java.lang.String disputeType;


原文地址:https://blog.csdn.net/qq_46423858/article/details/144284601

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!