Преглед изворни кода

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

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 = {