Browse Source

自动代码功能更新

main
pixel 5 years ago
parent
commit
5661281e08
  1. 1
      QMPlusServer/model/autoCodeModel/autoCode.go
  2. 2
      QMPlusVuePage/src/view/superAdmin/autoCode/component/componentDialog.vue
  3. 14
      QMPlusVuePage/src/view/superAdmin/autoCode/index.vue

1
QMPlusServer/model/autoCodeModel/autoCode.go

@ -3,7 +3,6 @@ package autoCodeModel
//开发中功能,若您发现这块代码可以研究,可以无视
type AutoCodeStruct struct {
StructName string `json:"structName"`
StructType []string `json:"structType"`
Components []Component `json:"components"`
}

2
QMPlusVuePage/src/view/superAdmin/autoCode/component/componentDialog.vue

@ -47,7 +47,7 @@
</div>
</el-form>
<div class="button-box clearflex">
<el-button @click="addDictionary" type="primary">新增组件</el-button>
<el-button @click="addDictionary" type="primary">新增字典</el-button>
</div>
<el-table
:data="dialogMiddle.componentDictionary"

14
QMPlusVuePage/src/view/superAdmin/autoCode/index.vue

@ -4,10 +4,10 @@
<!-- 此版本为简单版 -->
<!-- 结构体基础配置 -->
<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-form-item>
<el-form-item label="结构类型" :span="8">
<!-- <el-form-item label="结构类型" :span="8">
<el-select v-model="form.structType" multiple placeholder="请选择结构类型(多选)">
<el-option
v-for="item in options"
@ -16,11 +16,11 @@
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</el-form-item> -->
</el-form>
<!-- 组件列表 -->
<div class="button-box clearflex">
<el-button @click="editAndAddComponent()" type="primary">新增组件</el-button>
<el-button @click="editAndAddComponent()" type="primary">新增Field</el-button>
</div>
<el-table
:data="form.components"
@ -32,17 +32,17 @@
</el-table-column>
<el-table-column
prop="componentName"
label="组件名"
label="Field名"
width="180">
</el-table-column>
<el-table-column
prop="componentType"
label="组件数据类型"
label="Field数据类型"
width="180">
</el-table-column>
<el-table-column
prop="componentShowType"
label="组件展示类型">
label="Field展示类型">
</el-table-column>
<el-table-column
prop="dictionaryName"

Loading…
Cancel
Save