修改bug

This commit is contained in:
‘937886381’
2024-01-23 16:22:25 +08:00
parent 05ce0dbd84
commit d5b1d418a8
8 changed files with 79 additions and 56 deletions

View File

@@ -140,10 +140,10 @@ export default {
init(obj) {
// console.log(productionLineId);
console.log(obj);
this.visible = true;
this.visible = true
// if(obj.id)
if (obj) {
this.dataForm.id = obj.id ? obj.id : ""
this.dataForm.id = obj.id || null;
}
this.$nextTick(() => {
this.$refs["dataForm"].resetFields()
@@ -154,13 +154,16 @@ export default {
}).then((res) => {
console.log(res);
this.dataForm.inspectionDetIdList = res.data
this.dataForm.productionLineId = obj.productionLineId
this.getWorksectionList(obj.productionLineId)
this.dataForm.sectionId = obj.sectionId
})
}
if (this.dataForm.id) {
console.log(1111);
this.urlOptions.infoURL(obj.id).then(response => {
this.dataForm.id = response.data.id
this.dataForm.productionLineId = response.data.productionLineId
this.dataForm.sectionId = response.data.sectionId
// if (this.setData) {
// this.setDataForm()
// }
@@ -261,10 +264,10 @@ export default {
this.$emit('update', this.dataForm);
},
async getCode(url) {
const response = await this.$axios(url);
return response.data;
},
// async getCode(url) {
// const response = await this.$axios(url);
// return response.data;
// },
},
};
</script>