新增加备注列

This commit is contained in:
不做码农 2022-05-20 21:06:23 +08:00
parent c3c8260f4e
commit 19530295e8

View File

@ -8,10 +8,10 @@
<gen-info-form ref="genInfo" :info="info" :tables="tables" :columns="columns" /> <gen-info-form ref="genInfo" :info="info" :tables="tables" :columns="columns" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="字段信息" name="cloum"> <el-tab-pane label="字段信息" name="cloum">
<el-table ref="dragTableRef" v-loading="loading" :data="columns" row-key="columnId" min-height="100px" :max-height="tableHeight"> <el-table ref="dragTableRef" v-loading="loading" :data="columns" row-key="columnId" min-height="80px" :max-height="tableHeight">
<el-table-column label="序号" type="index" class-name="allowDrag" /> <el-table-column label="序号" type="index" class-name="allowDrag" fixed />
<el-table-column label="字段列名" prop="columnName" :show-overflow-tooltip="true" /> <el-table-column label="字段列名" prop="columnName" :show-overflow-tooltip="true" fixed />
<el-table-column label="字段描述"> <el-table-column label="字段描述" fixed>
<template #default="scope"> <template #default="scope">
<el-input v-model="scope.row.columnComment" :ref="setColumnsRef" @keydown="nextFocus(scope.row, scope.$index, $event)"> </el-input> <el-input v-model="scope.row.columnComment" :ref="setColumnsRef" @keydown="nextFocus(scope.row, scope.$index, $event)"> </el-input>
</template> </template>
@ -35,22 +35,22 @@
<el-input v-model="scope.row.csharpField"></el-input> <el-input v-model="scope.row.csharpField"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="插入" width="50" align="center" v-if="info.tplCategory != 'select'"> <el-table-column label="插入" width="60" align="center" v-if="info.tplCategory != 'select'">
<template #default="scope"> <template #default="scope">
<el-checkbox v-model="scope.row.isInsert" :disabled="scope.row.isIncrement"></el-checkbox> <el-checkbox v-model="scope.row.isInsert" :disabled="scope.row.isIncrement"></el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="编辑" width="50" align="center" v-if="info.tplCategory != 'select'"> <el-table-column label="编辑" width="60" align="center" v-if="info.tplCategory != 'select'">
<template #default="scope"> <template #default="scope">
<el-checkbox v-model="scope.row.isEdit" :disabled="scope.row.isPk || scope.row.isIncrement"></el-checkbox> <el-checkbox v-model="scope.row.isEdit" :disabled="scope.row.isPk || scope.row.isIncrement"></el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="列表" width="50" align="center"> <el-table-column label="列表" width="60" align="center">
<template #default="scope"> <template #default="scope">
<el-checkbox v-model="scope.row.isList"></el-checkbox> <el-checkbox v-model="scope.row.isList"></el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="查询" width="50" align="center"> <el-table-column label="查询" width="60" align="center">
<template #default="scope"> <template #default="scope">
<el-checkbox v-model="scope.row.isQuery" :disabled="scope.row.htmlType == 'imageUpload' || scope.row.htmlType == 'fileUpload'"> <el-checkbox v-model="scope.row.isQuery" :disabled="scope.row.htmlType == 'imageUpload' || scope.row.htmlType == 'fileUpload'">
</el-checkbox> </el-checkbox>
@ -70,12 +70,12 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="必填" width="60"> <el-table-column label="必填" width="60" align="center">
<template #default="scope"> <template #default="scope">
<el-checkbox v-model="scope.row.isRequired"></el-checkbox> <el-checkbox v-model="scope.row.isRequired"></el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="表单显示类型"> <el-table-column label="表单显示类型" width="120">
<template #default="scope"> <template #default="scope">
<el-select v-model="scope.row.htmlType"> <el-select v-model="scope.row.htmlType">
<el-option label="文本框" value="input" /> <el-option label="文本框" value="input" />
@ -92,15 +92,14 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="字典类型"> <el-table-column label="字典类型" min-width="100">
<template #default="scope"> <template #default="scope">
<el-select <el-select
v-model="scope.row.dictType" v-model="scope.row.dictType"
clearable clearable
filterable filterable
placeholder="请选择" placeholder="请选择"
v-if="scope.row.htmlType == 'select' || scope.row.htmlType == 'radio' || scope.row.htmlType == 'checkbox'" v-if="scope.row.htmlType == 'select' || scope.row.htmlType == 'radio' || scope.row.htmlType == 'checkbox'">
>
<el-option v-for="dict in dictOptions" :key="dict.dictType" :label="dict.dictName" :value="dict.dictType"> <el-option v-for="dict in dictOptions" :key="dict.dictType" :label="dict.dictName" :value="dict.dictType">
<span style="float: left">{{ dict.dictName }}</span> <span style="float: left">{{ dict.dictName }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ dict.dictType }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ dict.dictType }}</span>
@ -108,6 +107,11 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" width="200">
<template #default="scope">
<el-input v-model="scope.row.remark"> </el-input>
</template>
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>