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

This commit is contained in:
renpy 2023-07-14 15:18:08 +08:00 committed by orgin
parent 33cd3ff58d
commit 98179100dd
24 changed files with 165 additions and 70 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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