提交 1aa6ab53 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

调整前端样式,调整日志记录路由组,调整对应自动化模板

上级 be931ced
...@@ -12,13 +12,16 @@ type {{.StructName}}Router struct { ...@@ -12,13 +12,16 @@ type {{.StructName}}Router struct {
// Init{{.StructName}}Router 初始化 {{.StructName}} 路由信息 // Init{{.StructName}}Router 初始化 {{.StructName}} 路由信息
func (s *{{.StructName}}Router) Init{{.StructName}}Router(Router *gin.RouterGroup) { func (s *{{.StructName}}Router) Init{{.StructName}}Router(Router *gin.RouterGroup) {
{{.Abbreviation}}Router := Router.Group("{{.Abbreviation}}").Use(middleware.OperationRecord()) {{.Abbreviation}}Router := Router.Group("{{.Abbreviation}}").Use(middleware.OperationRecord())
{{.Abbreviation}}RouterWithoutRecord := Router.Group("{{.Abbreviation}}")
var {{.Abbreviation}}Api = v1.ApiGroupApp.AutoCodeApiGroup.{{.StructName}}Api var {{.Abbreviation}}Api = v1.ApiGroupApp.AutoCodeApiGroup.{{.StructName}}Api
{ {
{{.Abbreviation}}Router.POST("create{{.StructName}}", {{.Abbreviation}}Api.Create{{.StructName}}) // 新建{{.StructName}} {{.Abbreviation}}Router.POST("create{{.StructName}}", {{.Abbreviation}}Api.Create{{.StructName}}) // 新建{{.StructName}}
{{.Abbreviation}}Router.DELETE("delete{{.StructName}}", {{.Abbreviation}}Api.Delete{{.StructName}}) // 删除{{.StructName}} {{.Abbreviation}}Router.DELETE("delete{{.StructName}}", {{.Abbreviation}}Api.Delete{{.StructName}}) // 删除{{.StructName}}
{{.Abbreviation}}Router.DELETE("delete{{.StructName}}ByIds", {{.Abbreviation}}Api.Delete{{.StructName}}ByIds) // 批量删除{{.StructName}} {{.Abbreviation}}Router.DELETE("delete{{.StructName}}ByIds", {{.Abbreviation}}Api.Delete{{.StructName}}ByIds) // 批量删除{{.StructName}}
{{.Abbreviation}}Router.PUT("update{{.StructName}}", {{.Abbreviation}}Api.Update{{.StructName}}) // 更新{{.StructName}} {{.Abbreviation}}Router.PUT("update{{.StructName}}", {{.Abbreviation}}Api.Update{{.StructName}}) // 更新{{.StructName}}
{{.Abbreviation}}Router.GET("find{{.StructName}}", {{.Abbreviation}}Api.Find{{.StructName}}) // 根据ID获取{{.StructName}} }
{{.Abbreviation}}Router.GET("get{{.StructName}}List", {{.Abbreviation}}Api.Get{{.StructName}}List) // 获取{{.StructName}}列表 {
{{.Abbreviation}}RouterWithoutRecord.GET("find{{.StructName}}", {{.Abbreviation}}Api.Find{{.StructName}}) // 根据ID获取{{.StructName}}
{{.Abbreviation}}RouterWithoutRecord.GET("get{{.StructName}}List", {{.Abbreviation}}Api.Get{{.StructName}}List) // 获取{{.StructName}}列表
} }
} }
...@@ -49,24 +49,24 @@ ...@@ -49,24 +49,24 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="日期" width="180"> <el-table-column align="center" label="日期" width="180">
<template #default="scope">{{ "{{ formatDate(scope.row.CreatedAt) }}" }}</template> <template #default="scope">{{ "{{ formatDate(scope.row.CreatedAt) }}" }}</template>
</el-table-column> </el-table-column>
{{- range .Fields}} {{- range .Fields}}
{{- if .DictType}} {{- if .DictType}}
<el-table-column label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="120"> <el-table-column align="center" label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="120">
<template #default="scope"> <template #default="scope">
{{"{{"}} filterDict(scope.row.{{.FieldJson}},"{{.DictType}}") {{"}}"}} {{"{{"}} filterDict(scope.row.{{.FieldJson}},"{{.DictType}}") {{"}}"}}
</template> </template>
</el-table-column> </el-table-column>
{{- else if eq .FieldType "bool" }} {{- else if eq .FieldType "bool" }}
<el-table-column label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="120"> <el-table-column align="center" label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="120">
<template #default="scope">{{"{{"}} formatBoolean(scope.row.{{.FieldJson}}) {{"}}"}}</template> <template #default="scope">{{"{{"}} formatBoolean(scope.row.{{.FieldJson}}) {{"}}"}}</template>
</el-table-column> {{- else }} </el-table-column> {{- else }}
<el-table-column label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="120" /> <el-table-column align="center" label="{{.FieldDesc}}" prop="{{.FieldJson}}" width="120" />
{{- end }} {{- end }}
{{- end }} {{- end }}
<el-table-column label="按钮组"> <el-table-column align="center" label="按钮组">
<template #default="scope"> <template #default="scope">
<el-button type="text" icon="el-icon-edit" size="small" class="table-button" @click="update{{.StructName}}(scope.row)">变更</el-button> <el-button type="text" icon="el-icon-edit" size="small" class="table-button" @click="update{{.StructName}}(scope.row)">变更</el-button>
<el-button type="text" icon="el-icon-delete" size="mini" @click="deleteRow(scope.row)">删除</el-button> <el-button type="text" icon="el-icon-delete" size="mini" @click="deleteRow(scope.row)">删除</el-button>
......
...@@ -11,12 +11,15 @@ type AutoCodeExampleRouter struct { ...@@ -11,12 +11,15 @@ type AutoCodeExampleRouter struct {
func (s *AutoCodeExampleRouter) InitSysAutoCodeExampleRouter(Router *gin.RouterGroup) { func (s *AutoCodeExampleRouter) InitSysAutoCodeExampleRouter(Router *gin.RouterGroup) {
autoCodeExampleRouter := Router.Group("autoCodeExample").Use(middleware.OperationRecord()) autoCodeExampleRouter := Router.Group("autoCodeExample").Use(middleware.OperationRecord())
autoCodeExampleRouterWithoutRecord := Router.Group("autoCodeExample")
var autoCodeExampleApi = v1.ApiGroupApp.AutoCodeApiGroup.AutoCodeExampleApi var autoCodeExampleApi = v1.ApiGroupApp.AutoCodeApiGroup.AutoCodeExampleApi
{ {
autoCodeExampleRouter.POST("createSysAutoCodeExample", autoCodeExampleApi.CreateAutoCodeExample) // 新建AutoCodeExample autoCodeExampleRouter.POST("createSysAutoCodeExample", autoCodeExampleApi.CreateAutoCodeExample) // 新建AutoCodeExample
autoCodeExampleRouter.DELETE("deleteSysAutoCodeExample", autoCodeExampleApi.DeleteAutoCodeExample) // 删除AutoCodeExample autoCodeExampleRouter.DELETE("deleteSysAutoCodeExample", autoCodeExampleApi.DeleteAutoCodeExample) // 删除AutoCodeExample
autoCodeExampleRouter.PUT("updateSysAutoCodeExample", autoCodeExampleApi.UpdateAutoCodeExample) // 更新AutoCodeExample autoCodeExampleRouter.PUT("updateSysAutoCodeExample", autoCodeExampleApi.UpdateAutoCodeExample) // 更新AutoCodeExample
autoCodeExampleRouter.GET("findSysAutoCodeExample", autoCodeExampleApi.FindAutoCodeExample) // 根据ID获取AutoCodeExample }
autoCodeExampleRouter.GET("getSysAutoCodeExampleList", autoCodeExampleApi.GetAutoCodeExampleList) // 获取AutoCodeExample列表 {
autoCodeExampleRouterWithoutRecord.GET("findSysAutoCodeExample", autoCodeExampleApi.FindAutoCodeExample) // 根据ID获取AutoCodeExample
autoCodeExampleRouterWithoutRecord.GET("getSysAutoCodeExampleList", autoCodeExampleApi.GetAutoCodeExampleList) // 获取AutoCodeExample列表
} }
} }
...@@ -11,12 +11,15 @@ type CustomerRouter struct { ...@@ -11,12 +11,15 @@ type CustomerRouter struct {
func (e *CustomerRouter) InitCustomerRouter(Router *gin.RouterGroup) { func (e *CustomerRouter) InitCustomerRouter(Router *gin.RouterGroup) {
customerRouter := Router.Group("customer").Use(middleware.OperationRecord()) customerRouter := Router.Group("customer").Use(middleware.OperationRecord())
customerRouterWithoutRecord := Router.Group("customer")
var exaCustomerApi = v1.ApiGroupApp.ExampleApiGroup.CustomerApi var exaCustomerApi = v1.ApiGroupApp.ExampleApiGroup.CustomerApi
{ {
customerRouter.POST("customer", exaCustomerApi.CreateExaCustomer) // 创建客户 customerRouter.POST("customer", exaCustomerApi.CreateExaCustomer) // 创建客户
customerRouter.PUT("customer", exaCustomerApi.UpdateExaCustomer) // 更新客户 customerRouter.PUT("customer", exaCustomerApi.UpdateExaCustomer) // 更新客户
customerRouter.DELETE("customer", exaCustomerApi.DeleteExaCustomer) // 删除客户 customerRouter.DELETE("customer", exaCustomerApi.DeleteExaCustomer) // 删除客户
customerRouter.GET("customer", exaCustomerApi.GetExaCustomer) // 获取单一客户信息 }
customerRouter.GET("customerList", exaCustomerApi.GetExaCustomerList) // 获取客户列表 {
customerRouterWithoutRecord.GET("customer", exaCustomerApi.GetExaCustomer) // 获取单一客户信息
customerRouterWithoutRecord.GET("customerList", exaCustomerApi.GetExaCustomerList) // 获取客户列表
} }
} }
...@@ -12,9 +12,9 @@ func (e *ExcelRouter) InitExcelRouter(Router *gin.RouterGroup) { ...@@ -12,9 +12,9 @@ func (e *ExcelRouter) InitExcelRouter(Router *gin.RouterGroup) {
excelRouter := Router.Group("excel") excelRouter := Router.Group("excel")
var exaExcelApi = v1.ApiGroupApp.ExampleApiGroup.ExcelApi var exaExcelApi = v1.ApiGroupApp.ExampleApiGroup.ExcelApi
{ {
excelRouter.POST("/importExcel", exaExcelApi.ImportExcel) // 导入Excel excelRouter.POST("importExcel", exaExcelApi.ImportExcel) // 导入Excel
excelRouter.GET("/loadExcel", exaExcelApi.LoadExcel) // 加载Excel数据 excelRouter.GET("loadExcel", exaExcelApi.LoadExcel) // 加载Excel数据
excelRouter.POST("/exportExcel", exaExcelApi.ExportExcel) // 导出Excel excelRouter.POST("exportExcel", exaExcelApi.ExportExcel) // 导出Excel
excelRouter.GET("/downloadTemplate", exaExcelApi.DownloadTemplate) // 下载模板文件 excelRouter.GET("downloadTemplate", exaExcelApi.DownloadTemplate) // 下载模板文件
} }
} }
...@@ -12,12 +12,12 @@ func (e *FileUploadAndDownloadRouter) InitFileUploadAndDownloadRouter(Router *gi ...@@ -12,12 +12,12 @@ func (e *FileUploadAndDownloadRouter) InitFileUploadAndDownloadRouter(Router *gi
fileUploadAndDownloadRouter := Router.Group("fileUploadAndDownload") fileUploadAndDownloadRouter := Router.Group("fileUploadAndDownload")
var exaFileUploadAndDownloadApi = v1.ApiGroupApp.ExampleApiGroup.FileUploadAndDownloadApi var exaFileUploadAndDownloadApi = v1.ApiGroupApp.ExampleApiGroup.FileUploadAndDownloadApi
{ {
fileUploadAndDownloadRouter.POST("/upload", exaFileUploadAndDownloadApi.UploadFile) // 上传文件 fileUploadAndDownloadRouter.POST("upload", exaFileUploadAndDownloadApi.UploadFile) // 上传文件
fileUploadAndDownloadRouter.POST("/getFileList", exaFileUploadAndDownloadApi.GetFileList) // 获取上传文件列表 fileUploadAndDownloadRouter.POST("getFileList", exaFileUploadAndDownloadApi.GetFileList) // 获取上传文件列表
fileUploadAndDownloadRouter.POST("/deleteFile", exaFileUploadAndDownloadApi.DeleteFile) // 删除指定文件 fileUploadAndDownloadRouter.POST("deleteFile", exaFileUploadAndDownloadApi.DeleteFile) // 删除指定文件
fileUploadAndDownloadRouter.POST("/breakpointContinue", exaFileUploadAndDownloadApi.BreakpointContinue) // 断点续传 fileUploadAndDownloadRouter.POST("breakpointContinue", exaFileUploadAndDownloadApi.BreakpointContinue) // 断点续传
fileUploadAndDownloadRouter.GET("/findFile", exaFileUploadAndDownloadApi.FindFile) // 查询当前文件成功的切片 fileUploadAndDownloadRouter.GET("findFile", exaFileUploadAndDownloadApi.FindFile) // 查询当前文件成功的切片
fileUploadAndDownloadRouter.POST("/breakpointContinueFinish", exaFileUploadAndDownloadApi.BreakpointContinueFinish) // 查询当前文件成功的切片 fileUploadAndDownloadRouter.POST("breakpointContinueFinish", exaFileUploadAndDownloadApi.BreakpointContinueFinish) // 查询当前文件成功的切片
fileUploadAndDownloadRouter.POST("/removeChunk", exaFileUploadAndDownloadApi.RemoveChunk) // 查询当前文件成功的切片 fileUploadAndDownloadRouter.POST("removeChunk", exaFileUploadAndDownloadApi.RemoveChunk) // 查询当前文件成功的切片
} }
} }
...@@ -11,14 +11,17 @@ type ApiRouter struct { ...@@ -11,14 +11,17 @@ type ApiRouter struct {
func (s *ApiRouter) InitApiRouter(Router *gin.RouterGroup) { func (s *ApiRouter) InitApiRouter(Router *gin.RouterGroup) {
apiRouter := Router.Group("api").Use(middleware.OperationRecord()) apiRouter := Router.Group("api").Use(middleware.OperationRecord())
apiRouterWithoutRecord := Router.Group("api")
var apiRouterApi = v1.ApiGroupApp.SystemApiGroup.SystemApiApi var apiRouterApi = v1.ApiGroupApp.SystemApiGroup.SystemApiApi
{ {
apiRouter.POST("createApi", apiRouterApi.CreateApi) // 创建Api apiRouter.POST("createApi", apiRouterApi.CreateApi) // 创建Api
apiRouter.POST("deleteApi", apiRouterApi.DeleteApi) // 删除Api apiRouter.POST("deleteApi", apiRouterApi.DeleteApi) // 删除Api
apiRouter.POST("getApiList", apiRouterApi.GetApiList) // 获取Api列表
apiRouter.POST("getApiById", apiRouterApi.GetApiById) // 获取单条Api消息 apiRouter.POST("getApiById", apiRouterApi.GetApiById) // 获取单条Api消息
apiRouter.POST("updateApi", apiRouterApi.UpdateApi) // 更新api apiRouter.POST("updateApi", apiRouterApi.UpdateApi) // 更新api
apiRouter.POST("getAllApis", apiRouterApi.GetAllApis) // 获取所有api
apiRouter.DELETE("deleteApisByIds", apiRouterApi.DeleteApisByIds) // 删除选中api apiRouter.DELETE("deleteApisByIds", apiRouterApi.DeleteApisByIds) // 删除选中api
} }
{
apiRouterWithoutRecord.POST("getAllApis", apiRouterApi.GetAllApis) // 获取所有api
apiRouterWithoutRecord.POST("getApiList", apiRouterApi.GetApiList) // 获取Api列表
}
} }
...@@ -11,13 +11,16 @@ type AuthorityRouter struct { ...@@ -11,13 +11,16 @@ type AuthorityRouter struct {
func (s *AuthorityRouter) InitAuthorityRouter(Router *gin.RouterGroup) { func (s *AuthorityRouter) InitAuthorityRouter(Router *gin.RouterGroup) {
authorityRouter := Router.Group("authority").Use(middleware.OperationRecord()) authorityRouter := Router.Group("authority").Use(middleware.OperationRecord())
authorityRouterWithoutRecord := Router.Group("authority")
var authorityApi = v1.ApiGroupApp.SystemApiGroup.AuthorityApi var authorityApi = v1.ApiGroupApp.SystemApiGroup.AuthorityApi
{ {
authorityRouter.POST("createAuthority", authorityApi.CreateAuthority) // 创建角色 authorityRouter.POST("createAuthority", authorityApi.CreateAuthority) // 创建角色
authorityRouter.POST("deleteAuthority", authorityApi.DeleteAuthority) // 删除角色 authorityRouter.POST("deleteAuthority", authorityApi.DeleteAuthority) // 删除角色
authorityRouter.PUT("updateAuthority", authorityApi.UpdateAuthority) // 更新角色 authorityRouter.PUT("updateAuthority", authorityApi.UpdateAuthority) // 更新角色
authorityRouter.POST("copyAuthority", authorityApi.CopyAuthority) // 更新角色 authorityRouter.POST("copyAuthority", authorityApi.CopyAuthority) // 拷贝角色
authorityRouter.POST("getAuthorityList", authorityApi.GetAuthorityList) // 获取角色列表
authorityRouter.POST("setDataAuthority", authorityApi.SetDataAuthority) // 设置角色资源权限 authorityRouter.POST("setDataAuthority", authorityApi.SetDataAuthority) // 设置角色资源权限
} }
{
authorityRouterWithoutRecord.POST("getAuthorityList", authorityApi.GetAuthorityList) // 获取角色列表
}
} }
...@@ -11,9 +11,12 @@ type CasbinRouter struct { ...@@ -11,9 +11,12 @@ type CasbinRouter struct {
func (s *CasbinRouter) InitCasbinRouter(Router *gin.RouterGroup) { func (s *CasbinRouter) InitCasbinRouter(Router *gin.RouterGroup) {
casbinRouter := Router.Group("casbin").Use(middleware.OperationRecord()) casbinRouter := Router.Group("casbin").Use(middleware.OperationRecord())
casbinRouterWithoutRecord := Router.Group("casbin")
var casbinApi = v1.ApiGroupApp.SystemApiGroup.CasbinApi var casbinApi = v1.ApiGroupApp.SystemApiGroup.CasbinApi
{ {
casbinRouter.POST("updateCasbin", casbinApi.UpdateCasbin) casbinRouter.POST("updateCasbin", casbinApi.UpdateCasbin)
casbinRouter.POST("getPolicyPathByAuthorityId", casbinApi.GetPolicyPathByAuthorityId) }
{
casbinRouterWithoutRecord.POST("getPolicyPathByAuthorityId", casbinApi.GetPolicyPathByAuthorityId)
} }
} }
...@@ -11,12 +11,15 @@ type DictionaryRouter struct { ...@@ -11,12 +11,15 @@ type DictionaryRouter struct {
func (s *DictionaryRouter) InitSysDictionaryRouter(Router *gin.RouterGroup) { func (s *DictionaryRouter) InitSysDictionaryRouter(Router *gin.RouterGroup) {
sysDictionaryRouter := Router.Group("sysDictionary").Use(middleware.OperationRecord()) sysDictionaryRouter := Router.Group("sysDictionary").Use(middleware.OperationRecord())
sysDictionaryRouterWithoutRecord := Router.Group("sysDictionary")
var sysDictionaryApi = v1.ApiGroupApp.SystemApiGroup.DictionaryApi var sysDictionaryApi = v1.ApiGroupApp.SystemApiGroup.DictionaryApi
{ {
sysDictionaryRouter.POST("createSysDictionary", sysDictionaryApi.CreateSysDictionary) // 新建SysDictionary sysDictionaryRouter.POST("createSysDictionary", sysDictionaryApi.CreateSysDictionary) // 新建SysDictionary
sysDictionaryRouter.DELETE("deleteSysDictionary", sysDictionaryApi.DeleteSysDictionary) // 删除SysDictionary sysDictionaryRouter.DELETE("deleteSysDictionary", sysDictionaryApi.DeleteSysDictionary) // 删除SysDictionary
sysDictionaryRouter.PUT("updateSysDictionary", sysDictionaryApi.UpdateSysDictionary) // 更新SysDictionary sysDictionaryRouter.PUT("updateSysDictionary", sysDictionaryApi.UpdateSysDictionary) // 更新SysDictionary
sysDictionaryRouter.GET("findSysDictionary", sysDictionaryApi.FindSysDictionary) // 根据ID获取SysDictionary }
sysDictionaryRouter.GET("getSysDictionaryList", sysDictionaryApi.GetSysDictionaryList) // 获取SysDictionary列表 {
sysDictionaryRouterWithoutRecord.GET("findSysDictionary", sysDictionaryApi.FindSysDictionary) // 根据ID获取SysDictionary
sysDictionaryRouterWithoutRecord.GET("getSysDictionaryList", sysDictionaryApi.GetSysDictionaryList) // 获取SysDictionary列表
} }
} }
...@@ -11,12 +11,15 @@ type DictionaryDetailRouter struct { ...@@ -11,12 +11,15 @@ type DictionaryDetailRouter struct {
func (s *DictionaryDetailRouter) InitSysDictionaryDetailRouter(Router *gin.RouterGroup) { func (s *DictionaryDetailRouter) InitSysDictionaryDetailRouter(Router *gin.RouterGroup) {
dictionaryDetailRouter := Router.Group("sysDictionaryDetail").Use(middleware.OperationRecord()) dictionaryDetailRouter := Router.Group("sysDictionaryDetail").Use(middleware.OperationRecord())
dictionaryDetailRouterWithoutRecord := Router.Group("sysDictionaryDetail")
var sysDictionaryDetailApi = v1.ApiGroupApp.SystemApiGroup.DictionaryDetailApi var sysDictionaryDetailApi = v1.ApiGroupApp.SystemApiGroup.DictionaryDetailApi
{ {
dictionaryDetailRouter.POST("createSysDictionaryDetail", sysDictionaryDetailApi.CreateSysDictionaryDetail) // 新建SysDictionaryDetail dictionaryDetailRouter.POST("createSysDictionaryDetail", sysDictionaryDetailApi.CreateSysDictionaryDetail) // 新建SysDictionaryDetail
dictionaryDetailRouter.DELETE("deleteSysDictionaryDetail", sysDictionaryDetailApi.DeleteSysDictionaryDetail) // 删除SysDictionaryDetail dictionaryDetailRouter.DELETE("deleteSysDictionaryDetail", sysDictionaryDetailApi.DeleteSysDictionaryDetail) // 删除SysDictionaryDetail
dictionaryDetailRouter.PUT("updateSysDictionaryDetail", sysDictionaryDetailApi.UpdateSysDictionaryDetail) // 更新SysDictionaryDetail dictionaryDetailRouter.PUT("updateSysDictionaryDetail", sysDictionaryDetailApi.UpdateSysDictionaryDetail) // 更新SysDictionaryDetail
dictionaryDetailRouter.GET("findSysDictionaryDetail", sysDictionaryDetailApi.FindSysDictionaryDetail) // 根据ID获取SysDictionaryDetail }
dictionaryDetailRouter.GET("getSysDictionaryDetailList", sysDictionaryDetailApi.GetSysDictionaryDetailList) // 获取SysDictionaryDetail列表 {
dictionaryDetailRouterWithoutRecord.GET("findSysDictionaryDetail", sysDictionaryDetailApi.FindSysDictionaryDetail) // 根据ID获取SysDictionaryDetail
dictionaryDetailRouterWithoutRecord.GET("getSysDictionaryDetailList", sysDictionaryDetailApi.GetSysDictionaryDetailList) // 获取SysDictionaryDetail列表
} }
} }
...@@ -2,7 +2,6 @@ package system ...@@ -2,7 +2,6 @@ package system
import ( import (
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1" v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
...@@ -10,7 +9,7 @@ type JwtRouter struct { ...@@ -10,7 +9,7 @@ type JwtRouter struct {
} }
func (s *JwtRouter) InitJwtRouter(Router *gin.RouterGroup) { func (s *JwtRouter) InitJwtRouter(Router *gin.RouterGroup) {
jwtRouter := Router.Group("jwt").Use(middleware.OperationRecord()) jwtRouter := Router.Group("jwt")
var jwtApi = v1.ApiGroupApp.SystemApiGroup.JwtApi var jwtApi = v1.ApiGroupApp.SystemApiGroup.JwtApi
{ {
jwtRouter.POST("jsonInBlacklist", jwtApi.JsonInBlacklist) // jwt加入黑名单 jwtRouter.POST("jsonInBlacklist", jwtApi.JsonInBlacklist) // jwt加入黑名单
......
...@@ -11,17 +11,20 @@ type MenuRouter struct { ...@@ -11,17 +11,20 @@ type MenuRouter struct {
func (s *MenuRouter) InitMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) { func (s *MenuRouter) InitMenuRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
menuRouter := Router.Group("menu").Use(middleware.OperationRecord()) menuRouter := Router.Group("menu").Use(middleware.OperationRecord())
menuRouterWithoutRecord := Router.Group("menu")
var authorityMenuApi = v1.ApiGroupApp.SystemApiGroup.AuthorityMenuApi var authorityMenuApi = v1.ApiGroupApp.SystemApiGroup.AuthorityMenuApi
{ {
menuRouter.POST("getMenu", authorityMenuApi.GetMenu) // 获取菜单树
menuRouter.POST("getMenuList", authorityMenuApi.GetMenuList) // 分页获取基础menu列表
menuRouter.POST("addBaseMenu", authorityMenuApi.AddBaseMenu) // 新增菜单 menuRouter.POST("addBaseMenu", authorityMenuApi.AddBaseMenu) // 新增菜单
menuRouter.POST("getBaseMenuTree", authorityMenuApi.GetBaseMenuTree) // 获取用户动态路由
menuRouter.POST("addMenuAuthority", authorityMenuApi.AddMenuAuthority) // 增加menu和角色关联关系 menuRouter.POST("addMenuAuthority", authorityMenuApi.AddMenuAuthority) // 增加menu和角色关联关系
menuRouter.POST("getMenuAuthority", authorityMenuApi.GetMenuAuthority) // 获取指定角色menu
menuRouter.POST("deleteBaseMenu", authorityMenuApi.DeleteBaseMenu) // 删除菜单 menuRouter.POST("deleteBaseMenu", authorityMenuApi.DeleteBaseMenu) // 删除菜单
menuRouter.POST("updateBaseMenu", authorityMenuApi.UpdateBaseMenu) // 更新菜单 menuRouter.POST("updateBaseMenu", authorityMenuApi.UpdateBaseMenu) // 更新菜单
menuRouter.POST("getBaseMenuById", authorityMenuApi.GetBaseMenuById) // 根据id获取菜单 }
{
menuRouterWithoutRecord.POST("getMenu", authorityMenuApi.GetMenu) // 获取菜单树
menuRouterWithoutRecord.POST("getMenuList", authorityMenuApi.GetMenuList) // 分页获取基础menu列表
menuRouterWithoutRecord.POST("getBaseMenuTree", authorityMenuApi.GetBaseMenuTree) // 获取用户动态路由
menuRouterWithoutRecord.POST("getMenuAuthority", authorityMenuApi.GetMenuAuthority) // 获取指定角色menu
menuRouterWithoutRecord.POST("getBaseMenuById", authorityMenuApi.GetBaseMenuById) // 根据id获取菜单
} }
return menuRouter return menuRouter
} }
...@@ -11,15 +11,18 @@ type UserRouter struct { ...@@ -11,15 +11,18 @@ type UserRouter struct {
func (s *UserRouter) InitUserRouter(Router *gin.RouterGroup) { func (s *UserRouter) InitUserRouter(Router *gin.RouterGroup) {
userRouter := Router.Group("user").Use(middleware.OperationRecord()) userRouter := Router.Group("user").Use(middleware.OperationRecord())
userRouterWithoutRecord := Router.Group("user")
var baseApi = v1.ApiGroupApp.SystemApiGroup.BaseApi var baseApi = v1.ApiGroupApp.SystemApiGroup.BaseApi
{ {
userRouter.POST("register", baseApi.Register) // 用户注册账号 userRouter.POST("register", baseApi.Register) // 用户注册账号
userRouter.POST("changePassword", baseApi.ChangePassword) // 用户修改密码 userRouter.POST("changePassword", baseApi.ChangePassword) // 用户修改密码
userRouter.POST("getUserList", baseApi.GetUserList) // 分页获取用户列表
userRouter.POST("setUserAuthority", baseApi.SetUserAuthority) // 设置用户权限 userRouter.POST("setUserAuthority", baseApi.SetUserAuthority) // 设置用户权限
userRouter.DELETE("deleteUser", baseApi.DeleteUser) // 删除用户 userRouter.DELETE("deleteUser", baseApi.DeleteUser) // 删除用户
userRouter.PUT("setUserInfo", baseApi.SetUserInfo) // 设置用户信息 userRouter.PUT("setUserInfo", baseApi.SetUserInfo) // 设置用户信息
userRouter.POST("setUserAuthorities", baseApi.SetUserAuthorities) // 设置用户权限组 userRouter.POST("setUserAuthorities", baseApi.SetUserAuthorities) // 设置用户权限组
userRouter.GET("getUserInfo", baseApi.GetUserInfo) // 获取自身信息 }
{
userRouterWithoutRecord.POST("getUserList", baseApi.GetUserList) // 分页获取用户列表
userRouterWithoutRecord.GET("getUserInfo", baseApi.GetUserInfo) // 获取自身信息
} }
} }
...@@ -735,17 +735,15 @@ li { ...@@ -735,17 +735,15 @@ li {
.cell { .cell {
color: rgba($color: #000000, $alpha: 0.85); color: rgba($color: #000000, $alpha: 0.85);
font-size: 14px; font-size: 14px;
line-height: 40px;
min-height: 40px; min-height: 40px;
display: flex;
align-items: center;
} }
} }
td { td {
padding: 6px 0; padding: 6px 0;
.cell { .cell {
min-height: 40px; min-height: 40px;
display: flex; line-height: 40px;
align-items: center;
color: rgba($color: #000000, $alpha: 0.65); color: rgba($color: #000000, $alpha: 0.65);
} }
} }
......
...@@ -10,11 +10,6 @@ ...@@ -10,11 +10,6 @@
<div class="flex-3 flex form">{{ item.from }}</div> <div class="flex-3 flex form">{{ item.from }}</div>
</div> </div>
</div> </div>
<!-- <el-table v-loading="loading" :data="dataTimeline" style="width: 100%">
<el-table-column prop="from" show-overflow-tooltip label="日期" width="180" />
<el-table-column prop="title" show-overflow-tooltip label="推送者" width="120" />
<el-table-column prop="message" show-overflow-tooltip label="commit 信息" />
</el-table> -->
</div> </div>
</template> </template>
......
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
tooltip-effect="dark" tooltip-effect="dark"
> >
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="接入日期" width="180"> <el-table-column align="center" label="接入日期" width="180">
<template #default="scope"> <template #default="scope">
<span>{{ formatDate(scope.row.CreatedAt) }}</span> <span>{{ formatDate(scope.row.CreatedAt) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="姓名" prop="customerName" width="120" /> <el-table-column align="center" label="姓名" prop="customerName" width="120" />
<el-table-column label="电话" prop="customerPhoneData" width="120" /> <el-table-column align="center" label="电话" prop="customerPhoneData" width="120" />
<el-table-column label="接入人ID" prop="sysUserId" width="120" /> <el-table-column align="center" label="接入人ID" prop="sysUserId" width="120" />
<el-table-column label="按钮组" min-width="160"> <el-table-column align="center" label="按钮组" min-width="160">
<template #default="scope"> <template #default="scope">
<el-button size="small" type="text" icon="el-icon-edit" @click="updateCustomer(scope.row)">变更</el-button> <el-button size="small" type="text" icon="el-icon-edit" @click="updateCustomer(scope.row)">变更</el-button>
<el-popover v-model:visible="scope.row.visible" placement="top" width="160"> <el-popover v-model:visible="scope.row.visible" placement="top" width="160">
......
...@@ -16,18 +16,18 @@ ...@@ -16,18 +16,18 @@
<el-button class="excel-btn" size="mini" type="success" icon="el-icon-download" @click="downloadExcelTemplate()">下载模板</el-button> <el-button class="excel-btn" size="mini" type="success" icon="el-icon-download" @click="downloadExcelTemplate()">下载模板</el-button>
</div> </div>
<el-table :data="tableData" row-key="ID"> <el-table :data="tableData" row-key="ID">
<el-table-column label="ID" min-width="100" prop="ID" /> <el-table-column align="center" label="ID" min-width="100" prop="ID" />
<el-table-column show-overflow-tooltip label="路由Name" min-width="160" prop="name" /> <el-table-column align="center" show-overflow-tooltip label="路由Name" min-width="160" prop="name" />
<el-table-column show-overflow-tooltip label="路由Path" min-width="160" prop="path" /> <el-table-column align="center" show-overflow-tooltip label="路由Path" min-width="160" prop="path" />
<el-table-column label="是否隐藏" min-width="100" prop="hidden"> <el-table-column align="center" label="是否隐藏" min-width="100" prop="hidden">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.hidden?"隐藏":"显示" }}</span> <span>{{ scope.row.hidden?"隐藏":"显示" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="父节点" min-width="90" prop="parentId" /> <el-table-column align="center" label="父节点" min-width="90" prop="parentId" />
<el-table-column label="排序" min-width="70" prop="sort" /> <el-table-column align="center" label="排序" min-width="70" prop="sort" />
<el-table-column label="文件路径" min-width="360" prop="component" /> <el-table-column align="center" label="文件路径" min-width="360" prop="component" />
</el-table> </el-table>
</div> </div>
</div> </div>
......
...@@ -23,19 +23,19 @@ ...@@ -23,19 +23,19 @@
</div> </div>
<el-table :data="tableData"> <el-table :data="tableData">
<el-table-column label="预览" width="100"> <el-table-column align="center" label="预览" width="100">
<template #default="scope"> <template #default="scope">
<CustomPic pic-type="file" :pic-src="scope.row.url" /> <CustomPic pic-type="file" :pic-src="scope.row.url" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="日期" prop="UpdatedAt" width="180"> <el-table-column align="center" label="日期" prop="UpdatedAt" width="180">
<template #default="scope"> <template #default="scope">
<div>{{ formatDate(scope.row.UpdatedAt) }}</div> <div>{{ formatDate(scope.row.UpdatedAt) }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="文件名" prop="name" width="180" /> <el-table-column align="center" label="文件名" prop="name" width="180" />
<el-table-column label="链接" prop="url" min-width="300" /> <el-table-column align="center" label="链接" prop="url" min-width="300" />
<el-table-column label="标签" prop="tag" width="100"> <el-table-column align="center" label="标签" prop="tag" width="100">
<template #default="scope"> <template #default="scope">
<el-tag <el-tag
:type="scope.row.tag === 'jpg' ? 'primary' : 'success'" :type="scope.row.tag === 'jpg' ? 'primary' : 'success'"
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
>{{ scope.row.tag }}</el-tag> >{{ scope.row.tag }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="160"> <el-table-column align="center" label="操作" width="160">
<template #default="scope"> <template #default="scope">
<el-button size="small" icon="el-icon-download" type="text" @click="downloadFile(scope.row)">下载</el-button> <el-button size="small" icon="el-icon-download" type="text" @click="downloadFile(scope.row)">下载</el-button>
<el-button size="small" icon="el-icon-delete" type="text" @click="deleteFile(scope.row)">删除</el-button> <el-button size="small" icon="el-icon-delete" type="text" @click="deleteFile(scope.row)">删除</el-button>
......
...@@ -47,11 +47,11 @@ ...@@ -47,11 +47,11 @@
type="selection" type="selection"
width="55" width="55"
/> />
<el-table-column label="id" min-width="60" prop="ID" sortable="custom" /> <el-table-column align="center" label="id" min-width="60" prop="ID" sortable="custom" />
<el-table-column label="API路径" min-width="150" prop="path" sortable="custom" /> <el-table-column align="center" label="API路径" min-width="150" prop="path" sortable="custom" />
<el-table-column label="API分组" min-width="150" prop="apiGroup" sortable="custom" /> <el-table-column align="center" label="API分组" min-width="150" prop="apiGroup" sortable="custom" />
<el-table-column label="API简介" min-width="150" prop="description" sortable="custom" /> <el-table-column align="center" label="API简介" min-width="150" prop="description" sortable="custom" />
<el-table-column label="请求" min-width="150" prop="method" sortable="custom"> <el-table-column align="center" label="请求" min-width="150" prop="method" sortable="custom">
<template #default="scope"> <template #default="scope">
<div> <div>
{{ scope.row.method }} / {{ methodFiletr(scope.row.method) }} {{ scope.row.method }} / {{ methodFiletr(scope.row.method) }}
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="200"> <el-table-column align="center" fixed="right" label="操作" width="200">
<template #default="scope"> <template #default="scope">
<el-button <el-button
icon="el-icon-edit" icon="el-icon-edit"
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
style="width: 100%" style="width: 100%"
> >
<el-table-column label="角色ID" min-width="180" prop="authorityId" /> <el-table-column label="角色ID" min-width="180" prop="authorityId" />
<el-table-column label="角色名称" min-width="180" prop="authorityName" /> <el-table-column align="center" label="角色名称" min-width="180" prop="authorityName" />
<el-table-column label="操作" width="460"> <el-table-column align="center" label="操作" width="460">
<template #default="scope"> <template #default="scope">
<el-button <el-button
icon="el-icon-setting" icon="el-icon-setting"
......
...@@ -34,21 +34,21 @@ ...@@ -34,21 +34,21 @@
tooltip-effect="dark" tooltip-effect="dark"
> >
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="日期" width="180"> <el-table-column align="center" label="日期" width="180">
<template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template> <template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template>
</el-table-column> </el-table-column>
<el-table-column label="字典名(中)" prop="name" width="120" /> <el-table-column align="center" label="字典名(中)" prop="name" width="160" />
<el-table-column label="字典名(英)" prop="type" width="120" /> <el-table-column align="center" label="字典名(英)" prop="type" width="120" />
<el-table-column label="状态" prop="status" width="120"> <el-table-column align="center" label="状态" prop="status" width="120">
<template #default="scope">{{ formatBoolean(scope.row.status) }}</template> <template #default="scope">{{ formatBoolean(scope.row.status) }}</template>
</el-table-column> </el-table-column>
<el-table-column label="描述" prop="desc" width="280" /> <el-table-column align="center" label="描述" prop="desc" width="280" />
<el-table-column label="按钮组"> <el-table-column align="center" label="按钮组">
<template #default="scope"> <template #default="scope">
<el-button size="mini" icon="el-icon-document" type="text" @click="toDetile(scope.row)">详情</el-button> <el-button size="mini" icon="el-icon-document" type="text" @click="toDetile(scope.row)">详情</el-button>
<el-button size="mini" icon="el-icon-edit" type="text" @click="updateSysDictionary(scope.row)">变更</el-button> <el-button size="mini" icon="el-icon-edit" type="text" @click="updateSysDictionary(scope.row)">变更</el-button>
......
...@@ -31,21 +31,21 @@ ...@@ -31,21 +31,21 @@
tooltip-effect="dark" tooltip-effect="dark"
> >
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="日期" width="180"> <el-table-column align="center" label="日期" width="180">
<template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template> <template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template>
</el-table-column> </el-table-column>
<el-table-column label="展示值" prop="label" width="120" /> <el-table-column align="center" label="展示值" prop="label" width="120" />
<el-table-column label="字典值" prop="value" width="120" /> <el-table-column align="center" label="字典值" prop="value" width="120" />
<el-table-column label="启用状态" prop="status" width="120"> <el-table-column align="center" label="启用状态" prop="status" width="120">
<template #default="scope">{{ formatBoolean(scope.row.status) }}</template> <template #default="scope">{{ formatBoolean(scope.row.status) }}</template>
</el-table-column> </el-table-column>
<el-table-column label="排序标记" prop="sort" width="120" /> <el-table-column align="center" label="排序标记" prop="sort" width="120" />
<el-table-column label="按钮组"> <el-table-column align="center" label="按钮组">
<template #default="scope"> <template #default="scope">
<el-button size="small" type="text" icon="el-icon-edit" @click="updateSysDictionaryDetail(scope.row)">变更</el-button> <el-button size="small" type="text" icon="el-icon-edit" @click="updateSysDictionaryDetail(scope.row)">变更</el-button>
<el-popover v-model:visible="scope.row.visible" placement="top" width="160"> <el-popover v-model:visible="scope.row.visible" placement="top" width="160">
......
...@@ -7,29 +7,29 @@ ...@@ -7,29 +7,29 @@
<!-- 由于此处菜单跟左侧列表一一对应所以不需要分页 pageSize默认999 --> <!-- 由于此处菜单跟左侧列表一一对应所以不需要分页 pageSize默认999 -->
<el-table :data="tableData" row-key="ID"> <el-table :data="tableData" row-key="ID">
<el-table-column label="ID" min-width="100" prop="ID" /> <el-table-column align="center" label="ID" min-width="100" prop="ID" />
<el-table-column label="路由Name" show-overflow-tooltip min-width="160" prop="name" /> <el-table-column align="center" label="路由Name" show-overflow-tooltip min-width="160" prop="name" />
<el-table-column label="路由Path" show-overflow-tooltip min-width="160" prop="path" /> <el-table-column align="center" label="路由Path" show-overflow-tooltip min-width="160" prop="path" />
<el-table-column label="是否隐藏" min-width="100" prop="hidden"> <el-table-column align="center" label="是否隐藏" min-width="100" prop="hidden">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.hidden?"隐藏":"显示" }}</span> <span>{{ scope.row.hidden?"隐藏":"显示" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="父节点" min-width="90" prop="parentId" /> <el-table-column align="center" label="父节点" min-width="90" prop="parentId" />
<el-table-column label="排序" min-width="70" prop="sort" /> <el-table-column align="center" label="排序" min-width="70" prop="sort" />
<el-table-column label="文件路径" min-width="360" prop="component" /> <el-table-column align="center" label="文件路径" min-width="360" prop="component" />
<el-table-column label="展示名称" min-width="120" prop="authorityName"> <el-table-column align="center" label="展示名称" min-width="120" prop="authorityName">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.meta.title }}</span> <span>{{ scope.row.meta.title }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="图标" min-width="140" prop="authorityName"> <el-table-column align="center" label="图标" min-width="140" prop="authorityName">
<template #default="scope"> <template #default="scope">
<i :class="`el-icon-${scope.row.meta.icon}`" /> <i :class="`el-icon-${scope.row.meta.icon}`" />
<span>{{ scope.row.meta.icon }}</span> <span>{{ scope.row.meta.icon }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="操作" width="300"> <el-table-column align="center" fixed="right" label="操作" width="300">
<template #default="scope"> <template #default="scope">
<el-button <el-button
size="mini" size="mini"
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
@click="addParameter(form)" @click="addParameter(form)"
>新增菜单参数</el-button> >新增菜单参数</el-button>
<el-table :data="form.parameters" style="width: 100%"> <el-table :data="form.parameters" style="width: 100%">
<el-table-column prop="type" label="参数类型" width="180"> <el-table-column align="center" prop="type" label="参数类型" width="180">
<template #default="scope"> <template #default="scope">
<el-select v-model="scope.row.type" placeholder="请选择"> <el-select v-model="scope.row.type" placeholder="请选择">
<el-option key="query" value="query" label="query" /> <el-option key="query" value="query" label="query" />
...@@ -145,21 +145,21 @@ ...@@ -145,21 +145,21 @@
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="key" label="参数key" width="180"> <el-table-column align="center" prop="key" label="参数key" width="180">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-input v-model="scope.row.key" /> <el-input v-model="scope.row.key" />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="value" label="参数值"> <el-table-column align="center" prop="value" label="参数值">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-input v-model="scope.row.value" /> <el-input v-model="scope.row.value" />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column> <el-table-column align="center">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-button <el-button
......
...@@ -38,26 +38,26 @@ ...@@ -38,26 +38,26 @@
tooltip-effect="dark" tooltip-effect="dark"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" /> <el-table-column align="center" type="selection" width="55" />
<el-table-column label="操作人" width="140"> <el-table-column align="center" label="操作人" width="140">
<template #default="scope"> <template #default="scope">
<div>{{ scope.row.user.userName }}({{ scope.row.user.nickName }})</div> <div>{{ scope.row.user.userName }}({{ scope.row.user.nickName }})</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="日期" width="180"> <el-table-column align="center" label="日期" width="180">
<template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template> <template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template>
</el-table-column> </el-table-column>
<el-table-column label="状态码" prop="status" width="120"> <el-table-column align="center" label="状态码" prop="status" width="120">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-tag type="success">{{ scope.row.status }}</el-tag> <el-tag type="success">{{ scope.row.status }}</el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="请求IP" prop="ip" width="120" /> <el-table-column align="center" label="请求IP" prop="ip" width="120" />
<el-table-column label="请求方法" prop="method" width="120" /> <el-table-column align="center" label="请求方法" prop="method" width="120" />
<el-table-column label="请求路径" prop="path" width="240" /> <el-table-column align="center" label="请求路径" prop="path" width="240" />
<el-table-column label="请求" prop="path" width="80"> <el-table-column align="center" label="请求" prop="path" width="80">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-popover v-if="scope.row.body" placement="top-start" trigger="hover"> <el-popover v-if="scope.row.body" placement="top-start" trigger="hover">
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="响应" prop="path" width="80"> <el-table-column align="center" label="响应" prop="path" width="80">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-popover v-if="scope.row.resp" placement="top-start" trigger="hover"> <el-popover v-if="scope.row.resp" placement="top-start" trigger="hover">
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="按钮组"> <el-table-column align="center" label="按钮组">
<template #default="scope"> <template #default="scope">
<el-popover v-model:visible="scope.row.visible" placement="top" width="160"> <el-popover v-model:visible="scope.row.visible" placement="top" width="160">
<p>确定要删除吗?</p> <p>确定要删除吗?</p>
......
...@@ -5,17 +5,17 @@ ...@@ -5,17 +5,17 @@
<el-button size="mini" type="primary" icon="el-icon-plus" @click="addUser">新增用户</el-button> <el-button size="mini" type="primary" icon="el-icon-plus" @click="addUser">新增用户</el-button>
</div> </div>
<el-table :data="tableData"> <el-table :data="tableData">
<el-table-column label="头像" min-width="50"> <el-table-column align="center" label="头像" min-width="50">
<template #default="scope"> <template #default="scope">
<div :style="{'textAlign':'center'}"> <div :style="{'textAlign':'center'}">
<CustomPic :pic-src="scope.row.headerImg" /> <CustomPic :pic-src="scope.row.headerImg" />
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="UUID" min-width="250" prop="uuid" /> <el-table-column align="center" label="UUID" min-width="250" prop="uuid" />
<el-table-column label="用户名" min-width="150" prop="userName" /> <el-table-column align="center" label="用户名" min-width="150" prop="userName" />
<el-table-column label="昵称" min-width="150" prop="nickName" /> <el-table-column align="center" label="昵称" min-width="150" prop="nickName" />
<el-table-column label="用户角色" min-width="150"> <el-table-column align="center" label="用户角色" min-width="150">
<template #default="scope"> <template #default="scope">
<el-cascader <el-cascader
v-model="scope.row.authorityIds" v-model="scope.row.authorityIds"
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" min-width="150"> <el-table-column align="center" label="操作" min-width="150">
<template #default="scope"> <template #default="scope">
<el-popover v-model:visible="scope.row.visible" placement="top" width="160"> <el-popover v-model:visible="scope.row.visible" placement="top" width="160">
<p>确定要删除此用户吗</p> <p>确定要删除此用户吗</p>
......
...@@ -83,18 +83,18 @@ ...@@ -83,18 +83,18 @@
<el-button size="mini" type="primary" @click="editAndAddField()">新增Field</el-button> <el-button size="mini" type="primary" @click="editAndAddField()">新增Field</el-button>
</div> </div>
<el-table :data="form.fields"> <el-table :data="form.fields">
<el-table-column type="index" label="序列" width="100" /> <el-table-column align="center" type="index" label="序列" width="100" />
<el-table-column prop="fieldName" label="Field名" /> <el-table-column align="center" prop="fieldName" label="Field名" />
<el-table-column prop="fieldDesc" label="中文名" /> <el-table-column align="center" prop="fieldDesc" label="中文名" />
<el-table-column prop="fieldJson" label="FieldJson" /> <el-table-column align="center" prop="fieldJson" label="FieldJson" />
<el-table-column prop="fieldType" label="Field数据类型" width="130" /> <el-table-column align="center" prop="fieldType" label="Field数据类型" width="130" />
<el-table-column prop="dataType" label="数据库字段类型" width="130" /> <el-table-column align="center" prop="dataType" label="数据库字段类型" width="130" />
<el-table-column prop="dataTypeLong" label="数据库字段长度" width="130" /> <el-table-column align="center" prop="dataTypeLong" label="数据库字段长度" width="130" />
<el-table-column prop="columnName" label="数据库字段" width="130" /> <el-table-column align="center" prop="columnName" label="数据库字段" width="130" />
<el-table-column prop="comment" label="数据库字段描述" width="130" /> <el-table-column align="center" prop="comment" label="数据库字段描述" width="130" />
<el-table-column prop="fieldSearchType" label="搜索条件" width="130" /> <el-table-column align="center" prop="fieldSearchType" label="搜索条件" width="130" />
<el-table-column prop="dictType" label="字典" width="130" /> <el-table-column align="center" prop="dictType" label="字典" width="130" />
<el-table-column label="操作" width="300"> <el-table-column align="center" label="操作" width="300">
<template #default="scope"> <template #default="scope">
<el-button <el-button
size="mini" size="mini"
......
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
type="selection" type="selection"
width="55" width="55"
/> />
<el-table-column label="id" width="60" prop="ID" /> <el-table-column align="center" label="id" width="60" prop="ID" />
<el-table-column label="日期" width="180"> <el-table-column align="center" label="日期" width="180">
<template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template> <template #default="scope">{{ formatDate(scope.row.CreatedAt) }}</template>
</el-table-column> </el-table-column>
<el-table-column label="结构体名" min-width="150" prop="structName" /> <el-table-column align="center" label="结构体名" min-width="150" prop="structName" />
<el-table-column label="结构体描述" min-width="150" prop="structCNName" /> <el-table-column align="center" label="结构体描述" min-width="150" prop="structCNName" />
<el-table-column label="表名称" min-width="150" prop="tableName" /> <el-table-column align="center" label="表名称" min-width="150" prop="tableName" />
<el-table-column label="回滚标记" min-width="150" prop="flag"> <el-table-column align="center" label="回滚标记" min-width="150" prop="flag">
<template #default="scope"> <template #default="scope">
<el-tag <el-tag
v-if="scope.row.flag" v-if="scope.row.flag"
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" min-width="180"> <el-table-column align="center" label="操作" min-width="180">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-button size="mini" type="text" :disabled="scope.row.flag === 1" @click="rollback(scope.row)">回滚</el-button> <el-button size="mini" type="text" :disabled="scope.row.flag === 1" @click="rollback(scope.row)">回滚</el-button>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册