diff --git a/src/views/modules/pms/carHistory/components/ListViewWithHead.vue b/src/views/modules/pms/carHistory/components/ListViewWithHead.vue
index 52a05bb..30012f2 100644
--- a/src/views/modules/pms/carHistory/components/ListViewWithHead.vue
+++ b/src/views/modules/pms/carHistory/components/ListViewWithHead.vue
@@ -42,6 +42,11 @@
:dialog-visible.sync="carPayloadDialogVisible"
:configs="carPayloadDialogConfigs"
@refreshDataList="getList" />
+
@@ -51,6 +56,7 @@ import BaseSearchForm from "@/components/BaseSearchForm.vue";
import DialogWithMenu from "@/components/DialogWithMenu.vue";
import DialogJustForm from "@/components/DialogJustForm.vue";
import DialogCarPayload from "@/components/DialogCarPayload.vue";
+import TemperatureDialog from "./temperatureDialog.vue";
import moment from "moment";
const DIALOG_WITH_MENU = "DialogWithMenu";
@@ -59,7 +65,7 @@ const DIALOG_CARPAYLOAD = "DialogCarPayload";
export default {
name: "ListViewWithHead",
- components: { BaseSearchForm, BaseListTable, DialogWithMenu, DialogJustForm, DialogCarPayload },
+ components: { BaseSearchForm, BaseListTable, DialogWithMenu, DialogJustForm, DialogCarPayload, TemperatureDialog },
props: {
tableConfig: {
type: Object,
@@ -131,6 +137,7 @@ export default {
tableLoading: false,
refreshLayoutKey: null,
cachedSearchCondition: {},
+ temperatureDialogVisible: false,
};
},
inject: ["urls"],
@@ -430,10 +437,22 @@ export default {
case "to-car-payload": {
// open dialog instead of redirect to a new page
this.openCarPayloadDialog(data);
+ break;
+ }
+ case "temperature": {
+ this.openTemperatureDialog(data);
+ break;
}
}
},
+ openTemperatureDialog(id) {
+ this.temperatureDialogVisible = true;
+ this.$nextTick(() => {
+ this.$refs["temperature-dialog"].init(id);
+ });
+ },
+
openCarPayloadDialog(id) {
this.carPayloadDialogVisible = true;
this.$nextTick(() => {
diff --git a/src/views/modules/pms/carHistory/components/temperatureDialog.vue b/src/views/modules/pms/carHistory/components/temperatureDialog.vue
new file mode 100644
index 0000000..9b005b5
--- /dev/null
+++ b/src/views/modules/pms/carHistory/components/temperatureDialog.vue
@@ -0,0 +1,24 @@
+
+ temperatureDialogVisible
+
+
+
+
+
diff --git a/src/views/modules/pms/carHistory/config.js b/src/views/modules/pms/carHistory/config.js
index 1d80633..bba79e3 100644
--- a/src/views/modules/pms/carHistory/config.js
+++ b/src/views/modules/pms/carHistory/config.js
@@ -18,9 +18,10 @@ export default function () {
prop: "operations",
name: "操作",
fixed: "right",
- width: 90,
+ width: 150,
subcomponent: TableOperaionComponent,
options: [
+ { name: "temperature", label: "烧制温度", },
{ name: "to-car-payload", label: "装载详情", icon: 'document' },
{ name: "delete", label: "删除", icon: 'delete', emitFull: true, promptField: 'code' }
],