diff --git a/README-zh.md b/README-zh.md index e472d1d6..9e111c1e 100644 --- a/README-zh.md +++ b/README-zh.md @@ -5,3 +5,6 @@ npm install # 启动服务 npm run dev +# v1.9.0修改 +1. 角色修改,全局userId实际意义修改为userRoleId(用户角色id),新增identityUserId(新的用户id) + diff --git a/public/index.html b/public/index.html index 0c22a84a..8703f504 100644 --- a/public/index.html +++ b/public/index.html @@ -30,7 +30,6 @@ <% } else { %> \ No newline at end of file diff --git a/src/const/check/index.js b/src/const/check/index.js index 8b2ea225..f19bc6c2 100644 --- a/src/const/check/index.js +++ b/src/const/check/index.js @@ -1,6 +1,5 @@ import { SubjectCheckConfig } from './module/Subject' -console.log(SubjectCheckConfig.moduleType) export const checkConfig = { ModuleType: { ...SubjectCheckConfig.ModuleType diff --git a/src/directive/dialogDrag.js b/src/directive/dialogDrag.js index 460884d6..c798679c 100644 --- a/src/directive/dialogDrag.js +++ b/src/directive/dialogDrag.js @@ -10,7 +10,7 @@ const dialogDrag = Vue.directive('dialogDrag', { dragDom.style.cssText += ';top:0px;' // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null); - const sty = (function() { + const sty = (function () { if (window.document.currentStyle) { return (dom, attr) => dom.currentStyle[attr] } else { @@ -47,8 +47,10 @@ const dialogDrag = Vue.directive('dialogDrag', { styL = +styL.replace(/\px/g, '') styT = +styT.replace(/\px/g, '') } + const oldMousemove = document.onmousemove - document.onmousemove = function(e) { + document.onmousemove = function (e) { + oldMousemove(e) // 通过事件委托,计算移动的距离 let left = e.clientX - disX const top = e.clientY - disY @@ -70,8 +72,8 @@ const dialogDrag = Vue.directive('dialogDrag', { dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;` } - document.onmouseup = function(e) { - document.onmousemove = null + document.onmouseup = function (e) { + document.onmousemove = oldMousemove document.onmouseup = null } } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index d8a1ad17..9268d926 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -14,13 +14,13 @@
diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue index 7b98223b..64b8dd60 100644 --- a/src/views/system/user/components/UserInfo.vue +++ b/src/views/system/user/components/UserInfo.vue @@ -5,24 +5,38 @@ :model="user" :rules="userFormRules" label-width="150px" - style="width:800px;" + style="width: 800px" >
{{ $t('system:userlist:title:Information') }}
- + - + - + - + - + - - + + - {{ item.label }} + {{ item.label }} - - - - + +
+ + + +
+
+ +
+ + + + + {{ $t('system:userlist:button:roles') }} + +
- +
{{ $t('system:userlist:title:Affiliation') }}
- - {{ $t('system:userlist:title:Internal') }} - {{ $t('system:userlist:title:External') }} + + {{ + $t('system:userlist:title:Internal') + }} + {{ + $t('system:userlist:title:External') + }} - + - + - +
@@ -83,20 +182,35 @@ type="primary" size="small" :disabled="isDisabled" - style="margin:10px 15px" + style="margin: 10px 15px" @click="handleSave" - >Save + >Save - + diff --git a/src/views/system/user/components/roleList.vue b/src/views/system/user/components/roleList.vue new file mode 100644 index 00000000..fc96ebda --- /dev/null +++ b/src/views/system/user/components/roleList.vue @@ -0,0 +1,212 @@ + + \ No newline at end of file diff --git a/src/views/system/user/list/index.vue b/src/views/system/user/list/index.vue index f00d9a15..2114e3e5 100644 --- a/src/views/system/user/list/index.vue +++ b/src/views/system/user/list/index.vue @@ -20,23 +20,49 @@ :total="total" @getList="getList" @editCb="handleEditUser" + @sendCb="addNewUserSendEmail" @deleteCb="handleDeleteUser" @sortByColumn="sortByColumn" > + \ No newline at end of file diff --git a/src/views/trials/trials-myinfo/index.vue b/src/views/trials/trials-myinfo/index.vue index 488c1954..443754b6 100644 --- a/src/views/trials/trials-myinfo/index.vue +++ b/src/views/trials/trials-myinfo/index.vue @@ -37,7 +37,7 @@ :IsCanConnectInternet="IsCanConnectInternet" v-if="activeIndex === '2'" /> - +
@@ -64,7 +64,7 @@ export default { } }, computed: { - ...mapGetters(['userId', 'userName']), + ...mapGetters(['identityUserId', 'userName']), }, mounted() { this.getUserInfo() @@ -107,11 +107,11 @@ export default { spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.07)', }) - getUser(this.userId) + getUser() .then(async (res) => { this.user = res.Result /* eslint-disable */ - zzSessionStorage.setItem('realName', this.user.RealName) + zzSessionStorage.setItem('Name', this.user.FullName) await store.dispatch('user/updateInfo') loading.close() }) diff --git a/src/views/trials/trials-myinfo/mine.vue b/src/views/trials/trials-myinfo/mine.vue index 455623f5..1745969e 100644 --- a/src/views/trials/trials-myinfo/mine.vue +++ b/src/views/trials/trials-myinfo/mine.vue @@ -82,7 +82,7 @@ \ No newline at end of file diff --git a/src/views/trials/trials-notice/index.vue b/src/views/trials/trials-notice/index.vue index 966e17e6..a733e44d 100644 --- a/src/views/trials/trials-notice/index.vue +++ b/src/views/trials/trials-notice/index.vue @@ -17,7 +17,7 @@ @@ -36,7 +36,11 @@ {{ $t('common:button:search') }} - + {{ $t('common:button:reset') }} @@ -44,7 +48,7 @@ @@ -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/attachments/attachment-management/index.vue b/src/views/trials/trials-panel/attachments/attachment-management/index.vue index a29f1082..eee1e3cd 100644 --- a/src/views/trials/trials-panel/attachments/attachment-management/index.vue +++ b/src/views/trials/trials-panel/attachments/attachment-management/index.vue @@ -5,7 +5,11 @@ - + - {{ $t("common:button:search") }} + {{ $t('common:button:search') }} - {{ $t("common:button:reset") }} + {{ $t('common:button:reset') }} - {{ $t("common:button:export") }} + {{ $t('common:button:export') }} @@ -156,10 +160,10 @@ > @@ -172,10 +176,10 @@ > @@ -195,11 +199,11 @@ sortable="custom" > @@ -219,11 +223,19 @@ /> + > + + { return { - FileTypeId: "", - Name: "", - UserId: "", - UserTypeId: "", + FileTypeId: '', + Name: '', + UserId: '', + UserTypeId: '', PageIndex: 1, PageSize: 20, IsConfirmed: null, IsDeleted: null, - }; -}; + } +} export default { - name: "AttachmentsManagement", + name: 'AttachmentsManagement', components: { BaseContainer, Pagination, PreviewFile }, data() { return { @@ -310,99 +322,99 @@ export default { list: [], total: 0, currentRow: {}, - currentPath: "", - currentType: "", + currentPath: '', + currentType: '', previewVisible: false, userOptions: [], userTypeOptions: [], - currentUser: zzSessionStorage.getItem("userName"), + currentUser: zzSessionStorage.getItem('userName'), typeOptions: [], trialId: this.$route.query.trialId, exportLoading: false, - }; + } }, mounted() { - this.getTypeOptions(); - this.getUserSelect(); - this.getUserType(); - this.getList(); + this.getTypeOptions() + this.getUserSelect() + this.getUserType() + this.getList() }, methods: { handleExport() { - this.exportLoading = true; + this.exportLoading = true pMTrainingRecordList_Export(this.searchData) .then(() => { - this.exportLoading = false; + this.exportLoading = false }) .catch((err) => { - this.exportLoading = false; - }); + this.exportLoading = false + }) }, // 获取系统文件数据 getList() { - this.loading = true; - this.searchData.TrialId = this.trialId; + this.loading = true + this.searchData.TrialId = this.trialId getDocumentConfirmList(this.searchData) .then(async (res) => { - this.loading = false; - this.list = res.Result.CurrentPageData; - this.total = res.Result.TotalCount; - console.log(this.total); + this.loading = false + this.list = res.Result.CurrentPageData + this.total = res.Result.TotalCount + console.log(this.total) }) .catch(() => { - this.loading = false; - }); + this.loading = false + }) }, // 获取文件类型下拉数据 getTypeOptions() { getTrialDocAndSystemDocType(this.trialId).then((res) => { - this.typeOptions = res.Result; - }); + this.typeOptions = res.Result + }) }, // 获取当前项目下参与者信息 getUserSelect() { getTrialUserSelect(this.trialId).then((res) => { - this.userOptions = res.Result; - }); + this.userOptions = res.Result + }) }, // 获取用户类型下拉数据 getUserType() { getTrialUserTypeList().then((res) => { - this.userTypeOptions = res.Result; - }); + this.userTypeOptions = res.Result + }) }, // 预览 handlePreview(row) { - this.currentRow = { ...row }; - const { Name, FullFilePath } = row; - this.currentPath = FullFilePath; + this.currentRow = { ...row } + const { Name, FullFilePath } = row + this.currentPath = FullFilePath this.currentType = row.Name - ? Name.substring(Name.lastIndexOf(".") + 1).toLocaleLowerCase() - : ""; - this.previewVisible = true; + ? Name.substring(Name.lastIndexOf('.') + 1).toLocaleLowerCase() + : '' + this.previewVisible = true }, // 重置 handleReset() { - this.searchData = searchDataDefault(); - this.getList(); + this.searchData = searchDataDefault() + this.getList() this.$nextTick(() => { - this.$refs.AttachmentsManagement.clearSort(); - }); + this.$refs.AttachmentsManagement.clearSort() + }) }, // 查询 handleSearch() { - this.getList(); + this.getList() }, // 排序 handleSortByColumn(column) { - if (column.order === "ascending") { - this.searchData.Asc = true; + if (column.order === 'ascending') { + this.searchData.Asc = true } else { - this.searchData.Asc = false; + this.searchData.Asc = false } - this.searchData.SortField = column.prop; - this.getList(); + this.searchData.SortField = column.prop + this.getList() }, }, -}; +} diff --git a/src/views/trials/trials-panel/attachments/enrollment/components/Approval.vue b/src/views/trials/trials-panel/attachments/enrollment/components/Approval.vue index 5dd4dce1..88000983 100644 --- a/src/views/trials/trials-panel/attachments/enrollment/components/Approval.vue +++ b/src/views/trials/trials-panel/attachments/enrollment/components/Approval.vue @@ -1,14 +1,14 @@ diff --git a/src/views/trials/trials-panel/attachments/enrollment/components/Confirmation.vue b/src/views/trials/trials-panel/attachments/enrollment/components/Confirmation.vue index e914972b..c5e3b65b 100644 --- a/src/views/trials/trials-panel/attachments/enrollment/components/Confirmation.vue +++ b/src/views/trials/trials-panel/attachments/enrollment/components/Confirmation.vue @@ -50,13 +50,14 @@ - + /> - + /> - + />
- - {{$fd('Indication', trialInfo.IndicationEnum)}}{{trialInfo.Indication ? '-' + trialInfo.Indication : '' }} -
- -
- - {{ + $t('trials:trials-list:form:indication:') + }} + {{ $fd('Indication', trialInfo.IndicationEnum) + }}{{ + trialInfo.Indication ? '-' + trialInfo.Indication : '' + }} - {{ trialInfo.DeclarationTypeEnumList.map(v => $fd('DeclarationType', v)).join(', ') }} - -
-
- - - {{ (trialInfo.CriterionList && trialInfo.CriterionList.length>0)? trialInfo.CriterionList.join(', '): '' }} - - -
-
+
+ + + {{ + trialInfo.DeclarationTypeEnumList.map((v) => + $fd('DeclarationType', v) + ).join(', ') + }} + +
+
+ + + {{ + trialInfo.CriterionList && trialInfo.CriterionList.length > 0 + ? trialInfo.CriterionList.join(', ') + : '' + }} + +
+
- - {{$fd('YesOrNoForInt', trialInfo.Expedited)}} + + {{ $fd('YesOrNoForInt', trialInfo.Expedited) }}
- + {{ trialInfo.TotalReviewers }}
- - {{ trialInfo.AttendedReviewerTypeEnumList.map(v => $fd('AttendedReviewerType', v)).join(', ') }} -
-
+ + {{ + trialInfo.AttendedReviewerTypeEnumList.map((v) => + $fd('AttendedReviewerType', v) + ).join(', ') + }}
+
@@ -60,7 +93,12 @@
- +
@@ -127,18 +169,30 @@ export default { trialInfo: null, TrialId: '', activeStatus: null, - TrialMaxState: 0 + TrialMaxState: 0, } }, mounted() { this.TrialId = this.$route.query.trialId this.initPage() }, + computed: { + isEN() { + return this.$i18n.locale !== 'zh' + }, + }, methods: { initPage() { - getTrialInfoAndMaxTrialState(this.TrialId).then(res => { + getTrialInfoAndMaxTrialState(this.TrialId).then((res) => { this.trialInfo = res.Result.TrialView - var activeStatus = res.Result.TrialMaxState < 1 ? 0 : res.Result.TrialMaxState < 5 ? 1 : res.Result.TrialMaxState < 8 ? 2 : 3 + var activeStatus = + res.Result.TrialMaxState < 1 + ? 0 + : res.Result.TrialMaxState < 5 + ? 1 + : res.Result.TrialMaxState < 8 + ? 2 + : 3 this.activeStatus = activeStatus this.TrialMaxState = activeStatus }) @@ -147,95 +201,93 @@ export default { this.activeStatus = step }, nextStep(stepName) { - this.activeStatus = this.activeStatus === 3 ? 3 : this.activeStatus + 1; - if(stepName==='confirmation'){ - this.activeStatus = 3; + this.activeStatus = this.activeStatus === 3 ? 3 : this.activeStatus + 1 + if (stepName === 'confirmation') { + this.activeStatus = 3 } this.TrialMaxState = this.activeStatus this.$nextTick( - function() { + function () { this.$refs[stepName].getList() }.bind(this) ) - } - - } + }, + }, } diff --git a/src/views/trials/trials-panel/attachments/self-attachment/index.vue b/src/views/trials/trials-panel/attachments/self-attachment/index.vue index 4539d256..90888a42 100644 --- a/src/views/trials/trials-panel/attachments/self-attachment/index.vue +++ b/src/views/trials/trials-panel/attachments/self-attachment/index.vue @@ -25,7 +25,7 @@ -