⚡优化ui
This commit is contained in:
parent
53d5b044db
commit
c379a8300c
@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
<el-form-item label="字典名称" prop="dictName">
|
|
||||||
<el-input v-model="queryParams.dictName" placeholder="请输入字典名称" clearable @keyup.enter="handleQuery" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="字典类型" prop="dictType">
|
<el-form-item label="字典类型" prop="dictType">
|
||||||
<el-input v-model="queryParams.dictType" placeholder="请输入字典类型" clearable @keyup.enter="handleQuery" />
|
<el-input v-model="queryParams.dictType" placeholder="请输入字典类型" clearable @keyup.enter="handleQuery" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="字典名称" prop="dictName">
|
||||||
|
<el-input v-model="queryParams.dictName" placeholder="请输入字典名称" clearable @keyup.enter="handleQuery" />
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="状态" prop="status">
|
<el-form-item label="状态" prop="status">
|
||||||
<el-select v-model="queryParams.status" placeholder="字典状态" clearable>
|
<el-select v-model="queryParams.status" placeholder="字典状态" clearable>
|
||||||
<el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
<el-option v-for="dict in statusOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
||||||
|
|||||||
@ -330,7 +330,7 @@ function getRoleDeptTreeselect(roleId) {
|
|||||||
}
|
}
|
||||||
// 角色状态修改
|
// 角色状态修改
|
||||||
function handleStatusChange(row) {
|
function handleStatusChange(row) {
|
||||||
const text = row.status === '0' ? '启用' : '停用'
|
const text = row.status == '0' ? '启用' : '停用'
|
||||||
|
|
||||||
proxy
|
proxy
|
||||||
.$confirm('确认要"' + text + '""' + row.roleName + '"角色吗?', '警告', {
|
.$confirm('确认要"' + text + '""' + row.roleName + '"角色吗?', '警告', {
|
||||||
@ -345,7 +345,7 @@ function handleStatusChange(row) {
|
|||||||
proxy.$modal.msgSuccess(text + '成功')
|
proxy.$modal.msgSuccess(text + '成功')
|
||||||
})
|
})
|
||||||
.catch(function () {
|
.catch(function () {
|
||||||
row.status = row.status === '0' ? '1' : '0'
|
row.status = row.status == 0 ? 1 : 0
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
|
|||||||
@ -26,20 +26,17 @@
|
|||||||
highlight-current-row
|
highlight-current-row
|
||||||
height="400px">
|
height="400px">
|
||||||
<el-table-column type="selection" align="center" width="55"></el-table-column>
|
<el-table-column type="selection" align="center" width="55"></el-table-column>
|
||||||
<el-table-column label="#" type="index" width="50" align="center">
|
<el-table-column prop="tableId" label="tableId" width="80" sortable="" />
|
||||||
<template #default="scope">
|
|
||||||
<span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="dbName" label="数据库名" width="90" :show-overflow-tooltip="true" />
|
<el-table-column prop="dbName" label="数据库名" width="90" :show-overflow-tooltip="true" />
|
||||||
<el-table-column prop="tableId" label="id" width="70" sortable="" />
|
<el-table-column prop="tplCategory" label="生成模板" width="90" sortable="" />
|
||||||
<el-table-column prop="tableName" label="表名" width="110" :show-overflow-tooltip="true" />
|
<el-table-column prop="tableName" label="表名" width="120" :show-overflow-tooltip="true" />
|
||||||
<el-table-column prop="tableComment" label="表描述" :show-overflow-tooltip="true" width="120" />
|
<el-table-column prop="tableComment" label="表描述" :show-overflow-tooltip="true" width="120" />
|
||||||
<el-table-column prop="className" label="实体" :show-overflow-tooltip="true" />
|
<el-table-column prop="className" label="实体" :show-overflow-tooltip="true" />
|
||||||
<el-table-column prop="createTime" label="创建时间" sortable />
|
<el-table-column prop="createTime" label="创建时间" sortable />
|
||||||
<el-table-column prop="updateTime" label="更新时间" sortable />
|
<el-table-column prop="updateTime" label="更新时间" sortable />
|
||||||
<el-table-column label="操作" align="center" width="220">
|
<el-table-column label="操作" align="center" width="200">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
<el-button-group>
|
||||||
<el-button text icon="view" @click="handlePreview(scope.row)" v-hasPermi="['tool:gen:preview']"> 预览 </el-button>
|
<el-button text icon="view" @click="handlePreview(scope.row)" v-hasPermi="['tool:gen:preview']"> 预览 </el-button>
|
||||||
<el-button text icon="edit" @click="handleEditTable(scope.row)" v-hasPermi="['tool:gen:edit']"> 编辑 </el-button>
|
<el-button text icon="edit" @click="handleEditTable(scope.row)" v-hasPermi="['tool:gen:edit']"> 编辑 </el-button>
|
||||||
|
|
||||||
@ -71,6 +68,7 @@
|
|||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
</el-button-group>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user