diff --git a/src/components/BaseForm/search-form.vue b/src/components/BaseForm/search-form.vue index 101e399b..f1f99380 100644 --- a/src/components/BaseForm/search-form.vue +++ b/src/components/BaseForm/search-form.vue @@ -13,6 +13,7 @@ v-model="searchData[item.prop]" :placeholder="item.placeholder" size="mini" + clearable :style="{ width: item.width }" :readonly="item.readonly" /> @@ -22,6 +23,7 @@ v-model="searchData[item.prop]" :placeholder="item.placeholder" size="mini" + clearable :style="{ width: item.width }" @change="item.change && item.change(that, searchData[item.prop])" > @@ -37,6 +39,7 @@ v-model="searchData[item.prop]" :placeholder="item.placeholder" size="mini" + clearable :style="{ width: item.width }" @change="item.change && item.change(that, searchData[item.prop])" > @@ -96,6 +99,7 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" :picker-options="item.pickerOption" + clearable /> item.IsUserRoleDisabled) + .length === + this.$store.state.user.roles.length - 1 + ) { + let role = this.$store.state.user.roles.find( + (item) => !item.IsUserRoleDisabled + ) + this.loginByRole(role.Id) + return + } return (this.toggleRoleVisible = true) }, cancel() { diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue index 557113f6..6e1761c5 100644 --- a/src/views/system/user/components/UserInfo.vue +++ b/src/views/system/user/components/UserInfo.vue @@ -73,7 +73,8 @@
+
+
+ +
@@ -157,9 +187,10 @@ const searchDataDefault = () => { ApplicableProjectEnum: null, NoticeModeEnum: null, NoticeStateEnum: null, - Asc: true, + Asc: false, + SortField: 'PublishedTime', PageIndex: 1, - PageSize: 20 + PageSize: 20, } } export default { @@ -171,7 +202,7 @@ export default { searchData: searchDataDefault(), list: [], total: 0, - loading: false + loading: false, } }, mounted() { @@ -180,17 +211,21 @@ export default { methods: { getList() { this.loading = true - getUserSystemNoticeList(this.searchData).then(res => { - this.loading = false - this.list = res.Result.CurrentPageData - this.total = res.Result.TotalCount - }).catch(() => { this.loading = false }) + getUserSystemNoticeList(this.searchData) + .then((res) => { + this.loading = false + this.list = res.Result.CurrentPageData + this.total = res.Result.TotalCount + }) + .catch(() => { + this.loading = false + }) }, showDetail(row) { var currentNoticeType = this.$fd('NoteType', row.NoticeTypeEnum) if (row.IsRead || row.ActualNoticeStateEnum !== 1) { this.$alert(row.NoticeContent, currentNoticeType, { - showConfirmButton: false + showConfirmButton: false, }) } else { const h = this.$createElement @@ -200,18 +235,22 @@ export default { beforeClose: (action, instance, done) => { if (action === 'confirm') { instance.confirmButtonLoading = true - setSystemNoticeHaveRead(row.Id).then(async res => { - if (res.IsSuccess) { - await this.$store.dispatch('global/getNoticeList') - this.getList() - } - instance.confirmButtonLoading = false - done() - }).catch(() => { instance.confirmButtonLoading = false }) + setSystemNoticeHaveRead(row.Id) + .then(async (res) => { + if (res.IsSuccess) { + await this.$store.dispatch('global/getNoticeList') + this.getList() + } + instance.confirmButtonLoading = false + done() + }) + .catch(() => { + instance.confirmButtonLoading = false + }) } else { done() } - } + }, }) } }, @@ -237,10 +276,9 @@ export default { this.searchData.SortField = column.prop this.searchData.PageIndex = 1 this.getList() - } - } + }, + }, } diff --git a/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue b/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue index 5a8c2668..8a9acda4 100644 --- a/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue +++ b/src/views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue @@ -11,12 +11,7 @@ ({{ record.CreateTime }})

- -