diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue index 5551e22fa..0e21d53a6 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue @@ -244,7 +244,12 @@ }, methods: { clickButtonToUpload(file) { - const attId = file.attId + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue index ce882650e..ddd97ecde 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue @@ -305,11 +305,21 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, clickButtonToUpload(file) { - const attId = file.attId + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step4.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step4.vue index 052047fe6..1d53aa114 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step4.vue @@ -280,11 +280,21 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, clickButtonToUpload(file) { - const attId = file.attId + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step5.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step5.vue index c218baeca..750bef845 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step5.vue @@ -287,7 +287,12 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step6.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step6.vue index 2c685fa21..0174a2240 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step6.vue @@ -282,7 +282,12 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step7.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step7.vue index 86cca5c41..cfe2cd975 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step7.vue @@ -281,7 +281,12 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue index 49a091725..3650118a3 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue @@ -282,7 +282,12 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step9.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step9.vue index e43f9e8ee..5eb671a22 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step9.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step9.vue @@ -316,11 +316,21 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, clickButtonToUpload(file) { - const attId = file.attId + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/phone/bzdy/step2.vue b/src/pages/processCenter/pages/phone/bzdy/step2.vue index 405de4a03..a2b8e317f 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step2.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step2.vue @@ -154,7 +154,12 @@ }, methods: { clickButtonToUpload(file) { - const attId = file.attId + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/phone/bzdy/step4.vue b/src/pages/processCenter/pages/phone/bzdy/step4.vue index 783eda5e4..42bbf50ef 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step4.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step4.vue @@ -168,11 +168,21 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, clickButtonToUpload(file) { - const attId = file.attId + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() { diff --git a/src/pages/processCenter/pages/phone/bzdy/step6.vue b/src/pages/processCenter/pages/phone/bzdy/step6.vue index 494a8d933..942ad9827 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step6.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step6.vue @@ -188,7 +188,12 @@ }, methods: { clickButtonToUpload2(file) { - const attId = file + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } this.$preview(attId) }, handleTransfer() {