订单名
@@ -77,7 +78,8 @@
size="60%"
:append-to-body="true"
:visible.sync="innerDrawer"
- @close='closeB'>
+ @close='closeB'
+ :show-close='false'>
diff --git a/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue b/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
index 4370bfec..e742441d 100644
--- a/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
@@ -2,7 +2,7 @@
-
+
-
+
-
+
-
+
-
+
查询
+
+ 重置
@@ -400,6 +402,19 @@ export default {
console.log(this.queryParams)
this.$emit('submit', this.queryParams)
},
+ resetBtn() {
+ this.queryParams.energyTypeId = null
+ this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时
+ this.queryParams.objIds = []
+ this.queryParams.objType = ''
+ this.timeValue = []
+ this.dateValue = []
+ this.weekValue1 = null
+ this.weekValue2 = null
+ this.monthValue = []
+ this.yearValue1 = null
+ this.yearValue2 = null
+ },
transformTime(timeStamp) {// 本月最后一天
let year = moment(timeStamp).format('YYYY')
let month = moment(timeStamp).format('MM')
@@ -471,4 +486,12 @@ export default {
height: 45px;
overflow: hidden;
}
+.separateStyle {
+ display: inline-block;
+ width: 1px;
+ height: 24px;
+ background: #E8E8E8;
+ vertical-align: middle;
+ margin: 0 10px;
+}
\ No newline at end of file
diff --git a/src/views/energy/analysis/contrastAnalysis/index.vue b/src/views/energy/analysis/contrastAnalysis/index.vue
index c1b80ffa..f7efef08 100644
--- a/src/views/energy/analysis/contrastAnalysis/index.vue
+++ b/src/views/energy/analysis/contrastAnalysis/index.vue
@@ -34,10 +34,10 @@ export default {
mounted() {
window.addEventListener('resize', () => {
this.tableH = this.tableHeight(260)
- this.isFold = this.searchBarWidth('contrastAnalysisBox', 1310)
+ this.isFold = this.searchBarWidth('contrastAnalysisBox', 1437)
// console.log(document.getElementById("contrastAnalysisBox").offsetWidth)
})
- this.isFold = this.searchBarWidth('contrastAnalysisBox', 1310)
+ this.isFold = this.searchBarWidth('contrastAnalysisBox', 1437)
},
methods: {
getList(params) {
diff --git a/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue b/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue
index d98a27ba..0db3d844 100644
--- a/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/qoqAnalysis/components/searchArea.vue
@@ -1,7 +1,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
查询
+
+ 重置
@@ -360,6 +362,14 @@ export default {
this.queryParams.endTime = this.queryParams.endTime + ''
this.$emit('submit', this.queryParams)
},
+ // 重置
+ resetBtn() {
+ this.queryParams.energyTypeId = null
+ this.queryParams.objId = null
+ this.objArr = []
+ this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时
+ this.timeValue = [moment().startOf('day'), moment().endOf('day')-59*61*1000]
+ },
transformTime(timeStamp) {// 本月最后一天
let year = moment(timeStamp).format('YYYY')
let month = moment(timeStamp).format('MM')
@@ -435,4 +445,12 @@ export default {
height: 45px;
overflow: hidden;
}
+.separateStyle {
+ display: inline-block;
+ width: 1px;
+ height: 24px;
+ background: #E8E8E8;
+ vertical-align: middle;
+ margin: 0 10px;
+}
\ No newline at end of file
diff --git a/src/views/energy/analysis/trendAnalysis/index.vue b/src/views/energy/analysis/trendAnalysis/index.vue
index 004e93e2..20b5402c 100644
--- a/src/views/energy/analysis/trendAnalysis/index.vue
+++ b/src/views/energy/analysis/trendAnalysis/index.vue
@@ -34,9 +34,9 @@ export default {
mounted() {
window.addEventListener('resize', () => {
this.tableH = this.tableHeight(260)
- this.isFold = this.searchBarWidth('trendAnalysisBox', 1146)
+ this.isFold = this.searchBarWidth('trendAnalysisBox', 1263)
})
- this.isFold = this.searchBarWidth('trendAnalysisBox', 1146)
+ this.isFold = this.searchBarWidth('trendAnalysisBox', 1263)
},
methods: {
getList(params) {
diff --git a/src/views/energy/analysis/yoyAnalysis/components/searchArea.vue b/src/views/energy/analysis/yoyAnalysis/components/searchArea.vue
index 3b74bd70..77712e35 100644
--- a/src/views/energy/analysis/yoyAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/yoyAnalysis/components/searchArea.vue
@@ -1,7 +1,7 @@
-
+
-
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue b/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue
index 34cf9321..059ca6a7 100644
--- a/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue
+++ b/src/views/energy/base/energyPlcConnect/components/energyPlcParam.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/views/energy/base/energyQuantityRealtime/index.vue b/src/views/energy/base/energyQuantityRealtime/index.vue
index d65f29f8..fd101a3e 100644
--- a/src/views/energy/base/energyQuantityRealtime/index.vue
+++ b/src/views/energy/base/energyQuantityRealtime/index.vue
@@ -27,7 +27,7 @@
diff --git a/src/views/equipment/analysis/efficiency/index.vue b/src/views/equipment/analysis/efficiency/index.vue
index 9e3e9611..cc49a574 100644
--- a/src/views/equipment/analysis/efficiency/index.vue
+++ b/src/views/equipment/analysis/efficiency/index.vue
@@ -237,6 +237,7 @@ export default {
label: '工厂',
placeholder: '请选择工厂',
param: 'factoryId',
+ filterable: true,
selectOptions: [],
},
{
@@ -244,6 +245,7 @@ export default {
label: '产线',
placeholder: '请选择产线',
param: 'lineId',
+ filterable: true,
selectOptions: [],
},
// 选项切换
diff --git a/src/views/equipment/base/alarm/Record/index.vue b/src/views/equipment/base/alarm/Record/index.vue
index 82e066d7..9cb27907 100644
--- a/src/views/equipment/base/alarm/Record/index.vue
+++ b/src/views/equipment/base/alarm/Record/index.vue
@@ -310,7 +310,7 @@ export default {
this.$modal
.confirm('是否确认删除记录"' + row.name + '"?')
.then(function () {
- return this.delete({ id });
+ return this.del({ id });
})
.then(() => {
this.getList();
diff --git a/src/views/equipment/base/config/AlarmGroup/index.vue b/src/views/equipment/base/config/AlarmGroup/index.vue
index f94945c1..f32f10f5 100644
--- a/src/views/equipment/base/config/AlarmGroup/index.vue
+++ b/src/views/equipment/base/config/AlarmGroup/index.vue
@@ -198,26 +198,23 @@ export default {
prop: 'createTime',
label: '添加时间',
fixed: true,
- width: 180,
filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
},
- { width: 240, prop: 'code', label: '报警编码' },
+ { prop: 'code', label: '报警编码' },
{
- width: 100,
prop: 'type',
label: '报警类型',
filter: (val) =>
val != null ? ['-', '字符型', '布尔型', '-'][val] : '-',
},
{
- width: 90,
prop: 'grade',
label: '报警级别',
filter: publicFormatter(this.DICT_TYPE.EQU_ALARM_LEVEL),
},
- { width: 180, prop: 'alarmCode', label: '设备报警编码' },
- { width: 128, prop: 'plcParamName', label: '参数列名' },
- { width: 128, prop: 'alarmContent', label: '报警内容' },
+ { prop: 'alarmCode', label: '设备报警编码' },
+ { prop: 'plcParamName', label: '参数列名' },
+ { prop: 'alarmContent', label: '报警内容' },
],
alarmForm: {
id: undefined,
diff --git a/src/views/equipment/base/inspection/Content/index.vue b/src/views/equipment/base/inspection/Content/index.vue
index a8f23062..e79cf7b7 100644
--- a/src/views/equipment/base/inspection/Content/index.vue
+++ b/src/views/equipment/base/inspection/Content/index.vue
@@ -52,7 +52,7 @@
import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
import { publicFormatter } from '@/utils/dict';
-import { deleteCheck } from "@/api/equipment/base/inspection/settings";
+import { deleteCheck } from '@/api/equipment/base/inspection/settings';
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@@ -128,15 +128,21 @@ export default {
label: '巡检内容编号',
prop: 'code',
url: '/base/equipment-check/getCode',
- rules: [{ required: true, message: '巡检内容编号不能为空', trigger: 'blur' }],
+ rules: [
+ {
+ required: true,
+ message: '巡检内容编号不能为空',
+ trigger: 'blur',
+ },
+ ],
},
- ],
- [
{
input: true,
label: '巡检项目',
prop: 'program',
- rules: [{ required: true, message: '巡检项目不能为空', trigger: 'blur' }],
+ rules: [
+ { required: true, message: '巡检项目不能为空', trigger: 'blur' },
+ ],
},
],
[
@@ -144,10 +150,10 @@ export default {
input: true,
label: '巡检内容',
prop: 'content',
- rules: [{ required: true, message: '巡检内容不能为空', trigger: 'blur' }],
+ rules: [
+ { required: true, message: '巡检内容不能为空', trigger: 'blur' },
+ ],
},
- ],
- [
{
input: true,
label: '备注',
@@ -168,7 +174,7 @@ export default {
code: '',
program: '',
id: undefined,
- content: ''
+ content: '',
},
basePath: '/base/equipment-check',
mode: null,
@@ -271,10 +277,10 @@ export default {
handleDelete(row) {
const id = row.id;
this.$modal
- .confirm('是否确认删除巡检项目名称为"' + row.program + '"的数据项?')
+ .confirm('是否确认删除该巡检项目?')
.then(function () {
- // return this.delete({ id });
- return deleteCheck(id)
+ // return this.del({ id });
+ return deleteCheck(id);
})
.then(() => {
this.getList();
diff --git a/src/views/equipment/base/inspection/Record/index.vue b/src/views/equipment/base/inspection/Record/index.vue
index 98a9604d..35a09628 100644
--- a/src/views/equipment/base/inspection/Record/index.vue
+++ b/src/views/equipment/base/inspection/Record/index.vue
@@ -105,6 +105,7 @@ export default {
label: '设备',
placeholder: '请选择设备',
param: 'equipmentId',
+ filterable: true
},
// 开始结束时间
{
diff --git a/src/views/equipment/base/inspection/Settings/index.vue b/src/views/equipment/base/inspection/Settings/index.vue
index 422c146b..d7207dc0 100644
--- a/src/views/equipment/base/inspection/Settings/index.vue
+++ b/src/views/equipment/base/inspection/Settings/index.vue
@@ -54,7 +54,6 @@
+
+
diff --git a/src/views/equipment/monitor/StatusAndParams/index.vue b/src/views/equipment/monitor/StatusAndParams/index.vue
index d34c5fa6..5bb0dedc 100644
--- a/src/views/equipment/monitor/StatusAndParams/index.vue
+++ b/src/views/equipment/monitor/StatusAndParams/index.vue
@@ -1,10 +1,7 @@
-
+
-
+ @clickBtn="handleTableBtnClick" /> -->
@@ -50,22 +47,23 @@