@ -1,10 +1,24 @@
< template >
< div class = "sys-tenant-container" >
< div style = "max-width: 100%;font-size: large;" >
< el -alert :title ="$t('message.un_repair_info.tip')" type = "error" :closable ="false" / >
< / div >
< el -card shadow = "hover" : body -style = " { paddingBottom : ' 0 ' } " >
< el -form :model ="state.queryParams" ref = "queryForm" :inline ="true" >
< el -form -item >
< label class = "label" > { { $t ( 'message.un_repair_info.Device_code' ) } } : < / label >
< el -input v -model = " state.queryParams.equipCode " :placeholder ="$t('message.un_repair_info.Please_enter')" clearable / >
< / e l - f o r m - i t e m >
< el -form -item >
< label class = "label" > { { $t ( 'message.un_repair_info.Alarm_level' ) } } : < / label >
< el -input v -model = " state.queryParams.errorLevel " :placeholder ="$t('message.un_repair_info.Please_enter')" clearable / >
< / e l - f o r m - i t e m >
< el -form -item >
< label class = "label" > { { $t ( 'message.un_repair_info.Start_time' ) } } : < / label >
< el -date -picker v -model = " state.queryParams.startTime " type = "datetime" :placeholder ="$t('message.un_repair_info.Please_enter')" format = "YYYY-MM-DD HH:mm:ss" value -format = " YYYY -MM -DD HH : mm : ss " / >
<!-- < el -input v -model = " state.queryParams.startTime " :placeholder ="$t('message.un_repair_info.Please_enter')" clearable / > -- >
< / e l - f o r m - i t e m >
<!-- < el -form -item :label ="$t('message.un_repair_info.Device_code')" >
< el -input v -model = " state.queryParams.equipCode " :placeholder ="$t('message.un_repair_info.Please_enter')" clearable / >
@ -74,6 +88,8 @@ const state = reactive({
tenantData : [ ] ,
queryParams : {
equipCode : undefined ,
errorLevel : undefined ,
startTime : undefined ,
} ,
tableParams : {
pageNum : 1 ,
@ -90,7 +106,7 @@ onMounted(async () => {
/ / 查 询 操 作
const handleQuery = async ( ) => {
state . loading = true ;
let params = Object . assign ( state . queryParams , state . tableParams ) ;
let params = Object . assign ( state . queryParams , state . tableParams ) ;
var res = await getAPI ( SysEquipAlarmLogApi ) . apiQueryEquipAlarmPagePost ( params ) ;
state . tenantData = res . data . data ? . rows ? ? [ ] ;
state . toTal = res . data . data ? . toTal ;
@ -100,7 +116,9 @@ const handleQuery = async () => {
/ / 重 置 操 作
const resetQuery = ( ) => {
state . queryParams . equipCode = undefined ;
( state . queryParams . equipCode = undefined ) , handleQuery ( ) ;
state . queryParams . errorLevel = undefined ;
state . queryParams . startTime = undefined ;
( state . queryParams . equipCode = undefined , state . queryParams . errorLevel = undefined , state . queryParams . startTime = undefined ) , handleQuery ( ) ;
} ;
const handleExport = async ( ) => {