bug 处理

This commit is contained in:
任珮宇 2024-01-22 19:22:33 +08:00
parent 6e512d1d00
commit a7b86dd469

View File

@ -64,11 +64,19 @@
<a-row type="flex" :gutter="20"> <a-row type="flex" :gutter="20">
<a-col :span="6"> <a-col :span="6">
<span class="item-label" style="width: 60px; text-align: right">Time</span> <span class="item-label" style="width: 60px; text-align: right">Time</span>
<custom-date-picker style="width: 234px" :value="moment(queryParams.startDate)" @change="startDateChange" /> <custom-date-picker
style="width: calc(100% - 70px)"
:value="moment(queryParams.startDate)"
@change="startDateChange"
/>
</a-col> </a-col>
<a-col :span="6"> <a-col :span="6">
<span class="item-label" style="width: 60px; text-align: right">to</span> <span class="item-label" style="width: 60px; text-align: right">to</span>
<custom-date-picker style="width: 234px" :value="moment(queryParams.endDate)" @change="endDateChange" /> <custom-date-picker
style="width: calc(100% - 70px)"
:value="moment(queryParams.endDate)"
@change="endDateChange"
/>
</a-col> </a-col>
</a-row> </a-row>
<div class="layout-header-btns"> <div class="layout-header-btns">
@ -152,6 +160,7 @@ const commonOptions = {
nameLocation: 'middle', nameLocation: 'middle',
nameTextStyle: { nameTextStyle: {
fontSize: 18, fontSize: 18,
color: '#5b9cba',
}, },
nameGap: 35, nameGap: 35,
boundaryGap: false, boundaryGap: false,
@ -171,7 +180,8 @@ const commonOptions = {
}, },
}, },
axisLabel: { axisLabel: {
color: '#5b9cba', color: '#ade6ee',
// color: '#5b9cba',
formatter: (value, index) => { formatter: (value, index) => {
let val = value.split(' ').join('\n') let val = value.split(' ').join('\n')
// if (index === 0) { // if (index === 0) {
@ -247,7 +257,7 @@ export default {
stationOptions: [], stationOptions: [],
nuclideOptions: [], nuclideOptions: [],
dataSouceOptions: [], dataSouceOptions: [],
stationIds: undefined, stationIds: [],
queryParams: { queryParams: {
systemType: undefined, systemType: undefined,
nuclideNames: undefined, nuclideNames: undefined,
@ -273,6 +283,7 @@ export default {
methods: { methods: {
moment, moment,
typeChange(val) { typeChange(val) {
this.stationIds = []
this.queryParams.systemType = val this.queryParams.systemType = val
if (val == 'Particulate') this.menuName = 'Particulate' if (val == 'Particulate') this.menuName = 'Particulate'
if (val == 'gamma') this.menuName = 'Noble Gas HPGe' if (val == 'gamma') this.menuName = 'Noble Gas HPGe'