Этот коммит содержится в:
lb 2023-07-19 16:14:29 +08:00
родитель 35758a3b2d
Коммит 8e20e4429c

Просмотреть файл

@ -100,7 +100,7 @@ import BaseListTable from "@/components/BaseListTable.vue";
export default {
name: "BomTechAndFiringDetail",
components: {BaseListTable},
components: { BaseListTable },
props: {},
data() {
return {
@ -157,12 +157,16 @@ export default {
async getTechDetailInfo() {
console.log("[getTechDetailInfo] this.techId: ", this.techId);
// dataForm
const { data: res } = await this.$http.get(`/pms/equipmentTech/${this.techId}`);
if (res.code == 0) {
// console.log('[getTechDetailInfo] res.data: ', res.data)
// return;
this.$set(this.dataForm, "code", res.data.code);
this.$set(this.dataForm, "remark", res.data.remark);
try {
const { data: res } = await this.$http.get(`/pms/equipmentTech/${this.techId}`);
if (res.code == 0) {
// console.log('[getTechDetailInfo] res.data: ', res.data)
// return;
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, 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) {
console.log("[getTechDetailList] res.data: ", res.data);
this.dataList = res.data.list;
this.total = res.data.total;
try {
const { data: res } = await this.$http.get("/pms/equipmentTechParam/page", { params });
if (res.code == 0) {
console.log("[getTechDetailList] res.data: ", res.data);
this.dataList = res.data.list;
this.total = res.data.total;
}
} catch (err) {
this.$message.error(err);
}
},