Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
8210a39d
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
334
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,发现更多精彩内容 >>
提交
8210a39d
编写于
10月 25, 2019
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上传下载前端页面搭建 欢迎词修改 mixin文件位置修改
上级
9056b319
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
89 addition
and
11 deletion
+89
-11
QMPlusServer/main.go
QMPlusServer/main.go
+1
-0
QMPlusVuePage/src/components/mixins/infoList.js
QMPlusVuePage/src/components/mixins/infoList.js
+0
-0
QMPlusVuePage/src/view/example/form/form.vue
QMPlusVuePage/src/view/example/form/form.vue
+1
-1
QMPlusVuePage/src/view/example/table/table.vue
QMPlusVuePage/src/view/example/table/table.vue
+2
-2
QMPlusVuePage/src/view/example/upload/upload.vue
QMPlusVuePage/src/view/example/upload/upload.vue
+81
-4
QMPlusVuePage/src/view/superAdmin/api/api.vue
QMPlusVuePage/src/view/superAdmin/api/api.vue
+1
-1
QMPlusVuePage/src/view/superAdmin/authority/authority.vue
QMPlusVuePage/src/view/superAdmin/authority/authority.vue
+1
-1
QMPlusVuePage/src/view/superAdmin/menu/menu.vue
QMPlusVuePage/src/view/superAdmin/menu/menu.vue
+1
-1
QMPlusVuePage/src/view/superAdmin/user/user.vue
QMPlusVuePage/src/view/superAdmin/user/user.vue
+1
-1
未找到文件。
QMPlusServer/main.go
浏览文件 @
8210a39d
...
...
@@ -32,6 +32,7 @@ func main() {
WriteTimeout
:
10
*
time
.
Second
,
MaxHeaderBytes
:
1
<<
20
,
}
time
.
Sleep
(
10
*
time
.
Microsecond
)
fmt
.
Printf
(
`欢迎使用 Gin-Vue-Admin
作者:奇淼 And Spike666
微信:shouzi_1994
...
...
QMPlusVuePage/src/
view/superAdmin
/mixins/infoList.js
→
QMPlusVuePage/src/
components
/mixins/infoList.js
浏览文件 @
8210a39d
文件已移动
QMPlusVuePage/src/view/example/form/form.vue
浏览文件 @
8210a39d
...
...
@@ -59,7 +59,7 @@
export
default
{
data
()
{
const
generateData
=
_
=>
{
const
generateData
=
()
=>
{
const
data
=
[];
const
cities
=
[
'
上海
'
,
'
北京
'
,
'
广州
'
,
'
深圳
'
,
'
南京
'
,
'
西安
'
,
'
成都
'
];
const
pinyin
=
[
'
shanghai
'
,
'
beijing
'
,
'
guangzhou
'
,
'
shenzhen
'
,
'
nanjing
'
,
'
xian
'
,
'
chengdu
'
];
...
...
QMPlusVuePage/src/view/example/table/table.vue
浏览文件 @
8210a39d
...
...
@@ -18,12 +18,12 @@
<el-table-column
label=
"年龄"
prop=
"age"
width=
"120"
></el-table-column>
<el-table-column
label=
"住址"
prop=
"address"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"是否禁用"
prop=
"switch"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-switch
active-text=
"开启"
inactive-text=
"禁用"
v-model=
"scope.row.switch"
></el-switch>
</
template
>
</el-table-column>
<el-table-column
label=
"按钮组"
>
<
template
scope=
"scope"
>
<
template
s
lot-s
cope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"toggleSelection([scope.row])"
>
按钮1
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"toggleSelection([scope.row])"
>
按钮2
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"toggleSelection([scope.row])"
>
按钮3
</el-button>
...
...
QMPlusVuePage/src/view/example/upload/upload.vue
浏览文件 @
8210a39d
<
template
>
<div>
上传下载示例
</div>
<div>
<template>
<el-upload
:file-list=
"fileList"
:headers=
"
{'x-token':token}"
:show-file-list="false"
@before-upload="checkFile"
@on-error="uploadError"
@on-success="uploadSuccess"
action="https://jsonplaceholder.typicode.com/posts/"
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
class=
"el-upload__tip"
slot=
"tip"
>
只能上传jpg/png文件,且不超过500kb
</div>
</el-upload>
<el-table
:data=
"tableData"
border
stripe
>
<el-table-column
label=
"预览"
width=
"100"
>
<template
slot-scope=
"scope"
>
<img
:alt=
"scope.row.alt"
width=
"80"
height=
"80"
:src=
"scope.row.url"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"日期"
prop=
"date"
width=
"180"
></el-table-column>
<el-table-column
label=
"文件名"
prop=
"name"
width=
"180"
>
</el-table-column>
<el-table-column
:formatter=
"formatter"
label=
"链接"
prop=
"url"
></el-table-column>
<el-table-column
label=
"标签"
prop=
"tag"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-tag
:type=
"scope.row.tag === 'jpg' ? 'primary' : 'success'"
disable-transitions
>
{{
scope
.
row
.
tag
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"small"
type=
"text"
@
click=
"downloadFile(scope.row)"
>
下载
</el-button>
</
template
>
</el-table-column>
</el-table>
</template>
</div>
</template>
<
script
>
import
{
mapGetters
}
from
'
vuex
'
import
infoList
from
'
@/components/mixins/infoList
'
export
default
{
name
:
'
Upload
'
name
:
'
Upload
'
,
mixins
:
[
infoList
],
data
()
{
return
{
tableData
:
[
{
date
:
'
2019-10-25
'
,
name
:
'
文件名.jpg
'
,
url
:
'
http://qmplusimg.henrongyi.top/1571321688timg.jpg
'
,
tag
:
'
jpg
'
},
{
date
:
'
2019-10-25
'
,
name
:
'
文件名.jpg
'
,
url
:
'
http://qmplusimg.henrongyi.top/157162774820191015140921496.gif
'
,
tag
:
'
gif
'
}
]
}
},
computed
:
{
...
mapGetters
(
'
user
'
,
[
'
userInfo
'
,
'
token
'
])
},
methods
:
{
checkFile
(
file
)
{
const
isJPG
=
file
.
type
===
'
image/jpeg
'
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
if
(
!
isJPG
)
{
this
.
$message
.
error
(
'
上传头像图片只能是 JPG 格式!
'
)
}
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'
上传头像图片大小不能超过 2MB!
'
)
}
return
isJPG
&&
isLt2M
},
downloadFile
(){
}
}
}
</
script
>
\ No newline at end of file
QMPlusVuePage/src/view/superAdmin/api/api.vue
浏览文件 @
8210a39d
...
...
@@ -57,7 +57,7 @@ import {
updataApi
,
deleteApi
}
from
'
@/api/api
'
import
infoList
from
'
@/
view/superAdmin
/mixins/infoList
'
import
infoList
from
'
@/
components
/mixins/infoList
'
export
default
{
name
:
'
Api
'
,
...
...
QMPlusVuePage/src/view/superAdmin/authority/authority.vue
浏览文件 @
8210a39d
...
...
@@ -91,7 +91,7 @@ import {
}
from
'
@/api/authority
'
import
{
getBaseMenuTree
,
addMenuAuthority
,
getMenuAuthority
}
from
'
@/api/menu
'
import
{
getAllApis
,
getAuthAndApi
,
setAuthAndApi
}
from
'
@/api/api
'
import
infoList
from
'
@/
view/superAdmin
/mixins/infoList
'
import
infoList
from
'
@/
components
/mixins/infoList
'
export
default
{
name
:
'
Authority
'
,
mixins
:
[
infoList
],
...
...
QMPlusVuePage/src/view/superAdmin/menu/menu.vue
浏览文件 @
8210a39d
...
...
@@ -88,7 +88,7 @@ import {
deleteBaseMenu
,
getBaseMenuById
}
from
'
@/api/menu
'
import
infoList
from
'
@/
view/superAdmin
/mixins/infoList
'
import
infoList
from
'
@/
components
/mixins/infoList
'
export
default
{
name
:
'
Menus
'
,
mixins
:
[
infoList
],
...
...
QMPlusVuePage/src/view/superAdmin/user/user.vue
浏览文件 @
8210a39d
...
...
@@ -40,7 +40,7 @@
<
script
>
// 获取列表内容封装在mixins内部 getTableData方法 初始化已封装完成
import
{
getUserList
,
setUserAuthority
}
from
'
@/api/user
'
import
infoList
from
'
@/
view/superAdmin
/mixins/infoList
'
import
infoList
from
'
@/
components
/mixins/infoList
'
export
default
{
name
:
'
Api
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录