{{ $t('trials:researchRecord:label:link') }}
-
+
-
+
{{ $t('trials:researchRecord:button:copyLink') }}
@@ -391,6 +238,7 @@ import Pagination from '@/components/Pagination'
import Users from './components/users'
import ResearchForm from '@/views/research/form'
import BaseModel from '@/components/BaseModel'
+import ImageManual from './components/ImageManual'
import QRCode from 'qrcodejs2'
const searchDataDefault = () => {
@@ -410,7 +258,7 @@ const searchDataDefault = () => {
}
export default {
name: 'SiteResearchList',
- components: { BaseContainer, Pagination, Users, ResearchForm, BaseModel },
+ components: { BaseContainer, Pagination, Users, ResearchForm, BaseModel, ImageManual },
data() {
return {
searchData: searchDataDefault(),
@@ -429,6 +277,9 @@ export default {
shareLink: '',
researchState: this.$d.ResearchRecord,
qrcode: null,
+
+ ImageManualVisible: false,
+ trialSiteSurveyId: null
}
},
mounted() {
@@ -436,6 +287,10 @@ export default {
this.getSite()
},
methods: {
+ openImageManual() {
+ if (!this.trialSiteSurveyId) return false
+ this.ImageManualVisible = true
+ },
// 获取系统文件数据
getList() {
this.loading = true
@@ -488,8 +343,7 @@ export default {
copyLink() {
// 中心调研表链接
this.$copyText(
- `${this.$t('trials:researchRecord:message:researchFormLink')}: ${
- this.shareLink
+ `${this.$t('trials:researchRecord:message:researchFormLink')}: ${this.shareLink
}`
)
.then((res) => {
@@ -564,6 +418,7 @@ export default {
const trialId = this.trialId
this.shareLink = `${location.protocol}//${location.host}/researchLogin?trialId=${trialId}&lang=${this.$i18n.locale}`
this.share_model.visible = true
+ this.trialSiteSurveyId = this.list[0].Id
this.$nextTick(() => {
this.creatQrCode()
})
@@ -611,18 +466,21 @@ export default {
padding-right: 20px;
width: 50%;
position: relative;
+
.shareLinkBtn {
position: absolute;
bottom: 0px;
left: 0px;
}
}
+
.shareCode {
width: 50%;
border-left: 1px solid #eee;
display: flex;
justify-content: center;
flex-wrap: wrap;
+
.qrCode {
width: 220px;
height: 220px;
@@ -633,6 +491,7 @@ export default {
align-items: center;
justify-content: center;
}
+
.codeBtnBox {
margin-top: 20px;
width: 100%;