Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2024-12-30 15:58:55 +08:00
commit 6c50257972
16 changed files with 458 additions and 169 deletions

View File

@ -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')"

View File

@ -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 {
</script>
<style lang="scss" scoped>
.roles {
width: 100%;
max-width: 365px;
width: fit-content;
display: flex;
align-content: center;
justify-content: center;
// justify-content: center;
flex-wrap: wrap;
margin: auto;
}
/deep/ .el-radio__original {
@ -113,4 +119,7 @@ export default {
.el-radio__inner {
box-shadow: none !important;
}
.el-radio {
width: 60px;
}
</style>

View File

@ -14,13 +14,13 @@
<div class="right-menu">
<div class="navbar-flex-wrapper">
<template v-if="device!=='mobile'">
<template v-if="device !== 'mobile'">
<screenfull id="screenfull" class="right-menu-item hover-effect" />
</template>
<!-- <div class="avatar-container">
<img src="@/assets/avatar.png" class="user-avatar">
</div> -->
<div style="margin-left:20px;">
<div style="margin-left: 20px">
<el-dropdown class="dropdown-container" trigger="click">
<span class="el-dropdown-link">
{{ `${name} (${userTypeShortName})` }}
@ -30,10 +30,20 @@
</span>
<el-dropdown-menu slot="dropdown" class="user-dropdown">
<el-dropdown-item v-if="!isReviewer">
<span style="display:block;" @click="editInfo">{{$t('system:navbar:button:Profile')}}</span>
<span style="display: block" @click="editInfo">{{
$t('system:navbar:button:Profile')
}}</span>
</el-dropdown-item>
<!-- 切换角色 -->
<el-dropdown-item divided v-if="hasRole">
<span style="display: block" @click="openToggleRole">{{
$t('system:navbar:button:toggleRole')
}}</span>
</el-dropdown-item>
<el-dropdown-item divided>
<span style="display:block;" @click="logout">{{$t('system:navbar:button:Log Out')}}</span>
<span style="display: block" @click="logout">{{
$t('system:navbar:button:Log Out')
}}</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
@ -41,38 +51,119 @@
<TopLang></TopLang>
</div>
</div>
<toggleRole
v-if="toggleRoleVisible"
:visible.sync="toggleRoleVisible"
:loading="toggleRoleLoading"
@save="loginByRole"
/>
</div>
</template>
<script>
import {mapGetters, mapMutations} from 'vuex'
import { mapGetters, mapMutations } from 'vuex'
import Breadcrumb from '@/components/Breadcrumb'
import Hamburger from '@/components/Hamburger'
import Screenfull from '@/components/Screenfull'
import TopLang from './topLang'
import toggleRole from '@/components/toggleRole'
import { resetRouter } from '@/router'
export default {
components: {
Breadcrumb,
Hamburger,
Screenfull,
TopLang
TopLang,
toggleRole,
},
data() {
return {
isReviewer: false,
userTypeShortName: zzSessionStorage.getItem('userTypeShortName')
toggleRoleVisible: false,
toggleRoleLoading: false,
}
},
computed: {
...mapGetters(['sidebar', 'name', 'device'])
...mapGetters(['sidebar', 'name', 'device', 'userTypeShortName']),
roles() {
return this.$store.state.user.roles
},
hasRole() {
return this.roles && this.roles.length > 1
},
},
created() {
// this.isReviewer = JSON.parse(zzSessionStorage.getItem('IsReviewer'))
},
methods: {
...mapMutations({ setLanguage: 'lang/setLanguage' }),
openToggleRole() {
this.$store.dispatch('user/getUserInfo').then((res) => {
this.toggleRoleVisible = true
})
},
loginByRole(userRoleId) {
if (this.$store.state.user.userId === userRoleId) {
this.toggleRoleVisible = false
this.toggleRoleLoading = false
return false
}
this.toggleRoleLoading = true
this.$store
.dispatch('user/loginByRole', { userRoleId })
.then((res) => {
if (res) {
this.$store
.dispatch('permission/generateRoutes')
.then(async (res) => {
if (res && res.length > 0) {
resetRouter()
await this.$store.dispatch('global/getNoticeList')
this.$router.addRoutes(res)
this.toggleRoleLoading = false
if (this.loginType === 'DevOps') {
this.$router.replace({ path: res[0].path })
return
}
if (this.hasPermi(['role:radmin'])) {
this.$router.replace({ path: res[0].path })
return
}
if (
this.hasPermi([
'role:air',
'role:rpm',
'role:rcrc',
'role:rir',
])
) {
history.replaceState(null, null, '/trials/trials-list')
history.go(0)
} else {
history.replaceState(null, null, '/trials/trials-workbench')
history.go(0)
}
this.toggleRoleVisible = false
this.toggleRoleLoading = false
this.$EventBus.$emit('reload')
} else {
//
this.toggleRoleLoading = false
this.$message.warning(this.$t('login:message:login2'))
}
})
.catch((err) => {
console.log(err)
this.toggleRoleLoading = false
})
} else {
this.toggleRoleLoading = false
}
})
.catch(() => {
this.toggleRoleLoading = false
})
},
toggleSideBar() {
this.$store.dispatch('app/toggleSideBar')
},
@ -91,16 +182,16 @@ export default {
editInfo() {
this.$router.push({ name: 'BaiscInfo' })
},
}
},
}
</script>
<style lang="scss" scoped>
.navbar-flex-wrapper{
display: flex;
flex-direction: row;
justify-content: space-between;
}
.navbar-flex-wrapper {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.navbar {
height: 50px;
overflow: hidden;

View File

@ -308,6 +308,8 @@ export default {
Img1,
toggleRoleVisible: false,
toggleRoleLoading: false,
LoginState: 0,
}
},
computed: {
@ -383,10 +385,12 @@ export default {
loginIn(Id) {
this.loading = true
this.showCode = false
this.LoginState = 0
if (Id) this.loginForm.UserId = Id
this.$store
.dispatch('user/login', this.loginForm)
.then((res) => {
this.LoginState = res.BasicInfo.LoginState
if (res.BasicInfo.IsFirstAdd) {
// ,
this.$message.success(this.$t('login:message:login1'))
@ -422,11 +426,12 @@ export default {
},
})
return
} else if (res.BasicInfo.LoginState === 2) {
// IP'
// this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning'))
this.$message.warning(this.$t('login:message:login4'))
}
// else if (res.BasicInfo.LoginState === 2) {
// // IP'
// // this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning'))
// this.$message.warning(this.$t('login:message:login4'))
// }
if (
Array.isArray(this.$store.state.user.roles) &&
this.$store.state.user.roles.length === 1
@ -455,6 +460,9 @@ export default {
if (res && res.length > 0) {
this.$store.dispatch('global/getNoticeList')
this.$router.addRoutes(res)
if (this.LoginState === 2) {
this.$message.warning(this.$t('login:message:login4'))
}
if (this.loginType === 'DevOps') {
this.$router.replace({ path: res[0].path })
return

View File

@ -49,6 +49,8 @@ export default {
title: this.$t('system:loginLog:dialog:title'),
width: '500px',
top: '10vh',
appendToBody: true,
bodyStyle: `min-height: 100px; max-height: 650px;overflow-y: auto;padding: 10px;border: 1px solid #e0e0e0;`,
}
},
},
@ -86,4 +88,9 @@ export default {
},
},
}
</script>
</script>
<style lang="scss" scoped>
::v-deep .el-form-item__label {
font-weight: bold;
}
</style>

View File

@ -123,13 +123,13 @@
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
<!-- <el-table-column
:label="$t('system:loginLog:table:LoginFaildName')"
prop="LoginFaildName"
min-width="180"
show-overflow-tooltip
sortable="custom"
/>
/> -->
<el-table-column
:label="$t('system:loginLog:table:LoginUserName')"
prop="ActionUserName"
@ -137,6 +137,13 @@
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
:label="$t('system:loginLog:table:Aetionlserlype')"
prop="ActionUserType"
min-width="100"
show-overflow-tooltip
sortable="custom"
/>
<!-- <el-table-column
:label="$t('system:loginLog:table:LoginUserType')"
prop="LoginUserTypeEnum"

View File

@ -89,7 +89,7 @@
>
<template v-for="userType of userTypeOptions">
<el-option
v-if="userType.UserTypeEnum !== 20"
v-if="![4, 6, 20].includes(userType.UserTypeEnum)"
:key="userType.Id"
:label="userType.UserType"
:value="userType.Id"
@ -109,7 +109,7 @@
>
<template v-for="userType of userTypeOptions">
<el-option
v-if="userType.UserTypeEnum !== 20"
v-if="![4, 6, 20].includes(userType.UserTypeEnum)"
:key="userType.Id"
:label="userType.UserType"
:value="userType.Id"

View File

@ -155,7 +155,8 @@ export default {
roleList() {
let arr = this.list.map((item) => item.UserTypeId)
return this.userTypeOptions.filter(
(item) => !arr.includes(item.Id) && item.UserTypeEnum !== 20
(item) =>
!arr.includes(item.Id) && ![4, 6, 20].includes(item.UserTypeEnum)
)
},
},

View File

@ -40,13 +40,13 @@
Array.isArray(scope.row.UserRoleList) &&
scope.row.UserRoleList.length > 0
? scope.row.UserRoleList.map((item) => item.UserTypeShortName).join(
','
', '
)
: ''
}}
</template>
<template slot="roleSlot" slot-scope="{ scope }">
{{ scope.row.RoleNameList.map((role) => role.RoleName).join(',') }}
{{ scope.row.RoleNameList.map((role) => role.RoleName).join(', ') }}
</template>
<template slot="isZhiZhunSlot" slot-scope="{ scope }">
{{
@ -95,8 +95,12 @@ const searchDataDefault = () => {
RealName: '',
BeginCreateTime: '',
EndCreateTime: '',
EndLastLoginTime: null,
EndLastChangePassWordTime: null,
BeginLastChangePassWordTime: null,
CreateTimeArr: [],
LastLoginTimeArr: [],
LastChangePassWordTimeArr: [],
SortField: 'CreateTime',
}
}
@ -202,6 +206,13 @@ export default {
sortable: 'custom',
showOverflowTooltip: true,
},
{
prop: 'LastChangePassWordTime',
label: this.$t('system:userlist:table:LastChangePassWordTime'),
minWidth: 250,
sortable: 'custom',
showOverflowTooltip: true,
},
{
prop: 'CreateTime',
label: this.$t('system:userlist:table:createTime'),
@ -213,7 +224,7 @@ export default {
type: 'operate',
label: this.$t('common:action:action'),
minWidth: 200,
fixed:"right",
fixed: 'right',
operates: [
{
name: this.$t('common:button:edit'),
@ -338,6 +349,13 @@ export default {
width: '400px',
placeholder: '',
},
{
type: 'Daterange',
label: this.$t('system:userlist:label:LastChangePassWordTime'),
prop: 'LastChangePassWordTimeArr',
width: '400px',
placeholder: '',
},
{
type: 'Daterange',
label: this.$t('system:userlist:label:CreateTime'),
@ -442,6 +460,12 @@ export default {
this.searchData.BeginLastLoginTime = this.searchData.LastLoginTimeArr[0]
this.searchData.EndLastLoginTime = this.searchData.LastLoginTimeArr[1]
}
if (this.searchData.LastChangePassWordTimeArr.length > 0) {
this.searchData.BeginLastChangePassWordTime =
this.searchData.LastChangePassWordTimeArr[0]
this.searchData.EndLastChangePassWordTime =
this.searchData.LastChangePassWordTimeArr[1]
}
this.getList()
},
},

View File

@ -127,7 +127,7 @@
</el-radio-group>
<!-- 修改 -->
<el-button
:disabled="!userRoleId"
:disabled="!userRoleId || saveDisabled"
class="saveBtn"
:loading="toggleRoleLoading"
type="primary"
@ -215,6 +215,9 @@ export default {
hasRole() {
return this.roles && this.roles.length > 1
},
saveDisabled() {
return this.userRoleId === zzSessionStorage.getItem('userId')
},
},
methods: {
//
@ -336,4 +339,12 @@ export default {
},
},
}
</script>
</script>
<style lang="scss" scoped>
.el-radio-group {
margin-top: 12px;
}
.el-radio {
width: 60px;
}
</style>

View File

@ -307,23 +307,21 @@
</div>
</el-upload>
</el-form-item>
<el-form-item v-if="adInfo.ReadingTaskState < 2">
<div style="text-align: center">
<el-button type="primary" @click="skipTask">
<!-- 跳过 -->
{{ $t("trials:readingReport:button:skip") }}
</el-button>
<!-- 保存 -->
<el-button type="primary" @click="handleSave">{{
$t("common:button:save")
}}</el-button>
<!-- 提交 -->
<el-button type="primary" @click="handleSubmit">{{
$t("common:button:submit")
}}</el-button>
</div>
</el-form-item>
</el-form>
<div style="text-align: center;width:100%" v-if="adInfo.ReadingTaskState < 2">
<el-button type="primary" @click="skipTask">
<!-- 跳过 -->
{{ $t("trials:readingReport:button:skip") }}
</el-button>
<!-- 保存 -->
<el-button type="primary" @click="handleSave">{{
$t("common:button:save")
}}</el-button>
<!-- 提交 -->
<el-button type="primary" @click="handleSubmit">{{
$t("common:button:submit")
}}</el-button>
</div>
</el-card>
<el-card

View File

@ -140,7 +140,7 @@
<span>{{
scope.row.TrialUserRoleList.map(
(item) => item.UserTypeShortName
).join(',')
).join(', ')
}}</span>
</el-button>
</template>

View File

@ -1,6 +1,6 @@
<template>
<el-container class="participant-container">
<el-header style="height:50px">
<el-header style="height: 50px">
<div class="filter-container">
<!-- 姓名 -->
<span>{{ $t('trials:externalStaff:table:name') }}:</span>
@ -12,23 +12,54 @@
<span>{{ $t('trials:externalStaff:table:phone') }}:</span>
<el-input v-model="listQuery.Phone" size="mini" class="mr" clearable />
<!-- 查询 -->
<el-button type="primary" size="mini" icon="el-icon-search" @click="handleSearch">
<el-button
type="primary"
size="mini"
icon="el-icon-search"
@click="handleSearch"
>
{{ $t('common:button:search') }}
</el-button>
<!-- 重置 -->
<el-button size="mini" type="primary" icon="el-icon-refresh-left" @click="handleReset">
<el-button
size="mini"
type="primary"
icon="el-icon-refresh-left"
@click="handleReset"
>
{{ $t('common:button:reset') }}
</el-button>
<!-- 权限配置 -->
<el-button type="primary" size="mini" style="margin-left:auto" :loading="assignLoadStatus" @click="openPermission">
<el-button
type="primary"
size="mini"
style="margin-left: auto"
:loading="assignLoadStatus"
@click="openPermission"
>
{{ $t('trials:staff:button:permissionConfiguration') }}
</el-button>
<!-- 发送邮件 -->
<el-button type="primary" size="mini" style="margin-left:10px" :disabled="selectArr.length === 0" :loading="assignLoadStatus" icon="el-icon-message" @click="sendEmail">
<el-button
type="primary"
size="mini"
style="margin-left: 10px"
:disabled="selectArr.length === 0"
:loading="assignLoadStatus"
icon="el-icon-message"
@click="sendEmail"
>
{{ $t('trials:staff:button:sendEmail') }}
</el-button>
<!-- 添加 -->
<el-button type="primary" icon="el-icon-plus" size="mini" style="margin-left:10px" :loading="assignLoadStatus" @click="handleAdd">
<el-button
type="primary"
icon="el-icon-plus"
size="mini"
style="margin-left: 10px"
:loading="assignLoadStatus"
@click="handleAdd"
>
{{ $t('trials:staff:button:addExternalStaff') }}
</el-button>
</div>
@ -57,7 +88,9 @@
sortable="custom"
min-width="100"
>
<template slot-scope="scope">{{ scope.row.LastName + ' / ' + scope.row.FirstName }}</template>
<template slot-scope="scope">{{
scope.row.LastName + ' / ' + scope.row.FirstName
}}</template>
</el-table-column>
<el-table-column
prop="UserType"
@ -67,7 +100,13 @@
min-width="120"
>
<template slot-scope="scope">
{{ userTypeOptions.length > 0 ? userTypeOptions.find((v) => { return v.Id == scope.row.UserTypeId }).UserTypeShortName : '' }}
{{
userTypeOptions.length > 0
? userTypeOptions.find((v) => {
return v.Id == scope.row.UserTypeId
}).UserTypeShortName
: ''
}}
</template>
</el-table-column>
<el-table-column
@ -100,9 +139,15 @@
sortable="custom"
min-width="120"
>
<template slot-scope="scope">{{ $fd('IsJoin', scope.row.IsJoin) }}</template>
<template slot-scope="scope">{{
$fd('IsJoin', scope.row.IsJoin)
}}</template>
</el-table-column>
<el-table-column :label="$t('common:action:action')" fixed="right" min-width="150">
<el-table-column
:label="$t('common:action:action')"
fixed="right"
min-width="150"
>
<template slot-scope="scope">
<el-button
circle
@ -116,23 +161,57 @@
</el-table>
</div>
</el-main>
<StaffExternalAdd ref="StaffExternalAdd" :user-type-options="userTypeOptions" @getList="refeshList" />
<StaffExternalAdd
ref="StaffExternalAdd"
:user-type-options="userTypeOptions"
@getList="refeshList"
/>
<base-model v-if="model_config.visible" :config="model_config">
<template slot="dialog-body">
<el-form :model="permission" :rules="permissionRole" ref="permissionForm" label-width="140px" class="demo-ruleForm">
<el-form-item :label="$t('trials:externalStaff:form:IsSPMJoinReReadingApproval')" prop="IsSPMJoinReReadingApproval">
<el-form
:model="permission"
:rules="permissionRole"
ref="permissionForm"
label-width="140px"
class="demo-ruleForm"
>
<el-form-item
:label="$t('trials:externalStaff:form:IsSPMJoinReReadingApproval')"
prop="IsSPMJoinReReadingApproval"
>
<el-radio-group v-model="permission.IsSPMJoinReReadingApproval">
<el-radio v-for="item in $d.YesOrNo" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
<el-radio
v-for="item in $d.YesOrNo"
:key="item.id"
:label="item.value"
>{{ item.label }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('trials:externalStaff:form:IsSPMJoinReviewerSelect')" prop="IsSPMJoinReviewerSelect">
<el-form-item
:label="$t('trials:externalStaff:form:IsSPMJoinReviewerSelect')"
prop="IsSPMJoinReviewerSelect"
>
<el-radio-group v-model="permission.IsSPMJoinReviewerSelect">
<el-radio v-for="item in $d.YesOrNo" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
<el-radio
v-for="item in $d.YesOrNo"
:key="item.id"
:label="item.value"
>{{ item.label }}</el-radio
>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('trials:externalStaff:form:IsSPMJoinSiteSurvey')" prop="IsSPMJoinSiteSurvey">
<el-form-item
:label="$t('trials:externalStaff:form:IsSPMJoinSiteSurvey')"
prop="IsSPMJoinSiteSurvey"
>
<el-radio-group v-model="permission.IsSPMJoinSiteSurvey">
<el-radio v-for="item in $d.YesOrNo" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
<el-radio
v-for="item in $d.YesOrNo"
:key="item.id"
:label="item.value"
>{{ item.label }}</el-radio
>
</el-radio-group>
</el-form-item>
</el-form>
@ -159,7 +238,14 @@
</el-container>
</template>
<script>
import { getTrialExternalUserList, addTrialUsers, getUserTypeList, sendExternalUserJoinEmail, getTrialConfigInfo, configTrialSPMInfo } from '@/api/trials'
import {
getTrialExternalUserList,
addTrialUsers,
getUserTypeList,
sendExternalUserJoinEmail,
getTrialConfigInfo,
configTrialSPMInfo,
} from '@/api/trials'
import { deleteTrialExternalUser } from '@/api/trials/setting.js'
import StaffExternalAdd from './staffExternalAdd'
import BaseModel from '@/components/BaseModel'
@ -167,11 +253,11 @@ const getListQueryDefault = () => {
return {
Phone: '',
Email: '',
Name: ''
Name: '',
}
}
export default {
components: { StaffExternalAdd,BaseModel },
components: { StaffExternalAdd, BaseModel },
data() {
return {
list: [],
@ -181,17 +267,26 @@ export default {
assignLoadStatus: false,
// isAdmin: JSON.parse(zzSessionStorage.getItem('IsAdmin')),
userTypeOptions: [],
stateList: ['WaitSent', 'HasSend', 'UserConfirmed', 'UserReject', 'OverTime'],
stateList: [
'WaitSent',
'HasSend',
'UserConfirmed',
'UserReject',
'OverTime',
],
trialId: '',
model_config:{
visible: false, title: this.$t('trials:staff:dialogTitle:permissionConfiguration'), width: '500px', appendToBody: true
model_config: {
visible: false,
title: this.$t('trials:staff:dialogTitle:permissionConfiguration'),
width: '500px',
appendToBody: true,
},
permission:{
permission: {
IsSPMJoinReReadingApproval: false,
IsSPMJoinReviewerSelect: false,
IsSPMJoinSiteSurvey: false,
},
permissionRole:{}
permissionRole: {},
}
},
mounted() {
@ -201,42 +296,42 @@ export default {
},
methods: {
//
async getPermission(){
try{
let res = await getTrialConfigInfo(this.trialId);
if(res.IsSuccess){
Object.keys(this.permission).forEach(key=>{
async getPermission() {
try {
let res = await getTrialConfigInfo(this.trialId)
if (res.IsSuccess) {
Object.keys(this.permission).forEach((key) => {
this.permission[key] = res.Result[key]
})
}
}catch(err){
} catch (err) {
console.log(err)
}
},
//
async openPermission(){
try{
await this.getPermission();
this.model_config.visible = true;
}catch(err){
console.log(err);
async openPermission() {
try {
await this.getPermission()
this.model_config.visible = true
} catch (err) {
console.log(err)
}
},
//
async savePermission(){
try{
let validate =await this.$refs.permissionForm.validate();
if(!validate) return false;
this.assignLoadStatus = true;
let data = Object.assign({ Id: this.trialId },this.permission)
let res = await configTrialSPMInfo(data);
this.assignLoadStatus = false;
if(res.IsSuccess){
this.model_config.visible = false;
this.$message.success(this.$t("common:message:updatedSuccessfully"))
async savePermission() {
try {
let validate = await this.$refs.permissionForm.validate()
if (!validate) return false
this.assignLoadStatus = true
let data = Object.assign({ Id: this.trialId }, this.permission)
let res = await configTrialSPMInfo(data)
this.assignLoadStatus = false
if (res.IsSuccess) {
this.model_config.visible = false
this.$message.success(this.$t('common:message:updatedSuccessfully'))
}
}catch(err){
this.assignLoadStatus = false;
} catch (err) {
this.assignLoadStatus = false
console.log(err)
}
},
@ -249,83 +344,108 @@ export default {
},
handleEdit(row) {
this.$nextTick(() => {
this.$refs['StaffExternalAdd'].openDialog(this.$t('trials:externalStaff:dialogTitle:edit'), row)
this.$refs['StaffExternalAdd'].openDialog(
this.$t('trials:externalStaff:dialogTitle:edit'),
row
)
})
},
handleAdd() {
this.$nextTick(() => {
this.$refs['StaffExternalAdd'].openDialog(this.$t('trials:externalStaff:dialogTitle:add'), {})
this.$refs['StaffExternalAdd'].openDialog(
this.$t('trials:externalStaff:dialogTitle:add'),
{}
)
})
},
deleteTrialExternalUser(row) {
this.$confirm(this.$t('trials:externalStaff:message:delete'), {
type: 'warning',
distinguishCancelAndClose: true
distinguishCancelAndClose: true,
}).then(() => {
this.loading = true
deleteTrialExternalUser(row.Id, row.IsSystemUser, row.SystemUserId)
.then((res) => {
this.$message.success(this.$t('common:message:deletedSuccessfully'))
this.getList()
this.loading = false
})
.catch(() => {
this.loading = false
})
})
.then(() => {
this.loading = true
deleteTrialExternalUser(row.Id, row.IsSystemUser, row.SystemUserId)
.then(res => {
this.$message.success(this.$t('common:message:deletedSuccessfully'))
this.getList()
this.loading = false
}).catch(() => { this.loading = false })
})
},
sendEmail() {
const loading = this.$loading({
target: document.querySelector('.participant-table-list'),
fullscreen: false,
lock: true
lock: true,
})
// var BaseUrl = document.domain + `/#/login`
var BaseUrl = `${location.protocol}//${location.host}/login`
var joinUrl = `${location.protocol}//${location.host}/email-recompose`
var sendEmailUserArr = this.selectArr.map((v) => { return { Id: v.Id, Email: v.Email, IsSystemUser: v.IsSystemUser, SystemUserId: v.SystemUserId } })
var sendEmailUserArr = this.selectArr.map((v) => {
return {
Id: v.Id,
Email: v.Email,
IsSystemUser: v.IsSystemUser,
SystemUserId: v.SystemUserId,
UserTypeId: v.UserTypeId,
}
})
sendExternalUserJoinEmail({
TrialId: this.trialId,
SendUsers: sendEmailUserArr,
BaseUrl: BaseUrl,
RouteUrl: joinUrl
}).then(() => {
loading.close()
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getList()
this.$emit('getList')
}).catch(() => { loading.close() })
RouteUrl: joinUrl,
})
.then(() => {
loading.close()
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getList()
this.$emit('getList')
})
.catch(() => {
loading.close()
})
},
getList() {
const loading = this.$loading({
target: document.querySelector('.participant-table-list'),
fullscreen: false,
lock: true
lock: true,
})
this.listQuery.TrialId = this.trialId
getTrialExternalUserList(this.listQuery).then(res => {
loading.close()
this.list = res.Result
}).catch(() => { loading.close() })
getTrialExternalUserList(this.listQuery)
.then((res) => {
loading.close()
this.list = res.Result
})
.catch(() => {
loading.close()
})
},
handleAssign() {
this.$confirm(this.$t('trials:externalStaff:message:add'), {
type: 'warning',
distinguishCancelAndClose: true
distinguishCancelAndClose: true,
}).then(() => {
const loading = this.$loading({
target: document.querySelector('.participant-table-list'),
fullscreen: false,
lock: true
lock: true,
})
this.assignLoadStatus = true
addTrialUsers(this.selectArr)
.then(res => {
.then((res) => {
this.assignLoadStatus = false
loading.close()
if (res.IsSuccess) {
this.$emit('closeDialog')
this.$message.success(this.$t('common:message:savedSuccessfully'))
}
}).catch(() => {
})
.catch(() => {
loading.close()
this.assignLoadStatus = false
})
@ -360,35 +480,35 @@ export default {
}
},
getUserType() {
getUserTypeList(1).then(res => {
getUserTypeList(1).then((res) => {
this.userTypeOptions = res.Result
})
}
}
},
},
}
</script>
<style lang="scss" scoped>
.participant-container{
height: 100%;
.el-header{
.filter-container{
display: flex;
align-items: center;
span{
font-size:13px;
margin-right:5px;
}
.mr{
margin-right: 5px;
width: 120px;
}
.participant-container {
height: 100%;
.el-header {
.filter-container {
display: flex;
align-items: center;
span {
font-size: 13px;
margin-right: 5px;
}
.mr {
margin-right: 5px;
width: 120px;
}
}
.el-main{
padding: 0px;
}
.el-footer{
padding: 0 20px;
}
}
.el-main {
padding: 0px;
}
.el-footer {
padding: 0 20px;
}
}
</style>

View File

@ -72,12 +72,10 @@
"
:label="item.value"
v-if="
(JudgyInfo.ArbitrationRule === 1 &&
(item.value < 4 ||
(item.value > 3 &&
(QuestionList[index].Type === 'number' ||
QuestionList[index].Type === 'calculation')))) ||
(JudgyInfo.ArbitrationRule === 2 && item.value < 4)
item.value < 4 ||
(item.value > 3 &&
(QuestionList[index].Type === 'number' ||
QuestionList[index].Type === 'calculation'))
"
>
{{ item.label }}

View File

@ -135,14 +135,14 @@
show-overflow-tooltip
sortable="custom"
/> -->
<el-table-column
<!-- <el-table-column
v-if="!isMine"
:label="$t('trials:loginLog:table:incorrectUserName')"
prop="LoginFaildName"
min-width="90"
show-overflow-tooltip
sortable="custom"
/>
/> -->
<el-table-column
:label="$t('trials:loginLog:table:userName')"
prop="ActionUserName"
@ -150,6 +150,13 @@
show-overflow-tooltip
sortable="custom"
/>
<el-table-column
:label="$t('trials:loginLog:table:Aetionlserlype')"
prop="ActionUserType"
min-width="100"
show-overflow-tooltip
sortable="custom"
/>
<!-- <el-table-column
:label="$t('trials:loginLog:table:userType')"
prop="LoginUserTypeEnum"

View File

@ -742,7 +742,10 @@
</el-button>
</el-form-item>
</el-form>
<div class="tip" v-if="[0].includes($store.state.trials.config.CollectImagesEnum)">
<div
class="tip"
v-if="[0].includes($store.state.trials.config.CollectImagesEnum)"
>
<i class="el-icon-warning-outline"></i>
<div v-html="$t('trials:uploadedDicoms:tip:message')"></div>
</div>
@ -1754,12 +1757,10 @@ export default {
this.selected.TrialId = this.subjectRowData.TrialId
this.selected.SubjectId = this.subjectRowData.SubjectId
this.isShow = true
console.log(res)
})
}
},
handleView2(row) {
console.log(row)
this.rowData = { ...row }
this.openType = 'look'
this.preview.visible = true
@ -1914,7 +1915,6 @@ export default {
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
this.otherInfo = res.OtherInfo
console.log(this.otherInfo)
})
.catch(() => {
this.loading = false
@ -2053,9 +2053,16 @@ export default {
this.otherInfo.ClinicalInformationTransmissionEnum > 0 &&
this.rowData.IsBaseLine
) {
const { ClinicalDataConfirmation } = const_.processSignature
this.signCode = ClinicalDataConfirmation
this.signVisible = true
getVisitClinicalDataName({ id: this.rowData.Id })
.then((res) => {
this.signReplaceText = res.Result.ClinicalDataName
const { ClinicalDataConfirmation } = const_.processSignature
this.signCode = ClinicalDataConfirmation
this.signVisible = true
})
.catch((err) => {
console.log(err)
})
} else {
this.submit()
}