Commit eb3fc0e2 authored by CenXinYi's avatar CenXinYi

修改字典和出入库记录按钮样式

Signed-off-by: 's avatarCenXinYi <2810162984@qq.com>
parent 13e3bd34
...@@ -536,7 +536,6 @@ export default { ...@@ -536,7 +536,6 @@ export default {
var fq = { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy } var fq = { fqYs, fqBz, fqDbxi, fqDd, fqMcode, fqYy }
this.singleDetails = Object.assign({}, { ...row }, { ...fq }) this.singleDetails = Object.assign({}, { ...row }, { ...fq })
} }
} }
) )
} }
...@@ -593,9 +592,15 @@ export default { ...@@ -593,9 +592,15 @@ export default {
} }
} }
} }
/* TODO: 定义按钮样式 */
.el-button{
padding: 8px 7px;
}
} }
} }
/* TODO: 专门用来解决el-input边框的问题 */ /* TODO: 专门用来解决el-input边框的问题 */
.aboutSingleDetails{ .aboutSingleDetails{
.el-form{ .el-form{
......
...@@ -484,6 +484,10 @@ export default { ...@@ -484,6 +484,10 @@ export default {
width: 180px width: 180px
} }
} }
/* TODO: 定义按钮样式 */
.el-button{
padding: 8px 7px;
}
} }
} }
} }
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form v-show="showSearch" ref="queryForm" style="width: 100%" :model="queryParams" :inline="true"> <el-form v-show="showSearch" ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true">
<el-form-item label="字典名称" prop="dictType"> <el-form-item label="字典名称" prop="dictType">
<el-select v-model="queryParams.dictType" placeholder="请选择字典名称" clearable size="small"> <el-select v-model="queryParams.dictType" placeholder="请选择字典名称" clearable size="small">
<el-option <el-option
...@@ -35,10 +35,11 @@ ...@@ -35,10 +35,11 @@
<el-button type="primary" size="small" @click="handleQuery">搜索</el-button> <el-button type="primary" size="small" @click="handleQuery">搜索</el-button>
<el-button size="small" @click="resetQuery">重置</el-button> <el-button size="small" @click="resetQuery">重置</el-button>
</el-form-item> </el-form-item>
</el-form> <div style="float: right; padding:3px 15px;">
<el-row :gutter="10" class="mb8"> <el-row :gutter="10">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
style="padding: 8px 7px;"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
...@@ -46,39 +47,13 @@ ...@@ -46,39 +47,13 @@
>新增 >新增
</el-button> </el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="success"
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
v-has-permi="['sys:dict:export']"
type="warning"
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出
</el-button>
</el-col>
<right-toolbar :show-search.sync="showSearch" @queryTable="getList" /> <right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
</el-row> </el-row>
</div>
</el-form>
<div class="placeholder" /> <div class="placeholder" />
<div style="padding:10px"> <div style="padding:10px">
<div class="mb12 font-small-bold">字典参数列表</div> <div class="mb12 font-small-bold">字典参数列表</div>
<el-table v-loading="loading" :data="dataList" border @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="dataList" border @selection-change="handleSelectionChange">
...@@ -138,15 +113,15 @@ ...@@ -138,15 +113,15 @@
type="text" type="text"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
>删除</el-button> >删除</el-button>
<!-- <el-switch--> <!-- <el-switch-->
<!-- v-model="scope.row.status"--> <!-- v-model="scope.row.status"-->
<!-- v-hasPermi="['sys:dictConfig:toggle']"--> <!-- v-hasPermi="['sys:dictConfig:toggle']"-->
<!-- disabled--> <!-- disabled-->
<!-- class="switchDisabledStyle"--> <!-- class="switchDisabledStyle"-->
<!-- active-value="0"--> <!-- active-value="0"-->
<!-- inactive-value="1"--> <!-- inactive-value="1"-->
<!-- @click.native="changeStatus(scope.row)"--> <!-- @click.native="changeStatus(scope.row)"-->
<!-- />--> <!-- />-->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -196,8 +171,8 @@ ...@@ -196,8 +171,8 @@
</template> </template>
<script> <script>
import {addData, checkDictLabelUnique, delData, exportData, getData, listData, updateData} from '@/api/system/dict/data' import { addData, checkDictLabelUnique, delData, exportData, getData, listData, updateData } from '@/api/system/dict/data'
import {getType, listType} from '@/api/system/dict/type' import { getType, listType } from '@/api/system/dict/type'
export default { export default {
name: 'Data', name: 'Data',
......
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
>重置 >重置
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-row :gutter="10" class="mb8"> <div style="float: right; padding:3px 15px;">
<el-row :gutter="10">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
style="padding: 8px 7px;" style="padding: 8px 7px;"
...@@ -77,28 +78,6 @@ ...@@ -77,28 +78,6 @@
@click="handleAdd" @click="handleAdd"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
style="padding: 8px 7px;"
type="success"
icon="el-icon-edit"
size="small"
:disabled="single"
@click="handleUpdate"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
style="padding: 8px 7px;"
type="danger"
icon="el-icon-delete"
size="small"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
style="padding: 8px 7px;" style="padding: 8px 7px;"
...@@ -110,6 +89,7 @@ ...@@ -110,6 +89,7 @@
</el-col> </el-col>
<right-toolbar :show-search.sync="showSearch" @queryTable="getList" /> <right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
</el-row> </el-row>
</div>
</el-form> </el-form>
<div class="placeholder" /> <div class="placeholder" />
<div style="min-height: 445px;padding:10px"> <div style="min-height: 445px;padding:10px">
......
...@@ -260,8 +260,8 @@ import { ...@@ -260,8 +260,8 @@ import {
listRole, listRole,
updateRole updateRole
} from '@/api/system/role' } from '@/api/system/role'
import {roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect} from '@/api/system/menu' import {roleMenuTreeselect, roleMenuTreeselectMC, treeselect as menuTreeselect } from '@/api/system/menu'
import {roleDeptTreeselect, treeselect as deptTreeselect} from '@/api/system/dept' import {roleDeptTreeselect, treeselect as deptTreeselect } from '@/api/system/dept'
// import { getRolesByInsId } from '../../../api/businessManage/template' // import { getRolesByInsId } from '../../../api/businessManage/template'
export default { export default {
name: 'Role', name: 'Role',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment