低代码前端完成

This commit is contained in:
aixianling
2022-06-22 16:54:27 +08:00
parent ff322874e2
commit 1c54bac79c
2 changed files with 5 additions and 6 deletions

View File

@@ -26,9 +26,7 @@
<el-input v-model="form.rightCode" clearable placeholder="请输入"/>
</el-form-item>
<el-form-item label="详情方式" prop="detailType">
<el-radio-group v-model="form.detailType">
<el-radio v-for="op in dict.getDict('detailType')" :key="op.dictValue" :label="op.dictValue">{{ op.dictName }}</el-radio>
</el-radio-group>
<ai-select v-model="form.detailType" :selectList="dict.getDict('detailType')"/>
</el-form-item>
</div>
</el-row>
@@ -101,7 +99,7 @@ export default {
},
data() {
return {
form: {detailType: "0", props: [], btns: []},
form: {props: [], btns: []},
rules: {
name: {required: true, message: "请输入应用名称"},
appName: {required: true, message: "请输入应用模块"},
@@ -110,6 +108,7 @@ export default {
colConfigs: [
{slot: 'prop', label: "字段"},
{slot: 'label', label: "名称"},
{slot: 'dict', label: "字典"},
{slot: 'isSearch', label: "搜索字段", align: 'center', type: 'checkBox'},
{slot: 'isTable', label: "表格字段", align: 'center', type: 'checkBox'},
{slot: 'isDetail', label: "详情字段", align: 'center', type: 'chbShow'},

View File

@@ -18,7 +18,7 @@
<template slot-scope="{row}">
<el-button type="text" @click="handleAdd(row.id)">编辑</el-button>
<el-button type="text" @click="handleDelete(row.id)">删除</el-button>
<el-button type="text" v-if="row.download&&row.target" @click="top.handleGetCode(row.id)">下载</el-button>
<el-button type="text" @click="top.handleGetCode(row.id)">下载</el-button>
</template>
</el-table-column>
</ai-table>
@@ -46,7 +46,7 @@ export default {
colConfigs: [
{label: "应用名称", prop: "name", width: 200},
{label: "应用模块", prop: "appName"},
{label: "权限码", prop: "target"},
{label: "权限码", prop: "rightCode"},
{label: "详情展示方式", prop: "detailType", dict: "detailType"},
],
}