|
@@ -262,7 +262,7 @@
|
|
|
sysMachineCuttingTools(row){
|
|
|
this.$refs.table.clearSelection()
|
|
|
this.$refs.table.toggleRowSelection(row, true)
|
|
|
- this.batchSysMachineCuttingTools()
|
|
|
+ this.sysCuttingTools(row.id)
|
|
|
},
|
|
|
|
|
|
batchSysMachineCuttingTools(){
|
|
@@ -273,14 +273,14 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- console.log(this.selection.length)
|
|
|
- if (this.selection.length > 1) {
|
|
|
- this.$message({
|
|
|
- message: this.$t("tips.mustOne"),
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // console.log(this.selection.length)
|
|
|
+ // if (this.selection.length > 1) {
|
|
|
+ // this.$message({
|
|
|
+ // message: this.$t("tips.mustOne"),
|
|
|
+ // type: "warning"
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
|
|
|
const ids = []
|
|
|
this.selection.forEach(item => {
|
|
@@ -290,7 +290,7 @@
|
|
|
},
|
|
|
|
|
|
sysCuttingTools (ids) {
|
|
|
- equipmentMgrApi.sysCuttingTools({ ids: ids }).then(response => {
|
|
|
+ machineCustomizeCuttingToolMgrApi.sysCuttingTools({ ids: ids }).then(response => {
|
|
|
const res = response.data
|
|
|
if (res.isSuccess) {
|
|
|
this.$message({
|