This commit is contained in:
lb 2023-07-19 16:14:29 +08:00
parent 35758a3b2d
commit 8e20e4429c

View File

@ -157,6 +157,7 @@ export default {
async getTechDetailInfo() { async getTechDetailInfo() {
console.log("[getTechDetailInfo] this.techId: ", this.techId); console.log("[getTechDetailInfo] this.techId: ", this.techId);
// dataForm // dataForm
try {
const { data: res } = await this.$http.get(`/pms/equipmentTech/${this.techId}`); const { data: res } = await this.$http.get(`/pms/equipmentTech/${this.techId}`);
if (res.code == 0) { if (res.code == 0) {
// console.log('[getTechDetailInfo] res.data: ', res.data) // console.log('[getTechDetailInfo] res.data: ', res.data)
@ -164,6 +165,9 @@ export default {
this.$set(this.dataForm, "code", res.data.code); this.$set(this.dataForm, "code", res.data.code);
this.$set(this.dataForm, "remark", res.data.remark); this.$set(this.dataForm, "remark", res.data.remark);
} }
} catch (err) {
this.$message.error(err);
}
}, },
async getTechDetailList(params) { async getTechDetailList(params) {
@ -171,12 +175,17 @@ 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 };
try {
const { data: res } = await this.$http.get("/pms/equipmentTechParam/page", { params }); const { data: res } = await this.$http.get("/pms/equipmentTechParam/page", { params });
if (res.code == 0) { if (res.code == 0) {
console.log("[getTechDetailList] res.data: ", res.data); console.log("[getTechDetailList] res.data: ", res.data);
this.dataList = res.data.list; this.dataList = res.data.list;
this.total = res.data.total; this.total = res.data.total;
} }
} catch (err) {
this.$message.error(err);
}
}, },
handleTabClick(v) { handleTabClick(v) {