| | |
| | | |
| | | handleAdd: function(implementId = '', param = '') { |
| | | this.$refs[param + 'modalForm'].add(implementId) |
| | | this.$refs[param + 'modalForm'].title = '新增' |
| | | this.$refs[param + 'modalForm'].title = !param ? '新增台账' : '新增变更记录' |
| | | this.$refs[param + 'modalForm'].disableSubmit = false |
| | | }, |
| | | |
| | | handleEdit: function(record, param = '') { |
| | | this.$refs[param + 'modalForm'].edit(record) |
| | | this.$refs[param + 'modalForm'].title = '编辑' |
| | | this.$refs[param + 'modalForm'].title = !param ? '编辑台账' : '编辑变更记录' |
| | | this.$refs[param + 'modalForm'].disableSubmit = false |
| | | }, |
| | | |
| | |
| | | handleDetail: function(record, param = '') { |
| | | console.log(this.$refs[param + 'modalForm']) |
| | | this.$refs[param + 'modalForm'].edit(record) |
| | | this.$refs[param + 'modalForm'].title = '详情' |
| | | this.$refs[param + 'modalForm'].title = !param ? '台账详情' : '变更记录详情' |
| | | this.$refs[param + 'modalForm'].disableSubmit = true |
| | | // 调用抽屉表单组件中的清除表单验证方法 |
| | | // this.$refs[param + 'modalForm'].removeValidate() |