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..45e9080a 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 @@
>
{{
- $fd("IsSystemDoc", scope.row.IsSystemDoc)
+ $fd('IsSystemDoc', scope.row.IsSystemDoc)
}}
{{
- $fd("IsSystemDoc", scope.row.IsSystemDoc)
+ $fd('IsSystemDoc', scope.row.IsSystemDoc)
}}
@@ -172,10 +176,10 @@
>
{{
- $fd("YesOrNo", scope.row.IsDeleted)
+ $fd('YesOrNo', scope.row.IsDeleted)
}}
{{
- $fd("YesOrNo", scope.row.IsDeleted)
+ $fd('YesOrNo', scope.row.IsDeleted)
}}
@@ -196,10 +200,10 @@
>
{{
- $fd("YesOrNo", scope.row.IsConfirmed)
+ $fd('YesOrNo', scope.row.IsConfirmed)
}}
{{
- $fd("YesOrNo", scope.row.IsConfirmed)
+ $fd('YesOrNo', scope.row.IsConfirmed)
}}
@@ -219,11 +223,19 @@
/>
+ >
+
+ {{
+ Array.isArray(scope.row.UserConfirmedUserTypeList) &&
+ scope.row.UserConfirmedUserTypeList.length > 0
+ ? scope.row.UserConfirmedUserTypeList.join(', ')
+ : ''
+ }}
+
+
{
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/setting/personnel-manage/components/staff.vue b/src/views/trials/trials-panel/setting/personnel-manage/components/staff.vue
index e2e2d063..04421b7b 100644
--- a/src/views/trials/trials-panel/setting/personnel-manage/components/staff.vue
+++ b/src/views/trials/trials-panel/setting/personnel-manage/components/staff.vue
@@ -247,7 +247,9 @@
:title="$t('trials:staff:action:status')"
icon="el-icon-edit-outline"
:disabled="
- hasPermi(['role:pm']) && scope.row.UserTypeEnum * 1 === 1
+ scope.row.TrialUserRoleList.find(
+ (item) => item.UserTypeEnum === 1
+ )
"
@click="handleStatus(scope.row)"
/>
@@ -388,8 +390,8 @@
min-width="120px"
>
-
- {{ scope.row.UpdateTime }}
+
+ {{ scope.row.CreateTime }}
@@ -413,7 +415,7 @@
{{ $fd('IsEnable', false) }}
@@ -421,7 +423,7 @@
{{ $fd('IsEnable', true) }}