|
@@ -25,13 +25,12 @@
|
25
|
25
|
<el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
|
26
|
26
|
</el-table-column>
|
27
|
27
|
<el-table-column label="操作" width="150">
|
28
|
|
- <div slot-scope="scope">
|
29
|
|
- <el-button
|
30
|
|
- size="mini">编辑</el-button>
|
31
|
|
- <el-button
|
32
|
|
- size="mini"
|
33
|
|
- type="danger">删除</el-button>
|
34
|
|
- </div>
|
|
28
|
+ <template slot-scope="scope" style="display: inline-block">
|
|
29
|
+ <el-button type="primary" @click="handleAudit(scope.row)" slot="reference">修改</el-button>
|
|
30
|
+ <el-popconfirm title="确定删除吗?" @confirm="deleteRow(scope.row)">
|
|
31
|
+ <el-button type="danger" slot="reference">删除</el-button>
|
|
32
|
+ </el-popconfirm>
|
|
33
|
+ </template>
|
35
|
34
|
</el-table-column>
|
36
|
35
|
</el-table>
|
37
|
36
|
<div class="table-pagination">
|
|
@@ -39,6 +38,44 @@
|
39
|
38
|
:current-page.sync="pageNum" :page-size.sync="pageSize">
|
40
|
39
|
</el-pagination>
|
41
|
40
|
</div>
|
|
41
|
+ <el-dialog
|
|
42
|
+ :title="title"
|
|
43
|
+ :visible.sync="dialogVisible"
|
|
44
|
+ width="40%"
|
|
45
|
+ custom-class="audit-dialog">
|
|
46
|
+ <div style="height: 350px" class="form-div">
|
|
47
|
+ <el-form label-position="left" label-width="80px" :model="formLabelAlign">
|
|
48
|
+ <el-form-item label="停车路段">
|
|
49
|
+ <el-input v-model="formLabelAlign.parkRoad"></el-input>
|
|
50
|
+ </el-form-item>
|
|
51
|
+ <el-form-item label="停车位置">
|
|
52
|
+ <el-input v-model="formLabelAlign.parkStall"></el-input>
|
|
53
|
+ </el-form-item>
|
|
54
|
+ <el-form-item label="车牌号">
|
|
55
|
+ <el-input v-model="formLabelAlign.plateCode"></el-input>
|
|
56
|
+ </el-form-item>
|
|
57
|
+ <el-form-item label="车牌类型">
|
|
58
|
+ <el-input v-model="formLabelAlign.plateType"></el-input>
|
|
59
|
+ </el-form-item>
|
|
60
|
+ <el-form-item label="停车时间">
|
|
61
|
+ <el-input v-model="formLabelAlign.parkTime"></el-input>
|
|
62
|
+ </el-form-item>
|
|
63
|
+ <el-form-item label="离开时间">
|
|
64
|
+ <el-input v-model="formLabelAlign.leaveTime"></el-input>
|
|
65
|
+ </el-form-item>
|
|
66
|
+ <el-form-item label="修改人">
|
|
67
|
+ <el-input v-model="formLabelAlign.revisePerson"></el-input>
|
|
68
|
+ </el-form-item>
|
|
69
|
+ <el-form-item label="修改时间">
|
|
70
|
+ <el-input v-model="formLabelAlign.reviseTime"></el-input>
|
|
71
|
+ </el-form-item>
|
|
72
|
+ </el-form>
|
|
73
|
+ </div>
|
|
74
|
+ <span slot="footer" class="dialog-footer">
|
|
75
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
76
|
+ <el-button type="primary" @click="handleConfirm">确 定</el-button>
|
|
77
|
+ </span>
|
|
78
|
+ </el-dialog>
|
42
|
79
|
</div>
|
43
|
80
|
</template>
|
44
|
81
|
<script>
|
|
@@ -95,7 +132,18 @@ export default {
|
95
|
132
|
formInline: {
|
96
|
133
|
searchTime: '',
|
97
|
134
|
searchWord: ''
|
98
|
|
- }
|
|
135
|
+ },
|
|
136
|
+ formLabelAlign: {
|
|
137
|
+ parkRoad: '',
|
|
138
|
+ parkStall: '',
|
|
139
|
+ plateCode: '',
|
|
140
|
+ plateType: '',
|
|
141
|
+ parkTime: '',
|
|
142
|
+ leaveTime: '',
|
|
143
|
+ revisePerson: '',
|
|
144
|
+ reviseTime: '',
|
|
145
|
+ },
|
|
146
|
+ title: ''
|
99
|
147
|
}
|
100
|
148
|
},
|
101
|
149
|
mounted() {
|
|
@@ -104,6 +152,21 @@ export default {
|
104
|
152
|
watch: {
|
105
|
153
|
},
|
106
|
154
|
methods: {
|
|
155
|
+ handleAudit(row) {
|
|
156
|
+ this.title = '修改停车收费取证'
|
|
157
|
+ this.formLabelAlign.parkRoad = row.resourceName
|
|
158
|
+ this.formLabelAlign.parkStall = row.resourceName
|
|
159
|
+ this.formLabelAlign.plateCode = row.resourceName
|
|
160
|
+ this.formLabelAlign.plateType = row.resourceName
|
|
161
|
+ this.formLabelAlign.parkTime = row.resourceName
|
|
162
|
+ this.formLabelAlign.leaveTime = row.resourceName
|
|
163
|
+ this.formLabelAlign.revisePerson = row.resourceName
|
|
164
|
+ this.formLabelAlign.reviseTime = row.resourceName
|
|
165
|
+ this.dialogVisible = true
|
|
166
|
+ },
|
|
167
|
+ deleteRow (record) {
|
|
168
|
+ console.log(record)
|
|
169
|
+ },
|
107
|
170
|
handlePageChange() {
|
108
|
171
|
this.getTableData()
|
109
|
172
|
},
|
|
@@ -111,8 +174,6 @@ export default {
|
111
|
174
|
console.log('enter handle cancel apply')
|
112
|
175
|
},
|
113
|
176
|
handleConfirm() {
|
114
|
|
- const {id} = this.selRow
|
115
|
|
- console.log('radio', this.radio)
|
116
|
177
|
api.applyResource({id, applyType: this.radio}).then(res => {
|
117
|
178
|
if(res.success) {
|
118
|
179
|
this.dialogVisible = false
|
|
@@ -124,6 +185,9 @@ export default {
|
124
|
185
|
}
|
125
|
186
|
})
|
126
|
187
|
},
|
|
188
|
+ onSubmit () {
|
|
189
|
+ this.getTableData()
|
|
190
|
+ },
|
127
|
191
|
getTableData() {
|
128
|
192
|
const {pageNum, pageSize, searchWords} = this
|
129
|
193
|
api.applyList({pageNum, pageSize, resourceName: searchWords}).then(res => {
|
|
@@ -144,44 +208,6 @@ export default {
|
144
|
208
|
}
|
145
|
209
|
</script>
|
146
|
210
|
<style lang="scss" scoped>
|
147
|
|
-
|
148
|
|
-.form-wrapper {
|
149
|
|
- margin-bottom: 20px;
|
150
|
|
-}
|
151
|
|
-/deep/ .el-input__inner {
|
152
|
|
- background: #2d3744;
|
153
|
|
- border: none;
|
154
|
|
- border-radius: 0;
|
155
|
|
-}
|
156
|
|
-/deep/ .el-select {
|
157
|
|
- height: 40px;
|
158
|
|
- .el-input__inner {
|
159
|
|
- height: 40px;
|
160
|
|
- }
|
161
|
|
- .el-input__prefix, .el-input__suffix {
|
162
|
|
- height: 40px;
|
163
|
|
- }
|
164
|
|
-
|
165
|
|
- /* 下面设置右侧按钮居中 */
|
166
|
|
- .el-input__suffix {
|
167
|
|
- top: 0px;
|
168
|
|
- display: flex;
|
169
|
|
- justify-content: center;
|
170
|
|
- align-items: center;
|
171
|
|
- flex-wrap: nowrap;
|
172
|
|
- flex-direction: row;
|
173
|
|
- align-content: flex-start;
|
174
|
|
- }
|
175
|
|
- /* 输入框加上上下边是 32px + 2px =34px */
|
176
|
|
- .el-input__icon {
|
177
|
|
- line-height: 0px;
|
178
|
|
- }
|
179
|
|
-}
|
180
|
|
-/deep/ .form-wrapper .el-button {
|
181
|
|
- background: linear-gradient(90deg,#0158d9,#3c97e4);
|
182
|
|
- width: 100px;
|
183
|
|
- height: 40px;
|
184
|
|
-}
|
185
|
211
|
.body-wrapper {
|
186
|
212
|
padding: 20px;
|
187
|
213
|
background: #0c0c0c;
|
|
@@ -208,5 +234,13 @@ export default {
|
208
|
234
|
.label{
|
209
|
235
|
text-align: right;
|
210
|
236
|
}
|
|
237
|
+ .form-div{
|
|
238
|
+ /deep/ .el-input__inner{
|
|
239
|
+ height: 35px;
|
|
240
|
+ width: 80%;
|
|
241
|
+ border: 1px solid #a6a5a5;
|
|
242
|
+ color: black;
|
|
243
|
+ }
|
|
244
|
+ }
|
211
|
245
|
}
|
212
|
246
|
</style>
|