| | |
| | | <el-button type="danger" size="small" icon="el-icon-delete" v-if="permission.code_delete" plain |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | |
| | | <el-button type="primary" size="small" plain icon="el-icon-refresh" @click="handleBuild">代码生成 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button type="text" size="small" icon="el-icon-document-copy" v-if="permission.code_edit" |
| | | class="none-border" @click.stop="handleCopy(scope.row)">复制 |
| | | |
| | | <template slot-scope="{row, size}" slot="menu"> |
| | | <el-button type="text" :size="size" icon="el-icon-document-copy" v-if="permission.code_edit" |
| | | class="none-border" @click.stop="handleCopy(row)">复制 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | total: 0 |
| | | }, |
| | | option: { |
| | | labelWidth: 120, |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 280, |
| | | |
| | | height: 'auto', |
| | | calcHeight: 30, |
| | | dialogWidth: 900, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | labelWidth: 120, |
| | | menuWidth: 280, |
| | | viewBtn: true, |
| | | dialogClickModal: false, |
| | | tabs: true, |
| | |
| | | { |
| | | label: "模块名", |
| | | prop: "codeName", |
| | | searchLabelWidth: 80, |
| | | searchSpan: 4, |
| | | search: true, |
| | | display: false, |
| | | }, |
| | |
| | | { |
| | | label: "表名", |
| | | prop: "tableName", |
| | | searchLabelWidth: 66, |
| | | searchSpan: 4, |
| | | search: true, |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "服务名", |
| | | prop: "serviceName", |
| | | searchLabelWidth: 80, |
| | | searchSpan: 4, |
| | | search: true, |
| | | display: false, |
| | | }, |