Commit c4bc25d0 authored by liwei's avatar liwei

去掉了暂无数据弹窗提示,修改了列表样式

parent f36ce7d7
...@@ -90,16 +90,6 @@ function getDataByParams() { ...@@ -90,16 +90,6 @@ function getDataByParams() {
item.alarmStatus = '' item.alarmStatus = ''
} }
getAlarmListData(item).then(res => { getAlarmListData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
AlarmData.value = res.rows AlarmData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
......
...@@ -92,17 +92,6 @@ function getDataByParams() { ...@@ -92,17 +92,6 @@ function getDataByParams() {
item.alarmStatus = '' item.alarmStatus = ''
} }
getListHistoryData(item).then(res => { getListHistoryData(item).then(res => {
if(res.total === 0){
loading.value = false
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
HistoryData.value = res.rows HistoryData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
...@@ -173,7 +162,7 @@ function Nindex(index) { ...@@ -173,7 +162,7 @@ function Nindex(index) {
:data="HistoryData" :data="HistoryData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(100vh - 280px)" height="calc(100vh - 330px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
......
...@@ -90,17 +90,6 @@ function getDataByParams() { ...@@ -90,17 +90,6 @@ function getDataByParams() {
item.alarmStatus = '' item.alarmStatus = ''
} }
getListNewData(item).then(res => { getListNewData(item).then(res => {
if(res.total === 0){
loading.value = false
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
ExtinguisherNewData.value = res.rows ExtinguisherNewData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
......
...@@ -94,17 +94,6 @@ function getDataByParams(){ ...@@ -94,17 +94,6 @@ function getDataByParams(){
item.alarmStatus = '' item.alarmStatus = ''
} }
getMoveListAlarmNewData(item).then(res => { getMoveListAlarmNewData(item).then(res => {
if(res.total === 0){
loading.value = false
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
AlarmData.value = res.rows AlarmData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
......
...@@ -100,17 +100,6 @@ function getDataByParams(){ ...@@ -100,17 +100,6 @@ function getDataByParams(){
item.alarmStatus = '' item.alarmStatus = ''
} }
getMoveListHistoryData(item).then(res => { getMoveListHistoryData(item).then(res => {
if(res.total === 0){
loading.value = false
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
HistoryData.value = res.rows HistoryData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
...@@ -183,7 +172,7 @@ function Nindex(index) { ...@@ -183,7 +172,7 @@ function Nindex(index) {
:data="HistoryData" :data="HistoryData"
border border
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(100vh - 280px)" height="calc(100vh - 330px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
......
...@@ -88,17 +88,6 @@ function getDataByParams(){ ...@@ -88,17 +88,6 @@ function getDataByParams(){
item.alarmStatus = '' item.alarmStatus = ''
} }
getMoveListNewData(item).then(res => { getMoveListNewData(item).then(res => {
if(res.total === 0){
loading.value = false
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
MoveMonitorNewData.value = res.rows MoveMonitorNewData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
......
...@@ -76,16 +76,6 @@ function getDataByParams(){ ...@@ -76,16 +76,6 @@ function getDataByParams(){
item.endTime = '' item.endTime = ''
} }
getPipListAlarmData(item).then(res => { getPipListAlarmData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
AlarmData.value = res.rows AlarmData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
...@@ -176,7 +166,7 @@ function Nindex(index) { ...@@ -176,7 +166,7 @@ function Nindex(index) {
border border
:cell-style="setCellStyle" :cell-style="setCellStyle"
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(100vh - 280px)" height="calc(100vh - 330px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
......
...@@ -98,16 +98,6 @@ function getDataByParams() { ...@@ -98,16 +98,6 @@ function getDataByParams() {
item.endTime = '' item.endTime = ''
} }
getPipListHistoryData(item).then(res => { getPipListHistoryData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
HistoryData.value = res.rows HistoryData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
...@@ -204,7 +194,7 @@ function Nindex(index) { ...@@ -204,7 +194,7 @@ function Nindex(index) {
border border
:cell-style="setCellStyle" :cell-style="setCellStyle"
style="width: 98%;margin-left: 15px" style="width: 98%;margin-left: 15px"
height="calc(100vh - 280px)" height="calc(100vh - 330px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@sort-change="handleSortChange" @sort-change="handleSortChange"
......
...@@ -66,16 +66,6 @@ watch( ...@@ -66,16 +66,6 @@ watch(
(newData) => { (newData) => {
params.value = newData params.value = newData
getPipListNewData(params.value).then(res => { getPipListNewData(params.value).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
PipelineTempNewData.value = res.rows PipelineTempNewData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
...@@ -96,16 +86,6 @@ function getDataByParams() { ...@@ -96,16 +86,6 @@ function getDataByParams() {
sortList: sortList, sortList: sortList,
} }
getPipListNewData(item).then(res => { getPipListNewData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
PipelineTempNewData.value = res.rows PipelineTempNewData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
......
...@@ -89,16 +89,6 @@ function getDataByParams(){ ...@@ -89,16 +89,6 @@ function getDataByParams(){
item.endTime = '' item.endTime = ''
} }
getRecycleListAlarmData(item).then(res => { getRecycleListAlarmData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
TransTempAlarmData.value = res.rows TransTempAlarmData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
......
...@@ -110,16 +110,6 @@ function getDataByParams(){ ...@@ -110,16 +110,6 @@ function getDataByParams(){
item.endTime = '' item.endTime = ''
} }
getRecycleListHistoryData(item).then(res => { getRecycleListHistoryData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
RecyclePumpData.value = res.rows RecyclePumpData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
...@@ -484,7 +474,7 @@ function Nindex(index) { ...@@ -484,7 +474,7 @@ function Nindex(index) {
:data="RecyclePumpData" :data="RecyclePumpData"
border border
style="width: 45%;margin-left: 15px" style="width: 45%;margin-left: 15px"
height="calc(100vh - 280px)" height="calc(100vh - 330px)"
:header-cell-class-name="tableHeaderClass" :header-cell-class-name="tableHeaderClass"
:row-class-name="tableBodyClass" :row-class-name="tableBodyClass"
@row-click="selectRow" @row-click="selectRow"
......
...@@ -101,16 +101,6 @@ function getDataByParams(){ ...@@ -101,16 +101,6 @@ function getDataByParams(){
} }
console.log('item-----------',item) console.log('item-----------',item)
getRecycleListNewData(item).then(res => { getRecycleListNewData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
RecyclePumpData.value = res.rows RecyclePumpData.value = res.rows
Page.total = res.total Page.total = res.total
Page.rows = res.pageSize Page.rows = res.pageSize
......
...@@ -142,16 +142,6 @@ const handleSortChange = (data) => { ...@@ -142,16 +142,6 @@ const handleSortChange = (data) => {
//查询数据 //查询数据
getTransListHistoryData(item).then(res => { getTransListHistoryData(item).then(res => {
TransTempHistoryData.value = res.rows TransTempHistoryData.value = res.rows
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
Page.rows = res.pageSize Page.rows = res.pageSize
Page.total = res.total Page.total = res.total
loading.value = false loading.value = false
......
...@@ -90,16 +90,6 @@ function loadData() { ...@@ -90,16 +90,6 @@ function loadData() {
} }
//查询数据 //查询数据
getVoiceCommandsLocationData(item).then(res => { getVoiceCommandsLocationData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
voiceCommandLocationData.value = res.rows voiceCommandLocationData.value = res.rows
Page.rows = res.pageSize Page.rows = res.pageSize
Page.total = res.total Page.total = res.total
......
...@@ -115,16 +115,6 @@ function loadData(){ ...@@ -115,16 +115,6 @@ function loadData(){
console.log('item:',item) console.log('item:',item)
//查询数据 //查询数据
getVoiceCommandsData(item).then(res => { getVoiceCommandsData(item).then(res => {
if(res.total === 0){
ElMessage.success({
message: '数据为空!'
})
}
if(res.total === 500){
ElMessage.error({
message: '网络错误!'
})
}
VoiceCommandData.value = res.rows VoiceCommandData.value = res.rows
Page.rows = res.pageSize Page.rows = res.pageSize
Page.total = res.total Page.total = res.total
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment