阅片分享修改
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-09-04 13:56:05 +08:00
parent 6d0b3928ee
commit b626079b7d
1 changed files with 13 additions and 6 deletions

View File

@ -195,10 +195,12 @@
</div>
<el-form :model="form" :rules="rules" ref="ruleForm" label-width="120px" class="ruleForm">
<el-form-item :label="$t('trials:studyList:message:message2')" prop="extractionCode">
<el-input :maxLength="4" v-model="form.extractionCode" style="width:100px;" clearable />
<el-input :maxLength="4" v-model="form.extractionCode" style="width:100px;" clearable
@blur="updateImageShare" />
</el-form-item>
<el-form-item :label="$t('trials:studyList:message:message6')" prop="ImageShareExpireDays">
<el-select v-model="form.ImageShareExpireDays" placeholder="" style="width:100px;">
<el-select v-model="form.ImageShareExpireDays" placeholder="" style="width:100px;"
@change="updateImageShare">
<el-option v-for="item in options" :key="item" :label="item" :value="item">
</el-option>
</el-select>
@ -206,8 +208,8 @@
</el-form>
<div>
<el-button type="primary" round @click="copyCode">{{ $t('trials:studyList:message:message4') }}</el-button>
<el-button type="primary" round @click="updateImageShare">{{ $t('trials:studyList:message:message5')
}}</el-button>
<!-- <el-button type="primary" round @click="updateImageShare">{{ $t('trials:studyList:message:message5')
}}</el-button> -->
</div>
</template>
</base-model>
@ -328,10 +330,13 @@ export default {
}
let res = await updateImageShare(params)
if (res.IsSuccess) {
this.$message.success(this.$t('common:message:updatedSuccessfully'))
// this.$message.success(this.$t('common:message:updatedSuccessfully'))
return true
}
return false
} catch (err) {
console.log(err)
return false
}
},
handleShareImage(row) {
@ -355,7 +360,9 @@ export default {
}).catch(() => { this.loading = false })
},
//
copyCode() {
async copyCode() {
let res = await this.updateImageShare()
if (!res) return false
this.$copyText(`${this.$t('trials:researchRecord:label:link')} ${this.shareLink} ${this.$t('trials:studyList:message:message2')}${this.form.extractionCode}`).then(
res => {
this.$message.success(this.$t('trials:researchRecord:message:copySuccessfully'))