update
This commit is contained in:
parent
1e7b7ba3e3
commit
1333ac989e
@ -1,3 +1,3 @@
|
||||
export default {
|
||||
export default [
|
||||
|
||||
}
|
||||
]
|
@ -1,16 +1,35 @@
|
||||
<template>
|
||||
<el-dialog :visible="visible" title="烧制温度" class="temperature-dialog" width="80%">
|
||||
<div class="data-list"></div>
|
||||
<div class="temp-chart" id="temp-chart"></div>
|
||||
<el-dialog
|
||||
:visible="visible"
|
||||
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>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BaseListTable from "@/components/BaseListTable.vue";
|
||||
import chartConfig from "./configs/chart";
|
||||
import tableConfig from "./configs/tableProps";
|
||||
|
||||
export default {
|
||||
name: "TemperatureDialog",
|
||||
components: { BaseListTable },
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
@ -22,16 +41,39 @@ export default {
|
||||
dataList: [],
|
||||
page: 1,
|
||||
size: 100,
|
||||
tableLoading: false,
|
||||
refreshLayoutKey: 0,
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
activated() {
|
||||
this.refreshLayoutKey = Math.random();
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
init(id) {
|
||||
this.hisId = id;
|
||||
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) {
|
||||
this.page = page;
|
||||
this.getList();
|
||||
@ -40,6 +82,12 @@ export default {
|
||||
this.size = size;
|
||||
this.getList();
|
||||
},
|
||||
handleClose() {
|
||||
setTimeout(() => {
|
||||
this.$emit("destroy-dialog");
|
||||
}, 300);
|
||||
this.visible = false;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user