浏览代码

人员档案启动流程未刷新页面问题

cyy 4 天之前
父节点
当前提交
f4d53ef68c
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/views/component/personnelFile/index.vue

+ 5 - 5
src/views/component/personnelFile/index.vue

@@ -411,7 +411,7 @@ export default {
                 callback: (action) => {
                   this.showTF(false)
                   this.infoNumArr = []
-                  this.saveData(this.personInfoData)
+                  this.saveData(this.personInfoData, 'agree')
                 }
               })
             })
@@ -495,11 +495,11 @@ export default {
       }
     },
     saveData(val, r) {
+      let that = this
       setInfo(val).then(async (res) => {
-        if (
-          this.$attrs.params.attrs.flow * 1 === 3 &&
-          this.btnType === 'agree'
-        ) {
+        const flow = this.$attrs.params?.attrs?.flow * 1
+        const isAgreeAction = r === 'agree' || this.btnType === 'agree'
+        if (isAgreeAction && flow === 3) {
           let photo = await this.createSnapshoot(this.userId)
           // 字段需要继续添加
           const addParams = {