稽查国际化修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
042db393ca
commit
bfa23dc007
|
@ -25,22 +25,10 @@
|
|||
</el-form-item>
|
||||
<!-- 访视 -->
|
||||
<el-form-item :label="$t('trials:auditRecord:table:visit')">
|
||||
<el-select
|
||||
v-model="searchData.VisitPlanInfo"
|
||||
clearable
|
||||
filterable
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) of visitPlanOptions"
|
||||
:key="index"
|
||||
:label="item.VisitName"
|
||||
:value="item.VisitNum"
|
||||
/>
|
||||
<el-option
|
||||
key="Other"
|
||||
label="Out of Plan"
|
||||
value="1.11"
|
||||
/>
|
||||
<el-select v-model="searchData.VisitPlanInfo" clearable filterable>
|
||||
<el-option v-for="(item, index) of visitPlanOptions" :key="index" :label="item.VisitName"
|
||||
:value="item.VisitNum" />
|
||||
<el-option key="Other" label="Out of Plan" value="1.11" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 任务名称 -->
|
||||
|
@ -50,18 +38,16 @@
|
|||
<!-- 阅片标准 -->
|
||||
<el-form-item :label="$t('trials:auditRecord:table:criterion')">
|
||||
<el-select v-model="searchData.TrialReadingCriterionId" clearable filterable>
|
||||
<el-option
|
||||
v-for="(item,index) of trialCriterionList"
|
||||
:key="index"
|
||||
:label="item.TrialReadingCriterionName"
|
||||
:value="item.TrialReadingCriterionId"
|
||||
/>
|
||||
<el-option v-for="(item, index) of trialCriterionList" :key="index" :label="item.TrialReadingCriterionName"
|
||||
:value="item.TrialReadingCriterionId" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 功能模块 -->
|
||||
<el-form-item :label="$t('trials:auditRecord:table:funcModule')">
|
||||
<el-select v-model="searchData.ModuleType" style="width:120px" clearable @change="getModuleTypeDescriptionList">
|
||||
<el-option v-for="item of $d.ModuleType" :value="item.id" :label="item.label" :key="`ModuleType${item.value}`"/>
|
||||
<el-select v-model="searchData.ModuleType" style="width:120px" clearable
|
||||
@change="getModuleTypeDescriptionList">
|
||||
<el-option v-for="item of $d.ModuleType" :value="item.id" :label="item.label"
|
||||
:key="`ModuleType${item.value}`" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 操作名 -->
|
||||
|
@ -73,7 +59,8 @@
|
|||
<!-- 是否签名 -->
|
||||
<el-form-item :label="$t('trials:auditRecord:table:isSign')">
|
||||
<el-select v-model="searchData.IsSign" style="width:120px" clearable>
|
||||
<el-option v-for="item of $d.YesOrNo" v-show="item.raw.ValueCN !== '无'" :label="item.label" :value="item.value" :key="`IsSign${item.value}`"/>
|
||||
<el-option v-for="item of $d.YesOrNo" v-show="item.raw.ValueCN !== '无'" :label="item.label"
|
||||
:value="item.value" :key="`IsSign${item.value}`" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 操作人 -->
|
||||
|
@ -83,19 +70,16 @@
|
|||
<!-- 角色 -->
|
||||
<el-form-item :label="$t('trials:auditRecord:table:role')">
|
||||
<el-select v-model="searchData.RoleName" style="width:120px" clearable>
|
||||
<el-option v-for="item of $d.UserType" :label="item.label" :value="item.label" :key="`RoleName${item.value}`"/>
|
||||
<el-option v-for="item of $d.UserType" :label="item.label" :value="item.label"
|
||||
:key="`RoleName${item.value}`" />
|
||||
</el-select>
|
||||
<!-- <el-input v-model="searchData.RoleName" clearable/>-->
|
||||
<!-- RoleName-->
|
||||
</el-form-item>
|
||||
<!-- 操作时间 -->
|
||||
<el-form-item :label="$t('trials:auditRecord:table:operateTime')">
|
||||
<el-date-picker
|
||||
v-model="timeList"
|
||||
@change="changeTimeList"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
type="datetimerange">
|
||||
<el-date-picker v-model="timeList" @change="changeTimeList" value-format="yyyy-MM-dd HH:mm:ss"
|
||||
:default-time="['00:00:00', '23:59:59']" type="datetimerange">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="阅片人: ">-->
|
||||
|
@ -106,23 +90,18 @@
|
|||
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch"> {{ $t('common:button:search') }}</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset"> {{ $t('common:button:reset') }}</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch"> {{ $t('common:button:search')
|
||||
}}</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset"> {{ $t('common:button:reset')
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
</el-form>
|
||||
</template>
|
||||
<template slot="main-container">
|
||||
<el-table
|
||||
v-adaptive="{bottomOffset:60}"
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
@sort-change="handleSortChange"
|
||||
stripe
|
||||
height="100"
|
||||
:default-sort ="{prop: 'CreateTime', order: 'descending'}"
|
||||
>
|
||||
<el-table v-adaptive="{ bottomOffset: 60 }" v-loading="loading" :data="list" @sort-change="handleSortChange" stripe
|
||||
height="100" :default-sort="{ prop: 'CreateTime', order: 'descending' }">
|
||||
<el-table-column type="index" width="40" fixed="left" align="left" />
|
||||
<!-- 研究方案号 -->
|
||||
<!-- <el-table-column
|
||||
|
@ -143,32 +122,14 @@
|
|||
sortable="custom"
|
||||
/> -->
|
||||
<!-- 受试者 -->
|
||||
<el-table-column
|
||||
prop="SubjectCode"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:subject')"
|
||||
fixed="left"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column prop="SubjectCode" min-width="100" :label="$t('trials:auditRecord:table:subject')" fixed="left"
|
||||
show-overflow-tooltip sortable="custom" />
|
||||
<!-- 访视 -->
|
||||
<el-table-column
|
||||
prop="VisitName"
|
||||
min-width="120"
|
||||
:label="$t('trials:auditRecord:table:visit')"
|
||||
fixed="left"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column prop="VisitName" min-width="120" :label="$t('trials:auditRecord:table:visit')" fixed="left"
|
||||
show-overflow-tooltip sortable="custom" />
|
||||
<!-- 任务名称 -->
|
||||
<el-table-column
|
||||
prop="TaskName"
|
||||
min-width="130"
|
||||
:label="$t('trials:auditRecord:table:taskName')"
|
||||
fixed="left"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="TaskName" min-width="130" :label="$t('trials:auditRecord:table:taskName')" fixed="left"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.BlindName && scope.row.TaskName !== scope.row.BlindName">
|
||||
{{ `${scope.row.TaskName}/${scope.row.BlindName}` }}
|
||||
|
@ -186,53 +147,28 @@
|
|||
sortable="custom"
|
||||
/> -->
|
||||
<!-- 阅片标准 -->
|
||||
<el-table-column
|
||||
prop="TrialReadingCriterionName"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:criterion')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="TrialReadingCriterionName" min-width="100"
|
||||
:label="$t('trials:auditRecord:table:criterion')" show-overflow-tooltip />
|
||||
<!-- 功能模块 -->
|
||||
<el-table-column
|
||||
prop="ModuleTypeName"
|
||||
width="160"
|
||||
:label="$t('trials:auditRecord:table:funcModule')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="ModuleTypeName" width="160" :label="$t('trials:auditRecord:table:funcModule')"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('ModuleType', scope.row.ModuleTypeId, 'id') }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 操作名 -->
|
||||
<el-table-column
|
||||
prop="Description"
|
||||
width="160"
|
||||
:label="$t('trials:auditRecord:table:operationName')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="Description" width="160" :label="$t('trials:auditRecord:table:operationName')"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
{{ $i18n.locale === 'zh' ? scope.row.DescriptionCN : scope.row.Description }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 修改原因 -->
|
||||
<el-table-column
|
||||
prop="Reason"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:modifyReason')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column prop="Reason" min-width="100" :label="$t('trials:auditRecord:table:modifyReason')"
|
||||
show-overflow-tooltip sortable="custom" />
|
||||
<!-- 是否电签 -->
|
||||
<el-table-column
|
||||
prop="IsSign"
|
||||
min-width="120"
|
||||
align="center"
|
||||
:label="$t('trials:auditRecord:table:isSign')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="IsSign" min-width="120" align="center" :label="$t('trials:auditRecord:table:isSign')"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<el-tooltip v-if="scope.row.IsSign" class="item" effect="dark" placement="top">
|
||||
|
@ -246,13 +182,8 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<!-- 操作人 -->
|
||||
<el-table-column
|
||||
prop="CreateUserRealName"
|
||||
min-width="120"
|
||||
:label="$t('trials:auditRecord:table:operator')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="CreateUserRealName" min-width="120" :label="$t('trials:auditRecord:table:operator')"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<!-- <template slot-scope="scope">
|
||||
<div>
|
||||
{{ scope.row.UserLastName }}/{{ scope.row.UserFirstName }}
|
||||
|
@ -260,43 +191,17 @@
|
|||
</template> -->
|
||||
</el-table-column>
|
||||
<!-- 用户名 -->
|
||||
<el-table-column
|
||||
prop="CreateUserName"
|
||||
min-width="120"
|
||||
:label="$t('trials:auditRecord:table:userName')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column prop="CreateUserName" min-width="120" :label="$t('trials:auditRecord:table:userName')"
|
||||
show-overflow-tooltip sortable="custom" />
|
||||
<!-- 角色 -->
|
||||
<el-table-column
|
||||
prop="RoleName"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:role')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column prop="RoleName" min-width="100" :label="$t('trials:auditRecord:table:role')"
|
||||
show-overflow-tooltip sortable="custom" />
|
||||
<!-- 操作时间 -->
|
||||
<el-table-column
|
||||
prop="CreateTime"
|
||||
min-width="160"
|
||||
:label="$t('trials:auditRecord:table:operateTime')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="IP"
|
||||
min-width="100"
|
||||
label="IP"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
prop=""
|
||||
min-width="150"
|
||||
fixed="right"
|
||||
:label="$t('common:action:action')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="CreateTime" min-width="160" :label="$t('trials:auditRecord:table:operateTime')"
|
||||
show-overflow-tooltip sortable="custom" />
|
||||
<el-table-column prop="IP" min-width="100" label="IP" show-overflow-tooltip sortable="custom" />
|
||||
<el-table-column prop="" min-width="150" fixed="right" :label="$t('common:action:action')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<!-- 详情 -->
|
||||
<el-button type="text" @click="lookDetails(scope.row)">
|
||||
|
@ -306,52 +211,51 @@
|
|||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 分页组件 -->
|
||||
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
|
||||
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize"
|
||||
@pagination="getList" />
|
||||
<base-model :config="model_cfg">
|
||||
<template slot="dialog-body">
|
||||
<div style="display: flex;align-items: center;justify-content: flex-start;">
|
||||
<!-- 同一对象历史操作 -->
|
||||
<el-button size="small" style="position: relative;top: -15px;" type="primary" @click="lookAssociated(1)">{{$t('trials:auditRecord:title:historicalOperations')}}</el-button>
|
||||
<el-button size="small" style="position: relative;top: -15px;" type="primary"
|
||||
@click="lookAssociated(1)">{{ $t('trials:auditRecord:title:historicalOperations') }}</el-button>
|
||||
<!-- 同一对象关联操作 -->
|
||||
<el-button size="small" style="position: relative;top: -15px;" type="primary" @click="lookAssociated(0)">{{$t('trials:auditRecord:title:relationOperations')}}</el-button>
|
||||
<el-button size="small" style="position: relative;top: -15px;" type="primary"
|
||||
@click="lookAssociated(0)">{{ $t('trials:auditRecord:title:relationOperations') }}</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
v-if="auditData.length > 0"
|
||||
:data="auditData"
|
||||
border
|
||||
style="width: 100%"
|
||||
size="small"
|
||||
max-height="400"
|
||||
>
|
||||
<el-table v-if="auditData.length > 0" :data="auditData" border style="width: 100%" size="small"
|
||||
max-height="400">
|
||||
<!-- 字段名 -->
|
||||
<el-table-column
|
||||
prop="Enum"
|
||||
:label="$t('trials:auditRecord:title:fieldName')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="Enum" :label="$t('trials:auditRecord:title:fieldName')" show-overflow-tooltip />
|
||||
<!-- OptType === 'Add' ? '值' : OptType === 'Delete' ? '删除前' : '修改前' -->
|
||||
<el-table-column
|
||||
v-if="OptType !== 'Add' && OptType !== 'Upload' && OptType !== 'Init'"
|
||||
prop="oldValue"
|
||||
<el-table-column v-if="OptType !== 'Add' && OptType !== 'Upload' && OptType !== 'Init'" prop="oldValue"
|
||||
:label="OptType === 'Add' ? $t('trials:auditRecord:title:fieldValue') : OptType === 'Delete' ? $t('trials:auditRecord:title:beforeDeletion') : $t('trials:auditRecord:title:beforeModification')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<span>
|
||||
<!-- 查看详情 -->
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.oldValue && scope.row.oldValue !== '--'" target="_blank" :href="OSSclientConfig.basePath + scope.row.oldValue" style="color:#409eff;">
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.oldValue && scope.row.oldValue !== '--'"
|
||||
target="_blank" :href="OSSclientConfig.basePath + scope.row.oldValue" style="color:#409eff;">
|
||||
{{ $t('common:button:download') }}
|
||||
</a>
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.oldValue && scope.row.oldValue !== '--'" target="_blank" :href="scope.row.oldValue" style="color:#409eff;">
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.oldValue && scope.row.oldValue !== '--'"
|
||||
target="_blank" :href="scope.row.oldValue" style="color:#409eff;">
|
||||
{{ $t('trials:auditRecord:title:viewDetail') }}
|
||||
</a>
|
||||
<viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.oldValue && scope.row.oldValue !== '--'" :ref="`${scope.row.oldValue instanceof Array ? scope.row.oldValue[0] : scope.row.oldValue}_modelCfg`" :images="imagesList">
|
||||
<viewer
|
||||
v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.oldValue && scope.row.oldValue !== '--'"
|
||||
:ref="`${scope.row.oldValue instanceof Array ? scope.row.oldValue[0] : scope.row.oldValue}_modelCfg`"
|
||||
:images="imagesList">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.oldValue, 'modelCfg')">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}}</span>
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row.oldValue, 'modelCfg')">{{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.oldValue
|
||||
instanceof Array ? `(${scope.row.oldValue.length})` : ''}}</span>
|
||||
<template v-for="item of scope.row.oldValue">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</template>
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.oldValue" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.oldValue"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</viewer>
|
||||
<div v-else-if="scope.row.DataType === 'Dialog'" v-html="scope.row.oldValue"></div>
|
||||
<span v-else>
|
||||
|
@ -362,27 +266,34 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<!-- OptType === 'Add' || OptType === 'Init' ? '值' : OptType === 'Delete' ? '删除后' : '修改后' -->
|
||||
<el-table-column
|
||||
prop="newValue"
|
||||
<el-table-column prop="newValue"
|
||||
:label="OptType === 'Add' || OptType === 'Init' ? $t('trials:auditRecord:title:fieldValue') : OptType === 'Delete' ? $t('trials:auditRecord:title:afterDeletion') : $t('trials:auditRecord:title:afterModification')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<span :style="{ color: scope.row.newValue !== scope.row.oldValue ? '#f66' : null }">
|
||||
<!-- 查看详情 -->
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.newValue && scope.row.newValue !== '--'" target="_blank" :href="OSSclientConfig.basePath + scope.row.newValue" style="color:#409eff;">
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.newValue && scope.row.newValue !== '--'"
|
||||
target="_blank" :href="OSSclientConfig.basePath + scope.row.newValue" style="color:#409eff;">
|
||||
{{ $t('common:button:download') }}
|
||||
</a>
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.newValue && scope.row.newValue !== '--'" target="_blank" :href="scope.row.newValue" style="color:#409eff;">
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.newValue && scope.row.newValue !== '--'"
|
||||
target="_blank" :href="scope.row.newValue" style="color:#409eff;">
|
||||
{{ $t('trials:auditRecord:title:viewDetail') }}
|
||||
</a>
|
||||
<viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.newValue && scope.row.newValue !== '--'" :ref="`${scope.row.newValue instanceof Array ? scope.row.newValue[0] : scope.row.newValue}_modelcfg`" :images="imagesList">
|
||||
<viewer
|
||||
v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.newValue && scope.row.newValue !== '--'"
|
||||
:ref="`${scope.row.newValue instanceof Array ? scope.row.newValue[0] : scope.row.newValue}_modelcfg`"
|
||||
:images="imagesList">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.newValue, 'modelcfg')">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}}</span>
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row.newValue, 'modelcfg')">{{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.newValue
|
||||
instanceof Array ? `(${scope.row.newValue.length})` : ''}}</span>
|
||||
<template v-for="item of scope.row.newValue">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</template>
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.newValue" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.newValue"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
<!-- <img :src="scope.row.newValue" v-show="false" crossorigin="anonymous" alt="">-->
|
||||
</viewer>
|
||||
<div v-else-if="scope.row.DataType === 'Dialog'" v-html="scope.row.newValue"></div>
|
||||
|
@ -391,47 +302,38 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-table
|
||||
:data="tableListData"
|
||||
v-if="tableListData.length > 0"
|
||||
border
|
||||
style="width: 100%"
|
||||
size="small"
|
||||
>
|
||||
<el-table-column
|
||||
v-for="(item,index) of tableList"
|
||||
:prop="item.ColumnValue"
|
||||
:label="item.IsMerge ? item.MergeColumnName : item.headName"
|
||||
align="center"
|
||||
show-overflow-tooltip
|
||||
:key="'tableList' + index"
|
||||
>
|
||||
<el-table :data="tableListData" v-if="tableListData.length > 0" border style="width: 100%" size="small">
|
||||
<el-table-column v-for="(item, index) of tableList" :prop="item.ColumnValue"
|
||||
:label="item.IsMerge ? item.MergeColumnName : item.headName" align="center" show-overflow-tooltip
|
||||
:key="'tableList' + index">
|
||||
<template v-if="!item.IsMerge" slot-scope="scope">
|
||||
<viewer v-if="item.IsPicture" :images="imagesList" :ref="`${scope.row[item.ColumnValue]}_modelcfg`">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[item.ColumnValue],'modelcfg')">{{$t('trials:auditRecord:title:viewImage')}}</span>
|
||||
<img :src="OSSclientConfig.basePath + scope.row[item.ColumnValue]" v-show="false" crossorigin="anonymous" alt="">
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row[item.ColumnValue], 'modelcfg')">{{ $t('trials:auditRecord:title:viewImage') }}</span>
|
||||
<img :src="OSSclientConfig.basePath + scope.row[item.ColumnValue]" v-show="false"
|
||||
crossorigin="anonymous" alt="">
|
||||
</viewer>
|
||||
<span v-else>{{ scope.row[item.ColumnValue] }}</span>
|
||||
</template>
|
||||
<template v-for="(ite, index) of item.ChildrenList">
|
||||
<el-table-column
|
||||
v-if="item.IsMerge"
|
||||
:prop="ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue"
|
||||
:label="ite.headName"
|
||||
align="center"
|
||||
show-overflow-tooltip
|
||||
:key="'ChildrenList' + index"
|
||||
>
|
||||
<el-table-column v-if="item.IsMerge"
|
||||
:prop="ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue" :label="ite.headName"
|
||||
align="center" show-overflow-tooltip :key="'ChildrenList' + index">
|
||||
<template slot-scope="scope">
|
||||
<viewer v-if="item.IsPicture" :images="imagesList" :ref="`${scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]}_modelcfg`">
|
||||
<viewer v-if="item.IsPicture" :images="imagesList"
|
||||
:ref="`${scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]}_modelcfg`">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue], 'modelcfg')">
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue], 'modelcfg')">
|
||||
{{ $t('trials:auditRecord:title:viewImage') }}
|
||||
</span>
|
||||
<img :src="OSSclientConfig.basePath + scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img
|
||||
:src="OSSclientConfig.basePath + scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</viewer>
|
||||
<span v-else>{{scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]}}</span>
|
||||
<span v-else>{{ scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index :
|
||||
ite.ColumnValue]}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
|
@ -453,58 +355,25 @@
|
|||
</template>
|
||||
</base-model>
|
||||
<!-- 新增/编辑项目 -->
|
||||
<el-dialog
|
||||
v-if="model_cfg2.visible"
|
||||
:visible.sync="model_cfg2.visible"
|
||||
:title="model_cfg2.title"
|
||||
:fullscreen="true"
|
||||
append-to-body
|
||||
custom-class="base-dialog-wrapper"
|
||||
>
|
||||
<el-table
|
||||
v-adaptive="{bottomOffset:20}"
|
||||
v-loading="loading"
|
||||
:data="list2"
|
||||
stripe
|
||||
height="100"
|
||||
>
|
||||
<el-dialog v-if="model_cfg2.visible" :visible.sync="model_cfg2.visible" :title="model_cfg2.title"
|
||||
:fullscreen="true" append-to-body custom-class="base-dialog-wrapper">
|
||||
<el-table v-adaptive="{ bottomOffset: 20 }" v-loading="loading" :data="list2" stripe height="100">
|
||||
<el-table-column type="index" width="40" align="left" />
|
||||
<!-- 研究方案号 -->
|
||||
<el-table-column
|
||||
prop="ResearchProgramNo"
|
||||
min-width="90"
|
||||
:label="$t('trials:auditRecord:table:researchNo')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="ResearchProgramNo" min-width="90" :label="$t('trials:auditRecord:table:researchNo')"
|
||||
show-overflow-tooltip />
|
||||
<!-- 中心编号 -->
|
||||
<el-table-column
|
||||
prop="SiteCode"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:siteNo')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="SiteCode" min-width="100" :label="$t('trials:auditRecord:table:siteNo')"
|
||||
show-overflow-tooltip />
|
||||
<!-- 受试者 -->
|
||||
<el-table-column
|
||||
prop="SubjectCode"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:subject')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="SubjectCode" min-width="100" :label="$t('trials:auditRecord:table:subject')"
|
||||
show-overflow-tooltip />
|
||||
<!-- 访视 -->
|
||||
<el-table-column
|
||||
prop="VisitName"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:visit')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="VisitName" min-width="100" :label="$t('trials:auditRecord:table:visit')"
|
||||
show-overflow-tooltip />
|
||||
<!-- 任务名称 -->
|
||||
<el-table-column
|
||||
prop="TaskName"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:taskName')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="TaskName" min-width="100" :label="$t('trials:auditRecord:table:taskName')"
|
||||
show-overflow-tooltip sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.BlindName && scope.row.TaskName !== scope.row.BlindName">
|
||||
{{ `${scope.row.TaskName}/${scope.row.BlindName}` }}
|
||||
|
@ -521,49 +390,28 @@
|
|||
sortable="custom"
|
||||
/> -->
|
||||
<!-- 阅片标准 -->
|
||||
<el-table-column
|
||||
prop="TrialReadingCriterionName"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:criterion')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="TrialReadingCriterionName" min-width="100"
|
||||
:label="$t('trials:auditRecord:table:criterion')" show-overflow-tooltip />
|
||||
<!-- 功能模块 -->
|
||||
<el-table-column
|
||||
prop="ModuleTypeName"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:funcModule')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="ModuleTypeName" min-width="100" :label="$t('trials:auditRecord:table:funcModule')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ $i18n.locale === 'zh' ? scope.row.ModuleTypeNameCN : scope.row.ModuleTypeName }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 操作名 -->
|
||||
<el-table-column
|
||||
prop="Description"
|
||||
min-width="140"
|
||||
:label="$t('trials:auditRecord:table:operationName')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="Description" min-width="140" :label="$t('trials:auditRecord:table:operationName')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ $i18n.locale === 'zh' ? scope.row.DescriptionCN : scope.row.Description }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 修改原因 -->
|
||||
<el-table-column
|
||||
prop="Reason"
|
||||
min-width="100"
|
||||
:label="$t('trials:auditRecord:table:modifyReason')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="Reason" min-width="100" :label="$t('trials:auditRecord:table:modifyReason')"
|
||||
show-overflow-tooltip />
|
||||
<!-- 是否电签 -->
|
||||
<el-table-column
|
||||
prop="IsSign"
|
||||
min-width="90"
|
||||
align="center"
|
||||
:label="$t('trials:auditRecord:table:isSign')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="IsSign" min-width="90" align="center" :label="$t('trials:auditRecord:table:isSign')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<el-tooltip v-if="scope.row.IsSign" class="item" effect="dark" placement="top">
|
||||
|
@ -577,12 +425,8 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<!-- 操作人 -->
|
||||
<el-table-column
|
||||
prop="CreateUserRealName"
|
||||
min-width="80"
|
||||
:label="$t('trials:auditRecord:table:operator')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="CreateUserRealName" min-width="80" :label="$t('trials:auditRecord:table:operator')"
|
||||
show-overflow-tooltip>
|
||||
<!-- <template slot-scope="scope">
|
||||
<div>
|
||||
{{ scope.row.UserLastName }}/{{ scope.row.UserFirstName }}
|
||||
|
@ -590,39 +434,17 @@
|
|||
</template> -->
|
||||
</el-table-column>
|
||||
<!-- 用户名 -->
|
||||
<el-table-column
|
||||
prop="CreateUserName"
|
||||
min-width="80"
|
||||
:label="$t('trials:auditRecord:table:userName')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="CreateUserName" min-width="80" :label="$t('trials:auditRecord:table:userName')"
|
||||
show-overflow-tooltip />
|
||||
<!-- 角色 -->
|
||||
<el-table-column
|
||||
prop="RoleName"
|
||||
min-width="70"
|
||||
:label="$t('trials:auditRecord:table:role')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="RoleName" min-width="70" :label="$t('trials:auditRecord:table:role')"
|
||||
show-overflow-tooltip />
|
||||
<!-- 操作时间 -->
|
||||
<el-table-column
|
||||
prop="CreateTime"
|
||||
min-width="140"
|
||||
:label="$t('trials:auditRecord:table:operateTime')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
prop="IP"
|
||||
min-width="100"
|
||||
label="IP"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
prop=""
|
||||
min-width="150"
|
||||
:label="$t('common:action:action')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<el-table-column prop="CreateTime" min-width="140" :label="$t('trials:auditRecord:table:operateTime')"
|
||||
show-overflow-tooltip />
|
||||
<el-table-column prop="IP" min-width="100" label="IP" show-overflow-tooltip />
|
||||
<el-table-column prop="" min-width="150" :label="$t('common:action:action')" show-overflow-tooltip
|
||||
sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<!-- 详情 -->
|
||||
<el-button type="text" @click="lookDetails2(scope.row)">
|
||||
|
@ -634,27 +456,14 @@
|
|||
</el-dialog>
|
||||
<base-model :config="model_cfg3">
|
||||
<template slot="dialog-body">
|
||||
<el-table
|
||||
v-if="auditData2.length > 0"
|
||||
:data="auditData2"
|
||||
border
|
||||
style="width: 100%"
|
||||
size="small"
|
||||
max-height="400"
|
||||
>
|
||||
<el-table v-if="auditData2.length > 0" :data="auditData2" border style="width: 100%" size="small"
|
||||
max-height="400">
|
||||
<!-- 字段名 -->
|
||||
<el-table-column
|
||||
prop="Enum"
|
||||
:label="$t('trials:auditRecord:title:fieldName')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column prop="Enum" :label="$t('trials:auditRecord:title:fieldName')" show-overflow-tooltip />
|
||||
<!-- OptType === 'Add' ? '值' : OptType === 'Delete' ? '删除前' : '修改前' -->
|
||||
<el-table-column
|
||||
v-if="OptType2 !== 'Add' && OptType2 !== 'Upload' && OptType2 !== 'Init'"
|
||||
prop="oldValue"
|
||||
<el-table-column v-if="OptType2 !== 'Add' && OptType2 !== 'Upload' && OptType2 !== 'Init'" prop="oldValue"
|
||||
:label="OptType2 === 'Add' ? $t('trials:auditRecord:title:fieldValue') : OptType2 === 'Delete' ? $t('trials:auditRecord:title:beforeDeletion') : $t('trials:auditRecord:title:beforeModification')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
show-overflow-tooltip>
|
||||
<!-- <template slot-scope="scope">
|
||||
<span>
|
||||
<a v-if="scope.row.DataType === 'Link' || scope.row.DataType === 'Router'" target="_blank" :href="scope.row.oldValue">{{scope.row.oldValue}}</a>
|
||||
|
@ -666,19 +475,28 @@
|
|||
<template slot-scope="scope">
|
||||
<span>
|
||||
<!-- 查看详情 -->
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.oldValue && scope.row.oldValue !== '--'" target="_blank" :href="OSSclientConfig.basePath + scope.row.oldValue" style="color:#409eff;">
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.oldValue && scope.row.oldValue !== '--'"
|
||||
target="_blank" :href="OSSclientConfig.basePath + scope.row.oldValue" style="color:#409eff;">
|
||||
{{ $t('common:button:download') }}
|
||||
</a>
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.oldValue && scope.row.oldValue !== '--'" target="_blank" :href="scope.row.oldValue" style="color:#409eff;">
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.oldValue && scope.row.oldValue !== '--'"
|
||||
target="_blank" :href="scope.row.oldValue" style="color:#409eff;">
|
||||
{{ $t('trials:auditRecord:title:viewDetail') }}
|
||||
</a>
|
||||
<viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.oldValue && scope.row.oldValue !== '--'" :ref="scope.row.oldValue instanceof Array ? scope.row.oldValue[0] : scope.row.oldValue" :images="imagesList">
|
||||
<viewer
|
||||
v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.oldValue && scope.row.oldValue !== '--'"
|
||||
:ref="scope.row.oldValue instanceof Array ? scope.row.oldValue[0] : scope.row.oldValue"
|
||||
:images="imagesList">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.oldValue)">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}}</span>
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row.oldValue)">{{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.oldValue
|
||||
instanceof Array ? `(${scope.row.oldValue.length})` : ''}}</span>
|
||||
<template v-for="item of scope.row.oldValue">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</template>
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.oldValue" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.oldValue"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</viewer>
|
||||
<div v-else-if="scope.row.DataType === 'Dialog'" v-html="scope.row.oldValue"></div>
|
||||
<span v-else>
|
||||
|
@ -688,11 +506,9 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<!-- OptType === 'Add' || OptType === 'Init' ? '值' : OptType === 'Delete' ? '删除后' : '修改后' -->
|
||||
<el-table-column
|
||||
prop="newValue"
|
||||
<el-table-column prop="newValue"
|
||||
:label="OptType2 === 'Add' || OptType2 === 'Init' ? $t('trials:auditRecord:title:fieldValue') : OptType2 === 'Delete' ? $t('trials:auditRecord:title:afterDeletion') : $t('trials:auditRecord:title:afterModification')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
show-overflow-tooltip>
|
||||
<!-- <template slot-scope="scope">
|
||||
<span :style="{ color: scope.row.newValue !== scope.row.oldValue ? '#f66' : null }">
|
||||
<a v-if="scope.row.DataType === 'Link' || scope.row.DataType === 'Router'" target="_blank" :href="scope.row.newValue">{{scope.row.newValue}}</a>
|
||||
|
@ -702,19 +518,28 @@
|
|||
<template slot-scope="scope">
|
||||
<span :style="{ color: scope.row.newValue !== scope.row.oldValue ? '#f66' : null }">
|
||||
<!-- 查看详情 -->
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.newValue && scope.row.newValue !== '--'" target="_blank" :href="OSSclientConfig.basePath + scope.row.newValue" style="color:#409eff;">
|
||||
<a v-if="scope.row.DataType === 'OSS' && scope.row.newValue && scope.row.newValue !== '--'"
|
||||
target="_blank" :href="OSSclientConfig.basePath + scope.row.newValue" style="color:#409eff;">
|
||||
{{ $t('common:button:download') }}
|
||||
</a>
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.newValue && scope.row.newValue !== '--'" target="_blank" :href="scope.row.newValue" style="color:#409eff;">
|
||||
<a v-else-if="(scope.row.DataType === 'Link' || scope.row.DataType === 'Router') && scope.row.newValue && scope.row.newValue !== '--'"
|
||||
target="_blank" :href="scope.row.newValue" style="color:#409eff;">
|
||||
{{ $t('trials:auditRecord:title:viewDetail') }}
|
||||
</a>
|
||||
<viewer v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.newValue && scope.row.newValue !== '--'" :ref="scope.row.newValue instanceof Array ? scope.row.newValue[0] : scope.row.newValue" :images="imagesList">
|
||||
<viewer
|
||||
v-else-if="(scope.row.DataType === 'Image' || scope.row.DataType === 'ImageList') && scope.row.newValue && scope.row.newValue !== '--'"
|
||||
:ref="scope.row.newValue instanceof Array ? scope.row.newValue[0] : scope.row.newValue"
|
||||
:images="imagesList">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row.newValue)">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}}</span>
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row.newValue)">{{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.newValue
|
||||
instanceof Array ? `(${scope.row.newValue.length})` : ''}}</span>
|
||||
<template v-for="item of scope.row.newValue">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'ImageList'" :key="item" :src="OSSclientConfig.basePath + item"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</template>
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.newValue" v-show="false" crossorigin="anonymous" alt="">
|
||||
<img v-if="scope.row.DataType === 'Image'" :src="OSSclientConfig.basePath + scope.row.newValue"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
<!-- <img :src="scope.row.newValue" v-show="false" crossorigin="anonymous" alt="">-->
|
||||
</viewer>
|
||||
<div v-else-if="scope.row.DataType === 'Dialog'" v-html="scope.row.newValue"></div>
|
||||
|
@ -723,41 +548,31 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-table
|
||||
v-if="tableListData.length > 0"
|
||||
:data="tableListData"
|
||||
border
|
||||
style="width: 100%"
|
||||
size="small"
|
||||
>
|
||||
<el-table-column
|
||||
v-for="(item,index) of tableList"
|
||||
:prop="item.ColumnValue"
|
||||
:label="item.IsMerge ? item.MergeColumnName : item.headName"
|
||||
align="center"
|
||||
show-overflow-tooltip
|
||||
:key="'tableList' + index"
|
||||
>
|
||||
<el-table v-if="tableListData.length > 0" :data="tableListData" border style="width: 100%" size="small">
|
||||
<el-table-column v-for="(item, index) of tableList" :prop="item.ColumnValue"
|
||||
:label="item.IsMerge ? item.MergeColumnName : item.headName" align="center" show-overflow-tooltip
|
||||
:key="'tableList' + index">
|
||||
<template v-for="(ite, index) of item.ChildrenList">
|
||||
<el-table-column
|
||||
v-if="item.IsMerge"
|
||||
:prop="ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue"
|
||||
:label="ite.headName"
|
||||
align="center"
|
||||
show-overflow-tooltip
|
||||
:key="'ChildrenList' + index"
|
||||
>
|
||||
<el-table-column v-if="item.IsMerge"
|
||||
:prop="ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue" :label="ite.headName"
|
||||
align="center" show-overflow-tooltip :key="'ChildrenList' + index">
|
||||
<template slot-scope="scope">
|
||||
<!-- 查看图片 -->
|
||||
<!-- <span v-if="ite.IsPicture" @click="openImage(scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue])">
|
||||
{{$t('trials:auditRecord:title:viewImage')}}
|
||||
</span> -->
|
||||
<viewer v-if="ite.IsPicture && ite.IsPicture !== '--'" :ref="scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]" :images="imagesList">
|
||||
<viewer v-if="ite.IsPicture && ite.IsPicture !== '--'"
|
||||
:ref="scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]"
|
||||
:images="imagesList">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue])">{{$t('trials:auditRecord:title:viewImage')}}</span>
|
||||
<img :src="OSSclientConfig.basePath + scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]" v-show="false" crossorigin="anonymous" alt="">
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue])">{{ $t('trials:auditRecord:title:viewImage') }}</span>
|
||||
<img
|
||||
:src="OSSclientConfig.basePath + scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]"
|
||||
v-show="false" crossorigin="anonymous" alt="">
|
||||
</viewer>
|
||||
<span v-else>{{scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]}}</span>
|
||||
<span v-else>{{ scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index :
|
||||
ite.ColumnValue]}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<template v-else slot-scope="scope">
|
||||
|
@ -765,10 +580,13 @@
|
|||
<!-- <span v-if="item.IsPicture" @click="openImage(scope.row[item.ColumnValue])" :key="'ChildrenList' + index">
|
||||
{{$t('trials:auditRecord:title:viewImage')}}
|
||||
</span> -->
|
||||
<viewer v-if="item.IsPicture && item.IsPicture !== '--'" :ref="scope.row[item.ColumnValue]" :images="imagesList" :key="'ChildrenList' + index">
|
||||
<viewer v-if="item.IsPicture && item.IsPicture !== '--'" :ref="scope.row[item.ColumnValue]"
|
||||
:images="imagesList" :key="'ChildrenList' + index">
|
||||
<!-- 查看图片 -->
|
||||
<span style="color:#409eff;cursor: pointer" @click="openImage(scope.row[item.ColumnValue])">{{$t('trials:auditRecord:title:viewImage')}}</span>
|
||||
<img :src="OSSclientConfig.basePath + scope.row[item.ColumnValue]" v-show="false" crossorigin="anonymous" alt="">
|
||||
<span style="color:#409eff;cursor: pointer"
|
||||
@click="openImage(scope.row[item.ColumnValue])">{{ $t('trials:auditRecord:title:viewImage') }}</span>
|
||||
<img :src="OSSclientConfig.basePath + scope.row[item.ColumnValue]" v-show="false"
|
||||
crossorigin="anonymous" alt="">
|
||||
</viewer>
|
||||
<span v-else :key="'ChildrenList' + index">{{ scope.row[item.ColumnValue] }}</span>
|
||||
</template>
|
||||
|
@ -1246,7 +1064,7 @@ export default {
|
|||
})
|
||||
// 查看关联操作
|
||||
|
||||
this.model_cfg2.title = `${this.$t('trials:auditRecord:title:viewRelationOperations')}--${this.$i18n.locale === 'en' ? this.currentRow.Description : this.currentRow.DescriptionCN}`
|
||||
this.model_cfg2.title = `${n ? this.$t('trials:auditRecord:title:viewRelationOperations2') : this.$t('trials:auditRecord:title:viewRelationOperations')}--${this.$i18n.locale === 'en' ? this.currentRow.Description : this.currentRow.DescriptionCN}`
|
||||
this.loading = true
|
||||
getInspectionList(searchData).then((res) => {
|
||||
this.list2 = res.CurrentPageData
|
||||
|
@ -1328,4 +1146,3 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue