| | |
| | | url: { |
| | | add: '/tms/baseTools/add', |
| | | edit: '/tms/baseTools/edit', |
| | | queryParaByToolCode: '/tms/baseTools/queryByToolCode', |
| | | }, |
| | | locationCodeOptions:[], |
| | | chineseNameChange1:'', |
| | |
| | | edit(record) { |
| | | this.editable = true; |
| | | this.model = Object.assign({}, record) |
| | | this.chineseNameChange1 = record.chineseName |
| | | this.toolModelChange1 = '-'+record.toolModel |
| | | this.threadCodeChange1 = '-'+record.threadCode |
| | | this.pitchChange1 = '-'+record.pitch |
| | | //通过id查询管理参数和参数数据 |
| | | getAction(this.url.queryParaByToolCode, { |
| | | toolCode: record.toolCodeId, |
| | | paraTypeFlag: record.paraTypeFlag, |
| | | }).then((res) => { |
| | | if (res.success) { |
| | | this.model = Object.assign({}, res.result) |
| | | } |
| | | }) |
| | | this.visible = true |
| | | }, |
| | | close() { |