diff --git a/src/components/BaseForm/search-form.vue b/src/components/BaseForm/search-form.vue index 378bec3a..101e399b 100644 --- a/src/components/BaseForm/search-form.vue +++ b/src/components/BaseForm/search-form.vue @@ -120,6 +120,7 @@ v-if="item.type === 'Daterange'" v-model="searchData[item.prop]" type="datetimerange" + :default-time="['00:00:00', '23:59:59']" :range-separator="$t('baseForm:daterange:rangeSeparator')" :start-placeholder="$t('baseForm:daterange:startPlaceholder')" :end-placeholder="$t('baseForm:daterange:startendPlaceholder')" diff --git a/src/components/toggleRole/index.vue b/src/components/toggleRole/index.vue index d1e9222b..7d508b3a 100644 --- a/src/components/toggleRole/index.vue +++ b/src/components/toggleRole/index.vue @@ -40,6 +40,7 @@ type="primary" size="small" @click="save" + :disabled="saveDisabled" :loading="loading" v-if="hasRole" > @@ -78,6 +79,9 @@ export default { hasRole() { return this.roles && this.roles.length > 0 }, + saveDisabled() { + return this.form.userRoleId === zzSessionStorage.getItem('userId') + }, }, methods: { cancel() { @@ -98,11 +102,13 @@ export default { \ No newline at end of file diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 49442e19..1800836a 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -14,13 +14,13 @@
- -
- - - {{ $t("trials:readingReport:button:skip") }} - - - {{ - $t("common:button:save") - }} - - {{ - $t("common:button:submit") - }} -
-
+
+ + + {{ $t("trials:readingReport:button:skip") }} + + + {{ + $t("common:button:save") + }} + + {{ + $t("common:button:submit") + }} +
{{ scope.row.TrialUserRoleList.map( (item) => item.UserTypeShortName - ).join(',') + ).join(', ') }} diff --git a/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalForm.vue b/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalForm.vue index b068b91c..cb616a7d 100644 --- a/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalForm.vue +++ b/src/views/trials/trials-panel/setting/personnel-manage/components/staffExternalForm.vue @@ -1,6 +1,6 @@