Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
gin-vue-admin
提交
1aa6ab53
G
gin-vue-admin
项目概览
飞鱼0526
/
gin-vue-admin
与 Fork 源项目一致
Fork自
FLIPPED-AURORA / gin-vue-admin
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1aa6ab53
编写于
9月 20, 2021
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整前端样式,调整日志记录路由组,调整对应自动化模板
上级
be931ced
变更
28
显示空白变更内容
内联
并排
Showing
28 changed file
with
161 addition
and
139 deletion
+161
-139
server/resource/template/server/router.go.tpl
server/resource/template/server/router.go.tpl
+5
-2
server/resource/template/web/table.vue.tpl
server/resource/template/web/table.vue.tpl
+5
-5
server/router/autocode/autocodeExample.go
server/router/autocode/autocodeExample.go
+5
-2
server/router/example/exa_customer.go
server/router/example/exa_customer.go
+8
-5
server/router/example/exa_excel.go
server/router/example/exa_excel.go
+4
-4
server/router/example/exa_file_upload_and_download.go
server/router/example/exa_file_upload_and_download.go
+7
-7
server/router/system/sys_api.go
server/router/system/sys_api.go
+5
-2
server/router/system/sys_authority.go
server/router/system/sys_authority.go
+5
-2
server/router/system/sys_casbin.go
server/router/system/sys_casbin.go
+4
-1
server/router/system/sys_dictionary.go
server/router/system/sys_dictionary.go
+5
-2
server/router/system/sys_dictionary_detail.go
server/router/system/sys_dictionary_detail.go
+5
-2
server/router/system/sys_jwt.go
server/router/system/sys_jwt.go
+1
-2
server/router/system/sys_menu.go
server/router/system/sys_menu.go
+8
-5
server/router/system/sys_user.go
server/router/system/sys_user.go
+5
-2
web/src/style/main.scss
web/src/style/main.scss
+2
-4
web/src/view/dashboard/dashbordTable/dashbordTable.vue
web/src/view/dashboard/dashbordTable/dashbordTable.vue
+0
-5
web/src/view/example/customer/customer.vue
web/src/view/example/customer/customer.vue
+5
-5
web/src/view/example/excel/excel.vue
web/src/view/example/excel/excel.vue
+7
-7
web/src/view/example/upload/upload.vue
web/src/view/example/upload/upload.vue
+6
-6
web/src/view/superAdmin/api/api.vue
web/src/view/superAdmin/api/api.vue
+6
-6
web/src/view/superAdmin/authority/authority.vue
web/src/view/superAdmin/authority/authority.vue
+2
-2
web/src/view/superAdmin/dictionary/sysDictionary.vue
web/src/view/superAdmin/dictionary/sysDictionary.vue
+6
-6
web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
+6
-6
web/src/view/superAdmin/menu/menu.vue
web/src/view/superAdmin/menu/menu.vue
+14
-14
web/src/view/superAdmin/operation/sysOperationRecord.vue
web/src/view/superAdmin/operation/sysOperationRecord.vue
+10
-10
web/src/view/superAdmin/user/user.vue
web/src/view/superAdmin/user/user.vue
+6
-6
web/src/view/systemTools/autoCode/index.vue
web/src/view/systemTools/autoCode/index.vue
+12
-12
web/src/view/systemTools/autoCodeAdmin/index.vue
web/src/view/systemTools/autoCodeAdmin/index.vue
+7
-7
未找到文件。
server/resource/template/server/router.go.tpl
浏览文件 @
1aa6ab53
...
...
@@ -12,13 +12,16 @@ type {{.StructName}}Router struct {
// Init{{.StructName}}Router 初始化 {{.StructName}} 路由信息
func (s *{{.StructName}}Router) Init{{.StructName}}Router(Router *gin.RouterGroup) {
{{.Abbreviation}}Router := Router.Group("{{.Abbreviation}}").Use(middleware.OperationRecord())
{{.Abbreviation}}RouterWithoutRecord := Router.Group("{{.Abbreviation}}")
var {{.Abbreviation}}Api = v1.ApiGroupApp.AutoCodeApiGroup.{{.StructName}}Api
{
{{.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}}ByIds", {{.Abbreviation}}Api.Delete{{.StructName}}ByIds) // 批量删除{{.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}}列表
}
}
server/resource/template/web/table.vue.tpl
浏览文件 @
1aa6ab53
...
...
@@ -49,24 +49,24 @@
@
selection-change=
"handleSelectionChange"
>
<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>
</el-table-column>
{{- range .Fields}}
{{- 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
"
>
{
{
"{{"
}
} filterDict(scope.row.{{.FieldJson}},"{{.DictType}}") {
{
"}}"
}
}
</template>
</el-table-column>
{{- 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>
</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 }}
<el-table-column
label=
"按钮组"
>
<el-table-column
align=
"center"
label=
"按钮组"
>
<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-delete"
size=
"mini"
@
click=
"deleteRow(scope.row)"
>
删除
</el-button>
...
...
server/router/autocode/autocodeExample.go
浏览文件 @
1aa6ab53
...
...
@@ -11,12 +11,15 @@ type AutoCodeExampleRouter struct {
func
(
s
*
AutoCodeExampleRouter
)
InitSysAutoCodeExampleRouter
(
Router
*
gin
.
RouterGroup
)
{
autoCodeExampleRouter
:=
Router
.
Group
(
"autoCodeExample"
)
.
Use
(
middleware
.
OperationRecord
())
autoCodeExampleRouterWithoutRecord
:=
Router
.
Group
(
"autoCodeExample"
)
var
autoCodeExampleApi
=
v1
.
ApiGroupApp
.
AutoCodeApiGroup
.
AutoCodeExampleApi
{
autoCodeExampleRouter
.
POST
(
"createSysAutoCodeExample"
,
autoCodeExampleApi
.
CreateAutoCodeExample
)
// 新建AutoCodeExample
autoCodeExampleRouter
.
DELETE
(
"deleteSysAutoCodeExample"
,
autoCodeExampleApi
.
DeleteAutoCodeExample
)
// 删除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列表
}
}
server/router/example/exa_customer.go
浏览文件 @
1aa6ab53
...
...
@@ -11,12 +11,15 @@ type CustomerRouter struct {
func
(
e
*
CustomerRouter
)
InitCustomerRouter
(
Router
*
gin
.
RouterGroup
)
{
customerRouter
:=
Router
.
Group
(
"customer"
)
.
Use
(
middleware
.
OperationRecord
())
customerRouterWithoutRecord
:=
Router
.
Group
(
"customer"
)
var
exaCustomerApi
=
v1
.
ApiGroupApp
.
ExampleApiGroup
.
CustomerApi
{
customerRouter
.
POST
(
"customer"
,
exaCustomerApi
.
CreateExaCustomer
)
// 创建客户
customerRouter
.
PUT
(
"customer"
,
exaCustomerApi
.
UpdateExaCustomer
)
// 更新客户
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
)
// 获取客户列表
}
}
server/router/example/exa_excel.go
浏览文件 @
1aa6ab53
...
...
@@ -12,9 +12,9 @@ func (e *ExcelRouter) InitExcelRouter(Router *gin.RouterGroup) {
excelRouter
:=
Router
.
Group
(
"excel"
)
var
exaExcelApi
=
v1
.
ApiGroupApp
.
ExampleApiGroup
.
ExcelApi
{
excelRouter
.
POST
(
"
/
importExcel"
,
exaExcelApi
.
ImportExcel
)
// 导入Excel
excelRouter
.
GET
(
"
/
loadExcel"
,
exaExcelApi
.
LoadExcel
)
// 加载Excel数据
excelRouter
.
POST
(
"
/
exportExcel"
,
exaExcelApi
.
ExportExcel
)
// 导出Excel
excelRouter
.
GET
(
"
/
downloadTemplate"
,
exaExcelApi
.
DownloadTemplate
)
// 下载模板文件
excelRouter
.
POST
(
"importExcel"
,
exaExcelApi
.
ImportExcel
)
// 导入Excel
excelRouter
.
GET
(
"loadExcel"
,
exaExcelApi
.
LoadExcel
)
// 加载Excel数据
excelRouter
.
POST
(
"exportExcel"
,
exaExcelApi
.
ExportExcel
)
// 导出Excel
excelRouter
.
GET
(
"downloadTemplate"
,
exaExcelApi
.
DownloadTemplate
)
// 下载模板文件
}
}
server/router/example/exa_file_upload_and_download.go
浏览文件 @
1aa6ab53
...
...
@@ -12,12 +12,12 @@ func (e *FileUploadAndDownloadRouter) InitFileUploadAndDownloadRouter(Router *gi
fileUploadAndDownloadRouter
:=
Router
.
Group
(
"fileUploadAndDownload"
)
var
exaFileUploadAndDownloadApi
=
v1
.
ApiGroupApp
.
ExampleApiGroup
.
FileUploadAndDownloadApi
{
fileUploadAndDownloadRouter
.
POST
(
"
/
upload"
,
exaFileUploadAndDownloadApi
.
UploadFile
)
// 上传文件
fileUploadAndDownloadRouter
.
POST
(
"
/
getFileList"
,
exaFileUploadAndDownloadApi
.
GetFileList
)
// 获取上传文件列表
fileUploadAndDownloadRouter
.
POST
(
"
/
deleteFile"
,
exaFileUploadAndDownloadApi
.
DeleteFile
)
// 删除指定文件
fileUploadAndDownloadRouter
.
POST
(
"
/
breakpointContinue"
,
exaFileUploadAndDownloadApi
.
BreakpointContinue
)
// 断点续传
fileUploadAndDownloadRouter
.
GET
(
"
/
findFile"
,
exaFileUploadAndDownloadApi
.
FindFile
)
// 查询当前文件成功的切片
fileUploadAndDownloadRouter
.
POST
(
"
/
breakpointContinueFinish"
,
exaFileUploadAndDownloadApi
.
BreakpointContinueFinish
)
// 查询当前文件成功的切片
fileUploadAndDownloadRouter
.
POST
(
"
/
removeChunk"
,
exaFileUploadAndDownloadApi
.
RemoveChunk
)
// 查询当前文件成功的切片
fileUploadAndDownloadRouter
.
POST
(
"upload"
,
exaFileUploadAndDownloadApi
.
UploadFile
)
// 上传文件
fileUploadAndDownloadRouter
.
POST
(
"getFileList"
,
exaFileUploadAndDownloadApi
.
GetFileList
)
// 获取上传文件列表
fileUploadAndDownloadRouter
.
POST
(
"deleteFile"
,
exaFileUploadAndDownloadApi
.
DeleteFile
)
// 删除指定文件
fileUploadAndDownloadRouter
.
POST
(
"breakpointContinue"
,
exaFileUploadAndDownloadApi
.
BreakpointContinue
)
// 断点续传
fileUploadAndDownloadRouter
.
GET
(
"findFile"
,
exaFileUploadAndDownloadApi
.
FindFile
)
// 查询当前文件成功的切片
fileUploadAndDownloadRouter
.
POST
(
"breakpointContinueFinish"
,
exaFileUploadAndDownloadApi
.
BreakpointContinueFinish
)
// 查询当前文件成功的切片
fileUploadAndDownloadRouter
.
POST
(
"removeChunk"
,
exaFileUploadAndDownloadApi
.
RemoveChunk
)
// 查询当前文件成功的切片
}
}
server/router/system/sys_api.go
浏览文件 @
1aa6ab53
...
...
@@ -11,14 +11,17 @@ type ApiRouter struct {
func
(
s
*
ApiRouter
)
InitApiRouter
(
Router
*
gin
.
RouterGroup
)
{
apiRouter
:=
Router
.
Group
(
"api"
)
.
Use
(
middleware
.
OperationRecord
())
apiRouterWithoutRecord
:=
Router
.
Group
(
"api"
)
var
apiRouterApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
SystemApiApi
{
apiRouter
.
POST
(
"createApi"
,
apiRouterApi
.
CreateApi
)
// 创建Api
apiRouter
.
POST
(
"deleteApi"
,
apiRouterApi
.
DeleteApi
)
// 删除Api
apiRouter
.
POST
(
"getApiList"
,
apiRouterApi
.
GetApiList
)
// 获取Api列表
apiRouter
.
POST
(
"getApiById"
,
apiRouterApi
.
GetApiById
)
// 获取单条Api消息
apiRouter
.
POST
(
"updateApi"
,
apiRouterApi
.
UpdateApi
)
// 更新api
apiRouter
.
POST
(
"getAllApis"
,
apiRouterApi
.
GetAllApis
)
// 获取所有api
apiRouter
.
DELETE
(
"deleteApisByIds"
,
apiRouterApi
.
DeleteApisByIds
)
// 删除选中api
}
{
apiRouterWithoutRecord
.
POST
(
"getAllApis"
,
apiRouterApi
.
GetAllApis
)
// 获取所有api
apiRouterWithoutRecord
.
POST
(
"getApiList"
,
apiRouterApi
.
GetApiList
)
// 获取Api列表
}
}
server/router/system/sys_authority.go
浏览文件 @
1aa6ab53
...
...
@@ -11,13 +11,16 @@ type AuthorityRouter struct {
func
(
s
*
AuthorityRouter
)
InitAuthorityRouter
(
Router
*
gin
.
RouterGroup
)
{
authorityRouter
:=
Router
.
Group
(
"authority"
)
.
Use
(
middleware
.
OperationRecord
())
authorityRouterWithoutRecord
:=
Router
.
Group
(
"authority"
)
var
authorityApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
AuthorityApi
{
authorityRouter
.
POST
(
"createAuthority"
,
authorityApi
.
CreateAuthority
)
// 创建角色
authorityRouter
.
POST
(
"deleteAuthority"
,
authorityApi
.
DeleteAuthority
)
// 删除角色
authorityRouter
.
PUT
(
"updateAuthority"
,
authorityApi
.
UpdateAuthority
)
// 更新角色
authorityRouter
.
POST
(
"copyAuthority"
,
authorityApi
.
CopyAuthority
)
// 更新角色
authorityRouter
.
POST
(
"getAuthorityList"
,
authorityApi
.
GetAuthorityList
)
// 获取角色列表
authorityRouter
.
POST
(
"copyAuthority"
,
authorityApi
.
CopyAuthority
)
// 拷贝角色
authorityRouter
.
POST
(
"setDataAuthority"
,
authorityApi
.
SetDataAuthority
)
// 设置角色资源权限
}
{
authorityRouterWithoutRecord
.
POST
(
"getAuthorityList"
,
authorityApi
.
GetAuthorityList
)
// 获取角色列表
}
}
server/router/system/sys_casbin.go
浏览文件 @
1aa6ab53
...
...
@@ -11,9 +11,12 @@ type CasbinRouter struct {
func
(
s
*
CasbinRouter
)
InitCasbinRouter
(
Router
*
gin
.
RouterGroup
)
{
casbinRouter
:=
Router
.
Group
(
"casbin"
)
.
Use
(
middleware
.
OperationRecord
())
casbinRouterWithoutRecord
:=
Router
.
Group
(
"casbin"
)
var
casbinApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
CasbinApi
{
casbinRouter
.
POST
(
"updateCasbin"
,
casbinApi
.
UpdateCasbin
)
casbinRouter
.
POST
(
"getPolicyPathByAuthorityId"
,
casbinApi
.
GetPolicyPathByAuthorityId
)
}
{
casbinRouterWithoutRecord
.
POST
(
"getPolicyPathByAuthorityId"
,
casbinApi
.
GetPolicyPathByAuthorityId
)
}
}
server/router/system/sys_dictionary.go
浏览文件 @
1aa6ab53
...
...
@@ -11,12 +11,15 @@ type DictionaryRouter struct {
func
(
s
*
DictionaryRouter
)
InitSysDictionaryRouter
(
Router
*
gin
.
RouterGroup
)
{
sysDictionaryRouter
:=
Router
.
Group
(
"sysDictionary"
)
.
Use
(
middleware
.
OperationRecord
())
sysDictionaryRouterWithoutRecord
:=
Router
.
Group
(
"sysDictionary"
)
var
sysDictionaryApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
DictionaryApi
{
sysDictionaryRouter
.
POST
(
"createSysDictionary"
,
sysDictionaryApi
.
CreateSysDictionary
)
// 新建SysDictionary
sysDictionaryRouter
.
DELETE
(
"deleteSysDictionary"
,
sysDictionaryApi
.
DeleteSysDictionary
)
// 删除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列表
}
}
server/router/system/sys_dictionary_detail.go
浏览文件 @
1aa6ab53
...
...
@@ -11,12 +11,15 @@ type DictionaryDetailRouter struct {
func
(
s
*
DictionaryDetailRouter
)
InitSysDictionaryDetailRouter
(
Router
*
gin
.
RouterGroup
)
{
dictionaryDetailRouter
:=
Router
.
Group
(
"sysDictionaryDetail"
)
.
Use
(
middleware
.
OperationRecord
())
dictionaryDetailRouterWithoutRecord
:=
Router
.
Group
(
"sysDictionaryDetail"
)
var
sysDictionaryDetailApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
DictionaryDetailApi
{
dictionaryDetailRouter
.
POST
(
"createSysDictionaryDetail"
,
sysDictionaryDetailApi
.
CreateSysDictionaryDetail
)
// 新建SysDictionaryDetail
dictionaryDetailRouter
.
DELETE
(
"deleteSysDictionaryDetail"
,
sysDictionaryDetailApi
.
DeleteSysDictionaryDetail
)
// 删除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列表
}
}
server/router/system/sys_jwt.go
浏览文件 @
1aa6ab53
...
...
@@ -2,7 +2,6 @@ package system
import
(
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"
)
...
...
@@ -10,7 +9,7 @@ type JwtRouter struct {
}
func
(
s
*
JwtRouter
)
InitJwtRouter
(
Router
*
gin
.
RouterGroup
)
{
jwtRouter
:=
Router
.
Group
(
"jwt"
)
.
Use
(
middleware
.
OperationRecord
())
jwtRouter
:=
Router
.
Group
(
"jwt"
)
var
jwtApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
JwtApi
{
jwtRouter
.
POST
(
"jsonInBlacklist"
,
jwtApi
.
JsonInBlacklist
)
// jwt加入黑名单
...
...
server/router/system/sys_menu.go
浏览文件 @
1aa6ab53
...
...
@@ -11,17 +11,20 @@ type MenuRouter struct {
func
(
s
*
MenuRouter
)
InitMenuRouter
(
Router
*
gin
.
RouterGroup
)
(
R
gin
.
IRoutes
)
{
menuRouter
:=
Router
.
Group
(
"menu"
)
.
Use
(
middleware
.
OperationRecord
())
menuRouterWithoutRecord
:=
Router
.
Group
(
"menu"
)
var
authorityMenuApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
AuthorityMenuApi
{
menuRouter
.
POST
(
"getMenu"
,
authorityMenuApi
.
GetMenu
)
// 获取菜单树
menuRouter
.
POST
(
"getMenuList"
,
authorityMenuApi
.
GetMenuList
)
// 分页获取基础menu列表
menuRouter
.
POST
(
"addBaseMenu"
,
authorityMenuApi
.
AddBaseMenu
)
// 新增菜单
menuRouter
.
POST
(
"getBaseMenuTree"
,
authorityMenuApi
.
GetBaseMenuTree
)
// 获取用户动态路由
menuRouter
.
POST
(
"addMenuAuthority"
,
authorityMenuApi
.
AddMenuAuthority
)
// 增加menu和角色关联关系
menuRouter
.
POST
(
"getMenuAuthority"
,
authorityMenuApi
.
GetMenuAuthority
)
// 获取指定角色menu
menuRouter
.
POST
(
"deleteBaseMenu"
,
authorityMenuApi
.
DeleteBaseMenu
)
// 删除菜单
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
}
server/router/system/sys_user.go
浏览文件 @
1aa6ab53
...
...
@@ -11,15 +11,18 @@ type UserRouter struct {
func
(
s
*
UserRouter
)
InitUserRouter
(
Router
*
gin
.
RouterGroup
)
{
userRouter
:=
Router
.
Group
(
"user"
)
.
Use
(
middleware
.
OperationRecord
())
userRouterWithoutRecord
:=
Router
.
Group
(
"user"
)
var
baseApi
=
v1
.
ApiGroupApp
.
SystemApiGroup
.
BaseApi
{
userRouter
.
POST
(
"register"
,
baseApi
.
Register
)
// 用户注册账号
userRouter
.
POST
(
"changePassword"
,
baseApi
.
ChangePassword
)
// 用户修改密码
userRouter
.
POST
(
"getUserList"
,
baseApi
.
GetUserList
)
// 分页获取用户列表
userRouter
.
POST
(
"setUserAuthority"
,
baseApi
.
SetUserAuthority
)
// 设置用户权限
userRouter
.
DELETE
(
"deleteUser"
,
baseApi
.
DeleteUser
)
// 删除用户
userRouter
.
PUT
(
"setUserInfo"
,
baseApi
.
SetUserInfo
)
// 设置用户信息
userRouter
.
POST
(
"setUserAuthorities"
,
baseApi
.
SetUserAuthorities
)
// 设置用户权限组
userRouter
.
GET
(
"getUserInfo"
,
baseApi
.
GetUserInfo
)
// 获取自身信息
}
{
userRouterWithoutRecord
.
POST
(
"getUserList"
,
baseApi
.
GetUserList
)
// 分页获取用户列表
userRouterWithoutRecord
.
GET
(
"getUserInfo"
,
baseApi
.
GetUserInfo
)
// 获取自身信息
}
}
web/src/style/main.scss
浏览文件 @
1aa6ab53
...
...
@@ -735,17 +735,15 @@ li {
.cell
{
color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.85
);
font-size
:
14px
;
line-height
:
40px
;
min-height
:
40px
;
display
:
flex
;
align-items
:
center
;
}
}
td
{
padding
:
6px
0
;
.cell
{
min-height
:
40px
;
display
:
flex
;
align-items
:
center
;
line-height
:
40px
;
color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.65
);
}
}
...
...
web/src/view/dashboard/dashbordTable/dashbordTable.vue
浏览文件 @
1aa6ab53
...
...
@@ -10,11 +10,6 @@
<div
class=
"flex-3 flex form"
>
{{
item
.
from
}}
</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>
</
template
>
...
...
web/src/view/example/customer/customer.vue
浏览文件 @
1aa6ab53
...
...
@@ -11,15 +11,15 @@
tooltip-effect=
"dark"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
label=
"接入日期"
width=
"180"
>
<el-table-column
align=
"center"
label=
"接入日期"
width=
"180"
>
<template
#default
="
scope
"
>
<span>
{{
formatDate
(
scope
.
row
.
CreatedAt
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"姓名"
prop=
"customerName"
width=
"120"
/>
<el-table-column
label=
"电话"
prop=
"customerPhoneData"
width=
"120"
/>
<el-table-column
label=
"接入人ID"
prop=
"sysUserId"
width=
"120"
/>
<el-table-column
label=
"按钮组"
min-width=
"160"
>
<el-table-column
align=
"center"
label=
"姓名"
prop=
"customerName"
width=
"120"
/>
<el-table-column
align=
"center"
label=
"电话"
prop=
"customerPhoneData"
width=
"120"
/>
<el-table-column
align=
"center"
label=
"接入人ID"
prop=
"sysUserId"
width=
"120"
/>
<el-table-column
align=
"center"
label=
"按钮组"
min-width=
"160"
>
<
template
#default=
"scope"
>
<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"
>
...
...
web/src/view/example/excel/excel.vue
浏览文件 @
1aa6ab53
...
...
@@ -16,18 +16,18 @@
<el-button
class=
"excel-btn"
size=
"mini"
type=
"success"
icon=
"el-icon-download"
@
click=
"downloadExcelTemplate()"
>
下载模板
</el-button>
</div>
<el-table
:data=
"tableData"
row-key=
"ID"
>
<el-table-column
label=
"ID"
min-width=
"100"
prop=
"ID"
/>
<el-table-column
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
label=
"是否隐藏"
min-width=
"100"
prop=
"hidden"
>
<el-table-column
align=
"center"
label=
"ID"
min-width=
"100"
prop=
"ID"
/>
<el-table-column
align=
"center"
show-overflow-tooltip
label=
"路由Name"
min-width=
"160"
prop=
"name"
/>
<el-table-column
align=
"center"
show-overflow-tooltip
label=
"路由Path"
min-width=
"160"
prop=
"path"
/>
<el-table-column
align=
"center"
label=
"是否隐藏"
min-width=
"100"
prop=
"hidden"
>
<template
#default
="
scope
"
>
<span>
{{
scope
.
row
.
hidden
?
"
隐藏
"
:
"
显示
"
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"父节点"
min-width=
"90"
prop=
"parentId"
/>
<el-table-column
label=
"排序"
min-width=
"70"
prop=
"sort"
/>
<el-table-column
label=
"文件路径"
min-width=
"360"
prop=
"component"
/>
<el-table-column
align=
"center"
label=
"父节点"
min-width=
"90"
prop=
"parentId"
/>
<el-table-column
align=
"center"
label=
"排序"
min-width=
"70"
prop=
"sort"
/>
<el-table-column
align=
"center"
label=
"文件路径"
min-width=
"360"
prop=
"component"
/>
</el-table>
</div>
</div>
...
...
web/src/view/example/upload/upload.vue
浏览文件 @
1aa6ab53
...
...
@@ -23,19 +23,19 @@
</div>
<el-table
:data=
"tableData"
>
<el-table-column
label=
"预览"
width=
"100"
>
<el-table-column
align=
"center"
label=
"预览"
width=
"100"
>
<template
#default
="
scope
"
>
<CustomPic
pic-type=
"file"
:pic-src=
"scope.row.url"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"日期"
prop=
"UpdatedAt"
width=
"180"
>
<el-table-column
align=
"center"
label=
"日期"
prop=
"UpdatedAt"
width=
"180"
>
<
template
#default=
"scope"
>
<div>
{{
formatDate
(
scope
.
row
.
UpdatedAt
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"文件名"
prop=
"name"
width=
"180"
/>
<el-table-column
label=
"链接"
prop=
"url"
min-width=
"300"
/>
<el-table-column
label=
"标签"
prop=
"tag"
width=
"100"
>
<el-table-column
align=
"center"
label=
"文件名"
prop=
"name"
width=
"180"
/>
<el-table-column
align=
"center"
label=
"链接"
prop=
"url"
min-width=
"300"
/>
<el-table-column
align=
"center"
label=
"标签"
prop=
"tag"
width=
"100"
>
<
template
#default=
"scope"
>
<el-tag
:type=
"scope.row.tag === 'jpg' ? 'primary' : 'success'"
...
...
@@ -43,7 +43,7 @@
>
{{
scope
.
row
.
tag
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"160"
>
<el-table-column
align=
"center"
label=
"操作"
width=
"160"
>
<
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-delete"
type=
"text"
@
click=
"deleteFile(scope.row)"
>
删除
</el-button>
...
...
web/src/view/superAdmin/api/api.vue
浏览文件 @
1aa6ab53
...
...
@@ -47,11 +47,11 @@
type=
"selection"
width=
"55"
/>
<el-table-column
label=
"id"
min-width=
"60"
prop=
"ID"
sortable=
"custom"
/>
<el-table-column
label=
"API路径"
min-width=
"150"
prop=
"path"
sortable=
"custom"
/>
<el-table-column
label=
"API分组"
min-width=
"150"
prop=
"apiGroup"
sortable=
"custom"
/>
<el-table-column
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=
"id"
min-width=
"60"
prop=
"ID"
sortable=
"custom"
/>
<el-table-column
align=
"center"
label=
"API路径"
min-width=
"150"
prop=
"path"
sortable=
"custom"
/>
<el-table-column
align=
"center"
label=
"API分组"
min-width=
"150"
prop=
"apiGroup"
sortable=
"custom"
/>
<el-table-column
align=
"center"
label=
"API简介"
min-width=
"150"
prop=
"description"
sortable=
"custom"
/>
<el-table-column
align=
"center"
label=
"请求"
min-width=
"150"
prop=
"method"
sortable=
"custom"
>
<
template
#default=
"scope"
>
<div>
{{
scope
.
row
.
method
}}
/
{{
methodFiletr
(
scope
.
row
.
method
)
}}
...
...
@@ -59,7 +59,7 @@
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"200"
>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"200"
>
<
template
#default=
"scope"
>
<el-button
icon=
"el-icon-edit"
...
...
web/src/view/superAdmin/authority/authority.vue
浏览文件 @
1aa6ab53
...
...
@@ -11,8 +11,8 @@
style="width: 100%"
>
<el-table-column
label=
"角色ID"
min-width=
"180"
prop=
"authorityId"
/>
<el-table-column
label=
"角色名称"
min-width=
"180"
prop=
"authorityName"
/>
<el-table-column
label=
"操作"
width=
"460"
>
<el-table-column
align=
"center"
label=
"角色名称"
min-width=
"180"
prop=
"authorityName"
/>
<el-table-column
align=
"center"
label=
"操作"
width=
"460"
>
<template
#default
="
scope
"
>
<el-button
icon=
"el-icon-setting"
...
...
web/src/view/superAdmin/dictionary/sysDictionary.vue
浏览文件 @
1aa6ab53
...
...
@@ -34,21 +34,21 @@
tooltip-effect=
"dark"
>
<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
>
</el-table-column>
<el-table-column
label=
"字典名(中)"
prop=
"name"
width=
"12
0"
/>
<el-table-column
align=
"center"
label=
"字典名(中)"
prop=
"name"
width=
"16
0"
/>
<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
>
</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"
>
<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>
...
...
web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
浏览文件 @
1aa6ab53
...
...
@@ -31,21 +31,21 @@
tooltip-effect=
"dark"
>
<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
>
</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
>
</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"
>
<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"
>
...
...
web/src/view/superAdmin/menu/menu.vue
浏览文件 @
1aa6ab53
...
...
@@ -7,29 +7,29 @@
<!-- 由于此处菜单跟左侧列表一一对应所以不需要分页 pageSize默认999 -->
<el-table
:data=
"tableData"
row-key=
"ID"
>
<el-table-column
label=
"ID"
min-width=
"100"
prop=
"ID"
/>
<el-table-column
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
label=
"是否隐藏"
min-width=
"100"
prop=
"hidden"
>
<el-table-column
align=
"center"
label=
"ID"
min-width=
"100"
prop=
"ID"
/>
<el-table-column
align=
"center"
label=
"路由Name"
show-overflow-tooltip
min-width=
"160"
prop=
"name"
/>
<el-table-column
align=
"center"
label=
"路由Path"
show-overflow-tooltip
min-width=
"160"
prop=
"path"
/>
<el-table-column
align=
"center"
label=
"是否隐藏"
min-width=
"100"
prop=
"hidden"
>
<template
#default
="
scope
"
>
<span>
{{
scope
.
row
.
hidden
?
"
隐藏
"
:
"
显示
"
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"父节点"
min-width=
"90"
prop=
"parentId"
/>
<el-table-column
label=
"排序"
min-width=
"70"
prop=
"sort"
/>
<el-table-column
label=
"文件路径"
min-width=
"360"
prop=
"component"
/>
<el-table-column
label=
"展示名称"
min-width=
"120"
prop=
"authorityName"
>
<el-table-column
align=
"center"
label=
"父节点"
min-width=
"90"
prop=
"parentId"
/>
<el-table-column
align=
"center"
label=
"排序"
min-width=
"70"
prop=
"sort"
/>
<el-table-column
align=
"center"
label=
"文件路径"
min-width=
"360"
prop=
"component"
/>
<el-table-column
align=
"center"
label=
"展示名称"
min-width=
"120"
prop=
"authorityName"
>
<
template
#default=
"scope"
>
<span>
{{
scope
.
row
.
meta
.
title
}}
</span>
</
template
>
</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"
>
<i
:class=
"`el-icon-$
{scope.row.meta.icon}`" />
<span>
{{
scope
.
row
.
meta
.
icon
}}
</span>
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"300"
>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"300"
>
<
template
#default=
"scope"
>
<el-button
size=
"mini"
...
...
@@ -137,7 +137,7 @@
@
click=
"addParameter(form)"
>
新增菜单参数
</el-button>
<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"
>
<el-select
v-model=
"scope.row.type"
placeholder=
"请选择"
>
<el-option
key=
"query"
value=
"query"
label=
"query"
/>
...
...
@@ -145,21 +145,21 @@
</el-select>
</
template
>
</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"
>
<div>
<el-input
v-model=
"scope.row.key"
/>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"value"
label=
"参数值"
>
<el-table-column
align=
"center"
prop=
"value"
label=
"参数值"
>
<
template
#default=
"scope"
>
<div>
<el-input
v-model=
"scope.row.value"
/>
</div>
</
template
>
</el-table-column>
<el-table-column>
<el-table-column
align=
"center"
>
<
template
#default=
"scope"
>
<div>
<el-button
...
...
web/src/view/superAdmin/operation/sysOperationRecord.vue
浏览文件 @
1aa6ab53
...
...
@@ -38,26 +38,26 @@
tooltip-effect=
"dark"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
label=
"操作人"
width=
"140"
>
<el-table-column
align=
"center"
type=
"selection"
width=
"55"
/>
<el-table-column
align=
"center"
label=
"操作人"
width=
"140"
>
<
template
#default=
"scope"
>
<div>
{{
scope
.
row
.
user
.
userName
}}
(
{{
scope
.
row
.
user
.
nickName
}}
)
</div>
</
template
>
</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
>
</el-table-column>
<el-table-column
label=
"状态码"
prop=
"status"
width=
"120"
>
<el-table-column
align=
"center"
label=
"状态码"
prop=
"status"
width=
"120"
>
<
template
#default=
"scope"
>
<div>
<el-tag
type=
"success"
>
{{
scope
.
row
.
status
}}
</el-tag>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"请求IP"
prop=
"ip"
width=
"120"
/>
<el-table-column
label=
"请求方法"
prop=
"method"
width=
"120"
/>
<el-table-column
label=
"请求路径"
prop=
"path"
width=
"240"
/>
<el-table-column
label=
"请求"
prop=
"path"
width=
"80"
>
<el-table-column
align=
"center"
label=
"请求IP"
prop=
"ip"
width=
"120"
/>
<el-table-column
align=
"center"
label=
"请求方法"
prop=
"method"
width=
"120"
/>
<el-table-column
align=
"center"
label=
"请求路径"
prop=
"path"
width=
"240"
/>
<el-table-column
align=
"center"
label=
"请求"
prop=
"path"
width=
"80"
>
<
template
#default=
"scope"
>
<div>
<el-popover
v-if=
"scope.row.body"
placement=
"top-start"
trigger=
"hover"
>
...
...
@@ -73,7 +73,7 @@
</div>
</template>
</el-table-column>
<el-table-column
label=
"响应"
prop=
"path"
width=
"80"
>
<el-table-column
align=
"center"
label=
"响应"
prop=
"path"
width=
"80"
>
<
template
#default=
"scope"
>
<div>
<el-popover
v-if=
"scope.row.resp"
placement=
"top-start"
trigger=
"hover"
>
...
...
@@ -88,7 +88,7 @@
</div>
</template>
</el-table-column>
<el-table-column
label=
"按钮组"
>
<el-table-column
align=
"center"
label=
"按钮组"
>
<
template
#default=
"scope"
>
<el-popover
v-model:visible=
"scope.row.visible"
placement=
"top"
width=
"160"
>
<p>
确定要删除吗?
</p>
...
...
web/src/view/superAdmin/user/user.vue
浏览文件 @
1aa6ab53
...
...
@@ -5,17 +5,17 @@
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"addUser"
>
新增用户
</el-button>
</div>
<el-table
:data=
"tableData"
>
<el-table-column
label=
"头像"
min-width=
"50"
>
<el-table-column
align=
"center"
label=
"头像"
min-width=
"50"
>
<template
#default
="
scope
"
>
<div
:style=
"
{'textAlign':'center'}">
<CustomPic
:pic-src=
"scope.row.headerImg"
/>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"UUID"
min-width=
"250"
prop=
"uuid"
/>
<el-table-column
label=
"用户名"
min-width=
"150"
prop=
"userName"
/>
<el-table-column
label=
"昵称"
min-width=
"150"
prop=
"nickName"
/>
<el-table-column
label=
"用户角色"
min-width=
"150"
>
<el-table-column
align=
"center"
label=
"UUID"
min-width=
"250"
prop=
"uuid"
/>
<el-table-column
align=
"center"
label=
"用户名"
min-width=
"150"
prop=
"userName"
/>
<el-table-column
align=
"center"
label=
"昵称"
min-width=
"150"
prop=
"nickName"
/>
<el-table-column
align=
"center"
label=
"用户角色"
min-width=
"150"
>
<
template
#default=
"scope"
>
<el-cascader
v-model=
"scope.row.authorityIds"
...
...
@@ -29,7 +29,7 @@
/>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"150"
>
<el-table-column
align=
"center"
label=
"操作"
min-width=
"150"
>
<
template
#default=
"scope"
>
<el-popover
v-model:visible=
"scope.row.visible"
placement=
"top"
width=
"160"
>
<p>
确定要删除此用户吗
</p>
...
...
web/src/view/systemTools/autoCode/index.vue
浏览文件 @
1aa6ab53
...
...
@@ -83,18 +83,18 @@
<el-button
size=
"mini"
type=
"primary"
@
click=
"editAndAddField()"
>
新增Field
</el-button>
</div>
<el-table
:data=
"form.fields"
>
<el-table-column
type=
"index"
label=
"序列"
width=
"100"
/>
<el-table-column
prop=
"fieldName"
label=
"Field名"
/>
<el-table-column
prop=
"fieldDesc"
label=
"中文名"
/>
<el-table-column
prop=
"fieldJson"
label=
"FieldJson"
/>
<el-table-column
prop=
"fieldType"
label=
"Field数据类型"
width=
"130"
/>
<el-table-column
prop=
"dataType"
label=
"数据库字段类型"
width=
"130"
/>
<el-table-column
prop=
"dataTypeLong"
label=
"数据库字段长度"
width=
"130"
/>
<el-table-column
prop=
"columnName"
label=
"数据库字段"
width=
"130"
/>
<el-table-column
prop=
"comment"
label=
"数据库字段描述"
width=
"130"
/>
<el-table-column
prop=
"fieldSearchType"
label=
"搜索条件"
width=
"130"
/>
<el-table-column
prop=
"dictType"
label=
"字典"
width=
"130"
/>
<el-table-column
label=
"操作"
width=
"300"
>
<el-table-column
align=
"center"
type=
"index"
label=
"序列"
width=
"100"
/>
<el-table-column
align=
"center"
prop=
"fieldName"
label=
"Field名"
/>
<el-table-column
align=
"center"
prop=
"fieldDesc"
label=
"中文名"
/>
<el-table-column
align=
"center"
prop=
"fieldJson"
label=
"FieldJson"
/>
<el-table-column
align=
"center"
prop=
"fieldType"
label=
"Field数据类型"
width=
"130"
/>
<el-table-column
align=
"center"
prop=
"dataType"
label=
"数据库字段类型"
width=
"130"
/>
<el-table-column
align=
"center"
prop=
"dataTypeLong"
label=
"数据库字段长度"
width=
"130"
/>
<el-table-column
align=
"center"
prop=
"columnName"
label=
"数据库字段"
width=
"130"
/>
<el-table-column
align=
"center"
prop=
"comment"
label=
"数据库字段描述"
width=
"130"
/>
<el-table-column
align=
"center"
prop=
"fieldSearchType"
label=
"搜索条件"
width=
"130"
/>
<el-table-column
align=
"center"
prop=
"dictType"
label=
"字典"
width=
"130"
/>
<el-table-column
align=
"center"
label=
"操作"
width=
"300"
>
<
template
#default=
"scope"
>
<el-button
size=
"mini"
...
...
web/src/view/systemTools/autoCodeAdmin/index.vue
浏览文件 @
1aa6ab53
...
...
@@ -9,14 +9,14 @@
type=
"selection"
width=
"55"
/>
<el-table-column
label=
"id"
width=
"60"
prop=
"ID"
/>
<el-table-column
label=
"日期"
width=
"180"
>
<el-table-column
align=
"center"
label=
"id"
width=
"60"
prop=
"ID"
/>
<el-table-column
align=
"center"
label=
"日期"
width=
"180"
>
<template
#default
="
scope
"
>
{{
formatDate
(
scope
.
row
.
CreatedAt
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"结构体名"
min-width=
"150"
prop=
"structName"
/>
<el-table-column
label=
"结构体描述"
min-width=
"150"
prop=
"structCNName"
/>
<el-table-column
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=
"structName"
/>
<el-table-column
align=
"center"
label=
"结构体描述"
min-width=
"150"
prop=
"structCNName"
/>
<el-table-column
align=
"center"
label=
"表名称"
min-width=
"150"
prop=
"tableName"
/>
<el-table-column
align=
"center"
label=
"回滚标记"
min-width=
"150"
prop=
"flag"
>
<
template
#default=
"scope"
>
<el-tag
v-if=
"scope.row.flag"
...
...
@@ -36,7 +36,7 @@
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"180"
>
<el-table-column
align=
"center"
label=
"操作"
min-width=
"180"
>
<
template
#default=
"scope"
>
<div>
<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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录