diff --git a/src/components/BaseForm/search-form.vue b/src/components/BaseForm/search-form.vue index 7e637eb..0761f9f 100644 --- a/src/components/BaseForm/search-form.vue +++ b/src/components/BaseForm/search-form.vue @@ -124,10 +124,11 @@ diff --git a/src/components/visitSelect/index.vue b/src/components/visitSelect/index.vue index 2bf2203..49fbb9b 100644 --- a/src/components/visitSelect/index.vue +++ b/src/components/visitSelect/index.vue @@ -123,14 +123,19 @@ export default { type: "warning", showCancelButton: false, } - ).then(() => { - this.$emit("update:modelData", this.visit); - let data = { - StudyId: this.studyData.StudyId || this.studyData.SCPStudyId, - VisitId: this.visit, - }; - this.$emit("putVisit", data); - }); + ) + .then(() => { + this.$emit("update:modelData", this.visit); + let data = { + StudyId: this.studyData.StudyId || this.studyData.SCPStudyId, + VisitId: this.visit, + }; + this.$emit("putVisit", data); + }) + .catch((err) => { + this.visit = this.modelData; + }); + return false; } return true; } catch (err) { diff --git a/src/permission.js b/src/permission.js index e68f7d2..1ae0024 100644 --- a/src/permission.js +++ b/src/permission.js @@ -6,6 +6,7 @@ import 'nprogress/nprogress.css' import { getToken } from '@/utils/auth' import Vue from 'vue' import { OSSclient } from './utils/oss' +import moment from "moment"; // import getPageTitle from '@/utils/get-page-title' NProgress.configure({ showSpinner: false }) @@ -19,6 +20,8 @@ Vue.prototype.$setOpenWindow = (openWindow) => { } Vue.prototype.$openWindow = openWindow; } +// 时间格式化 +Vue.prototype.$moment = moment; router.beforeEach(async (to, from, next) => { NProgress.start() Vue.prototype.$setOpenWindow(); diff --git a/src/views/system/hospital/index.vue b/src/views/system/hospital/index.vue index 15ae884..0ed5799 100644 --- a/src/views/system/hospital/index.vue +++ b/src/views/system/hospital/index.vue @@ -10,39 +10,53 @@ > - + - + - + - + - + - + - + diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue index 544e441..dcc847b 100644 --- a/src/views/system/user/components/UserInfo.vue +++ b/src/views/system/user/components/UserInfo.vue @@ -24,20 +24,20 @@ class="my_new_pwd" prop="UserName" > - + - + - + - + - +