汇总(标准调研流程) 修改接口
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
{{ form.hzfileName }}
|
||||
</div>
|
||||
<el-button
|
||||
:disabled="disabledXX"
|
||||
size="small"
|
||||
@click="updateFile(form.hzfileId)"
|
||||
icon="el-icon-download"
|
||||
@@ -435,48 +436,77 @@
|
||||
})
|
||||
},
|
||||
getData() {
|
||||
this.$http.get("lawss/activiti/queryTaskIndex", {
|
||||
prcId:this.$route.query.processInstanceId,
|
||||
index:this.$route.query.index
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
console.log(res)
|
||||
}, e => {
|
||||
});
|
||||
return new Promise((resolve, reject) => {
|
||||
inboundLiaisonDetail({
|
||||
taskIds: this.taskIds,
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
let data = JSON.parse(res.mesg)
|
||||
let jsonData = JSON.parse(res.mesg)
|
||||
this.jsonData = jsonData.form ? jsonData.form : jsonData
|
||||
this.commentText5 = data.commentText5 || ''
|
||||
this.form.title = data.title || data.form.title
|
||||
this.form.processName = data.processName || data.form.processName
|
||||
this.form.date = data.date || data.form.date
|
||||
let arr = data.responUserList || data.form.responUserList
|
||||
let newArr = []
|
||||
for (let a = 0; a <arr.length; a++) {
|
||||
arr[a].institutionName = ''
|
||||
this.$http.get('sarUser/user/selectDeptByDY', {
|
||||
ids: arr[a].dockUser
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
arr[a].institutionName = res.data[0].institutionName
|
||||
})
|
||||
newArr.push(arr[a])
|
||||
}
|
||||
this.tableData = newArr
|
||||
this.form.hzfileId = data.form ? data.form.hzfileId : (data.hzfileId ? data.hzfileId : '')
|
||||
this.form.hzfileName = data.form ? data.form.hzfileName : (data.hzfileName ? data.hzfileName : '')
|
||||
this.newDocUser = data.form ? data.form.docUser : data.docUser
|
||||
this.json = data || data.form
|
||||
}).catch(e => {
|
||||
})
|
||||
})
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http.get("lawss/activiti/queryTaskIndex", {
|
||||
prcId: this.$route.query.processInstanceId,
|
||||
index: this.$route.query.index
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.$nextTick(()=>{
|
||||
let data = JSON.parse(res.mesg)
|
||||
let jsonData = JSON.parse(res.mesg)
|
||||
this.jsonData = jsonData.form ? jsonData.form : jsonData
|
||||
this.form.title = data.title || data.form.title
|
||||
this.form.processName = data.processName || data.form.processName
|
||||
this.form.date = data.date || data.form.date
|
||||
let arr = data.responUserList || data.form.responUserList
|
||||
let newArr = []
|
||||
for (let a = 0; a < arr.length; a++) {
|
||||
arr[a].institutionName = ''
|
||||
this.$http.get('sarUser/user/selectDeptByDY', {
|
||||
ids: arr[a].dockUser
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
arr[a].institutionName = res.data[0].institutionName
|
||||
})
|
||||
newArr.push(arr[a])
|
||||
}
|
||||
this.tableData = newArr
|
||||
this.form.hzfileId = data.fileId
|
||||
this.form.hzfileName = data.fileName
|
||||
this.newDocUser = data.form ? data.form.docUser : data.docUser
|
||||
this.json = data || data.form
|
||||
|
||||
this.commentText5 = res.commitText || ''
|
||||
})
|
||||
}, e => {
|
||||
});
|
||||
})
|
||||
// return new Promise((resolve, reject) => {
|
||||
// inboundLiaisonDetail({
|
||||
// taskIds: this.taskIds,
|
||||
// pId: this.pId
|
||||
// }).then(res => {
|
||||
// let data = JSON.parse(res.mesg)
|
||||
// let jsonData = JSON.parse(res.mesg)
|
||||
// this.jsonData = jsonData.form ? jsonData.form : jsonData
|
||||
// this.commentText5 = data.commentText5 || ''
|
||||
// this.form.title = data.title || data.form.title
|
||||
// this.form.processName = data.processName || data.form.processName
|
||||
// this.form.date = data.date || data.form.date
|
||||
// let arr = data.responUserList || data.form.responUserList
|
||||
// let newArr = []
|
||||
// for (let a = 0; a <arr.length; a++) {
|
||||
// arr[a].institutionName = ''
|
||||
// this.$http.get('sarUser/user/selectDeptByDY', {
|
||||
// ids: arr[a].dockUser
|
||||
// }, {
|
||||
// _this: this
|
||||
// }, res => {
|
||||
// arr[a].institutionName = res.data[0].institutionName
|
||||
// })
|
||||
// newArr.push(arr[a])
|
||||
// }
|
||||
// this.tableData = newArr
|
||||
// this.form.hzfileId = data.form ? data.form.hzfileId : (data.hzfileId ? data.hzfileId : '')
|
||||
// this.form.hzfileName = data.form ? data.form.hzfileName : (data.hzfileName ? data.hzfileName : '')
|
||||
// this.newDocUser = data.form ? data.form.docUser : data.docUser
|
||||
// this.json = data || data.form
|
||||
// }).catch(e => {
|
||||
// })
|
||||
// })
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
|
||||
Reference in New Issue
Block a user