diff --git a/package.json b/package.json index 5d14edbf..ebf02feb 100644 --- a/package.json +++ b/package.json @@ -13,37 +13,29 @@ "@tinymce/tinymce-vue": "5.0.0", "animate.css": "^4.1.1", "axios": "1.3.4", - "babylon": "^6.18.0", "babylonjs": "^6.46.0", "babylonjs-gui": "^6.46.0", "babylonjs-loaders": "^6.46.0", "cesium": "^1.126.0", "codemirror": "^5.65.17", "codemirror-editor-vue3": "^2.7.0", - "compression-webpack-plugin": "^11.1.0", "copy-webpack-plugin": "^12.0.2", "core-js": "3.29.0", "cropperjs": "1.5.13", "crypto-browserify": "^3.12.0", "crypto-js": "4.1.1", "d3": "^7.6.1", - "dagre": "^0.8.5", "dagre-d3": "^0.6.4", "dhtmlx-gantt": "^8.0.6", "echarts": "^5.5.1", "element-plus": "^2.8.4", - "file-saver": "^2.0.5", "html2canvas": "^1.4.1", "json-editor-vue3": "^1.0.6", "jspdf": "^2.5.1", - "moment": "^2.30.1", "node-polyfill-webpack-plugin": "^4.0.0", "nprogress": "0.2.0", - "path": "^0.12.7", - "print-js": "^1.6.0", "qrcodejs2": "0.0.2", "sortablejs": "1.15.0", - "three": "^0.155.0", "tinymce": "6.3.2", "vue": "3.2.47", "vue-i18n": "9.2.2", diff --git a/src/App.vue b/src/App.vue index 36b16a06..b03993b4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -161,8 +161,12 @@ export default { .el-calendar > .el-calendar__body { padding: 0 20px 20px; } - - +.asyncColorSwitch .el-switch__label--right.is-active{ + color: #67c23a!important; /* 开启状态的文本颜色 */ +} +.asyncColorSwitch .el-switch__label--left.is-active{ + color: #0052d9!important; /* 关闭状态的文本颜色 */ +} // .el-table thead.is-group th.el-table__cell.colorheader1{ // background-color: rgb(255, 243, 202)!important; // } diff --git a/src/api/model/bi.js b/src/api/model/bi.js index 3802307d..6d812d78 100644 --- a/src/api/model/bi.js +++ b/src/api/model/bi.js @@ -96,4 +96,10 @@ export default { }, }, }, + servertime: { + name: "获取服务器时间", + req: async function () { + return await http.get(`${config.API_URL}/develop/server_time/`); + }, + } }; diff --git a/src/api/model/ofm.js b/src/api/model/ofm.js index 27a2d043..ba4a3de1 100644 --- a/src/api/model/ofm.js +++ b/src/api/model/ofm.js @@ -60,6 +60,14 @@ export default { return await http.post(this.url, data); } }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/ofm/mroom/${id}/`,data + ); + } + }, delete: { url: `${config.API_URL}/ofm/mroom/delete/`, name: "批量物理删除", diff --git a/src/style/fix.scss b/src/style/fix.scss index 5b9b577a..4fa224ac 100644 --- a/src/style/fix.scss +++ b/src/style/fix.scss @@ -22,6 +22,11 @@ --el-color-primary-dark-9: #060f19; --el-border-radius-base: 2px; } + +.el-collapse-item__content { + padding-bottom: 1px; +} + .el-tag { --el-tag-border-radius: 2px; } diff --git a/src/utils/enum.js b/src/utils/enum.js index a6511d7c..2aa1b961 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -224,6 +224,20 @@ export const actStateEnum = new EnumFactory({ 5: { text: '已关闭', type: 'info' }, }) +export const interveneTypeEnum = new EnumFactory({ + 0: { text: '正常', type: 'primary' }, + 1: { text: '转交', type: 'primary' }, + 2: { text: '加签', type: 'info' }, + 3: { text: '加签处理完成', type: 'primary' }, + 4: { text: '接单', type: 'success' }, + 5: { text: '评论', type: 'info' }, + 6: { text: '删除', type: 'danger' }, + 7: { text: '强制关闭', type: 'danger' }, + 8: { text: '强制修改状态', type: 'danger' }, + 10: { text: '撤回', type: 'danger' }, + 11: { text: '抄送', type: 'info' }, +}) + export const mCateEnum = new EnumFactory({ 'list': ['主要辅材','办公辅料','设备维护辅料','包装辅材','标识辅材','防护辅材','其他辅材','常规辅材','医护辅材','检测辅材','倒角辅材','减薄辅材','磨抛辅材','多线切辅材','精雕辅材','扫边辅材','黑化辅材'] }) \ No newline at end of file diff --git a/src/views/bigScreen/index_gx.vue b/src/views/bigScreen/index_gx.vue index 61836d5f..3dee7507 100644 --- a/src/views/bigScreen/index_gx.vue +++ b/src/views/bigScreen/index_gx.vue @@ -506,6 +506,7 @@ export default { configData5:{}, scrollNum:0, scrollInterval:null, + reloadInterval:null, //近七天日数组 dayArr:[], visibals0: false, @@ -525,6 +526,7 @@ export default { lineWidth:0, pieHeight:0, lineHeight:0, + timeoutDuration : 86400000, setIntervals:null, }; }, @@ -544,6 +546,38 @@ export default { this.timerTime = setInterval(() => { this.showTime(); }, 1000); + + + let lastActiveTime = new Date().getTime(); + let timer; + // 重置最后活动时间并重启计时器 + function resetActiveTime() { + console.log('用户活动'); + lastActiveTime = new Date().getTime(); + clearTimeout(timer); + timer = setTimeout(checkIdleTime, that.timeoutDuration); + } + // 检查是否超时 + function checkIdleTime() { + let currentTime = new Date().getTime(); + if (currentTime - lastActiveTime > that.timeoutDuration) { + refreshPage(); + } else { + resetActiveTime(); + } + } + // 刷新页面函数 + function refreshPage() { + window.location.reload(true); + } + // 监听所有可能触发用户活动的行为并重置最后活动时间 + document.addEventListener('click', resetActiveTime); + document.addEventListener('keypress', resetActiveTime); + document.addEventListener('scroll', resetActiveTime); + document.addEventListener('mousemove', resetActiveTime); + that.reloadInterval = setInterval(() => { + window.location.reload(true); + },86400000) }, methods: { //初始化视图 @@ -1026,9 +1060,11 @@ export default { clearInterval(that.timerTime); clearInterval(that.scrollInterval); clearInterval(that.setIntervals); + clearInterval(that.reloadInterval); that.timerTime = null; that.scrollInterval = null; that.setIntervals = null; + that.reloadInterval = null; }, beforeDestoryed() { let that = this; @@ -1036,9 +1072,11 @@ export default { clearInterval(that.timerTime); clearInterval(that.scrollInterval); clearInterval(that.setIntervals); + clearInterval(that.reloadInterval); that.timerTime = null; that.scrollInterval = null; that.setIntervals = null; + that.reloadInterval = null; }, }; diff --git a/src/views/em/mpoint_form.vue b/src/views/em/mpoint_form.vue index 04b39002..655f5adb 100644 --- a/src/views/em/mpoint_form.vue +++ b/src/views/em/mpoint_form.vue @@ -261,21 +261,16 @@ - - - + + + @@ -465,6 +460,7 @@ export default { mpointOptions: [], epOptions: [], materials: [], + apiObjEq:this.$API.em.equipment.list, }; }, mounted() { diff --git a/src/views/hrm/clock_record.vue b/src/views/hrm/clock_record.vue index 53f47516..f1749087 100644 --- a/src/views/hrm/clock_record.vue +++ b/src/views/hrm/clock_record.vue @@ -102,7 +102,6 @@ import config from "@/config" import * as XLSX2 from "xlsx"; import * as XLSX from "xlsx-style"; - import { fill } from "lodash"; export default { name: "clock_record", components: {}, diff --git a/src/views/inm/helpso.vue b/src/views/inm/helpso.vue index 90101858..4f69b8f6 100644 --- a/src/views/inm/helpso.vue +++ b/src/views/inm/helpso.vue @@ -34,7 +34,10 @@ {{ scope.row.material_.number }} - + +