| | |
| | | let obj = this.HaveJson(this.editForm) |
| | | obj.method = JSON.stringify(obj.method) |
| | | obj.sample = JSON.stringify(obj.sample) |
| | | if (obj.radiusList !== null && obj.radiusList.length > 0) { |
| | | obj.radiusList = JSON.stringify(obj.radiusList) |
| | | } |
| | | obj.radiusList = JSON.stringify(obj.radiusList) |
| | | if(obj.id){ |
| | | // 修改 |
| | | upItemParameter(obj).then(res => { |
| | |
| | | } |
| | | this.$message.success('修改成功') |
| | | this.editFormDia = false |
| | | this.$emit('refreshTable') |
| | | this.$emit('refreshList') |
| | | }).catch(e => { |
| | | this.editLoad = false |
| | | }) |
| | |
| | | } |
| | | this.$message.success('添加成功') |
| | | this.editFormDia = false |
| | | this.$emit('refreshTable') |
| | | this.$emit('refreshList') |
| | | }).catch(e => { |
| | | this.editLoad = false |
| | | }) |
| | |
| | | // 关闭弹框 |
| | | closeDia () { |
| | | this.editFormDia = false |
| | | this.$refs.editForm.resetFields() |
| | | this.resetForm("editForm"); |
| | | }, |
| | | selectTestObjectByName() { |
| | | getItemTree().then(res => { |