[参数项列表] 编辑

This commit is contained in:
zhaomeijing
2022-04-28 16:37:07 +08:00
parent a4e20ba82b
commit 145a9468b5
2 changed files with 214 additions and 193 deletions
@@ -113,6 +113,7 @@ export default {
dataSource: [],
confirmLoading: false,
url: {
queryById: 'params/paramsInfo/queryById',
list: 'params/paramsInfo/page',
add: 'params/paramsInfo/add',
edit: 'params/paramsInfo/edit',
@@ -227,7 +228,12 @@ export default {
},
//编辑
edit(item) {
this.$refs.addModelRef.editModel(JSON.parse(JSON.stringify(item)))
let _this = this
getAction(_this.url.queryById, { id: item.id }).then((res) => {
if (res.success) {
this.$refs.addModelRef.editModel(JSON.parse(JSON.stringify(res.result)))
}
})
},
//删除
deleteLib(val) {