diff --git a/src/views/forgetpassword/index.vue b/src/views/forgetpassword/index.vue
index 3e6cfd91..1f18d6f4 100644
--- a/src/views/forgetpassword/index.vue
+++ b/src/views/forgetpassword/index.vue
@@ -64,13 +64,13 @@
{{ $t('passwordReset:button:verify') }}
-
+
@@ -213,6 +213,7 @@ export default {
EmailOrPhone: '',
VerificationCode: '',
NewPwd: '',
+ CheckPass: '',
UserId: '',
UserType: '',
},
@@ -255,6 +256,29 @@ export default {
},
],
},
+ rules2: {
+ NewPwd: [
+ {
+ required: true,
+ validator: this.$validatePassword,
+ trigger: ['blur', 'change'],
+ },
+ ],
+ CheckPass: [
+ {
+ required: true,
+ validator: validatePass2,
+ trigger: ['blur', 'change'],
+ },
+ ],
+ UserId: [
+ {
+ required: true,
+ message: this.$t('common:ruleMessage:select'),
+ trigger: ['blur', 'change'],
+ },
+ ],
+ },
sendDisabled: true,
sendTitle: this.$t('passwordReset:button:send'),
formLoading: false,
@@ -262,7 +286,7 @@ export default {
},
methods: {
onSubmit() {
- this.$refs['resetForm'].validate((valid) => {
+ this.$refs['resetForm2'].validate((valid) => {
if (valid) {
this.formLoading = true
anonymousSetPassword(this.form.UserId, md5(this.form.NewPwd))
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 471a0e5c..0ef7d338 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -34,7 +34,7 @@
style="width: 300px; height: 94px"
/>
-
{{ $t("login:title:system") }}
+
{{ $t('login:title:system') }}
- {{ $t("login:button:login") }}
+ {{ $t('login:button:login') }}
- {{ $t("login:button:forgetPassword") }}
+ {{ $t('login:button:forgetPassword') }}
@@ -181,10 +181,12 @@
>
关于
- {{ $t("login:title:system_title") }}
+ {{ $t('login:title:system_title') }}
+
+ {{ $t('login:title:system') }}
+
+ V{{ $Version.IsEnv_US ? $version.Version_US : $version.Version }}
- {{ $t("login:title:system") }}
- V{{ $version.Version }}
Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司
版权所有
@@ -208,14 +210,14 @@
\ No newline at end of file
diff --git a/src/views/trials/trials-panel/attachments/self-attachment/components/SignForm.vue b/src/views/trials/trials-panel/attachments/self-attachment/components/SignForm.vue
index 8e62aadb..4274239c 100644
--- a/src/views/trials/trials-panel/attachments/self-attachment/components/SignForm.vue
+++ b/src/views/trials/trials-panel/attachments/self-attachment/components/SignForm.vue
@@ -1,19 +1,22 @@
-
*{{ signText }}
+ *{{ signText }}
-
@@ -22,18 +25,36 @@
:label="$t('common:form:sign:password')"
prop="Password"
:rules="[
- { required: true, message: $t('common:ruleMessage:specify'), trigger: 'blur' }
+ {
+ required: true,
+ message: $t('common:ruleMessage:specify'),
+ trigger: 'blur',
+ },
]"
>
-
+
@@ -49,48 +70,54 @@ export default {
props: {
fileName: {
type: String,
- required: true
+ required: true,
},
isSystemDoc: {
type: Boolean,
- required: true
+ required: true,
},
documentId: {
type: String,
- required: true
+ required: true,
},
trialId: {
type: String,
- default: ''
- }
+ default: '',
+ },
},
data() {
return {
signForm: {
UserName: '',
- Password: ''
+ Password: '',
},
signText: '',
btnLoading: false,
- loading: false
+ loading: false,
}
},
mounted() {
this.loading = true
- getSystemBasicData(attachmentSignCode).then(res => {
- var text
- if (this.$i18n.locale === 'zh') {
- text = res.Result.ValueCN
- } else {
- text = res.Result.Value
- }
- this.signText = text.replace('xxx', this.fileName)
- this.loading = false
- }).catch(() => { this.loading = false })
+ getSystemBasicData(attachmentSignCode)
+ .then((res) => {
+ var text
+ if (this.$i18n.locale === 'zh') {
+ text = res.Result.ValueCN
+ } else {
+ text = res.Result.Value
+ }
+ this.signText = text.replace('xxx', this.fileName)
+ this.loading = false
+ })
+ .catch(() => {
+ this.loading = false
+ })
},
methods: {
userConfirm() {
- const currentUser = zzSessionStorage.getItem('userName').toLocaleLowerCase()
+ const currentUser = zzSessionStorage
+ .getItem('userName')
+ .toLocaleLowerCase()
this.$refs.signForm.validate((valid) => {
console.log(valid)
if (!valid) return
@@ -104,42 +131,50 @@ export default {
data: {
// trialId: this.trialId,
documentId: this.documentId,
- isSystemDoc: this.isSystemDoc
+ isSystemDoc: this.isSystemDoc,
},
signInfo: {
UserName: this.signForm.UserName,
PassWord: md5(this.signForm.Password),
- // TrialId: this.trialId,
+ // c: this.trialId,
SignCode: '',
SignText: this.signText,
SignCodeId: '',
- SubjectVisitId: ''
- }
+ SubjectVisitId: '',
+ },
}
- userConfirm(params).then(res => {
- if (res.IsSuccess) {
- // 签名成功!
- this.$message.success(this.$t('common:message:signSuccessfully'))
- this.$emit('closeDialog', true)
- }
- }).catch(() => { this.btnLoading = false })
+ if (!this.isSystemDoc) {
+ params.data.TrialId = this.trialId
+ params.signInfo.TrialId = this.trialId
+ }
+ userConfirm(params)
+ .then((res) => {
+ if (res.IsSuccess) {
+ // 签名成功!
+ this.$message.success(this.$t('common:message:signSuccessfully'))
+ this.$emit('closeDialog', true)
+ }
+ })
+ .catch(() => {
+ this.btnLoading = false
+ })
})
},
handleclose() {
this.$emit('closeDialog', false)
- }
- }
+ },
+ },
}