udpate
This commit is contained in:
parent
35758a3b2d
commit
8e20e4429c
@ -100,7 +100,7 @@ import BaseListTable from "@/components/BaseListTable.vue";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "BomTechAndFiringDetail",
|
name: "BomTechAndFiringDetail",
|
||||||
components: {BaseListTable},
|
components: { BaseListTable },
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -157,12 +157,16 @@ export default {
|
|||||||
async getTechDetailInfo() {
|
async getTechDetailInfo() {
|
||||||
console.log("[getTechDetailInfo] this.techId: ", this.techId);
|
console.log("[getTechDetailInfo] this.techId: ", this.techId);
|
||||||
// 填充 dataForm
|
// 填充 dataForm
|
||||||
const { data: res } = await this.$http.get(`/pms/equipmentTech/${this.techId}`);
|
try {
|
||||||
if (res.code == 0) {
|
const { data: res } = await this.$http.get(`/pms/equipmentTech/${this.techId}`);
|
||||||
// console.log('[getTechDetailInfo] res.data: ', res.data)
|
if (res.code == 0) {
|
||||||
// return;
|
// console.log('[getTechDetailInfo] res.data: ', res.data)
|
||||||
this.$set(this.dataForm, "code", res.data.code);
|
// return;
|
||||||
this.$set(this.dataForm, "remark", res.data.remark);
|
this.$set(this.dataForm, "code", res.data.code);
|
||||||
|
this.$set(this.dataForm, "remark", res.data.remark);
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.$message.error(err);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -171,11 +175,16 @@ export default {
|
|||||||
params = params
|
params = params
|
||||||
? { ...params, page: this.page, limit: this.size }
|
? { ...params, page: this.page, limit: this.size }
|
||||||
: { key: "", techId: this.techId, page: this.page, limit: this.size };
|
: { key: "", techId: this.techId, page: this.page, limit: this.size };
|
||||||
const { data: res } = await this.$http.get("/pms/equipmentTechParam/page", { params });
|
|
||||||
if (res.code == 0) {
|
try {
|
||||||
console.log("[getTechDetailList] res.data: ", res.data);
|
const { data: res } = await this.$http.get("/pms/equipmentTechParam/page", { params });
|
||||||
this.dataList = res.data.list;
|
if (res.code == 0) {
|
||||||
this.total = res.data.total;
|
console.log("[getTechDetailList] res.data: ", res.data);
|
||||||
|
this.dataList = res.data.list;
|
||||||
|
this.total = res.data.total;
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.$message.error(err);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user