diff --git a/src/components/SearchForm/index.vue b/src/components/SearchForm/index.vue
index 5520d73..0259b36 100644
--- a/src/components/SearchForm/index.vue
+++ b/src/components/SearchForm/index.vue
@@ -10,7 +10,10 @@
:style="item.style"
>
-
+
+ {{ item.innerLabel }}
+
+
diff --git a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue
index e862a41..4604c00 100644
--- a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue
+++ b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue
@@ -1349,7 +1349,6 @@ export default {
this.resetChartOpts()
})
- this.BaseCtrls = cloneDeep(this.baseCtrls_Copy)
this.replotNeeded = false
} else {
this.$message.error(message)
diff --git a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue
index f16bb6d..6c4be6f 100644
--- a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue
+++ b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BGLogViewer.vue
@@ -13,7 +13,7 @@
import ModalMixin from '@/mixins/ModalMixin'
import { getAction } from '@/api/manage'
import SampleDataMixin from '@/views/spectrumAnalysis/SampleDataMixin'
-import { showSaveFileModal } from '@/utils/file'
+import { saveAs } from 'file-saver'
export default {
mixins: [ModalMixin, SampleDataMixin],
data() {
@@ -25,7 +25,14 @@ export default {
async getDetail() {
try {
this.isLoading = true
- const { dbName, sampleId, inputFileName: sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData
+ const {
+ dbName,
+ sampleId,
+ inputFileName: sampleFileName,
+ gasFileName,
+ detFileName,
+ qcFileName,
+ } = this.newSampleData
const result = await getAction('/spectrumAnalysis/viewBGLogViewer', {
dbName,
sampleId,
@@ -34,7 +41,7 @@ export default {
detFileName,
qcFileName,
})
- if(typeof result == 'string') {
+ if (typeof result == 'string') {
this.content = result
} else {
const { success, result, message } = res
@@ -56,8 +63,9 @@ export default {
},
handleClick() {
+ let name = this.newSampleData.inputFileName.split('.')[0]
const blob = new Blob([this.content], { type: 'text/plain' })
- showSaveFileModal(blob, 'txt')
+ saveAs(blob, `${name}_beta analysis log.txt`)
},
},
}
diff --git a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue
index 04e6d31..6f16c6c 100644
--- a/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue
+++ b/src/views/spectrumAnalysis/components/Modals/BetaGammaModals/BetaGammaEnergyCalibrationModal/index.vue
@@ -111,12 +111,12 @@ export default {
const matchedSampleList = this.sampleList.filter((item) => item.inputFileName.includes(currStationName))
matchedSampleList.forEach(
- ({ dbName, sampleId, sampleFileName, gasFileName, detFileName, qcFileName, qcFileStatus }) => {
+ ({ dbName, sampleId, inputFileName, sampleFileName, gasFileName, detFileName, qcFileName, qcFileStatus }) => {
dbNames.push(dbName || '')
sampleIds.push(sampleId || '')
- sampleFileNames.push(sampleFileName)
- gasFileNames.push(gasFileName)
- detFileNames.push(detFileName)
+ sampleFileNames.push(sampleFileName || inputFileName || '')
+ gasFileNames.push(gasFileName || '')
+ detFileNames.push(detFileName || '')
qcFileNames.push(qcFileStatus ? qcFileName : '')
}
)
diff --git a/src/views/spectrumAnalysis/components/Modals/CompareFileListModal.vue b/src/views/spectrumAnalysis/components/Modals/CompareFileListModal.vue
index dd873f1..cc6f2a6 100644
--- a/src/views/spectrumAnalysis/components/Modals/CompareFileListModal.vue
+++ b/src/views/spectrumAnalysis/components/Modals/CompareFileListModal.vue
@@ -1,11 +1,12 @@
-
+
import { getAction } from '@/api/manage'
-import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ModalMixin from '@/mixins/ModalMixin'
const columns = [
@@ -29,79 +29,98 @@ const columns = [
dataIndex: 'name',
width: '45%',
align: 'left',
- ellipsis: true
+ ellipsis: true,
},
{
title: 'UpdateDate',
dataIndex: 'updateDate',
- align: 'left'
+ align: 'left',
},
{
title: 'Size',
dataIndex: 'size',
- align: 'left'
- }
+ align: 'left',
+ },
]
const formItems = [
{
label: '',
type: 'a-input',
- name: 'searchName',
+ name: 'name',
props: {
- placeholder: 'search...'
- }
- }
+ placeholder: 'search...',
+ },
+ },
]
export default {
- mixins: [ModalMixin, JeecgListMixin],
+ mixins: [ModalMixin],
data() {
this.columns = columns
this.formItems = formItems
return {
+ inited: false,
queryParam: {},
+ dataSource: [],
selectedRowKeys: [],
- selectionRows: []
+ selectionRows: [],
+ pagination: {
+ current: 1,
+ pageSize: 10,
+ pageSizeOptions: ['10', '20', '30'],
+ showTotal: (total, range) => {
+ const { current, pageSize } = this.pagination
+ return `Total ${total} items Page ${current} / ${Math.ceil(total / pageSize)}`
+ },
+ showQuickJumper: true,
+ showSizeChanger: true,
+ total: 0,
+ },
}
},
methods: {
beforeModalOpen() {
this.selectedRowKeys = []
- },
-
- loadData(arg) {
- //加载数据 若传入参数1则加载第一页的内容
- if (arg === 1) {
- this.ipagination.current = 1
+ if(!this.inited) {
+ this.inited = true
+ this.getList()
}
- this.onClearSelected()
-
- const params = this.getQueryParams() //查询条件
- const searchName = this.queryParam.searchName
- params.name = searchName
- this.loading = true
- getAction('/spectrumFile/get', params)
- .then(res => {
- if (res.success) {
- this.dataSource = res.result.records
- this.dataSource.forEach((item, index) => {
- item.id = index
- })
- if (res.result.total) {
- this.ipagination.total = res.result.total
- } else {
- this.ipagination.total = 0
- }
- } else {
- this.$message.warning(res.message)
- }
- })
- .finally(() => {
- this.loading = false
- })
},
+
+ async getList() {
+ try {
+ this.isLoading = true
+ const params = {
+ ...this.queryParam,
+ pageNo: this.pagination.current,
+ pageSize: this.pagination.pageSize,
+ }
+ const { success, result, message } = await getAction('/spectrumFile/get', params)
+ if (success) {
+ this.dataSource = result.records
+ this.pagination.total = result.total
+ } else {
+ this.$message.error(message)
+ }
+ } catch (error) {
+ console.error(error)
+ } finally {
+ this.isLoading = false
+ }
+ },
+
+ handleTableChange(pagination, filters, sorter) {
+ this.pagination = pagination
+ this.getList()
+ },
+
+ handleSearch() {
+ this.pagination.current = 1
+ this.getList()
+ },
+
async handleOk() {
if (!this.selectedRowKeys.length) {
this.$message.warn('Please Select A File to Compare')
@@ -110,8 +129,8 @@ export default {
this.$emit('fileSelect', this.selectionRows[0].name)
this.visible = false
- }
- }
+ },
+ },
}
diff --git a/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue b/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue
index d0b72fc..aa34f88 100644
--- a/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue
+++ b/src/views/spectrumAnalysis/components/Modals/DataProcessingLogModal.vue
@@ -3,7 +3,7 @@
{{ text }}
-
+
Export
Cancel
@@ -15,64 +15,48 @@
diff --git a/src/views/spectrumAnalysis/components/Modals/EfficiencyCalibrationModal.vue b/src/views/spectrumAnalysis/components/Modals/EfficiencyCalibrationModal.vue
index f4edbab..a031948 100644
--- a/src/views/spectrumAnalysis/components/Modals/EfficiencyCalibrationModal.vue
+++ b/src/views/spectrumAnalysis/components/Modals/EfficiencyCalibrationModal.vue
@@ -324,6 +324,7 @@ export default {
data: scatterPoint.pointlist.map(({ x, y }) => {
return {
value: [x, y],
+ symbolSize: 5,
itemStyle: {
color: scatterPoint.color,
borderWidth: 0,
diff --git a/src/views/spectrumAnalysis/components/Modals/EnergyCalibrationModal.vue b/src/views/spectrumAnalysis/components/Modals/EnergyCalibrationModal.vue
index 9a7eb9c..dfc0cd9 100644
--- a/src/views/spectrumAnalysis/components/Modals/EnergyCalibrationModal.vue
+++ b/src/views/spectrumAnalysis/components/Modals/EnergyCalibrationModal.vue
@@ -286,6 +286,7 @@ export default {
data: scatterPoint.pointlist.map(({ x, y }) => {
return {
value: [x, y],
+ symbolSize: 5,
itemStyle: {
color: scatterPoint.color,
borderWidth: 0,
diff --git a/src/views/spectrumAnalysis/components/Modals/ResolutionCalibrationModal.vue b/src/views/spectrumAnalysis/components/Modals/ResolutionCalibrationModal.vue
index 541a005..8ee8f88 100644
--- a/src/views/spectrumAnalysis/components/Modals/ResolutionCalibrationModal.vue
+++ b/src/views/spectrumAnalysis/components/Modals/ResolutionCalibrationModal.vue
@@ -285,6 +285,7 @@ export default {
data: scatterPoint.pointlist.map(({ x, y }) => {
return {
value: [x, y],
+ symbolSize: 5,
itemStyle: {
color: scatterPoint.color,
borderWidth: 0,
diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue
index 10993c5..9c9f022 100644
--- a/src/views/stationOperation/index.vue
+++ b/src/views/stationOperation/index.vue
@@ -184,16 +184,23 @@ export default {
watch: {
$route: {
handler: function (val, oldVal) {
- if (val.name !== 'station-operation') {
- this.$message.destroy()
- clearInterval(this.timer)
- this.timer = null
+ console.log('fasdfasde12312', val)
+ console.log('8765432', oldVal)
+ if (val.name === 'station-operation') {
+ this.getDataProvisionEfficiency(this.markerList_clone)
}
},
deep: true,
- immediate: true,
+ // immediate: true,
},
},
+ deactivated() {
+ //等同于 销毁的生命周期
+ console.log('切换出发了3')
+ this.$message.destroy()
+ clearInterval(this.timer)
+ this.timer = null
+ },
data() {
return {
activeKey: '1',
diff --git a/src/views/system/DataBase.vue b/src/views/system/DataBase.vue
index 1d37734..04f5f48 100644
--- a/src/views/system/DataBase.vue
+++ b/src/views/system/DataBase.vue
@@ -292,7 +292,7 @@ export default {
props: {
allowClear: true,
style: {
- width: '190px',
+ width: '187px',
},
},
style: {
@@ -315,7 +315,7 @@ export default {
filterOption: this.filterOption,
allowClear: true,
style: {
- width: '190px',
+ width: '187px',
},
},
style: {
@@ -338,7 +338,7 @@ export default {
filterOption: this.filterOption,
allowClear: true,
style: {
- width: '190px',
+ width: '187px',
},
},
style: {
@@ -355,7 +355,7 @@ export default {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
style: {
minWidth: 'auto',
- width: '282px',
+ width: '279px',
},
},
style: {
@@ -372,7 +372,7 @@ export default {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
style: {
minWidth: 'auto',
- width: '282px',
+ width: '279px',
},
},
style: {
@@ -380,16 +380,19 @@ export default {
},
},
{
- label: '',
- type: 'a-checkbox-group',
- props: {
- options: [
- { label: 'Collect Stop', value: 'collectStop' },
- { label: 'Acq.Start', value: 'acqDotStart' },
- ],
- },
+ type: 'a-checkbox',
+ name: 'collectStopCheck',
+ innerLabel: 'Collect Stop',
style: {
- width: '230px',
+ width: '132px',
+ },
+ },
+ {
+ type: 'a-checkbox',
+ name: 'acqDotStartCheck',
+ innerLabel: 'Acq.Start',
+ style: {
+ width: '113px',
},
},
]