af12ec17 by 任超

1

1 parent 067abc12
...@@ -212,6 +212,22 @@ table td { ...@@ -212,6 +212,22 @@ table td {
212 background: none !important; 212 background: none !important;
213 } 213 }
214 214
215 // table 固定列样式
216 tr:hover {
217 background: #063160 !important;
218 box-shadow: inset 0px 0px 20px 0px #03DBFF !important;
219 }
220
221 .el-table__fixed-right-patch {
222 background-color: #073781;
223 }
224
225 .el-table__fixed-right {
226 box-shadow: inset 0px 0px 20px 0px #5BE7FF !important;
227 background: #063160;
228 border-left: 3px solid #073781;
229 }
230
215 // 表格样式 231 // 表格样式
216 .el-table th { 232 .el-table th {
217 height: 48px !important; 233 height: 48px !important;
......
...@@ -183,6 +183,26 @@ class data { ...@@ -183,6 +183,26 @@ class data {
183 </div> 183 </div>
184 ) 184 )
185 }, 185 },
186 },
187 {
188 label: "操作",
189 width: "80",
190 fixed: "right",
191 render: (h, scope) => {
192 return (
193 <div>
194 <el-button
195 size="mini"
196 type="primary"
197 onClick={() => {
198 this.handleEdit(scope.row);
199 }}
200 >
201 编辑
202 </el-button>
203 </div>
204 );
205 },
186 } 206 }
187 ] 207 ]
188 } 208 }
......
...@@ -24,9 +24,8 @@ ...@@ -24,9 +24,8 @@
24 </el-col> 24 </el-col>
25 <el-col :span="6"> 25 <el-col :span="6">
26 <el-form-item label="结束日期" prop="endTime"> 26 <el-form-item label="结束日期" prop="endTime">
27 <el-date-picker type="date" class="width100" placeholder="结束日期" :picker-options="pickerOptionsEnd" 27 <el-date-picker type="date" class="width100" placeholder="结束日期" :picker-options="pickerOptionsEnd" clearable
28 clearable v-model="form.endTime" value-format="yyyy-MM-dd HH:mm:ss" 28 v-model="form.endTime" value-format="yyyy-MM-dd HH:mm:ss" @change="endTimeChange"></el-date-picker>
29 @change="endTimeChange"></el-date-picker>
30 </el-form-item> 29 </el-form-item>
31 </el-col> 30 </el-col>
32 <!-- 操作按钮 --> 31 <!-- 操作按钮 -->
...@@ -135,6 +134,10 @@ export default { ...@@ -135,6 +134,10 @@ export default {
135 this.$refs.ruleForm.resetFields(); 134 this.$refs.ruleForm.resetFields();
136 this.form.currentPage = 1 135 this.form.currentPage = 1
137 this.featchData(); 136 this.featchData();
137 },
138 // 编辑
139 handleEdit (row) {
140 console.log(row);
138 } 141 }
139 } 142 }
140 } 143 }
......