| | |
| | | validatorRules: { |
| | | docName: [ |
| | | { required: true, message: '请输入文档原名称!' } |
| | | ], |
| | | ] |
| | | }, |
| | | url: { |
| | | edit: '/mdc/mdcPartProcessInfo/edit' |
| | | edit: '/nc/doc/edit' |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true |
| | | let httpUrl = '' |
| | | let method = 'post' |
| | | if (!this.model.id) { |
| | | httpUrl += this.url.add |
| | | } else { |
| | | httpUrl += this.url.edit |
| | | } |
| | | httpAction(httpUrl, this.model, method).then((res) => { |
| | | let httpUrl = this.url.edit |
| | | let method = 'put' |
| | | httpAction(httpUrl + `/${that.model.docId}`, this.model, method).then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |