低代码前端完成
This commit is contained in:
@@ -26,9 +26,7 @@
|
|||||||
<el-input v-model="form.rightCode" clearable placeholder="请输入"/>
|
<el-input v-model="form.rightCode" clearable placeholder="请输入"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="详情方式" prop="detailType">
|
<el-form-item label="详情方式" prop="detailType">
|
||||||
<el-radio-group v-model="form.detailType">
|
<ai-select v-model="form.detailType" :selectList="dict.getDict('detailType')"/>
|
||||||
<el-radio v-for="op in dict.getDict('detailType')" :key="op.dictValue" :label="op.dictValue">{{ op.dictName }}</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -101,7 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {detailType: "0", props: [], btns: []},
|
form: {props: [], btns: []},
|
||||||
rules: {
|
rules: {
|
||||||
name: {required: true, message: "请输入应用名称"},
|
name: {required: true, message: "请输入应用名称"},
|
||||||
appName: {required: true, message: "请输入应用模块"},
|
appName: {required: true, message: "请输入应用模块"},
|
||||||
@@ -110,6 +108,7 @@ export default {
|
|||||||
colConfigs: [
|
colConfigs: [
|
||||||
{slot: 'prop', label: "字段"},
|
{slot: 'prop', label: "字段"},
|
||||||
{slot: 'label', label: "名称"},
|
{slot: 'label', label: "名称"},
|
||||||
|
{slot: 'dict', label: "字典"},
|
||||||
{slot: 'isSearch', label: "搜索字段", align: 'center', type: 'checkBox'},
|
{slot: 'isSearch', label: "搜索字段", align: 'center', type: 'checkBox'},
|
||||||
{slot: 'isTable', label: "表格字段", align: 'center', type: 'checkBox'},
|
{slot: 'isTable', label: "表格字段", align: 'center', type: 'checkBox'},
|
||||||
{slot: 'isDetail', label: "详情字段", align: 'center', type: 'chbShow'},
|
{slot: 'isDetail', label: "详情字段", align: 'center', type: 'chbShow'},
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button type="text" @click="handleAdd(row.id)">编辑</el-button>
|
<el-button type="text" @click="handleAdd(row.id)">编辑</el-button>
|
||||||
<el-button type="text" @click="handleDelete(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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
@@ -46,7 +46,7 @@ export default {
|
|||||||
colConfigs: [
|
colConfigs: [
|
||||||
{label: "应用名称", prop: "name", width: 200},
|
{label: "应用名称", prop: "name", width: 200},
|
||||||
{label: "应用模块", prop: "appName"},
|
{label: "应用模块", prop: "appName"},
|
||||||
{label: "权限码", prop: "target"},
|
{label: "权限码", prop: "rightCode"},
|
||||||
{label: "详情展示方式", prop: "detailType", dict: "detailType"},
|
{label: "详情展示方式", prop: "detailType", dict: "detailType"},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user