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

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; 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },
}, },

View File

@ -77,10 +77,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

@ -77,10 +77,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

@ -78,10 +78,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

@ -78,10 +78,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

@ -82,10 +82,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

@ -77,10 +77,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

@ -77,10 +77,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

@ -78,10 +78,14 @@ 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.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) if (res.result.length>0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

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,14 +147,18 @@ export default {
}, },
findStationList() { findStationList() {
getAction(this.url.findStationList, { menuName: '' }).then((res) => { getAction(this.url.findStationList, { menuName: '' }).then((res) => {
if (res.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) 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.queryParam.stationIds = this.stationList.map(item => item.value)
this.searchQueryData() this.allChecked = true
this.searchQueryData()
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

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,14 +147,18 @@ export default {
}, },
findStationList() { findStationList() {
getAction(this.url.findStationList, { menuName: '' }).then((res) => { getAction(this.url.findStationList, { menuName: '' }).then((res) => {
if (res.result.length>0) { if (res.success) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId })) 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.queryParam.stationIds = this.stationList.map(item => item.value)
this.searchQueryData() this.allChecked = true
this.searchQueryData()
} else {
this.stationList=[]
}
} else { } else {
this.stationList=[] this.$message.warning(res.message)
} }
}) })
}, },

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)
} }
}) })
}, },