按钮增加手型样式,请求增加错误提示代码

This commit is contained in:
renpy 2023-07-14 15:18:08 +08:00
parent f3091bdb84
commit c985ffa6f3
24 changed files with 165 additions and 70 deletions

View File

@ -867,6 +867,7 @@ export default {
padding: 0 12px;
margin-left: 20px;
background-color: #1397a3;
cursor: pointer;
.icon-download{
width: 16px;
height: 19px;

View File

@ -143,6 +143,7 @@ export default {
padding: 0 12px;
margin-left: 20px;
background-color: #1397a3;
cursor: pointer;
.icon-download{
width: 16px;
height: 19px;

View File

@ -137,6 +137,8 @@ export default {
this.ipagination.pageSize = res.result.size
this.ipagination.total = res.result.total
this.dataSource = res.result.records
} else {
this.$message.warning(res.message)
}
})
} else {

View File

@ -82,11 +82,16 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},
},

View File

@ -77,10 +77,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -77,10 +77,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -78,10 +78,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -78,10 +78,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -82,10 +82,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -77,10 +77,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -77,10 +77,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -78,10 +78,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -78,10 +78,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -102,9 +102,7 @@ export default {
},
url: {
list: '/webStatistics/findParticulatePage',
delete: '/gardsSampleData/deleteById',
findStationList: '/webStatistics/findStationList',
findParticulatePage: '/jeecg-web-statistics/webStatistics/findParticulatePage',
},
stationList: [],
dataSource: [],
@ -153,6 +151,8 @@ export default {
this.ipagination.pageSize = res.result.size
this.ipagination.total = res.result.total
this.dataSource = res.result.records
} else {
this.$message.warning(res.message)
}
})
},
@ -173,10 +173,14 @@ export default {
},
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -82,10 +82,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -77,10 +77,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -77,10 +77,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -78,10 +78,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -78,10 +78,14 @@ export default {
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -126,6 +126,8 @@ export default {
this.ipagination.pageSize = res.result.size
this.ipagination.total = res.result.total
this.dataSource = res.result.records
} else {
this.$message.warning(res.message)
}
})
} else {
@ -134,10 +136,14 @@ export default {
},
findStationList() {
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -137,6 +137,8 @@ export default {
this.ipagination.pageSize = res.result.size
this.ipagination.total = res.result.total
this.dataSource = res.result.records
} else {
this.$message.warning(res.message)
}
})
} else {
@ -145,10 +147,14 @@ export default {
},
findStationList() {
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -137,6 +137,8 @@ export default {
this.ipagination.pageSize = res.result.size
this.ipagination.total = res.result.total
this.dataSource = res.result.records
} else {
this.$message.warning(res.message)
}
})
} else {
@ -145,14 +147,18 @@ export default {
},
findStationList() {
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
this.queryParam.stationIds = this.stationList.map(item => item.value)
this.allChecked = true
this.searchQueryData()
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
this.queryParam.stationIds = this.stationList.map(item => item.value)
this.allChecked = true
this.searchQueryData()
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -137,6 +137,8 @@ export default {
this.ipagination.pageSize = res.result.size
this.ipagination.total = res.result.total
this.dataSource = res.result.records
} else {
this.$message.warning(res.message)
}
})
} else {
@ -145,14 +147,18 @@ export default {
},
findStationList() {
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
this.queryParam.stationIds = this.stationList.map(item => item.value)
this.allChecked = true
this.searchQueryData()
if (res.success) {
if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
this.queryParam.stationIds = this.stationList.map(item => item.value)
this.allChecked = true
this.searchQueryData()
} else {
this.stationList=[]
}
} else {
this.stationList=[]
this.$message.warning(res.message)
}
})
},

View File

@ -107,6 +107,8 @@ export default {
this.ipagination.pageSize = res.result.size
this.ipagination.total = res.result.total
this.dataSource = res.result.records
} else {
this.$message.warning(res.message)
}
})
},