|
|
|
@ -40,15 +40,23 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form :model="addForm" label-width="100px" v-adaptive style="width:100%;height:100px;overflow:auto" :rules="addFormRules" ref="inputAddForm"> |
|
|
|
<el-row> |
|
|
|
<draggable id="af" class="dragArea" :options="{group:{ name:'g1', pull:'clone'}, animation:150}" v-model="sampleFields" :move="onMove"> |
|
|
|
|
|
|
|
<el-col v-for="(item,index) in sampleFields" :key="index" :span="calcSpan(item)"> |
|
|
|
<mdp-field :gutter="0" :span="24" :value="item" :sample="true"></mdp-field> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</draggable> |
|
|
|
</el-row> |
|
|
|
<el-form-item label="字段来源" title="该组件能够快速初始化一系列已定义的列"> |
|
|
|
<el-row type="flex"> |
|
|
|
<el-button type="primary" title="自动读取表格的列作为该表单的字段">数据库表</el-button> |
|
|
|
<el-button type="success" title="ai输出了表格列信息,黏贴到此组件即可以解析出列信息作为该表单字段">AI输出</el-button> |
|
|
|
<el-button type="warning" title="api输出的结果如果是json,可以根据第一条数据结果解析出字段编码,手动加上中文注释即可">API输出</el-button> |
|
|
|
<el-button type="primary" title="自动读取数据字典中的下拉列表作为该表单的字段信息">数据字典</el-button> |
|
|
|
</el-row> |
|
|
|
</el-form-item> |
|
|
|
<el-row> |
|
|
|
<draggable id="af" class="dragArea" :options="{group:{ name:'g1', pull:'clone'}, animation:150}" v-model="sampleFields" :move="onMove"> |
|
|
|
|
|
|
|
<el-col v-for="(item,index) in sampleFields" :key="index" :span="calcSpan(item)"> |
|
|
|
<mdp-field :gutter="0" :span="24" :value="item" :sample="true"></mdp-field> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</draggable> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
|