|
|
@@ -69,7 +69,7 @@ let Table = {
|
|
|
ObtainTableButton: function(buttonName, rowIndex, row, that) {
|
|
|
var options = that._props.widget.options
|
|
|
console.log('=======》', buttonName, rowIndex, row, that)
|
|
|
- if (buttonName == 'delete') {
|
|
|
+ if (buttonName.indexOf('delete') != -1) {
|
|
|
that.$confirm("是否删除,继续?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cance1ButtonText: "取消",
|
|
|
@@ -84,7 +84,7 @@ let Table = {
|
|
|
})
|
|
|
// this,$message.success("删除成功")
|
|
|
})
|
|
|
- } else if (buttonName == 'edit') {
|
|
|
+ } else if (buttonName.indexOf('edit') != -1) {
|
|
|
// let form = that.getFormRef().getFormData(false)
|
|
|
// let tableName = options.databaseName; //定义的表名
|
|
|
// var paramList = []
|
|
|
@@ -110,7 +110,7 @@ let Table = {
|
|
|
operation: 'edit'
|
|
|
})
|
|
|
|
|
|
- } else if (buttonName == 'detail') {
|
|
|
+ } else if (buttonName.indexOf('detail') != -1) {
|
|
|
that.getFormRef().showDialog('detail', row)
|
|
|
}
|
|
|
},
|