diff --git a/.env.dev b/.env.dev index 574a759f..40051292 100644 --- a/.env.dev +++ b/.env.dev @@ -12,9 +12,9 @@ ENV = 'development' VUE_APP_TITLE = 产线监控系统 # 芋道管理系统/开发环境 -# VUE_APP_BASE_API = 'http://192.168.1.49:48080' +VUE_APP_BASE_API = 'http://192.168.1.49:48080' # VUE_APP_BASE_API = 'http://192.168.1.8:48080' -VUE_APP_BASE_API = 'http://192.168.0.33:48080' +# VUE_APP_BASE_API = 'http://192.168.0.33:48080' # VUE_APP_BASE_API = 'http://192.168.1.188:48080' # 路由懒加载 diff --git a/src/api/core/base/lineBindProductLog.js b/src/api/core/base/lineBindProductLog.js index 50316f71..19a9f34d 100644 --- a/src/api/core/base/lineBindProductLog.js +++ b/src/api/core/base/lineBindProductLog.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-08-28 15:30:53 - * @LastEditTime: 2023-10-13 17:00:20 + * @LastEditTime: 2023-10-13 17:08:33 * @LastEditors: DY * @Description: */ diff --git a/src/assets/images/default-file-icon.png b/src/assets/images/default-file-icon.png new file mode 100644 index 00000000..f9e9d467 Binary files /dev/null and b/src/assets/images/default-file-icon.png differ diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index a290ce95..e55394de 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -10,6 +10,8 @@ ref="form" :model="form" :label-width="`${labelWidth}px`" + :size="size" + :label-position="labelPosition" v-loading="formLoading"> @@ -119,7 +121,15 @@ export default { disabled: { type: Boolean, default: false, - } + }, + labelPosition: { + type: String, + default: 'right', + }, + size: { + type: String, + default: '', + }, }, data() { return { diff --git a/src/views/base/equipmentPlcConnect/components/BasicDrawer.vue b/src/views/base/equipmentPlcConnect/components/BasicDrawer.vue index 740f6b71..ddb8ce35 100644 --- a/src/views/base/equipmentPlcConnect/components/BasicDrawer.vue +++ b/src/views/base/equipmentPlcConnect/components/BasicDrawer.vue @@ -151,7 +151,7 @@ export default { name: '', plcParamName: '', unit: '', - collection: '', + collection: 1, minValue: '', maxValue: '', defaultValue: '', @@ -370,7 +370,7 @@ export default { name: '', plcParamName: '', unit: '', - collection: '', + collection: 1, minValue: '', maxValue: '', defaultValue: '', diff --git a/src/views/core/base/equipment/components/AssetsUpload.vue b/src/views/core/base/equipment/components/AssetsUpload.vue new file mode 100644 index 00000000..c6453eac --- /dev/null +++ b/src/views/core/base/equipment/components/AssetsUpload.vue @@ -0,0 +1,294 @@ + + + + + + + diff --git a/src/views/core/base/equipment/components/DialogForm.vue b/src/views/core/base/equipment/components/DialogForm.vue new file mode 100644 index 00000000..39c16824 --- /dev/null +++ b/src/views/core/base/equipment/components/DialogForm.vue @@ -0,0 +1,313 @@ + + + + + + + diff --git a/src/views/core/base/equipment/components/EquipmentDrawer.vue b/src/views/core/base/equipment/components/EquipmentDrawer.vue index 445ac334..d69a714a 100644 --- a/src/views/core/base/equipment/components/EquipmentDrawer.vue +++ b/src/views/core/base/equipment/components/EquipmentDrawer.vue @@ -35,6 +35,7 @@ key="drawer-dialog-form" v-if="showForm" ref="form" + label-position="top" :dataForm="form" :rows="formRows" /> @@ -43,9 +44,11 @@ + + + @@ -99,7 +106,7 @@ + + diff --git a/src/views/core/base/productionLine/index.vue b/src/views/core/base/productionLine/index.vue index f54e7dcc..474bfcad 100644 --- a/src/views/core/base/productionLine/index.vue +++ b/src/views/core/base/productionLine/index.vue @@ -29,7 +29,7 @@ @cancel="handleCancel" @confirm="handleConfirm" :before-close="handleCancel" - width="70%"> + width="50%"> diff --git a/src/views/equipment/analysis/quality/components/lineChart.vue b/src/views/equipment/analysis/quality/components/lineChart.vue index b31ea45e..04f25dc2 100644 --- a/src/views/equipment/analysis/quality/components/lineChart.vue +++ b/src/views/equipment/analysis/quality/components/lineChart.vue @@ -43,7 +43,7 @@ export default { eq.okQuantity, eq.nokQuantity, eq.totalQuantity, - eq.passRate.toFixed(4), + eq.passRate?.toFixed(4), ]); }); return { diff --git a/src/views/equipment/analysis/quality/index.vue b/src/views/equipment/analysis/quality/index.vue index 89859e5e..8b023489 100644 --- a/src/views/equipment/analysis/quality/index.vue +++ b/src/views/equipment/analysis/quality/index.vue @@ -29,7 +29,10 @@ @emitFun="handleEmitFun"> -
+
各设备加工数量
@@ -87,6 +90,7 @@ export default { rangeSeparator: '-', startPlaceholder: '开始日期', endPlaceholder: '结束日期', + defaultTime: ['00:00:00', '23:59:59'], param: 'recordTime', defaultSelect: [ new Date(y, m, d) @@ -246,7 +250,9 @@ export default { created() { this.fillLineOptions(); this.fillProductOptions(); - this.getList(); + }, + mounted() { + this.$refs['search-bar'].headBtnClick('search'); }, methods: { handleTabClick(tab, event) { @@ -307,12 +313,16 @@ export default { }, handleSearchBarBtnClick(btn) { - console.log('handleSearchBarBtnClick', btn); + // debugger; switch (btn.btnName) { case 'search': this.queryParams.lineId = btn.lineId; this.queryParams.productId = btn.productId; - this.queryParams.recordTime = btn.recordTime ? btn.recordTime.map(time => moment(new Date(time)).format('YYYY-MM-DD HH:mm:ss')) : null; + this.queryParams.recordTime = btn.recordTime + ? btn.recordTime.map((time) => + moment(new Date(time)).format('YYYY-MM-DD HH:mm:ss') + ) + : null; this.$nextTick(() => { this.getList(); }); @@ -388,7 +398,7 @@ export default { font-size: 14px; &::before { - content: ""; + content: ''; position: absolute; left: 0; top: 6px; @@ -398,5 +408,4 @@ export default { background: #0b58ff; } } - diff --git a/src/views/equipment/timing-diagram/output/index.vue b/src/views/equipment/timing-diagram/output/index.vue index 829bf109..d1a495ae 100644 --- a/src/views/equipment/timing-diagram/output/index.vue +++ b/src/views/equipment/timing-diagram/output/index.vue @@ -74,7 +74,7 @@ - - - - \ No newline at end of file