This commit is contained in:
lb 2023-04-28 10:04:04 +08:00
parent 1e7b7ba3e3
commit 1333ac989e
2 changed files with 55 additions and 7 deletions

View File

@ -1,3 +1,3 @@
export default { export default [
} ]

View File

@ -1,16 +1,35 @@
<template> <template>
<el-dialog :visible="visible" title="烧制温度" class="temperature-dialog" width="80%"> <el-dialog
<div class="data-list"></div> :visible="visible"
<div class="temp-chart" id="temp-chart"></div> title="烧制温度"
class="temperature-dialog"
width="80%"
@close="handleClose"
:destroy-on-close="false">
<div class="data-list">
<BaseListTable
v-loading="tableLoading"
:column-config="tableConfig"
:table-data="dataList"
@operate-event="handleOperate"
:current-page="page"
:current-size="size"
:refresh-layout-key="refreshLayoutKey" />
</div>
<div class="temp-chart">
<div id="temp-chart" class="temp-chart__inner" />
</div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import BaseListTable from "@/components/BaseListTable.vue";
import chartConfig from "./configs/chart"; import chartConfig from "./configs/chart";
import tableConfig from "./configs/tableProps"; import tableConfig from "./configs/tableProps";
export default { export default {
name: "TemperatureDialog", name: "TemperatureDialog",
components: { BaseListTable },
props: {}, props: {},
data() { data() {
return { return {
@ -22,16 +41,39 @@ export default {
dataList: [], dataList: [],
page: 1, page: 1,
size: 100, size: 100,
tableLoading: false,
refreshLayoutKey: 0,
}; };
}, },
created() {}, activated() {
this.refreshLayoutKey = Math.random();
},
mounted() {}, mounted() {},
methods: { methods: {
init(id) { init(id) {
this.hisId = id; this.hisId = id;
this.visible = true; this.visible = true;
this.$nextTick(() => {
this.getList();
});
}, },
getList() {}, getList() {
this.tableLoading = true;
this.$http
.post("/pms/kilnPosHistory/pageView", {
page: this.page,
limit: this.size,
hisId: this.hisId,
})
.then(({ data: res }) => {
console.log("temp dialog res", res);
if (res.code === 0) {
} else {
}
});
},
handleOperate() {},
handlePageChange(page) { handlePageChange(page) {
this.page = page; this.page = page;
this.getList(); this.getList();
@ -40,6 +82,12 @@ export default {
this.size = size; this.size = size;
this.getList(); this.getList();
}, },
handleClose() {
setTimeout(() => {
this.$emit("destroy-dialog");
}, 300);
this.visible = false;
},
}, },
}; };
</script> </script>