From 9aff24eb92e2e5d25275c42e5d9f94c0aed421c5 Mon Sep 17 00:00:00 2001
From: Houjie <714924425@qq.com>
Date: 星期二, 10 六月 2025 17:42:14 +0800
Subject: [PATCH] 模板管理调整
---
src/views/mdc/base/EquipmentOperationParamsAlarm.vue | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/views/mdc/base/EquipmentOperationParamsAlarm.vue b/src/views/mdc/base/EquipmentOperationParamsAlarm.vue
index 400450a..26b9299 100644
--- a/src/views/mdc/base/EquipmentOperationParamsAlarm.vue
+++ b/src/views/mdc/base/EquipmentOperationParamsAlarm.vue
@@ -34,8 +34,11 @@
</a-col>
<a-col :md="6" :sm="6">
- <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+ <a-space>
+ <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
+ <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button>
+ <a-button type="primary" icon="printer" v-print="'#paramsAlarm'" v-has="'paramsAlarm:print'">鎵撳嵃</a-button>
+ </a-space>
</a-col>
</a-row>
</a-form>
@@ -43,6 +46,7 @@
<a-table
ref="table"
+ id="paramsAlarm"
bordered
size="middle"
rowKey="equipmentid"
@@ -64,7 +68,7 @@
export default {
name: 'EquipmentOperationParamsAlarm',
mixins: [JeecgListMixin],
- created(){
+ created() {
this.getDriveTypeByApi()
this.queryGroup()
},
@@ -73,7 +77,7 @@
name: 'EquipmentOperationParamsAlarm',
description: '杩欐槸璁惧杩愯鍙傛暟鎶ヨ椤甸潰',
queryParam: {},
- driveTypeList:[],
+ driveTypeList: [],
selectList: [],
columns: [
{
@@ -127,12 +131,12 @@
list: '/mdc/mdcOverrunAlarm/list',
queryEquipmentType: '/mdc/mdcEquipmentType/queryEquipmentType'
},
- ipagination:{
+ ipagination: {
current: 1,
pageSize: 30,
pageSizeOptions: ['30', '50', '100'],
showTotal: (total, range) => {
- return range[0] + "-" + range[1] + " 鍏�" + total + "鏉�"
+ return range[0] + '-' + range[1] + ' 鍏�' + total + '鏉�'
},
showQuickJumper: true,
showSizeChanger: true,
@@ -145,13 +149,13 @@
}
}
},
- methods:{
+ methods: {
/**
* 璋冪敤鎺ュ彛鑾峰彇鎺у埗绯荤粺绫诲瀷
*/
- getDriveTypeByApi(){
- api.getDriveTypeApi().then((res)=>{
- this.driveTypeList=res.result.map(item=>item.value)
+ getDriveTypeByApi() {
+ api.getDriveTypeApi().then((res) => {
+ this.driveTypeList = res.result.map(item => item.value)
})
},
@@ -164,7 +168,7 @@
filterOption(input, option) {
return (
option.componentOptions.children[0].text.toUpperCase().indexOf(input.toUpperCase()) >= 0
- );
+ )
},
queryGroup() {
@@ -184,7 +188,7 @@
}).finally(() => {
this.loading = false
})
- },
+ }
}
}
</script>
--
Gitblit v1.9.3