修改
This commit is contained in:
@@ -148,11 +148,12 @@ export default {
|
||||
getPositionData({taskId: this.taskId}).then(res => {
|
||||
console.log(res.code , res.data);
|
||||
if(res.code == 0&&res.data){
|
||||
for (const key in this.formData) {
|
||||
if (Object.hasOwnProperty.call(this.formData, key)) {
|
||||
this.formData[key] = res.data[key]
|
||||
}
|
||||
}
|
||||
// for (const key in this.formData) {
|
||||
// if (Object.hasOwnProperty.call(this.formData, key)) {
|
||||
// this.formData[key] = res.data[key]
|
||||
// }
|
||||
// }
|
||||
this.formData = res.data
|
||||
if (res.data.fileId) {
|
||||
this.$set(this.text1,0, {
|
||||
fileName: res.data.fileName,
|
||||
@@ -162,7 +163,7 @@ export default {
|
||||
console.log(this.text1);
|
||||
}
|
||||
this.$forceUpdate()
|
||||
this.showSubmit = false
|
||||
this.showSubmit = true
|
||||
}else{
|
||||
this.showSubmit = true
|
||||
this.getLocation()
|
||||
|
||||
Reference in New Issue
Block a user