Commit 3b839a2a by cpa

编辑提示问题

parent c17f5c92
...@@ -96,20 +96,8 @@ ...@@ -96,20 +96,8 @@
methods: { methods: {
// 更新 // 更新
handleUpdate: function (row, index, done,loading) { handleUpdate: function (row, index, done,loading) {
this.id=row.id
if (this.$refs.crud.tableSelect.length === 0) { this.goodsEditVue=true
this.$message.error('请选择需要编辑的信息')
return false
}else if(this.$refs.crud.tableSelect.length >1){
this.$message.error('请选择其中一条进行编辑')
return false
}else {
for (const row of this.$refs.crud.tableSelect) {
this.id=row.id
}
this.goodsEditVue=true
}
}, },
// 添加 // 添加
add() { add() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment