Parcourir la source

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

cyy il y a 4 jours
Parent
commit
f4d53ef68c
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  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 = {