f970daaa by yangwei

字典管理样式调整

1 parent 9a6eb326
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
21 </script> 21 </script>
22 <style scoped lang="scss"> 22 <style scoped lang="scss">
23 .button { 23 .button {
24 width: 77px; 24 width: 80px; //适配4字按钮样式
25 height: 32px; 25 height: 32px;
26 color: #ffffff; 26 color: #ffffff;
27 margin: 0 5px; 27 margin: 0 5px;
......
...@@ -44,23 +44,6 @@ class data extends filter { ...@@ -44,23 +44,6 @@ class data extends filter {
44 </div> 44 </div>
45 ) 45 )
46 } 46 }
47 },
48 {
49 label: '操作',
50 width: '150',
51 align: 'center',
52 fixed: 'right',
53 render: (h, scope) => {
54 return (
55 <div>
56 {
57 scope.row.isenable == '1' ?
58 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.editClick(scope.row, 1) }}>修改</el-button> :
59 <el-button type="text" icon="el-icon-view" onClick={() => { vm.editClick(scope.row, 2) }}>查看</el-button>
60 }
61 </div>
62 )
63 }
64 } 47 }
65 ] 48 ]
66 } 49 }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <div class="from-clues"> 2 <div class="from-clues">
3 <!-- 表单部分 --> 3 <!-- 表单部分 -->
4 <div class="from-clues-header"> 4 <div class="from-clues-header">
5 <el-form @submit.native.prevent :model="ruleForm"> 5 <el-form @submit.native.prevent :model="ruleForm" label-width="120px">
6 <el-row :gutter="20"> 6 <el-row :gutter="20">
7 <el-col :span="6"> 7 <el-col :span="6">
8 <el-form-item label="字典类型编码"> 8 <el-form-item label="字典类型编码">
...@@ -62,7 +62,23 @@ export default { ...@@ -62,7 +62,23 @@ export default {
62 }, 62 },
63 tableData: { 63 tableData: {
64 total: 0, 64 total: 0,
65 columns: datas.columns(), 65 columns: datas.columns().concat([
66 {
67 label: "操作",
68 width: 170,
69 render: (h, scope) => {
70 return (
71 <div>
72 {
73 scope.row.isenable == '1' ?
74 <el-button type="text" icon="el-icon-edit-outline" onClick={() => { this.editClick(scope.row, 1) }}>修改</el-button> :
75 <el-button type="text" icon="el-icon-view" onClick={() => { this.editClick(scope.row, 2) }}>查看</el-button>
76 }
77 </div>
78 );
79 },
80 },
81 ]),
66 data: [] 82 data: []
67 } 83 }
68 } 84 }
......