【修改】下载

This commit is contained in:
zhoulingpo
2023-05-26 14:58:39 +08:00
parent 7bb05f8b8a
commit 25fde20dca
2 changed files with 23 additions and 12 deletions
@@ -297,6 +297,7 @@ export default {
watch: {
processForm: {
handler(val) {
console.log(this.formControl,"jajjajajajajj")
this.form = this.processForm
console.log("变化了", this.form)
if (this.form.secrecyLast) {
@@ -317,16 +318,19 @@ export default {
this.$refs.processFormRef.clearValidate()
})
}
if(this.processForm.fileList.length>0){
this.fileList=this.processForm.fileList.map(item=>{
return {
name:item.fileName,
id:item.fileId
}
})
this.handleCurrentChange(1)
console.log(this.processForm,"this.processForm.fileList.length")
if(this.processForm.fileList){
if(this.processForm.fileList.length>0){
this.fileList=this.processForm.fileList.map(item=>{
return {
name:item.fileName,
id:item.fileId
}
})
this.handleCurrentChange(1)
}
}
},
immediate: true
}
+10 -3
View File
@@ -116,6 +116,7 @@ export default {
}
},
async created() {
debugger
// 如果是从草稿进入的
if (this.$route.query.isDraft) {
this.isShowSave = true
@@ -152,13 +153,19 @@ export default {
this.$set(this.assignForm,'oneApprove',submitJson.oneApprove)
this.$set(this.assignForm,'oneApproveName',submitJson.oneApproveName)
this.getLearder()
if (this.$route.query.type == 'yiban'){
this.formControl = true
this.initShow = true
this.showTableD = true
}
}
else if (this.$route.query.type == 'yiban') {
this.taskId = this.$store.getters.handleProcess.taskId
this.prcNum = this.$store.getters.handleProcess.prcNum
this.prcId = this.$store.getters.handleProcess.prcId
this.taskId = this.$store.getters.handleProcess?.taskId
this.prcNum = this.$store.getters.handleProcess?.prcNum
this.prcId = this.$store.getters.handleProcess?.prcId
this.prcType = this.$store.getters.handleProcess?.prcType
this.formControl = true
this.initShow = true
this.showTableD = true