提交 5661281e 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

自动代码功能更新

上级 ca842262
...@@ -3,7 +3,6 @@ package autoCodeModel ...@@ -3,7 +3,6 @@ package autoCodeModel
//开发中功能,若您发现这块代码可以研究,可以无视 //开发中功能,若您发现这块代码可以研究,可以无视
type AutoCodeStruct struct { type AutoCodeStruct struct {
StructName string `json:"structName"` StructName string `json:"structName"`
StructType []string `json:"structType"`
Components []Component `json:"components"` Components []Component `json:"components"`
} }
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
</el-form> </el-form>
<div class="button-box clearflex"> <div class="button-box clearflex">
<el-button @click="addDictionary" type="primary">新增组件</el-button> <el-button @click="addDictionary" type="primary">新增字典</el-button>
</div> </div>
<el-table <el-table
:data="dialogMiddle.componentDictionary" :data="dialogMiddle.componentDictionary"
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
<!-- 此版本为简单版 --> <!-- 此版本为简单版 -->
<!-- 结构体基础配置 --> <!-- 结构体基础配置 -->
<el-form ref="form" :model="form" label-width="100px" :inline="true"> <el-form ref="form" :model="form" label-width="100px" :inline="true">
<el-form-item label="结构名称" :span="8"> <el-form-item label="Struct名称" :span="8">
<el-input v-model="form.structName"></el-input> <el-input v-model="form.structName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="结构类型" :span="8"> <!-- <el-form-item label="结构类型" :span="8">
<el-select v-model="form.structType" multiple placeholder="请选择结构类型(多选)"> <el-select v-model="form.structType" multiple placeholder="请选择结构类型(多选)">
<el-option <el-option
v-for="item in options" v-for="item in options"
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item> -->
</el-form> </el-form>
<!-- 组件列表 --> <!-- 组件列表 -->
<div class="button-box clearflex"> <div class="button-box clearflex">
<el-button @click="editAndAddComponent()" type="primary">新增组件</el-button> <el-button @click="editAndAddComponent()" type="primary">新增Field</el-button>
</div> </div>
<el-table <el-table
:data="form.components" :data="form.components"
...@@ -32,17 +32,17 @@ ...@@ -32,17 +32,17 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="componentName" prop="componentName"
label="组件名" label="Field名"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="componentType" prop="componentType"
label="组件数据类型" label="Field数据类型"
width="180"> width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="componentShowType" prop="componentShowType"
label="组件展示类型"> label="Field展示类型">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="dictionaryName" prop="dictionaryName"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册