diff --git a/.env.prod b/.env.prod
index 43504e8f..70b8fb4a 100644
--- a/.env.prod
+++ b/.env.prod
@@ -1,3 +1,10 @@
+###
+ # @Author: zhp
+ # @Date: 2023-11-07 19:11:40
+ # @LastEditTime: 2023-11-16 16:40:59
+ # @LastEditors: zhp
+ # @Description:
+###
# 生产环境配置
ENV = 'production'
@@ -5,7 +12,8 @@ ENV = 'production'
VUE_APP_TITLE = MES系统
# 芋道管理系统/生产环境
-VUE_APP_BASE_API = '/prod-api'
+VUE_APP_BASE_API = 'http://192.168.0.33:48082'
+
# 根据服务器或域名修改
# PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/'
diff --git a/public/static/videos/login.webm b/public/static/videos/login.webm
index 43e188f6..18203c39 100644
Binary files a/public/static/videos/login.webm and b/public/static/videos/login.webm differ
diff --git a/src/api/equipment/base/inspection/record.js b/src/api/equipment/base/inspection/record.js
index 7cf3941c..31bb481e 100644
--- a/src/api/equipment/base/inspection/record.js
+++ b/src/api/equipment/base/inspection/record.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-08 15:56:52
- * @LastEditTime: 2023-11-13 09:15:17
+ * @LastEditTime: 2023-11-16 20:15:02
* @LastEditors: DY
* @Description:
*/
@@ -60,3 +60,11 @@ export function getcheckConfigByEqList(query) {
params: query
})
}
+
+// 删除设备巡检记录
+export function deleteEqCheckLog(id) {
+ return request({
+ url: '/base/equipment-check-log/delete?id=' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/equipment/base/maintain/record.js b/src/api/equipment/base/maintain/record.js
new file mode 100644
index 00000000..e4385ea6
--- /dev/null
+++ b/src/api/equipment/base/maintain/record.js
@@ -0,0 +1,16 @@
+/*
+ * @Author: Do not edit
+ * @Date: 2023-11-08 15:56:52
+ * @LastEditTime: 2023-11-16 20:22:12
+ * @LastEditors: DY
+ * @Description:
+ */
+import request from '@/utils/request'
+
+// 删除设备保养记录
+export function deleteEqMaintainLog(id) {
+ return request({
+ url: '/base/equipment-maintain-log/delete?id=' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/equipment/base/repair.js b/src/api/equipment/base/repair.js
index a93e4a9f..c8b115e2 100644
--- a/src/api/equipment/base/repair.js
+++ b/src/api/equipment/base/repair.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-10 16:09:33
- * @LastEditTime: 2023-11-10 16:50:08
+ * @LastEditTime: 2023-11-16 18:57:08
* @LastEditors: DY
* @Description:
*/
@@ -22,4 +22,12 @@ export function updateEqRepair(data) {
method: 'put',
data: data
})
-}
\ No newline at end of file
+}
+
+// 删除维修记录
+export function deleteRepair(id) {
+ return request({
+ url: '/base/equipment-repair-log/delete?id=' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/equipment/base/spare-parts/config.js b/src/api/equipment/base/spare-parts/config.js
index b2201cad..0abc7f56 100644
--- a/src/api/equipment/base/spare-parts/config.js
+++ b/src/api/equipment/base/spare-parts/config.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-11 16:18:57
- * @LastEditTime: 2023-11-11 17:28:54
+ * @LastEditTime: 2023-11-16 20:52:06
* @LastEditors: DY
* @Description:
*/
@@ -48,4 +48,21 @@ export function getSparePartList(query) {
method: 'get',
params: query
})
-}
\ No newline at end of file
+}
+
+// 删除设备备品备件配置
+export function deleteConfig(id) {
+ return request({
+ url: '/base/equipment-spare-part-config/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得备品备件分页
+export function getSparePartPage(query) {
+ return request({
+ url: '/base/equipment-spare-part/page',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/api/extend/processEquMaterialBom.js b/src/api/extend/processEquMaterialBom.js
index 5be7bfb0..def6ad48 100644
--- a/src/api/extend/processEquMaterialBom.js
+++ b/src/api/extend/processEquMaterialBom.js
@@ -1,7 +1,7 @@
/*
* @Author: zhp
* @Date: 2023-11-07 19:47:48
- * @LastEditTime: 2023-11-08 16:59:32
+ * @LastEditTime: 2023-11-16 17:49:23
* @LastEditors: zhp
* @Description:
*/
@@ -12,7 +12,7 @@ export function processEquMaterialBomPage(data) {
return request({
url: '/extend/process-equ-material-bom/page',
method: 'get',
- data: data
+ params: data
})
}
diff --git a/src/api/extend/processEquValueBom.js b/src/api/extend/processEquValueBom.js
index 8048c56b..93d6a740 100644
--- a/src/api/extend/processEquValueBom.js
+++ b/src/api/extend/processEquValueBom.js
@@ -1,18 +1,18 @@
/*
* @Author: zhp
* @Date: 2023-11-09 09:37:14
- * @LastEditTime: 2023-11-09 14:20:02
+ * @LastEditTime: 2023-11-16 17:47:21
* @LastEditors: zhp
* @Description:
*/
import request from '@/utils/request'
-// 获得能耗统计查询分页
+
export function processEquValueBomPage(data) {
return request({
url: '/extend/process-equ-value-bom/page',
method: 'get',
- data: data
+ params: data
})
}
diff --git a/src/api/monitoring/statisticalData.js b/src/api/monitoring/statisticalData.js
index cdf92812..2d0f19be 100644
--- a/src/api/monitoring/statisticalData.js
+++ b/src/api/monitoring/statisticalData.js
@@ -1,7 +1,7 @@
/*
* @Author: zhp
* @Date: 2023-11-07 14:10:18
- * @LastEditTime: 2023-11-14 14:46:04
+ * @LastEditTime: 2023-11-16 17:49:52
* @LastEditors: zhp
* @Description:
*/
@@ -12,7 +12,7 @@ export function getStatisticalDataPage(query) {
return request({
url: '/base/statistical-data/getStatisticData',
method: 'get',
- data: query
+ params: query
})
}
diff --git a/src/assets/styles/login.scss b/src/assets/styles/login.scss
index 55889fcb..bea1fe9d 100644
--- a/src/assets/styles/login.scss
+++ b/src/assets/styles/login.scss
@@ -94,8 +94,11 @@ $buttonHeight: $buttonH * 1px;
display: flex;
.pic {
+ flex: 3;
+ width: 1px;
+ min-width: 800px;
// 元素
- width: $picWidth;
+ // width: $picWidth;
height: $picHeight;
background-image: url($picImage);
background-repeat: no-repeat;
@@ -116,7 +119,8 @@ $buttonHeight: $buttonH * 1px;
.field {
position: relative;
margin-top: 8%;
- flex: 1;
+ flex: 2;
+ // width: 800px;
display: flex;
flex-direction: column;
align-items: center;
@@ -170,7 +174,7 @@ $buttonHeight: $buttonH * 1px;
}
.form {
- margin-top: 32px;
+ margin-top: 0;
box-sizing: border-box;
// width: $formWidth;
width: 100%;
@@ -307,6 +311,19 @@ $buttonHeight: $buttonH * 1px;
}
// - - - - - PC 最小尺寸设置
+@media screen and (min-width: 1920px) {
+ .container {
+ .content {
+
+ .field {
+ flex: initial;
+ width: 800px;
+ }
+ }
+ }
+}
+
+
@media screen and (min-width: 599px) and (max-width: 1366px) {
.container {
min-width: 599px;
diff --git a/src/views/base/coreEquipment/index.vue b/src/views/base/coreEquipment/index.vue
index 2c51a435..1e421925 100644
--- a/src/views/base/coreEquipment/index.vue
+++ b/src/views/base/coreEquipment/index.vue
@@ -17,7 +17,7 @@
-
diff --git a/src/views/base/custom/index.vue b/src/views/base/custom/index.vue
index 4f5ffd56..23b591f5 100644
--- a/src/views/base/custom/index.vue
+++ b/src/views/base/custom/index.vue
@@ -202,7 +202,7 @@ export default {
}
},
created() {
- this.init()
+ // this.init()
// console.log('aaaaaa')
// this.otherPaper()
},
@@ -227,64 +227,67 @@ export default {
changeMode() {
// hiprintTemplate.clear()
// console.log(this.modelData)
- const { mode } = this
- const provider = providers[mode]
- hiprint.init({
- providers: [provider.f]
- })
+ this.$nextTick(() => {
+ const { mode } = this
+ const provider = providers[mode]
+ hiprint.init({
+ providers: [provider.f]
+ })
- // $('#hiprint-printTemplate').empty()
- // console.log(JSON.parse(this.modelData))
- hiprint.setConfig()
- // 替换配置
- hiprint.setConfig({
- movingDistance: 2.5,
- text: {
- supportOptions: [
- {
- name: 'styler',
- hidden: true
- },
- {
- name: 'formatter',
- hidden: true
- }
- ]
+ // $('#hiprint-printTemplate').empty()
+ // console.log(JSON.parse(this.modelData))
+ hiprint.setConfig()
+ // 替换配置
+ hiprint.setConfig({
+ movingDistance: 2.5,
+ text: {
+ supportOptions: [
+ {
+ name: 'styler',
+ hidden: true
+ },
+ {
+ name: 'formatter',
+ hidden: true
+ }
+ ]
+ }
+ })
+
+ // console.log(this.modelData)
+ // console.log($('#hiprint-printTemplate').empty())
+ if (this.modelData != {}) {
+ console.log(this.modelData);
+ $('.hiprintEpContainer').empty()
+ hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
+ $('.hiprint-printTemplate').empty()
+ hiprintTemplate = new hiprint.PrintTemplate({
+ template: JSON.parse(this.modelData),
+ settingContainer: '#PrintElementOptionSetting',
+ paginationContainer: '.hiprint-printPagination'
+ })
+ } else {
+ $('.hiprintEpContainer').empty()
+ console.log(this.modelData);
+ hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
+ $('.hiprint-printTemplate').empty()
+ // const templates = this.$ls.get('KEY_TEMPLATES', {})
+ const template = provider.value
+ // console.log(template)
+ hiprintTemplate = new hiprint.PrintTemplate({
+ template: template,
+ settingContainer: '#PrintElementOptionSetting',
+ paginationContainer: '.hiprint-printPagination'
+ })
}
+ hiprintTemplate.design('#hiprint-printTemplate')
+ // console.log(hiprintTemplate)
+ console.log(hiprintTemplate);
+ // hiprintTemplate.design('#hiprint-printTemplate', { grid: true })
+ // 获取当前放大比例, 当zoom时传true 才会有
+ this.scaleValue = hiprintTemplate.editingPanel.scale || 1
+ // this.scaleValue = hiprintTemplate.editingPanel.scale || 1
})
-
- // console.log(this.modelData)
- // console.log($('#hiprint-printTemplate').empty())
- if (this.modelData) {
- // console.log(this.modelData);
- $('.hiprintEpContainer').empty()
- hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
- $('.hiprint-printTemplate').empty()
- hiprintTemplate = new hiprint.PrintTemplate({
- template: JSON.parse(this.modelData),
- settingContainer: '#PrintElementOptionSetting',
- paginationContainer: '.hiprint-printPagination'
- })
- } else {
- $('.hiprintEpContainer').empty()
- hiprint.PrintElementTypeManager.build('.hiprintEpContainer', provider.value)
- $('.hiprint-printTemplate').empty()
- // const templates = this.$ls.get('KEY_TEMPLATES', {})
- const template = provider.value
- // console.log(template)
- hiprintTemplate = new hiprint.PrintTemplate({
- template: template,
- settingContainer: '#PrintElementOptionSetting',
- paginationContainer: '.hiprint-printPagination'
- })
- }
- // hiprintTemplate.design('#hiprint-printTemplate')
- // console.log(hiprintTemplate)
- console.log(hiprintTemplate);
- hiprintTemplate.design('#hiprint-printTemplate', { grid: true })
- // 获取当前放大比例, 当zoom时传true 才会有
- this.scaleValue = hiprintTemplate.editingPanel.scale || 1
- // this.scaleValue = hiprintTemplate.editingPanel.scale || 1
},
/**
* 设置纸张大小
diff --git a/src/views/equipment/base/config/AlarmGroup/index.vue b/src/views/equipment/base/config/AlarmGroup/index.vue
index e03c4e79..68d314ee 100644
--- a/src/views/equipment/base/config/AlarmGroup/index.vue
+++ b/src/views/equipment/base/config/AlarmGroup/index.vue
@@ -38,7 +38,7 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
+
diff --git a/src/views/equipment/base/config/BindGroup/index.vue b/src/views/equipment/base/config/BindGroup/index.vue
index 0e13b9aa..f46c177b 100644
--- a/src/views/equipment/base/config/BindGroup/index.vue
+++ b/src/views/equipment/base/config/BindGroup/index.vue
@@ -38,7 +38,7 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
+
diff --git a/src/views/equipment/base/inspection/Record/addRecord.vue b/src/views/equipment/base/inspection/Record/addRecord.vue
index 6960f96b..b3c87a72 100644
--- a/src/views/equipment/base/inspection/Record/addRecord.vue
+++ b/src/views/equipment/base/inspection/Record/addRecord.vue
@@ -49,7 +49,8 @@
filterable
:disabled="isdetail"
style="width: 100%"
- placeholder="请选择巡检配置">
+ placeholder="请选择巡检配置"
+ @change="setInspectionContet">
确定
-
-