Commit 27ffe6ef by cwq0219

全局size,small

1 parent a4d5ae21
......@@ -2,7 +2,7 @@
* @Author: limin
* @Date: 2019-08-26 18:02:55
* @Last Modified by: chenwq
* @Last Modified time: 2020-12-14 10:51:11
* @Last Modified time: 2021-01-02 14:05:46
*/
import request from './request'
......@@ -26,7 +26,7 @@ export function AccountLogin(data) {
return new Promise(resolve => {
resolve({
roleType: 1,
userName: 'wxw',
userName: 'admin',
loginName: 'foutouren',
authes: []
})
......
......@@ -33,7 +33,7 @@ export default {
// 事件传递
Vue.prototype.$event = new Vue()
// Element
Vue.use(ElementUI, { size: 'medium', zIndex: 3000 })
Vue.use(ElementUI, { size: 'small', zIndex: 3000 })
// 插件
Vue.use(pluginError)
Vue.use(pluginOpen)
......
......@@ -101,7 +101,7 @@ export const resources = {
parentId: '10201',
label: '添加',
category: 'Button',
type: 'button',
type: 'primary',
handle: 'handleEdit',
icon: 'plus'
}, {
......@@ -109,7 +109,6 @@ export const resources = {
parentId: '10201',
label: '批量操作',
category: 'Button',
type: 'button',
handle: 'handleOperate'
}]
},
......
......@@ -112,7 +112,7 @@ export default {
root: true
})
// DB -> store 持久化数据加载全局尺寸
await dispatch('d2admin/size/load', 'mini', {
await dispatch('d2admin/size/load', 'small', {
root: true
})
// DB - > 初始化 基础数据
......
import Vue from 'vue'
import router from '@/router'
const size = 'medium' // medium small mini
const size = 'small' // medium small mini
export default {
namespaced: true,
state: {
......
......@@ -8,21 +8,29 @@
slot="header"
>
<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-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>
<d2-table-header title="物料列表"></d2-table-header>
<d2-table
<d2-table-header title="物料列表"></d2-table-header>
<d2-table
ref="table"
:searchForm="searchForm"
:tableData="tableData"
:tableTotal="tableTotal"
:tableParams="tableParams"
@refreshTable="getList"
></d2-table>
></d2-table>
</d2-container>
</template>
......@@ -77,6 +85,7 @@ export default {
mounted() {
this.getList()
console.log(this.$store.state.d2admin.size.value)
},
methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!