فهرست منبع

优化新增组织关系

Rockery 3 سال پیش
والد
کامیت
f1d558fda4
1فایلهای تغییر یافته به همراه14 افزوده شده و 8 حذف شده
  1. 14 8
      src/views/PartyBuildingMgr/OrgRelationship/OrgRelationshipIndex.vue

+ 14 - 8
src/views/PartyBuildingMgr/OrgRelationship/OrgRelationshipIndex.vue

@@ -3,7 +3,7 @@
  * @Author: Rockery
  * @Date: 2021-12-10 10:45:41
  * @LastEditors: Rockery
- * @LastEditTime: 2022-01-20 09:34:06
+ * @LastEditTime: 2022-01-21 11:24:32
  * @FilePath: \party_construct_web\src\views\PartyBuildingMgr\OrgRelationship\OrgRelationshipIndex.vue
  * @Copyright: Copyright (c) 2016~2021 Rockery(1113269755@qq.com)
 -->
@@ -232,7 +232,9 @@
                     <div slot="label" class="roc-form-item-label">相关材料:</div>
                     <div class="orgrelationship-viewpage-form-desc">
                       <div @click="handleViewPageCheckClick(viewPageFormObj.formModel)">查看</div>
-                      <div @click="handleViewPageDownloadClick(viewPageFormObj.formModel.relatedFile, '党建管理-组织关系变更-详情-相关材料')">下载</div>
+                      <div
+                        @click="handleViewPageDownloadClick(viewPageFormObj.formModel.relatedFile, '党建管理-组织关系变更-详情-相关材料')"
+                      >下载</div>
                     </div>
                   </el-form-item>
                 </el-col>
@@ -565,13 +567,17 @@ export default {
             type: "warning"
           }).then(() => {
             addOrgRelationship(this.orgRelationChangeObj.form).then(
-              () => {
-                this.orgRelationChangeCancelClick();
-                this.msgSuccess("组织关系转入成功!稍后自动跳转完善资料页面!");
-                this.handleQueryClick();
-                this.$nextTick(() => {
+              (addOrgResp) => {
+                if (addOrgResp.code === 200) {
+                  this.currentRow = {
+                    memberId: addOrgResp.data
+                  };
+                  this.orgRelationChangeCancelClick();
+                  this.msgSuccess("组织关系转入成功!稍后自动跳转完善资料页面!");
                   this.pageType = 'COMPLETEINFO';
-                });
+                } else {
+                  this.msgError("组织关系转入失败!");
+                }
               }
             );
           }).catch(() => { });