[参数项列表] 编辑
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user