Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
# Conflicts: # src/views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vueuat_us
commit
e845fdaad4
|
@ -486,9 +486,13 @@ export default {
|
||||||
}
|
}
|
||||||
/deep/ .el-upload-list__item {
|
/deep/ .el-upload-list__item {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
|
width: 140px;
|
||||||
|
height: 140px;
|
||||||
|
margin: 0 10px 5px 0;
|
||||||
}
|
}
|
||||||
/deep/ .el-upload-list__item-thumbnail {
|
/deep/ .el-upload-list__item-thumbnail {
|
||||||
/* 图片在方框内显示长边 */
|
/* 图片在方框内显示长边 */
|
||||||
|
width: 100%;
|
||||||
object-fit: scale-down !important;
|
object-fit: scale-down !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -347,9 +347,9 @@
|
||||||
<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')}}
|
{{$t('trials:auditRecord:title:viewDetail')}}
|
||||||
</a>
|
</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}_modelCfg`" :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, 'modelCfg')">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}}</span>
|
||||||
<template v-for="item of scope.row.oldValue">
|
<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>
|
</template>
|
||||||
|
@ -378,9 +378,9 @@
|
||||||
<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')}}
|
{{$t('trials:auditRecord:title:viewDetail')}}
|
||||||
</a>
|
</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}_modelcfg`" :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, 'modelcfg')">{{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}}</span>
|
||||||
<template v-for="item of scope.row.newValue">
|
<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>
|
</template>
|
||||||
|
@ -409,9 +409,9 @@
|
||||||
:key="'tableList' + index"
|
:key="'tableList' + index"
|
||||||
>
|
>
|
||||||
<template v-if="!item.IsMerge" slot-scope="scope">
|
<template v-if="!item.IsMerge" slot-scope="scope">
|
||||||
<viewer v-if="item.IsPicture" :images="imagesList" :ref="scope.row[item.ColumnValue]">
|
<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])">{{$t('trials:auditRecord:title:viewImage')}}</span>
|
<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="">
|
<img :src="OSSclientConfig.basePath + scope.row[item.ColumnValue]" v-show="false" crossorigin="anonymous" alt="">
|
||||||
</viewer>
|
</viewer>
|
||||||
<span v-else>{{scope.row[item.ColumnValue]}}</span>
|
<span v-else>{{scope.row[item.ColumnValue]}}</span>
|
||||||
|
@ -426,9 +426,9 @@
|
||||||
:key="'ChildrenList' + index"
|
:key="'ChildrenList' + index"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<viewer v-if="item.IsPicture" :images="imagesList" :ref="scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]">
|
<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])">
|
<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')}}
|
{{$t('trials:auditRecord:title:viewImage')}}
|
||||||
</span>
|
</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="">
|
||||||
|
@ -652,9 +652,9 @@
|
||||||
/>
|
/>
|
||||||
<!-- OptType === 'Add' ? '值' : OptType === 'Delete' ? '删除前' : '修改前' -->
|
<!-- OptType === 'Add' ? '值' : OptType === 'Delete' ? '删除前' : '修改前' -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-if="OptType !== 'Add' && OptType !== 'Upload' && OptType !== 'Init'"
|
v-if="OptType2 !== 'Add' && OptType2 !== 'Upload' && OptType2 !== 'Init'"
|
||||||
prop="oldValue"
|
prop="oldValue"
|
||||||
:label="OptType === 'Add' ? $t('trials:auditRecord:title:fieldValue') : OptType === 'Delete' ? $t('trials:auditRecord:title:beforeDeletion') : $t('trials:auditRecord:title:beforeModification')"
|
: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">
|
<!-- <template slot-scope="scope">
|
||||||
|
@ -692,7 +692,7 @@
|
||||||
<!-- OptType === 'Add' || OptType === 'Init' ? '值' : OptType === 'Delete' ? '删除后' : '修改后' -->
|
<!-- OptType === 'Add' || OptType === 'Init' ? '值' : OptType === 'Delete' ? '删除后' : '修改后' -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="newValue"
|
prop="newValue"
|
||||||
:label="OptType === 'Add' || OptType === 'Init' ? $t('trials:auditRecord:title:fieldValue') : OptType === 'Delete' ? $t('trials:auditRecord:title:afterDeletion') : $t('trials:auditRecord:title:afterModification')"
|
: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">
|
<!-- <template slot-scope="scope">
|
||||||
|
@ -876,6 +876,7 @@ export default {
|
||||||
siteOptions: [],
|
siteOptions: [],
|
||||||
visitPlanOptions: [],
|
visitPlanOptions: [],
|
||||||
OptType: null,
|
OptType: null,
|
||||||
|
OptType2: null,
|
||||||
trialId: this.$route.query.trialId,
|
trialId: this.$route.query.trialId,
|
||||||
configList2: [],
|
configList2: [],
|
||||||
otherData2: [],
|
otherData2: [],
|
||||||
|
@ -896,19 +897,21 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openImage(url) {
|
openImage(url, type) {
|
||||||
console.log(url)
|
console.log(url)
|
||||||
|
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
if (url instanceof Array) {
|
if (url instanceof Array) {
|
||||||
this.imagesList = url.map(v => this.OSSclientConfig.basePath + v)
|
this.imagesList = url.map(v => this.OSSclientConfig.basePath + v)
|
||||||
this.$refs[url[0]].$viewer.show()
|
let refName = type ? `${url[0]}_${type}` : url[0]
|
||||||
|
this.$refs[refName].$viewer.show()
|
||||||
} else {
|
} else {
|
||||||
this.imagesList = [this.OSSclientConfig.basePath + url]
|
this.imagesList = [this.OSSclientConfig.basePath + url]
|
||||||
if(this.$refs[url] instanceof Array){
|
let refName = type ? `${url}_${type}` : url
|
||||||
this.$refs[url][0].$viewer.show()
|
if(this.$refs[refName] instanceof Array){
|
||||||
|
this.$refs[refName][0].$viewer.show()
|
||||||
}else{
|
}else{
|
||||||
this.$refs[url].$viewer.show()
|
this.$refs[refName].$viewer.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1256,7 +1259,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async lookDetails2(row) {
|
async lookDetails2(row) {
|
||||||
this.OptType = row.OptType
|
this.OptType2 = row.OptType
|
||||||
var Json = await this.getJSON(row)
|
var Json = await this.getJSON(row)
|
||||||
var JsonDetail = Json[0] ? JSON.parse(Json[0]) : null
|
var JsonDetail = Json[0] ? JSON.parse(Json[0]) : null
|
||||||
var ParentJson = Json[1] ? JSON.parse(Json[1]) : null
|
var ParentJson = Json[1] ? JSON.parse(Json[1]) : null
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
action
|
action
|
||||||
accept=".xlsx,.xls,.csv"
|
accept=".xlsx,.xls"
|
||||||
:before-upload="beforeUpload"
|
:before-upload="beforeUpload"
|
||||||
:http-request="handleUploadFile"
|
:http-request="handleUploadFile"
|
||||||
:on-preview="handlePreview"
|
:on-preview="handlePreview"
|
||||||
|
@ -72,7 +72,7 @@ export default {
|
||||||
this.$message.warning(this.$t('trials:consistencyCheck:message:onlyOneFile'))
|
this.$message.warning(this.$t('trials:consistencyCheck:message:onlyOneFile'))
|
||||||
},
|
},
|
||||||
checkFileSuffix(fileName) {
|
checkFileSuffix(fileName) {
|
||||||
var typeArr = ['xls', 'xlsx', 'csv']
|
var typeArr = ['xls', 'xlsx']
|
||||||
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
|
var extendName = fileName.substring(fileName.lastIndexOf('.') + 1).toLocaleLowerCase()
|
||||||
if (typeArr.indexOf(extendName) !== -1) {
|
if (typeArr.indexOf(extendName) !== -1) {
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -1657,7 +1657,7 @@ export default {
|
||||||
this.qcForm.qcContent.forEach((item) => {
|
this.qcForm.qcContent.forEach((item) => {
|
||||||
if (item.isSelect) {
|
if (item.isSelect) {
|
||||||
types.push(`${item.keyName}`)
|
types.push(`${item.keyName}`)
|
||||||
var str = `${item.keyName} <br>`
|
var str = `${item.keyName}<br>`
|
||||||
if (item.keyValue) {
|
if (item.keyValue) {
|
||||||
// 问题总结
|
// 问题总结
|
||||||
str = `${str}${this.$t(
|
str = `${str}${this.$t(
|
||||||
|
@ -1667,9 +1667,7 @@ export default {
|
||||||
if (item.actionContent) {
|
if (item.actionContent) {
|
||||||
// 行动事项
|
// 行动事项
|
||||||
actions.push(`${item.actionContent}`)
|
actions.push(`${item.actionContent}`)
|
||||||
str = `${str}${this.$t('trials:audit:form:actionMatters')}:<br>${
|
str = `${str}${this.$t('trials:audit:form:actionMatters')}:<br><div style='margin-left:20px'>${item.actionContent}</div>`
|
||||||
item.actionContent
|
|
||||||
}<br>`
|
|
||||||
}
|
}
|
||||||
contents.push(str)
|
contents.push(str)
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,7 @@ module.exports = {
|
||||||
// target: 'http://123.56.94.154:7000', // 国内测试环境2
|
// target: 'http://123.56.94.154:7000', // 国内测试环境2
|
||||||
// target: 'http://123.56.94.154:30668',
|
// target: 'http://123.56.94.154:30668',
|
||||||
target: 'http://106.14.89.110:30000',
|
target: 'http://106.14.89.110:30000',
|
||||||
|
//target: 'http://localhost:3305', // 后端测试环境
|
||||||
// target: 'http://47.117.164.182:7010', // uat
|
// target: 'http://47.117.164.182:7010', // uat
|
||||||
// target: 'http://123.56.181.144:7000',
|
// target: 'http://123.56.181.144:7000',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|
Loading…
Reference in New Issue