阅片分享修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
6d0b3928ee
commit
b626079b7d
|
@ -195,10 +195,12 @@
|
||||||
</div>
|
</div>
|
||||||
<el-form :model="form" :rules="rules" ref="ruleForm" label-width="120px" class="ruleForm">
|
<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-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>
|
||||||
<el-form-item :label="$t('trials:studyList:message:message6')" prop="ImageShareExpireDays">
|
<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 v-for="item in options" :key="item" :label="item" :value="item">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -206,8 +208,8 @@
|
||||||
</el-form>
|
</el-form>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" round @click="copyCode">{{ $t('trials:studyList:message:message4') }}</el-button>
|
<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 type="primary" round @click="updateImageShare">{{ $t('trials:studyList:message:message5')
|
||||||
}}</el-button>
|
}}</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</base-model>
|
</base-model>
|
||||||
|
@ -328,10 +330,13 @@ export default {
|
||||||
}
|
}
|
||||||
let res = await updateImageShare(params)
|
let res = await updateImageShare(params)
|
||||||
if (res.IsSuccess) {
|
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) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleShareImage(row) {
|
handleShareImage(row) {
|
||||||
|
@ -355,7 +360,9 @@ export default {
|
||||||
}).catch(() => { this.loading = false })
|
}).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(
|
this.$copyText(`${this.$t('trials:researchRecord:label:link')} ${this.shareLink} ${this.$t('trials:studyList:message:message2')}${this.form.extractionCode}`).then(
|
||||||
res => {
|
res => {
|
||||||
this.$message.success(this.$t('trials:researchRecord:message:copySuccessfully'))
|
this.$message.success(this.$t('trials:researchRecord:message:copySuccessfully'))
|
||||||
|
|
Loading…
Reference in New Issue