|
@@ -32,7 +32,7 @@
|
32
|
32
|
</el-table-column>
|
33
|
33
|
<el-table-column label="操作" width="180">
|
34
|
34
|
<template slot-scope="scope">
|
35
|
|
- <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
|
|
35
|
+ <el-button size="mini" type="primary" @click="handleEdit(scope.row.id)">编辑</el-button>
|
36
|
36
|
<el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
37
|
37
|
</template>
|
38
|
38
|
</el-table-column>
|
|
@@ -177,8 +177,12 @@ export default {
|
177
|
177
|
this.$router.push({ path: "/qcd/patientanalysis/checkStatistical" });
|
178
|
178
|
}
|
179
|
179
|
},
|
180
|
|
- handleEdit() {
|
|
180
|
+ handleEdit(id) {
|
181
|
181
|
this.editDialog = true;
|
|
182
|
+ getConfigurationDetail(id).then(response=>{
|
|
183
|
+ if(response.data.state == 1){
|
|
184
|
+ }
|
|
185
|
+ })
|
182
|
186
|
},
|
183
|
187
|
|
184
|
188
|
//获取大项数据来源
|
|
@@ -227,27 +231,34 @@ export default {
|
227
|
231
|
this.form.large_range = ""
|
228
|
232
|
this.form.min_range = ""
|
229
|
233
|
this.form.sort = ""
|
|
234
|
+ this.getConfigurationList()
|
230
|
235
|
}
|
231
|
236
|
})
|
232
|
237
|
}
|
233
|
238
|
})
|
234
|
239
|
},
|
235
|
240
|
handleSizeChange(limit) {
|
236
|
|
- // this.listQuery.limit = limit;
|
|
241
|
+ this.limit = limit;
|
237
|
242
|
this.getConfigurationList();
|
238
|
243
|
},
|
239
|
244
|
handleCurrentChange(page) {
|
240
|
|
- // this.listQuery.page = page;
|
|
245
|
+ this.page = page;
|
241
|
246
|
this.getConfigurationList();
|
242
|
247
|
},
|
243
|
248
|
getConfigurationList(){
|
244
|
249
|
getConfigurationList(this.limit,this.page).then(response=>{
|
245
|
250
|
if(response.data.state === 1){
|
246
|
251
|
var configurationlist = response.data.data.configurationlist
|
|
252
|
+ for(let i=0;i<configurationlist.length;i++){
|
|
253
|
+ if(configurationlist[i].sort === 0){
|
|
254
|
+ configurationlist[i].sort = ""
|
|
255
|
+ }
|
|
256
|
+ }
|
247
|
257
|
console.log("列表",configurationlist)
|
248
|
258
|
this.configuraData = configurationlist
|
249
|
259
|
var total = response.data.data.total
|
250
|
260
|
console.log("total",total)
|
|
261
|
+ this.total = total
|
251
|
262
|
}
|
252
|
263
|
})
|
253
|
264
|
}
|