Merge branch 'master-dev' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into master-dev
This commit is contained in:
commit
306770c7ea
|
@ -1,5 +1,7 @@
|
||||||
import { deleteAction } from '@/api/manage'
|
import { deleteAction } from '@/api/manage'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import Vue from 'vue'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 发起请求清理后端对sample的缓存
|
* 发起请求清理后端对sample的缓存
|
||||||
* @param {Array<any>} sampleList
|
* @param {Array<any>} sampleList
|
||||||
|
@ -15,5 +17,6 @@ export const clearSampleCache = (sampleList) => {
|
||||||
}
|
}
|
||||||
deleteAction(url, params)
|
deleteAction(url, params)
|
||||||
store.commit('REMOVE_SAMPLE_DATA', fileName)
|
store.commit('REMOVE_SAMPLE_DATA', fileName)
|
||||||
|
Vue.ls.remove(`calibration-gamma:${fileName}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
|
@ -417,11 +417,14 @@ export default {
|
||||||
// inputFileName: 'CAX05_001-20230731_1528_S_FULL_37563.6.PHD',
|
// inputFileName: 'CAX05_001-20230731_1528_S_FULL_37563.6.PHD',
|
||||||
// })
|
// })
|
||||||
this.getColorConfig()
|
this.getColorConfig()
|
||||||
|
window.addEventListener('beforeunload', this.handleCleanAll)
|
||||||
},
|
},
|
||||||
|
|
||||||
destroyed() {
|
destroyed() {
|
||||||
this.$bus.$off('reanalyse', this.handleReanalyse)
|
this.$bus.$off('reanalyse', this.handleReanalyse)
|
||||||
this.$store.commit('CLEAR_SAMPLE_DATA')
|
this.$store.commit('CLEAR_SAMPLE_DATA')
|
||||||
|
this.handleCleanAll()
|
||||||
|
window.removeEventListener('beforeunload', this.handleCleanAll)
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user