From 50c6034ba1a0644a398e73ee52641ca0d8e755a5 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Mon, 29 Jan 2024 17:35:09 +0800 Subject: [PATCH] 1 --- .env.production | 4 + src/mixin/drawMixin.js | 6 +- .../bigScreen/component/detailTransfer.vue | 4 +- .../bigScreen/component/transferBoard.vue | 4 +- src/views/bigScreen1/component/doing.vue | 17 + src/views/bigScreen1/component/title.vue | 59 +++ src/views/bigScreen1/component/toDo.vue | 348 ++++++++++++++++++ .../bigScreen1/component/topBackground.vue | 85 +++++ src/views/bigScreen1/index.vue | 178 +++++++++ src/views/order/component/createDispatch.vue | 1 + src/views/order/handle.vue | 47 ++- src/views/order/orderSummary.vue | 2 +- vue.config.js | 2 +- 13 files changed, 738 insertions(+), 19 deletions(-) create mode 100644 src/views/bigScreen1/component/doing.vue create mode 100644 src/views/bigScreen1/component/title.vue create mode 100644 src/views/bigScreen1/component/toDo.vue create mode 100644 src/views/bigScreen1/component/topBackground.vue create mode 100644 src/views/bigScreen1/index.vue diff --git a/.env.production b/.env.production index 746b4bc..9d574b8 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,10 @@ ENV = 'production' # base api +#VUE_APP_BASE_API=http://192.168.60.99:9005/ +#VUE_APP_UPLOAD_API=http://192.168.60.99:9005/api/admin/upload-file +#VUE_APP_OA_URL=http://192.168.60.18:2021 + VUE_APP_BASE_API=http://diaoling-test.ali251.langye.net/ VUE_APP_UPLOAD_API=http://diaoling-test.ali251.langye.net/api/admin/upload-file VUE_APP_OA_URL=http://suzhouhedaooa.langye.net diff --git a/src/mixin/drawMixin.js b/src/mixin/drawMixin.js index 93e1236..feeb92a 100644 --- a/src/mixin/drawMixin.js +++ b/src/mixin/drawMixin.js @@ -8,7 +8,7 @@ const scale = { // * 设计稿尺寸(px) const baseWidth = 1920 -const baseHeight = 1080 +const baseHeight = 1440 // * 需保持的比例(默认1.77778) const baseProportion = parseFloat((baseWidth / baseHeight).toFixed(5)) @@ -30,7 +30,7 @@ export default { methods: { calcRate () { const appRef = this.$refs["appRef"] - if (!appRef) return + if (!appRef) return // 当前宽高比 const currentRate = parseFloat((window.innerWidth / window.innerHeight).toFixed(5)) if (appRef) { @@ -54,4 +54,4 @@ export default { }, 200) } }, -} \ No newline at end of file +} diff --git a/src/views/bigScreen/component/detailTransfer.vue b/src/views/bigScreen/component/detailTransfer.vue index c5d6471..965b727 100644 --- a/src/views/bigScreen/component/detailTransfer.vue +++ b/src/views/bigScreen/component/detailTransfer.vue @@ -9,7 +9,7 @@
-

{{ data.equipment_id_equipments_id_relation ? data.equipment_id_equipments_id_relation.name : '' }}

+

{{ (data && data.equipment_id_equipments_id_relation) ? data.equipment_id_equipments_id_relation.name : '' }}

@@ -95,7 +95,7 @@ -
+
diff --git a/src/views/bigScreen/component/transferBoard.vue b/src/views/bigScreen/component/transferBoard.vue index 364415b..ae5e475 100644 --- a/src/views/bigScreen/component/transferBoard.vue +++ b/src/views/bigScreen/component/transferBoard.vue @@ -115,7 +115,7 @@ export default { }) } else { this.nowRow = deepCopy(item); - this.$emit('showDetail',item) + this.$emit('showDetail',{ item, isShow }) } }, @@ -191,7 +191,7 @@ export default { let { avgHeight, animationIndex, mergedConfig, animation, updater } = this const { waitTime, carousel, rowNum } = { - waitTime: 5000, + waitTime: 8000, carousel: 'single', rowNum: this.rowNum } diff --git a/src/views/bigScreen1/component/doing.vue b/src/views/bigScreen1/component/doing.vue new file mode 100644 index 0000000..98b6b2f --- /dev/null +++ b/src/views/bigScreen1/component/doing.vue @@ -0,0 +1,17 @@ + + + + + diff --git a/src/views/bigScreen1/component/title.vue b/src/views/bigScreen1/component/title.vue new file mode 100644 index 0000000..9bcbccd --- /dev/null +++ b/src/views/bigScreen1/component/title.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/views/bigScreen1/component/toDo.vue b/src/views/bigScreen1/component/toDo.vue new file mode 100644 index 0000000..b6172f1 --- /dev/null +++ b/src/views/bigScreen1/component/toDo.vue @@ -0,0 +1,348 @@ + + + + + diff --git a/src/views/bigScreen1/component/topBackground.vue b/src/views/bigScreen1/component/topBackground.vue new file mode 100644 index 0000000..94e67b8 --- /dev/null +++ b/src/views/bigScreen1/component/topBackground.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/bigScreen1/index.vue b/src/views/bigScreen1/index.vue new file mode 100644 index 0000000..3f51d13 --- /dev/null +++ b/src/views/bigScreen1/index.vue @@ -0,0 +1,178 @@ + + + + + + diff --git a/src/views/order/component/createDispatch.vue b/src/views/order/component/createDispatch.vue index 5c8d6a7..4e58000 100644 --- a/src/views/order/component/createDispatch.vue +++ b/src/views/order/component/createDispatch.vue @@ -831,6 +831,7 @@ export default { if (isNeed) { this.$router.push('/dispatch/handle') } + this.$store.commit('app/CLOSE_SIDEBAR') }) .catch((_) => { loadingInstance.close(); diff --git a/src/views/order/handle.vue b/src/views/order/handle.vue index ab73930..1f36b54 100644 --- a/src/views/order/handle.vue +++ b/src/views/order/handle.vue @@ -22,10 +22,10 @@ - - @@ -423,6 +423,7 @@ export default { }, oaToken: "", op, + selectArea: "", select: { table_name: "", filter: [ @@ -431,11 +432,6 @@ export default { op: "like", value: "" }, - { - key: "area", - op: "eq", - value: "" - }, { key: "leibie", op: "eq", @@ -457,6 +453,25 @@ export default { customFormId: "", tableName: "", }, + + + resetTable: new Map([ + ["start_time",{ + formatter: (data, cell, val)=>{ + return val ? this.$moment(val).format("HH:mm") : '' + } + }], + ["end_time",{ + formatter: (data, cell, val)=>{ + return val ? this.$moment(val).format("HH:mm") : '' + } + }], + ["shichang",{ + formatter: (data) => { + return this.$moment(data.end_time).diff(this.$moment(data.start_time),"hours") + "时" + } + }] + ]) }; }, methods: { @@ -493,7 +508,7 @@ export default { mergeData(list) { return mergeTableRow({ - data: list, + data: this.selectArea ? list.filter(i => (i.equipment_id_equipments_id_relation?.area === this.selectArea)) : list, mergeColNames: ["equipment_id_equipments_id_relation.area","equipment_id_equipments_id_relation.name"], // 需要合并的列,默认合并列相同的数据 firstMergeColNames: ["equipment_id_equipments_id_relation.area","equipment_id_equipments_id_relation.name"], // 受影响的列,只合并以firstMerge为首的同类型数据 firstMerge: "equipment_id", // 以哪列为基础进行合并,一般为第一列 @@ -601,7 +616,6 @@ export default { delete copyRow[key] } } - console.log(copyRow) save({ table_name: 'transfers', ...copyRow @@ -747,7 +761,6 @@ export default { } }); this.form = fields; - console.log(111, this.form); this.form ?.filter((i) => i.list_show) .forEach((i) => { @@ -833,6 +846,20 @@ export default { } let alignLeft = []; + if (this.resetTable.get(i.field)) { + this.table.push(Object.assign( + { + prop: i.field, + label: i.name, + width: i.width, + align: alignLeft.find((m) => m === i.field) ? "left" : "center", + fixed: i.is_fixed, + }, + linkOb, + this.resetTable.get(i.field) + )) + return + } this.table.push( Object.assign( { diff --git a/src/views/order/orderSummary.vue b/src/views/order/orderSummary.vue index ac41135..35ded07 100644 --- a/src/views/order/orderSummary.vue +++ b/src/views/order/orderSummary.vue @@ -16,7 +16,7 @@
diff --git a/vue.config.js b/vue.config.js index 9d570e1..459de67 100644 --- a/vue.config.js +++ b/vue.config.js @@ -24,7 +24,7 @@ module.exports = { * In most cases please use '/' !!! * Detail: https://cli.vuejs.org/config/#publicpath */ - publicPath: '/admin/', + publicPath: '/admin_test/', outputDir: './dist', assetsDir: 'static', css: {