Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陈婉清
/
temp-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 27ffe6ef
authored
Jan 02, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
全局size,small
1 parent
a4d5ae21
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
12 deletions
src/api/sys.account.js
src/plugin/d2admin/index.js
src/router/routes.js
src/store/modules/d2admin/modules/account.js
src/store/modules/d2admin/modules/size.js
src/views/table2/index.vue
src/api/sys.account.js
View file @
27ffe6e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: limin
* @Author: limin
* @Date: 2019-08-26 18:02:55
* @Date: 2019-08-26 18:02:55
* @Last Modified by: chenwq
* @Last Modified by: chenwq
* @Last Modified time: 202
0-12-14 10:51:11
* @Last Modified time: 202
1-01-02 14:05:46
*/
*/
import
request
from
'./request'
import
request
from
'./request'
...
@@ -26,7 +26,7 @@ export function AccountLogin(data) {
...
@@ -26,7 +26,7 @@ export function AccountLogin(data) {
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
resolve
({
resolve
({
roleType
:
1
,
roleType
:
1
,
userName
:
'
wxw
'
,
userName
:
'
admin
'
,
loginName
:
'foutouren'
,
loginName
:
'foutouren'
,
authes
:
[]
authes
:
[]
})
})
...
...
src/plugin/d2admin/index.js
View file @
27ffe6e
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
// 事件传递
// 事件传递
Vue
.
prototype
.
$event
=
new
Vue
()
Vue
.
prototype
.
$event
=
new
Vue
()
// Element
// Element
Vue
.
use
(
ElementUI
,
{
size
:
'
medium
'
,
zIndex
:
3000
})
Vue
.
use
(
ElementUI
,
{
size
:
'
small
'
,
zIndex
:
3000
})
// 插件
// 插件
Vue
.
use
(
pluginError
)
Vue
.
use
(
pluginError
)
Vue
.
use
(
pluginOpen
)
Vue
.
use
(
pluginOpen
)
...
...
src/router/routes.js
View file @
27ffe6e
...
@@ -101,7 +101,7 @@ export const resources = {
...
@@ -101,7 +101,7 @@ export const resources = {
parentId
:
'10201'
,
parentId
:
'10201'
,
label
:
'添加'
,
label
:
'添加'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'
button
'
,
type
:
'
primary
'
,
handle
:
'handleEdit'
,
handle
:
'handleEdit'
,
icon
:
'plus'
icon
:
'plus'
},
{
},
{
...
@@ -109,7 +109,6 @@ export const resources = {
...
@@ -109,7 +109,6 @@ export const resources = {
parentId
:
'10201'
,
parentId
:
'10201'
,
label
:
'批量操作'
,
label
:
'批量操作'
,
category
:
'Button'
,
category
:
'Button'
,
type
:
'button'
,
handle
:
'handleOperate'
handle
:
'handleOperate'
}]
}]
},
},
...
...
src/store/modules/d2admin/modules/account.js
View file @
27ffe6e
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
root
:
true
root
:
true
})
})
// DB -> store 持久化数据加载全局尺寸
// DB -> store 持久化数据加载全局尺寸
await
dispatch
(
'd2admin/size/load'
,
'
mini
'
,
{
await
dispatch
(
'd2admin/size/load'
,
'
small
'
,
{
root
:
true
root
:
true
})
})
// DB - > 初始化 基础数据
// DB - > 初始化 基础数据
...
...
src/store/modules/d2admin/modules/size.js
View file @
27ffe6e
import
Vue
from
'vue'
import
Vue
from
'vue'
import
router
from
'@/router'
import
router
from
'@/router'
const
size
=
'
medium
'
// medium small mini
const
size
=
'
small
'
// medium small mini
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
state
:
{
state
:
{
...
...
src/views/table2/index.vue
View file @
27ffe6e
...
@@ -8,21 +8,29 @@
...
@@ -8,21 +8,29 @@
slot=
"header"
slot=
"header"
>
>
<el-form-item
label=
"名称"
>
<el-form-item
label=
"名称"
>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入名称"
clearable
></el-input>
<el-input
v-model=
"searchForm.keyWord"
placeholder=
"请输入名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"getList"
>
查询
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<d2-table-header
title=
"物料列表"
></d2-table-header>
<d2-table-header
title=
"物料列表"
></d2-table-header>
<d2-table
<d2-table
ref=
"table"
ref=
"table"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:tableData=
"tableData"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:tableTotal=
"tableTotal"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
@
refreshTable=
"getList"
></d2-table>
></d2-table>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -77,6 +85,7 @@ export default {
...
@@ -77,6 +85,7 @@ export default {
mounted
()
{
mounted
()
{
this
.
getList
()
this
.
getList
()
console
.
log
(
this
.
$store
.
state
.
d2admin
.
size
.
value
)
},
},
methods
:
{
methods
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment