| | |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="代码版本"> |
| | | <a-input v-model="model.docAlias" placeholder="请输入代码版本"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="描述"> |
| | | <a-textarea v-model="model.description" placeholder="请输入文档描述"></a-textarea> |
| | | </a-form-model-item> |
| | |
| | | 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: '消息', |