@@ -128,7 +141,7 @@
{{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}}
-
+
{{scope.row.oinfo_json_.是否保温}}
-
+
{{scope.row.oinfo_json_.温度}}
-
+
{{scope.row.oinfo_json_.压力}}
-
+
{{scope.row.oinfo_json_.刻度}}
-
+
{{scope.row.oinfo_json_.压板用时}}
@@ -169,8 +183,9 @@
-
+
{{ getRemaTime(scope.row) }}
@@ -178,12 +193,14 @@
-
+
{{ scope.row.submit_user_name }}
@@ -191,6 +208,7 @@
col.show);
+ },
+ },
watch: {
mgroupName: {
handler: function (newval,odlval) {
@@ -356,6 +419,12 @@ export default {
that.route_code = this.$route.path.split("/")[2];
that.params.mgroup =that.mgroupId;
that.apiObj = that.$API.wpm.mlog.list;
+ const saved = localStorage.getItem('mlogs_columnVisibility');
+ if (saved) {
+ try {
+ Object.assign(that.columnVisibility, JSON.parse(saved));
+ } catch (e) {}
+ }
this.getDeptUsers();
},
methods: {
@@ -549,6 +618,20 @@ export default {
}
this.$refs.table.queryData(this.query);
},
+ onColumnVisibilityChange(key, val) {
+ this.columnVisibility[key] = val;
+ localStorage.setItem('mlogs_columnVisibility', JSON.stringify(this.columnVisibility));
+ },
+ resetColumnVisibility() {
+ const defaults = {
+ batch: true, rodNumber: true, plateNumber: true, rawRodNumber: true,
+ equipment: true, deptGroup: true, heatPreservation: true, temperature: true,
+ pressure: true, scale: true, pressTime: true, handler: true,
+ remainTime: true, startTime: true, endTime: true, submitter: true, submitTime: true,
+ };
+ this.columnVisibility = { ...defaults };
+ localStorage.setItem('mlogs_columnVisibility', JSON.stringify(this.columnVisibility));
+ },
//表格选择后回调事件
selectionChange(selection) {
this.selection = selection;
@@ -578,3 +661,9 @@ export default {
+