lyh
2025-06-23 8b311e8310a5ff81068129f59e4e1c434a1e3a25
src/views/dnc/common/DocumentModalForm.vue
@@ -20,14 +20,6 @@
      <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>
@@ -58,10 +50,10 @@
        validatorRules: {
          docName: [
            { required: true, message: '请输入文档原名称!' }
          ],
          ]
        },
        url: {
          edit: '/mdc/mdcPartProcessInfo/edit'
          edit: '/nc/doc/edit'
        }
      }
    },
@@ -86,14 +78,9 @@
        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: '消息',