parent
0dd6ace8c1
commit
ed0dacccbb
|
@ -361,13 +361,17 @@ async function VueInit() {
|
||||||
window.VUE_APP_COMPANY_NAME = process.env.VUE_APP_COMPANY_NAME;
|
window.VUE_APP_COMPANY_NAME = process.env.VUE_APP_COMPANY_NAME;
|
||||||
waitOperate(eval(process.env.VUE_APP_LOGOUT_FOR_PERMISSION) ? () => {
|
waitOperate(eval(process.env.VUE_APP_LOGOUT_FOR_PERMISSION) ? () => {
|
||||||
var lang = zzSessionStorage.getItem('lang') ? zzSessionStorage.getItem('lang') : 'zh'
|
var lang = zzSessionStorage.getItem('lang') ? zzSessionStorage.getItem('lang') : 'zh'
|
||||||
if (_vm.$route.path === '/ReviewersResearchForm' || _vm.$route.path === '/ReviewersResearch' || _vm.$route.path === '/login' || _vm.$route.path === '/researchForm' || _vm.$route.path === '/researchLogin' || _vm.$route.path === '/email-recompose' || _vm.$route.path === '/recompose' || _vm.$route.path === '/resetpassword' || _vm.$route.path === '/error') {
|
if (_vm.$store.state.trials.unlock || _vm.$route.path === '/ReviewersResearchForm' || _vm.$route.path === '/ReviewersResearch' || _vm.$route.path === '/login' || _vm.$route.path === '/researchForm' || _vm.$route.path === '/researchLogin' || _vm.$route.path === '/email-recompose' || _vm.$route.path === '/recompose' || _vm.$route.path === '/resetpassword' || _vm.$route.path === '/error') {
|
||||||
count = 0;
|
count = 0;
|
||||||
localStorage.setItem('count', '0')
|
localStorage.setItem('count', '0')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_vm.$store.dispatch('user/logout').then(res => {
|
_vm.$store.dispatch('user/logout').then(res => {
|
||||||
// window.location.href = `/login`
|
// window.location.href = `/login`
|
||||||
|
_vm.$msgbox.close();
|
||||||
|
isOpen = false
|
||||||
|
isLock = null
|
||||||
|
zzSessionStorage.removeItem('isLock')
|
||||||
router.push("/login")
|
router.push("/login")
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
_vm.$alert(lang === 'zh' ? '由于您长时间未操作,为保护您的数据安全已强制将您下线,如果需要继续操作请重新登陆!' : 'No operation for a long time non-operation, you have been forced logout to protect data security. If continue to operate, please login again!', {
|
_vm.$alert(lang === 'zh' ? '由于您长时间未操作,为保护您的数据安全已强制将您下线,如果需要继续操作请重新登陆!' : 'No operation for a long time non-operation, you have been forced logout to protect data security. If continue to operate, please login again!', {
|
||||||
|
|
|
@ -6,7 +6,8 @@ const getDefaultState = () => {
|
||||||
subjectQuery: null,
|
subjectQuery: null,
|
||||||
visitPlanQuery: null,
|
visitPlanQuery: null,
|
||||||
visitPointQuery: null,
|
visitPointQuery: null,
|
||||||
studyListQuery: null
|
studyListQuery: null,
|
||||||
|
unlock: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,6 +17,9 @@ const mutations = {
|
||||||
RESET_TRIALS: (state) => {
|
RESET_TRIALS: (state) => {
|
||||||
Object.assign(state, getDefaultState())
|
Object.assign(state, getDefaultState())
|
||||||
},
|
},
|
||||||
|
SET_UNLOCK: (state, unlock) => {
|
||||||
|
state.unlock = unlock
|
||||||
|
},
|
||||||
SET_ACTIVENAME: (state, activeName) => {
|
SET_ACTIVENAME: (state, activeName) => {
|
||||||
state.trialDetailActiveName = activeName
|
state.trialDetailActiveName = activeName
|
||||||
},
|
},
|
||||||
|
@ -37,6 +41,9 @@ const mutations = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
|
setUnLock({ commit }, unlock) {
|
||||||
|
commit('SET_UNLOCK', unlock)
|
||||||
|
},
|
||||||
setActiveName({ commit }, activeName) {
|
setActiveName({ commit }, activeName) {
|
||||||
commit('SET_ACTIVENAME', activeName)
|
commit('SET_ACTIVENAME', activeName)
|
||||||
},
|
},
|
||||||
|
|
|
@ -166,7 +166,7 @@
|
||||||
{{ $t("login:title:system_title") }}
|
{{ $t("login:title:system_title") }}
|
||||||
</p>
|
</p>
|
||||||
<p style="margin-bottom: 20px" v-else>{{ $t("login:title:system") }}</p>
|
<p style="margin-bottom: 20px" v-else>{{ $t("login:title:system") }}</p>
|
||||||
<p style="margin-bottom: 20px">V1.5.1.001</p>
|
<p style="margin-bottom: 20px">V1.5.2.001</p>
|
||||||
<p style="margin-bottom: 20px" v-if="language === 'zh'">
|
<p style="margin-bottom: 20px" v-if="language === 'zh'">
|
||||||
Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司
|
Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司
|
||||||
版权所有
|
版权所有
|
||||||
|
|
|
@ -757,6 +757,7 @@ import { getToken } from "@/utils/auth";
|
||||||
import { dcmUpload } from "@/utils/dcmUpload/dcmUpload";
|
import { dcmUpload } from "@/utils/dcmUpload/dcmUpload";
|
||||||
import { convertBytes } from "@/utils/dicom-character-set";
|
import { convertBytes } from "@/utils/dicom-character-set";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
|
import store from "@/store";
|
||||||
export default {
|
export default {
|
||||||
name: "UploadDicomFiles",
|
name: "UploadDicomFiles",
|
||||||
components: { DicomPreview, uploadPetClinicalData },
|
components: { DicomPreview, uploadPetClinicalData },
|
||||||
|
@ -827,6 +828,11 @@ export default {
|
||||||
BodyPart: {},
|
BodyPart: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
btnLoading() {
|
||||||
|
store.dispatch("trials/setUnLock", this.btnLoading);
|
||||||
|
},
|
||||||
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
this.trialId = this.$route.query.trialId;
|
this.trialId = this.$route.query.trialId;
|
||||||
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId);
|
this.BodyPart.Bodypart = await this.$getBodyPart(this.$route.query.trialId);
|
||||||
|
@ -841,6 +847,7 @@ export default {
|
||||||
clearInterval(v);
|
clearInterval(v);
|
||||||
});
|
});
|
||||||
this.myInterval = [];
|
this.myInterval = [];
|
||||||
|
store.dispatch("trials/setUnLock", false);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleHistorical(row) {
|
handleHistorical(row) {
|
||||||
|
|
Loading…
Reference in New Issue