Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
d1d719c6
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
333
Star
18155
Fork
5506
代码
文件
提交
分支
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,发现更多精彩内容 >>
未验证
提交
d1d719c6
编写于
9月 14, 2021
作者:
Mr.奇淼(
提交者:
GitHub
9月 14, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #701 from flipped-aurora/gva-vue3
Gva vue3
上级
fde8539a
efb56dc3
变更
29
隐藏空白更改
内联
并排
Showing
29 changed file
with
182 addition
and
171 deletion
+182
-171
server/Dockerfile
server/Dockerfile
+1
-0
server/model/system/request/sys_user.go
server/model/system/request/sys_user.go
+1
-1
server/model/system/sys_user.go
server/model/system/sys_user.go
+9
-9
server/resource/template/web/table.vue.tpl
server/resource/template/web/table.vue.tpl
+14
-14
server/service/system/sys_auto_code.go
server/service/system/sys_auto_code.go
+4
-0
server/service/system/sys_autocode_history.go
server/service/system/sys_autocode_history.go
+10
-0
server/service/system/sys_initdb.go
server/service/system/sys_initdb.go
+4
-0
server/source/admin.go
server/source/admin.go
+2
-2
server/source/file.go
server/source/file.go
+2
-2
web/src/components/upload/image.vue
web/src/components/upload/image.vue
+8
-3
web/src/style/main.scss
web/src/style/main.scss
+27
-13
web/src/view/example/customer/customer.vue
web/src/view/example/customer/customer.vue
+4
-7
web/src/view/example/excel/excel.vue
web/src/view/example/excel/excel.vue
+4
-3
web/src/view/example/upload/upload.vue
web/src/view/example/upload/upload.vue
+23
-25
web/src/view/layout/aside/index.vue
web/src/view/layout/aside/index.vue
+1
-1
web/src/view/layout/setting/index.vue
web/src/view/layout/setting/index.vue
+5
-1
web/src/view/superAdmin/api/api.vue
web/src/view/superAdmin/api/api.vue
+15
-15
web/src/view/superAdmin/authority/authority.vue
web/src/view/superAdmin/authority/authority.vue
+3
-9
web/src/view/superAdmin/authority/components/apis.vue
web/src/view/superAdmin/authority/components/apis.vue
+1
-1
web/src/view/superAdmin/authority/components/datas.vue
web/src/view/superAdmin/authority/components/datas.vue
+7
-4
web/src/view/superAdmin/authority/components/menus.vue
web/src/view/superAdmin/authority/components/menus.vue
+1
-1
web/src/view/superAdmin/dictionary/sysDictionary.vue
web/src/view/superAdmin/dictionary/sysDictionary.vue
+5
-5
web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
+5
-7
web/src/view/superAdmin/menu/menu.vue
web/src/view/superAdmin/menu/menu.vue
+1
-7
web/src/view/superAdmin/operation/sysOperationRecord.vue
web/src/view/superAdmin/operation/sysOperationRecord.vue
+14
-14
web/src/view/superAdmin/user/user.vue
web/src/view/superAdmin/user/user.vue
+1
-8
web/src/view/systemTools/autoCode/index.vue
web/src/view/systemTools/autoCode/index.vue
+2
-2
web/src/view/systemTools/autoCodeAdmin/index.vue
web/src/view/systemTools/autoCodeAdmin/index.vue
+3
-11
web/src/view/systemTools/system/system.vue
web/src/view/systemTools/system/system.vue
+5
-6
未找到文件。
server/Dockerfile
浏览文件 @
d1d719c6
...
@@ -5,6 +5,7 @@ COPY . .
...
@@ -5,6 +5,7 @@ COPY . .
RUN
go
env
-w
GO111MODULE
=
on
RUN
go
env
-w
GO111MODULE
=
on
RUN
go
env
-w
GOPROXY
=
https://goproxy.cn,direct
RUN
go
env
-w
GOPROXY
=
https://goproxy.cn,direct
RUN
go
env
-w
CGO_ENABLED
=
0
RUN
go
env
RUN
go
env
RUN
go mod tidy
RUN
go mod tidy
RUN
go build
-o
server .
RUN
go build
-o
server .
...
...
server/model/system/request/sys_user.go
浏览文件 @
d1d719c6
...
@@ -5,7 +5,7 @@ type Register struct {
...
@@ -5,7 +5,7 @@ type Register struct {
Username
string
`json:"userName"`
Username
string
`json:"userName"`
Password
string
`json:"passWord"`
Password
string
`json:"passWord"`
NickName
string
`json:"nickName" gorm:"default:'QMPlusUser'"`
NickName
string
`json:"nickName" gorm:"default:'QMPlusUser'"`
HeaderImg
string
`json:"headerImg" gorm:"default:'http
://www.henrongyi.top/avatar/lufu
.jpg'"`
HeaderImg
string
`json:"headerImg" gorm:"default:'http
s://qmplusimg.henrongyi.top/gva_header
.jpg'"`
AuthorityId
string
`json:"authorityId" gorm:"default:888"`
AuthorityId
string
`json:"authorityId" gorm:"default:888"`
AuthorityIds
[]
string
`json:"authorityIds"`
AuthorityIds
[]
string
`json:"authorityIds"`
}
}
...
...
server/model/system/sys_user.go
浏览文件 @
d1d719c6
...
@@ -7,15 +7,15 @@ import (
...
@@ -7,15 +7,15 @@ import (
type
SysUser
struct
{
type
SysUser
struct
{
global
.
GVA_MODEL
global
.
GVA_MODEL
UUID
uuid
.
UUID
`json:"uuid" gorm:"comment:用户UUID"`
// 用户UUID
UUID
uuid
.
UUID
`json:"uuid" gorm:"comment:用户UUID"`
// 用户UUID
Username
string
`json:"userName" gorm:"comment:用户登录名"`
// 用户登录名
Username
string
`json:"userName" gorm:"comment:用户登录名"`
// 用户登录名
Password
string
`json:"-" gorm:"comment:用户登录密码"`
// 用户登录密码
Password
string
`json:"-" gorm:"comment:用户登录密码"`
// 用户登录密码
NickName
string
`json:"nickName" gorm:"default:系统用户;comment:用户昵称"`
// 用户昵称
NickName
string
`json:"nickName" gorm:"default:系统用户;comment:用户昵称"`
// 用户昵称
SideMode
string
`json:"sideMode" gorm:"default:dark;comment:用户侧边主题"`
// 用户侧边主题
SideMode
string
`json:"sideMode" gorm:"default:dark;comment:用户侧边主题"`
// 用户侧边主题
HeaderImg
string
`json:"headerImg" gorm:"default:http
://qmplusimg.henrongyi.top/head.pn
g;comment:用户头像"`
// 用户头像
HeaderImg
string
`json:"headerImg" gorm:"default:http
s://qmplusimg.henrongyi.top/gva_header.jp
g;comment:用户头像"`
// 用户头像
BaseColor
string
`json:"baseColor" gorm:"default:#fff;comment:基础颜色"`
// 基础颜色
BaseColor
string
`json:"baseColor" gorm:"default:#fff;comment:基础颜色"`
// 基础颜色
ActiveColor
string
`json:"activeColor" gorm:"default:#1890ff;comment:活跃颜色"`
// 活跃颜色
ActiveColor
string
`json:"activeColor" gorm:"default:#1890ff;comment:活跃颜色"`
// 活跃颜色
AuthorityId
string
`json:"authorityId" gorm:"default:888;comment:用户角色ID"`
// 用户角色ID
AuthorityId
string
`json:"authorityId" gorm:"default:888;comment:用户角色ID"`
// 用户角色ID
Authority
SysAuthority
`json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
Authority
SysAuthority
`json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
Authorities
[]
SysAuthority
`json:"authorities" gorm:"many2many:sys_user_authority;"`
Authorities
[]
SysAuthority
`json:"authorities" gorm:"many2many:sys_user_authority;"`
}
}
server/resource/template/web/table.vue.tpl
浏览文件 @
d1d719c6
...
@@ -21,21 +21,21 @@
...
@@ -21,21 +21,21 @@
<el-form-item
label=
"{{.FieldDesc}}"
>
<el-form-item
label=
"{{.FieldDesc}}"
>
<el-input
v-model=
"searchInfo.{{.FieldJson}}"
placeholder=
"搜索条件"
/>
<el-input
v-model=
"searchInfo.{{.FieldJson}}"
placeholder=
"搜索条件"
/>
</el-form-item>
{{ end }}{{ end }}{{ end }}
</el-form-item>
{{ end }}{{ end }}{{ end }}
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog"
>
新增
</el-button>
<el-popover
v-model:visible=
"deleteVisible"
placement=
"top"
width=
"160"
>
<p>
确定要删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"deleteVisible = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"onDelete"
>
确定
</el-button>
</div>
<template
#reference
>
<el-button
icon=
"el-icon-delete"
size=
"mini"
type=
"danger"
style=
"margin-left: 10px;"
>
批量删除
</el-button>
</template>
</el-popover>
</el-form-item>
</el-form>
</el-form>
<div
class=
"gva-btn-list"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog"
>
新增
</el-button>
<el-popover
v-model:visible=
"deleteVisible"
placement=
"top"
width=
"160"
>
<p>
确定要删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"deleteVisible = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"onDelete"
>
确定
</el-button>
</div>
<template
#reference
>
<el-button
icon=
"el-icon-delete"
size=
"mini"
type=
"danger"
style=
"margin-left: 10px;"
>
批量删除
</el-button>
</template>
</el-popover>
</div>
</div>
</div>
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
...
...
server/service/system/sys_auto_code.go
浏览文件 @
d1d719c6
...
@@ -154,6 +154,10 @@ func (autoCodeService *AutoCodeService) PreviewTemp(autoCode system.AutoCodeStru
...
@@ -154,6 +154,10 @@ func (autoCodeService *AutoCodeService) PreviewTemp(autoCode system.AutoCodeStru
//@return: err error
//@return: err error
func
(
autoCodeService
*
AutoCodeService
)
CreateTemp
(
autoCode
system
.
AutoCodeStruct
,
ids
...
uint
)
(
err
error
)
{
func
(
autoCodeService
*
AutoCodeService
)
CreateTemp
(
autoCode
system
.
AutoCodeStruct
,
ids
...
uint
)
(
err
error
)
{
// 增加判断: 重复创建struct
if
autoCode
.
AutoMoveFile
&&
AutoCodeHistoryServiceApp
.
Repeat
(
autoCode
.
StructName
)
{
return
RepeatErr
}
dataList
,
fileList
,
needMkdir
,
err
:=
autoCodeService
.
getNeedList
(
&
autoCode
)
dataList
,
fileList
,
needMkdir
,
err
:=
autoCodeService
.
getNeedList
(
&
autoCode
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
server/service/system/sys_autocode_history.go
浏览文件 @
d1d719c6
package
system
package
system
import
(
import
(
"errors"
"fmt"
"fmt"
"path/filepath"
"path/filepath"
"strings"
"strings"
...
@@ -14,11 +15,20 @@ import (
...
@@ -14,11 +15,20 @@ import (
"go.uber.org/zap"
"go.uber.org/zap"
)
)
var
RepeatErr
=
errors
.
New
(
"重复创建"
)
type
AutoCodeHistoryService
struct
{
type
AutoCodeHistoryService
struct
{
}
}
var
AutoCodeHistoryServiceApp
=
new
(
AutoCodeHistoryService
)
var
AutoCodeHistoryServiceApp
=
new
(
AutoCodeHistoryService
)
func
(
autoCodeHistoryService
*
AutoCodeHistoryService
)
Repeat
(
structName
string
)
bool
{
var
count
int64
global
.
GVA_DB
.
Model
(
&
system
.
SysAutoCodeHistory
{})
.
Where
(
"struct_name = ? and flag = 0"
,
structName
)
.
Count
(
&
count
)
return
count
>
0
}
// CreateAutoCodeHistory RouterPath : RouterPath@RouterString;RouterPath2@RouterString2
// CreateAutoCodeHistory RouterPath : RouterPath@RouterString;RouterPath2@RouterString2
func
(
autoCodeHistoryService
*
AutoCodeHistoryService
)
CreateAutoCodeHistory
(
meta
,
structName
,
structCNName
,
autoCodePath
string
,
injectionMeta
string
,
tableName
string
,
apiIds
string
)
error
{
func
(
autoCodeHistoryService
*
AutoCodeHistoryService
)
CreateAutoCodeHistory
(
meta
,
structName
,
structCNName
,
autoCodePath
string
,
injectionMeta
string
,
tableName
string
,
apiIds
string
)
error
{
return
global
.
GVA_DB
.
Create
(
&
system
.
SysAutoCodeHistory
{
return
global
.
GVA_DB
.
Create
(
&
system
.
SysAutoCodeHistory
{
...
...
server/service/system/sys_initdb.go
浏览文件 @
d1d719c6
...
@@ -5,6 +5,8 @@ import (
...
@@ -5,6 +5,8 @@ import (
"fmt"
"fmt"
"path/filepath"
"path/filepath"
uuid
"github.com/satori/go.uuid"
"github.com/flipped-aurora/gin-vue-admin/server/config"
"github.com/flipped-aurora/gin-vue-admin/server/config"
"github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/flipped-aurora/gin-vue-admin/server/model/example"
"github.com/flipped-aurora/gin-vue-admin/server/model/example"
...
@@ -33,6 +35,7 @@ func (initDBService *InitDBService) writeConfig(viper *viper.Viper, mysql config
...
@@ -33,6 +35,7 @@ func (initDBService *InitDBService) writeConfig(viper *viper.Viper, mysql config
for
k
,
v
:=
range
cs
{
for
k
,
v
:=
range
cs
{
viper
.
Set
(
k
,
v
)
viper
.
Set
(
k
,
v
)
}
}
viper
.
Set
(
"jwt.signing-key"
,
uuid
.
NewV4
())
return
viper
.
WriteConfig
()
return
viper
.
WriteConfig
()
}
}
...
@@ -159,6 +162,7 @@ func (initDBService *InitDBService) InitDB(conf request.InitDB) error {
...
@@ -159,6 +162,7 @@ func (initDBService *InitDBService) InitDB(conf request.InitDB) error {
global
.
GVA_DB
=
nil
global
.
GVA_DB
=
nil
return
err
return
err
}
}
if
err
=
initDBService
.
writeConfig
(
global
.
GVA_VP
,
MysqlConfig
);
err
!=
nil
{
if
err
=
initDBService
.
writeConfig
(
global
.
GVA_VP
,
MysqlConfig
);
err
!=
nil
{
return
err
return
err
}
}
...
...
server/source/admin.go
浏览文件 @
d1d719c6
...
@@ -16,8 +16,8 @@ var Admin = new(admin)
...
@@ -16,8 +16,8 @@ var Admin = new(admin)
type
admin
struct
{}
type
admin
struct
{}
var
admins
=
[]
system
.
SysUser
{
var
admins
=
[]
system
.
SysUser
{
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
1
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
UUID
:
uuid
.
NewV4
(),
Username
:
"admin"
,
Password
:
"e10adc3949ba59abbe56e057f20f883e"
,
NickName
:
"超级管理员"
,
HeaderImg
:
"http
:
//qmplusimg.henrongyi.top/gva_header.jpg"
,
AuthorityId
:
"888"
},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
1
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
UUID
:
uuid
.
NewV4
(),
Username
:
"admin"
,
Password
:
"e10adc3949ba59abbe56e057f20f883e"
,
NickName
:
"超级管理员"
,
HeaderImg
:
"http
s:/
//qmplusimg.henrongyi.top/gva_header.jpg"
,
AuthorityId
:
"888"
},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
2
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
UUID
:
uuid
.
NewV4
(),
Username
:
"a303176530"
,
Password
:
"3ec063004a6f31642261936a379fde3d"
,
NickName
:
"QMPlusUser"
,
HeaderImg
:
"http
:
//qmplusimg.henrongyi.top/1572075907logo.png"
,
AuthorityId
:
"9528"
},
{
GVA_MODEL
:
global
.
GVA_MODEL
{
ID
:
2
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
UUID
:
uuid
.
NewV4
(),
Username
:
"a303176530"
,
Password
:
"3ec063004a6f31642261936a379fde3d"
,
NickName
:
"QMPlusUser"
,
HeaderImg
:
"http
s:/
//qmplusimg.henrongyi.top/1572075907logo.png"
,
AuthorityId
:
"9528"
},
}
}
//@author: [SliverHorn](https://github.com/SliverHorn)
//@author: [SliverHorn](https://github.com/SliverHorn)
...
...
server/source/file.go
浏览文件 @
d1d719c6
...
@@ -14,8 +14,8 @@ var File = new(file)
...
@@ -14,8 +14,8 @@ var File = new(file)
type
file
struct
{}
type
file
struct
{}
var
files
=
[]
example
.
ExaFileUploadAndDownload
{
var
files
=
[]
example
.
ExaFileUploadAndDownload
{
{
global
.
GVA_MODEL
{
ID
:
1
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"10.png"
,
"http://qmplusimg.henrongyi.top/gvalogo.png"
,
"png"
,
"158787308910.png"
},
{
global
.
GVA_MODEL
{
ID
:
1
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"10.png"
,
"http
s
://qmplusimg.henrongyi.top/gvalogo.png"
,
"png"
,
"158787308910.png"
},
{
global
.
GVA_MODEL
{
ID
:
2
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"logo.png"
,
"http://qmplusimg.henrongyi.top/1576554439myAvatar.png"
,
"png"
,
"1587973709logo.png"
},
{
global
.
GVA_MODEL
{
ID
:
2
,
CreatedAt
:
time
.
Now
(),
UpdatedAt
:
time
.
Now
()},
"logo.png"
,
"http
s
://qmplusimg.henrongyi.top/1576554439myAvatar.png"
,
"png"
,
"1587973709logo.png"
},
}
}
//@author: [SliverHorn](https://github.com/SliverHorn)
//@author: [SliverHorn](https://github.com/SliverHorn)
...
...
web/src/components/upload/image.vue
浏览文件 @
d1d719c6
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
<
template
>
<
template
>
<div>
<div>
<el-upload
<el-upload
class=
"image-uploader"
:action=
"`$
{path}/fileUploadAndDownload/upload`"
:action=
"`$
{path}/fileUploadAndDownload/upload`"
:headers="{ 'x-token': token }"
:headers="{ 'x-token': token }"
:show-file-list="false"
:show-file-list="false"
...
@@ -10,8 +9,7 @@
...
@@ -10,8 +9,7 @@
:before-upload="beforeImageUpload"
:before-upload="beforeImageUpload"
:multiple="false"
:multiple="false"
>
>
<img
v-if=
"imageUrl"
:src=
"showImageUrl"
class=
"image"
>
<el-button
size=
"mini"
type=
"primary"
>
压缩上传
</el-button>
<i
v-else
class=
"el-icon-plus image-uploader-icon"
/>
</el-upload>
</el-upload>
</div>
</div>
</
template
>
</
template
>
...
@@ -53,6 +51,13 @@ export default {
...
@@ -53,6 +51,13 @@ export default {
},
},
methods
:
{
methods
:
{
beforeImageUpload
(
file
)
{
beforeImageUpload
(
file
)
{
const
isJPG
=
file
.
type
===
'
image/jpeg
'
const
isPng
=
file
.
type
===
'
image/png
'
if
(
!
isJPG
&&
!
isPng
)
{
this
.
$message
.
error
(
'
上传头像图片只能是 jpg或png 格式!
'
)
return
false
}
const
isRightSize
=
file
.
size
/
1024
<
this
.
fileSize
const
isRightSize
=
file
.
size
/
1024
<
this
.
fileSize
if
(
!
isRightSize
)
{
if
(
!
isRightSize
)
{
// 压缩
// 压缩
...
...
web/src/style/main.scss
浏览文件 @
d1d719c6
...
@@ -653,7 +653,7 @@ li {
...
@@ -653,7 +653,7 @@ li {
color
:
#fff
;
color
:
#fff
;
}
}
.el-menu--inline
{
.el-menu--inline
{
border-left
:
5px
solid
#2c3b41
;
//
border-left: 5px solid #2c3b41;
}
}
}
}
.hideside
{
.hideside
{
...
@@ -810,9 +810,6 @@ li {
...
@@ -810,9 +810,6 @@ li {
padding
:
0
15px
;
padding
:
0
15px
;
border-left
:
1px
solid
#ebeef5
;
border-left
:
1px
solid
#ebeef5
;
border-right
:
1px
solid
#ebeef5
;
border-right
:
1px
solid
#ebeef5
;
.demo-form-inline
{
margin-bottom
:
10px
;
}
}
}
// table
// table
...
@@ -892,6 +889,14 @@ li {
...
@@ -892,6 +889,14 @@ li {
// upload-demo
// upload-demo
.upload-demo
,
.upload-demo
,
.upload
{
.upload
{
.upload-box
{
margin-bottom
:
12px
;
display
:
flex
;
justify-content
:
flex-end
;
.upload-btn
{
margin-left
:
12px
;
}
}
background-color
:
$white-bg
;
background-color
:
$white-bg
;
padding
:
15px
;
padding
:
15px
;
.el-upload-list__item-status-label
{
.el-upload-list__item-status-label
{
...
@@ -1019,6 +1024,7 @@ li {
...
@@ -1019,6 +1024,7 @@ li {
.main-cont.el-main
{
.main-cont.el-main
{
background-color
:
$bg-main
;
background-color
:
$bg-main
;
.menu-total
{
.menu-total
{
cursor
:
pointer
;
font-size
:
22px
;
font-size
:
22px
;
color
:
#838383
;
color
:
#838383
;
margin-top
:
16px
;
margin-top
:
16px
;
...
@@ -1042,7 +1048,12 @@ li {
...
@@ -1042,7 +1048,12 @@ li {
height
:
$height-nav-scroll
;
height
:
$height-nav-scroll
;
border
:
none
;
border
:
none
;
border-left
:
1px
solid
$border-color
;
border-left
:
1px
solid
$border-color
;
border-right
:
1px
solid
$border-color
;
+
.el-tabs__item
{
border-left
:
0px
solid
$border-color
;
}
}
}
.el-tabs__item.is-active
{
.el-tabs__item.is-active
{
background-color
:
rgba
(
64
,
158
,
255
,
.08
);
background-color
:
rgba
(
64
,
158
,
255
,
.08
);
}
}
...
@@ -1145,10 +1156,6 @@ $mainHight: 100vh;
...
@@ -1145,10 +1156,6 @@ $mainHight: 100vh;
}
}
}
}
.el-scrollbar__wrap
{
padding-bottom
:
17px
;
}
.layout-cont
{
.layout-cont
{
.right-box
{
.right-box
{
height
:
$height-header
;
height
:
$height-header
;
...
@@ -1174,10 +1181,6 @@ $mainHight: 100vh;
...
@@ -1174,10 +1181,6 @@ $mainHight: 100vh;
background-color
:
#fff
;
background-color
:
#fff
;
padding
:
0
;
padding
:
0
;
}
}
.fl-right
{
// height: $height-header;
// line-height: $height-header;
}
&
.el-main
{
&
.el-main
{
overflow
:
auto
;
overflow
:
auto
;
background
:
#fff
;
background
:
#fff
;
...
@@ -1186,6 +1189,8 @@ $mainHight: 100vh;
...
@@ -1186,6 +1189,8 @@ $mainHight: 100vh;
overflow
:
visible
;
overflow
:
visible
;
position
:
relative
;
position
:
relative
;
.menu-total
{
.menu-total
{
margin-left
:
6px
;
cursor
:
pointer
;
float
:
left
;
float
:
left
;
margin-top
:
10px
;
margin-top
:
10px
;
width
:
30px
;
width
:
30px
;
...
@@ -1201,7 +1206,7 @@ $mainHight: 100vh;
...
@@ -1201,7 +1206,7 @@ $mainHight: 100vh;
}
}
}
}
.el-menu-vertical
{
.el-menu-vertical
{
height
:
calc
(
100vh
-
6
4
px
)
!
important
;
height
:
calc
(
100vh
-
6
0
px
)
!
important
;
visibility
:
auto
;
visibility
:
auto
;
&
:not
(
.el-menu--collapse
)
{
&
:not
(
.el-menu--collapse
)
{
width
:
220px
;
width
:
220px
;
...
@@ -1397,6 +1402,15 @@ $mainHight: 100vh;
...
@@ -1397,6 +1402,15 @@ $mainHight: 100vh;
}
}
}
}
.gva-btn-list
{
margin-bottom
:
12px
;
display
:
flex
;
justify-content
:
flex-end
;
.el-button
+
.el-button
{
margin-left
:
12px
;
}
}
::-webkit-scrollbar-track-piece
{
::-webkit-scrollbar-track-piece
{
background-color
:
#f8f8f8
;
background-color
:
#f8f8f8
;
}
}
...
...
web/src/view/example/customer/customer.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"search-term"
>
<div
class=
"search-term"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<div
class=
"gva-btn-list"
>
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog"
>
新增
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"openDialog"
>
新增
</el-button>
</div>
</el-form-item>
</el-form>
</div>
</div>
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
...
@@ -156,5 +154,4 @@ export default {
...
@@ -156,5 +154,4 @@ export default {
}
}
</
script
>
</
script
>
<
style
>
<
style
></
style
>
</
style
>
web/src/view/example/excel/excel.vue
浏览文件 @
d1d719c6
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
:on-success="loadExcel"
:on-success="loadExcel"
:show-file-list="false"
:show-file-list="false"
>
>
<el-button
size=
"
small
"
type=
"primary"
icon=
"el-icon-upload2"
>
导入
</el-button>
<el-button
size=
"
mini
"
type=
"primary"
icon=
"el-icon-upload2"
>
导入
</el-button>
</el-upload>
</el-upload>
<el-button
class=
"excel-btn"
size=
"
small
"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleExcelExport('ExcelExport.xlsx')"
>
导出
</el-button>
<el-button
class=
"excel-btn"
size=
"
mini
"
type=
"primary"
icon=
"el-icon-download"
@
click=
"handleExcelExport('ExcelExport.xlsx')"
>
导出
</el-button>
<el-button
class=
"excel-btn"
size=
"
small
"
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"
border
row-key=
"ID"
stripe
>
<el-table
:data=
"tableData"
border
row-key=
"ID"
stripe
>
<el-table-column
label=
"ID"
min-width=
"100"
prop=
"ID"
/>
<el-table-column
label=
"ID"
min-width=
"100"
prop=
"ID"
/>
...
@@ -74,6 +74,7 @@ export default {
...
@@ -74,6 +74,7 @@ export default {
.btn-list
{
.btn-list
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
12px
;
margin-bottom
:
12px
;
justify-content
:
flex-end
;
.excel-btn
+
.excel-btn
{
.excel-btn
+
.excel-btn
{
margin-left
:
12px
;
margin-left
:
12px
;
}
}
...
...
web/src/view/example/upload/upload.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div
v-loading.fullscreen.lock=
"fullscreenLoading"
>
<div
v-loading.fullscreen.lock=
"fullscreenLoading"
>
<div
class=
"upload"
>
<div
class=
"upload"
>
<el-row>
<div
class=
"upload-box"
>
<el-col
:span=
"12"
>
<el-upload
<el-upload
:action=
"`$
{path}/fileUploadAndDownload/upload`"
:action=
"`$
{path}/fileUploadAndDownload/upload`"
:before-upload="checkFile"
:before-upload="checkFile"
:headers="{ 'x-token': token }"
:headers="{ 'x-token': token }"
:on-error="uploadError"
:on-error="uploadError"
:on-success="uploadSuccess"
:on-success="uploadSuccess"
:show-file-list="false"
:show-file-list="false"
class="upload-btn"
>
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<el-button
size=
"mini"
type=
"primary"
>
普通上传
</el-button>
<template
#tip
>
</el-upload>
<div
class=
"el-upload__tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
<upload-image
</
template
>
v-model=
"imageUrl"
</el-upload>
:file-size=
"512"
</el-col>
:max-w-h=
"1080"
<el-col
:span=
"12"
>
class=
"upload-btn"
带压缩的上传, (512(k)为压缩限制)
@
on-success=
"getTableData"
<upload-image
v-model=
"imageUrl"
:file-size=
"512"
:max-w-h=
"1080"
@
on-success=
"getTableData"
/>
/>
已上传文件 {{ imageUrl }}
</div>
</el-col>
</el-row>
<el-table
:data=
"tableData"
border
stripe
>
<el-table
:data=
"tableData"
border
stripe
>
<el-table-column
label=
"预览"
width=
"100"
>
<el-table-column
label=
"预览"
width=
"100"
>
...
@@ -127,13 +125,13 @@ export default {
...
@@ -127,13 +125,13 @@ export default {
this
.
fullscreenLoading
=
true
this
.
fullscreenLoading
=
true
const
isJPG
=
file
.
type
===
'
image/jpeg
'
const
isJPG
=
file
.
type
===
'
image/jpeg
'
const
isPng
=
file
.
type
===
'
image/png
'
const
isPng
=
file
.
type
===
'
image/png
'
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
const
isLt2M
=
file
.
size
/
1024
/
1024
<
0.5
if
(
!
isJPG
&&
!
isPng
)
{
if
(
!
isJPG
&&
!
isPng
)
{
this
.
$message
.
error
(
'
上传
头像图片只能是 JPG
或png 格式!
'
)
this
.
$message
.
error
(
'
上传
图片只能是 jpg
或png 格式!
'
)
this
.
fullscreenLoading
=
false
this
.
fullscreenLoading
=
false
}
}
if
(
!
isLt2M
)
{
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'
上传头像图片大小不能超过 2MB!
'
)
this
.
$message
.
error
(
'
未压缩未见上传图片大小不能超过 500KB,请使用压缩上传
'
)
this
.
fullscreenLoading
=
false
this
.
fullscreenLoading
=
false
}
}
return
(
isPng
||
isJPG
)
&&
isLt2M
return
(
isPng
||
isJPG
)
&&
isLt2M
...
...
web/src/view/layout/aside/index.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<el-scrollbar
style=
"height:calc(100vh - 6
4
px)"
>
<el-scrollbar
style=
"height:calc(100vh - 6
0
px)"
>
<transition
:duration=
"
{ enter: 800, leave: 100 }" mode="out-in" name="el-fade-in-linear">
<transition
:duration=
"
{ enter: 800, leave: 100 }" mode="out-in" name="el-fade-in-linear">
<el-menu
<el-menu
:collapse=
"isCollapse"
:collapse=
"isCollapse"
...
...
web/src/view/layout/setting/index.vue
浏览文件 @
d1d719c6
...
@@ -89,8 +89,12 @@ export default {
...
@@ -89,8 +89,12 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.drawer-container
{
.drawer-container
{
transition
:
all
0
.2s
;
&
:hover
{
right
:
0
}
position
:
fixed
;
position
:
fixed
;
right
:
0
;
right
:
-20px
;
bottom
:
15%
;
bottom
:
15%
;
height
:
40px
;
height
:
40px
;
width
:
40px
;
width
:
40px
;
...
...
web/src/view/superAdmin/api/api.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"search-term"
>
<div
class=
"search-term"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
>
<el-form-item
label=
"路径"
>
<el-form-item
label=
"路径"
>
<el-input
v-model=
"searchInfo.path"
placeholder=
"路径"
/>
<el-input
v-model=
"searchInfo.path"
placeholder=
"路径"
/>
</el-form-item>
</el-form-item>
...
@@ -21,21 +21,21 @@
...
@@ -21,21 +21,21 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog('addApi')"
>
新增
</el-button>
<el-popover
v-model:visible=
"deleteVisible"
placement=
"top"
width=
"160"
>
<p>
确定要删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"deleteVisible = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"onDelete"
>
确定
</el-button>
</div>
<template
#reference
>
<el-button
icon=
"el-icon-delete"
size=
"mini"
type=
"danger"
style=
"margin-left: 10px;"
>
批量删除
</el-button>
</
template
>
</el-popover>
</el-form-item>
</el-form>
</el-form>
<div
class=
"gva-btn-list"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog('addApi')"
>
新增
</el-button>
<el-popover
v-model:visible=
"deleteVisible"
placement=
"top"
width=
"160"
>
<p>
确定要删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"deleteVisible = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"onDelete"
>
确定
</el-button>
</div>
<template
#reference
>
<el-button
icon=
"el-icon-delete"
size=
"mini"
type=
"danger"
style=
"margin-left: 10px;"
>
批量删除
</el-button>
</
template
>
</el-popover>
</div>
</div>
</div>
<el-table
:data=
"tableData"
border
stripe
@
sort-change=
"sortChange"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"tableData"
border
stripe
@
sort-change=
"sortChange"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
<el-table-column
...
...
web/src/view/superAdmin/authority/authority.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div
class=
"authority"
>
<div
class=
"authority"
>
<div
class=
"
button-box clearflex
"
>
<div
class=
"
gva-btn-list
"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"addAuthority('0')"
>
新增角色
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"addAuthority('0')"
>
新增角色
</el-button>
</div>
</div>
<el-table
<el-table
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
>
>
<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
label=
"角色名称"
min-width=
"180"
prop=
"authorityName"
/>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"460"
>
<el-table-column
label=
"操作"
width=
"460"
>
<template
#default
="
scope
"
>
<template
#default
="
scope
"
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"opdendrawer(scope.row)"
>
设置权限
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"opdendrawer(scope.row)"
>
设置权限
</el-button>
<el-button
<el-button
...
@@ -369,16 +369,10 @@ export default {
...
@@ -369,16 +369,10 @@ export default {
display
:
none
;
display
:
none
;
}
}
}
}
.button-box
{
padding
:
10px
20px
;
.el-button
{
float
:
right
;
}
}
}
}
.role-box
{
.role-box
{
.el-tabs__content
{
.el-tabs__content
{
height
:
calc
(
100vh
-
150
px
);
height
:
calc
(
100vh
-
72
px
);
overflow
:
auto
;
overflow
:
auto
;
}
}
}
}
...
...
web/src/view/superAdmin/authority/components/apis.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"clearflex"
>
<div
class=
"clearflex"
>
<el-button
class=
"fl-right"
size=
"
small
"
type=
"primary"
@
click=
"authApiEnter"
>
确 定
</el-button>
<el-button
class=
"fl-right"
size=
"
mini
"
type=
"primary"
@
click=
"authApiEnter"
>
确 定
</el-button>
</div>
</div>
<el-tree
<el-tree
ref=
"apiTree"
ref=
"apiTree"
...
...
web/src/view/superAdmin/authority/components/datas.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"clearflex"
style=
"margin:18px"
>
<div
class=
"clearflex"
style=
"margin:18px"
>
<el-button
class=
"fl-right"
size=
"
small
"
type=
"primary"
@
click=
"authDataEnter"
>
确 定
</el-button>
<el-button
class=
"fl-right"
size=
"
mini
"
type=
"primary"
@
click=
"authDataEnter"
>
确 定
</el-button>
<el-button
class=
"fl-left"
size=
"
small
"
type=
"primary"
@
click=
"all"
>
全选
</el-button>
<el-button
class=
"fl-left"
size=
"
mini
"
type=
"primary"
@
click=
"all"
>
全选
</el-button>
<el-button
class=
"fl-left"
size=
"
small
"
type=
"primary"
@
click=
"self"
>
本角色
</el-button>
<el-button
class=
"fl-left"
size=
"
mini
"
type=
"primary"
@
click=
"self"
>
本角色
</el-button>
<el-button
class=
"fl-left"
size=
"
small
"
type=
"primary"
@
click=
"selfAndChildren"
>
本角色及子角色
</el-button>
<el-button
class=
"fl-left"
size=
"
mini
"
type=
"primary"
@
click=
"selfAndChildren"
>
本角色及子角色
</el-button>
</div>
</div>
<el-checkbox-group
v-model=
"dataAuthorityId"
@
change=
"selectAuthority"
>
<el-checkbox-group
v-model=
"dataAuthorityId"
@
change=
"selectAuthority"
>
<el-checkbox
v-for=
"(item,key) in authoritys"
:key=
"key"
:label=
"item"
>
{{
item
.
authorityName
}}
</el-checkbox>
<el-checkbox
v-for=
"(item,key) in authoritys"
:key=
"key"
:label=
"item"
>
{{
item
.
authorityName
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<span>
此功能仅用于创建角色和角色的many2many关系表,具体使用还须自己结合表实现业务,详情参考示例代码(客户示例)
</span>
</div>
</div>
</
template
>
</
template
>
...
...
web/src/view/superAdmin/authority/components/menus.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"clearflex"
>
<div
class=
"clearflex"
>
<el-button
class=
"fl-right"
size=
"
small
"
type=
"primary"
@
click=
"relation"
>
确 定
</el-button>
<el-button
class=
"fl-right"
size=
"
mini
"
type=
"primary"
@
click=
"relation"
>
确 定
</el-button>
</div>
</div>
<el-tree
<el-tree
ref=
"menuTree"
ref=
"menuTree"
...
...
web/src/view/superAdmin/dictionary/sysDictionary.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"search-term"
>
<div
class=
"search-term"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
>
<el-form-item
label=
"字典名(中)"
>
<el-form-item
label=
"字典名(中)"
>
<el-input
v-model=
"searchInfo.name"
placeholder=
"搜索条件"
/>
<el-input
v-model=
"searchInfo.name"
placeholder=
"搜索条件"
/>
</el-form-item>
</el-form-item>
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
<el-form-item
label=
"描述"
>
<el-form-item
label=
"描述"
>
<el-input
v-model=
"searchInfo.desc"
placeholder=
"搜索条件"
/>
<el-input
v-model=
"searchInfo.desc"
placeholder=
"搜索条件"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog"
>
新增
</el-button>
</el-form-item>
</el-form>
</el-form>
<div
class=
"gva-btn-list"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog"
>
新增
</el-button>
</div>
</div>
</div>
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
...
...
web/src/view/superAdmin/dictionary/sysDictionaryDetail.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"search-term"
>
<div
class=
"search-term"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
>
<el-form-item
label=
"展示值"
>
<el-form-item
label=
"展示值"
>
<el-input
v-model=
"searchInfo.label"
placeholder=
"搜索条件"
/>
<el-input
v-model=
"searchInfo.label"
placeholder=
"搜索条件"
/>
</el-form-item>
</el-form-item>
...
@@ -14,13 +14,11 @@
...
@@ -14,13 +14,11 @@
<el-option
key=
"false"
label=
"否"
value=
"false"
/>
<el-option
key=
"false"
label=
"否"
value=
"false"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
</el-form-item>
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog"
>
新增字典项
</el-button>
</el-form-item>
</el-form>
</el-form>
<div
class=
"gva-btn-list"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"openDialog"
>
新增字典项
</el-button>
</div>
</div>
</div>
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
...
...
web/src/view/superAdmin/menu/menu.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"
button-box clearflex
"
>
<div
class=
"
gva-btn-list
"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"addMenu('0')"
>
新增根菜单
</el-button>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"addMenu('0')"
>
新增根菜单
</el-button>
</div>
</div>
...
@@ -413,12 +413,6 @@ export default {
...
@@ -413,12 +413,6 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.button-box
{
padding
:
10px
20px
;
.el-button
{
float
:
right
;
}
}
.warning
{
.warning
{
color
:
#dc143c
;
color
:
#dc143c
;
}
}
...
...
web/src/view/superAdmin/operation/sysOperationRecord.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"search-term"
>
<div
class=
"search-term"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
>
<el-form-item
label=
"请求方法"
>
<el-form-item
label=
"请求方法"
>
<el-input
v-model=
"searchInfo.method"
placeholder=
"搜索条件"
/>
<el-input
v-model=
"searchInfo.method"
placeholder=
"搜索条件"
/>
</el-form-item>
</el-form-item>
...
@@ -11,20 +11,20 @@
...
@@ -11,20 +11,20 @@
<el-form-item
label=
"结果状态码"
>
<el-form-item
label=
"结果状态码"
>
<el-input
v-model=
"searchInfo.status"
placeholder=
"搜索条件"
/>
<el-input
v-model=
"searchInfo.status"
placeholder=
"搜索条件"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-popover
v-model:visible=
"deleteVisible"
placement=
"top"
width=
"160"
>
<p>
确定要删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"deleteVisible = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"onDelete"
>
确定
</el-button>
</div>
<template
#reference
>
<el-button
icon=
"el-icon-delete"
size=
"mini"
type=
"danger"
style=
"margin-left: 10px;"
>
批量删除
</el-button>
</
template
>
</el-popover>
</el-form-item>
</el-form>
</el-form>
<div
class=
"gva-btn-list"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-search"
@
click=
"onSubmit"
>
查询
</el-button>
<el-popover
v-model:visible=
"deleteVisible"
placement=
"top"
width=
"160"
>
<p>
确定要删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"deleteVisible = false"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"onDelete"
>
确定
</el-button>
</div>
<template
#reference
>
<el-button
icon=
"el-icon-delete"
size=
"mini"
type=
"danger"
style=
"margin-left: 10px;"
>
批量删除
</el-button>
</
template
>
</el-popover>
</div>
</div>
</div>
<el-table
<el-table
ref=
"multipleTable"
ref=
"multipleTable"
...
...
web/src/view/superAdmin/user/user.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"
button-box clearflex
"
>
<div
class=
"
gva-btn-list
"
>
<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"
border
stripe
>
<el-table
:data=
"tableData"
border
stripe
>
...
@@ -242,13 +242,6 @@ export default {
...
@@ -242,13 +242,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.button-box
{
padding
:
10px
20px
;
.el-button
{
float
:
right
;
}
}
.user-dialog
{
.user-dialog
{
.header-img-box
{
.header-img-box
{
width
:
200px
;
width
:
200px
;
...
...
web/src/view/systemTools/autoCode/index.vue
浏览文件 @
d1d719c6
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<!-- 组件列表 -->
<!-- 组件列表 -->
<div
class=
"
button-box clearflex
"
>
<div
class=
"
gva-btn-list
"
>
<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"
border
stripe
>
<el-table
:data=
"form.fields"
border
stripe
>
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
</el-table>
</el-table>
<el-tag
type=
"danger"
>
id , created_at , updated_at , deleted_at 会自动生成请勿重复创建
</el-tag>
<el-tag
type=
"danger"
>
id , created_at , updated_at , deleted_at 会自动生成请勿重复创建
</el-tag>
<!-- 组件列表 -->
<!-- 组件列表 -->
<div
class=
"
button-box clearflex
"
>
<div
class=
"
gva-btn-list
"
>
<el-button
size=
"mini"
type=
"primary"
@
click=
"enterForm(true)"
>
预览代码
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"enterForm(true)"
>
预览代码
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"enterForm(false)"
>
生成代码
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"enterForm(false)"
>
生成代码
</el-button>
</div>
</div>
...
...
web/src/view/systemTools/autoCodeAdmin/index.vue
浏览文件 @
d1d719c6
<
template
>
<
template
>
<div>
<div>
<div
class=
"search-term"
>
<div
class=
"search-term"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<div
class=
"gva-btn-list"
>
<el-form-item
label=
"表名"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"goAutoCode(null)"
>
新增
</el-button>
<el-input
v-model=
"searchInfo.tableName"
placeholder=
"表名"
/>
</div>
</el-form-item>
<el-form-item
label=
"结构体名称"
>
<el-input
v-model=
"searchInfo.structName"
placeholder=
"结构体名称"
/>
</el-form-item>
<el-form-item>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"goAutoCode(null)"
>
新增
</el-button>
</el-form-item>
</el-form>
</div>
</div>
<el-table
:data=
"tableData"
border
stripe
>
<el-table
:data=
"tableData"
border
stripe
>
<el-table-column
<el-table-column
...
...
web/src/view/systemTools/system/system.vue
浏览文件 @
d1d719c6
...
@@ -299,12 +299,11 @@
...
@@ -299,12 +299,11 @@
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<!-- ossType end -->
<!-- ossType end -->
<el-form-item>
<el-button
type=
"primary"
@
click=
"update"
>
立即更新
</el-button>
<el-button
type=
"primary"
@
click=
"reload"
>
重启服务(开发中)
</el-button>
</el-form-item>
</el-form>
</el-form>
<div
class=
"gva-btn-list"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"update"
>
立即更新
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"reload"
>
重启服务(开发中)
</el-button>
</div>
</div>
</div>
</template>
</template>
...
@@ -378,7 +377,7 @@ export default {
...
@@ -378,7 +377,7 @@ export default {
padding
:
10px
;
padding
:
10px
;
margin
:
10px
0
;
margin
:
10px
0
;
font-size
:
16px
;
font-size
:
16px
;
box-shadow
:
-4px
1px
3
px
0px
#e7e8e8
;
box-shadow
:
-4px
0px
0
px
0px
#e7e8e8
;
}
}
}
}
</
style
>
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录