|
@@ -1,17 +1,12 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div :style="{ padding: '32px' }">
|
3
|
3
|
<el-card style="text-align: left">
|
4
|
|
- <el-button type="primary" size="medium"> 新增 </el-button>
|
|
4
|
+ <el-button type="primary" size="medium" @click="()=>handleEdit()"> 新增 </el-button>
|
5
|
5
|
<el-button size="medium" plain> 导出 </el-button>
|
6
|
6
|
</el-card>
|
7
|
7
|
<el-card :style="{ marginTop: '16px' }">
|
8
|
8
|
<el-row :gutter="15">
|
9
|
|
- <el-form
|
10
|
|
- ref="elForm"
|
11
|
|
- :model="formData"
|
12
|
|
- size="medium"
|
13
|
|
- label-width="120px"
|
14
|
|
- >
|
|
9
|
+ <el-form ref="elForm" size="medium" label-width="120px">
|
15
|
10
|
<el-col :span="24">
|
16
|
11
|
<el-row type="flex" justify="start" align="top">
|
17
|
12
|
<el-col :span="24">
|
|
@@ -75,15 +70,20 @@
|
75
|
70
|
></el-date-picker>
|
76
|
71
|
</el-form-item>
|
77
|
72
|
</el-col>
|
78
|
|
- <el-col :span="7">
|
79
|
|
- <el-form-item label-width="0" prop="field113">
|
80
|
|
- <el-button size="medium" plain> 查询 </el-button>
|
81
|
|
- </el-form-item>
|
82
|
|
- </el-col>
|
83
|
|
- <el-col :span="4">
|
84
|
|
- <el-form-item label-width="0" prop="field112">
|
85
|
|
- <el-button size="medium" plain> 重置 </el-button>
|
86
|
|
- </el-form-item>
|
|
73
|
+
|
|
74
|
+ <el-col :span="24">
|
|
75
|
+ <el-row type="flex" justify="end" align="top">
|
|
76
|
+ <el-col :span="7">
|
|
77
|
+ <el-form-item label-width="0">
|
|
78
|
+ <el-button plain size="medium"> 查询 </el-button>
|
|
79
|
+ </el-form-item>
|
|
80
|
+ </el-col>
|
|
81
|
+ <el-col :span="4">
|
|
82
|
+ <el-form-item label-width="0">
|
|
83
|
+ <el-button plain size="medium"> 重置 </el-button>
|
|
84
|
+ </el-form-item>
|
|
85
|
+ </el-col>
|
|
86
|
+ </el-row>
|
87
|
87
|
</el-col>
|
88
|
88
|
</el-row>
|
89
|
89
|
</el-col>
|
|
@@ -115,10 +115,10 @@
|
115
|
115
|
width="280"
|
116
|
116
|
>
|
117
|
117
|
<template slot-scope="scope">
|
118
|
|
- <el-button type="text" @click="toggleState(scope.row)"
|
|
118
|
+ <el-button type="text" @click="()=>handleEdit()"
|
119
|
119
|
>修改</el-button
|
120
|
120
|
>
|
121
|
|
- <el-button type="text" @click="toggleState(scope.row)"
|
|
121
|
+ <el-button type="text" @click="()=>handleEdit()"
|
122
|
122
|
>查看</el-button
|
123
|
123
|
>
|
124
|
124
|
<!-- <el-link
|
|
@@ -268,7 +268,10 @@ export default {
|
268
|
268
|
methods: {
|
269
|
269
|
handleSizeChange() { },
|
270
|
270
|
handleCurrentChange() { },
|
271
|
|
- toggleState() { }
|
|
271
|
+ toggleState() { },
|
|
272
|
+ handleEdit(val){
|
|
273
|
+ this.$router.push({name:'riskclassification.edit',query:{id:val}});
|
|
274
|
+ }
|
272
|
275
|
}
|
273
|
276
|
}
|
274
|
277
|
|