test/custom-admin-ui #3
+11
-11
@@ -11,7 +11,7 @@
|
||||
<meta name="description" content="{{description}}"/>
|
||||
<meta name="keywords" content="{{keywords}}"/>
|
||||
<meta name="generator" content="FileCodeBox"/>
|
||||
<meta name="template" content="Lan-V1.5.5"/>
|
||||
<meta name="template" content="Lan-V1.5.6"/>
|
||||
<style>
|
||||
.qu .el-button {
|
||||
width: 100px;
|
||||
@@ -87,7 +87,7 @@
|
||||
</el-col>
|
||||
</el-card>
|
||||
</el-row>
|
||||
<el-row v-else style="width:400px;height: 596px;margin: 20vh auto 0 auto">
|
||||
<el-row v-else style="width:400px;height: 596px;margin: 6vh auto 0 auto">
|
||||
<el-col :span="24">
|
||||
<el-card style="padding-top: 20px">
|
||||
<el-row>
|
||||
@@ -133,9 +133,6 @@
|
||||
placeholder="请输入内容,使用按钮存入"
|
||||
v-model="uploadData.text">
|
||||
</el-input>
|
||||
<!--? <div style="height: 240px">-->
|
||||
<!--? </div>e="height: 240px">-->
|
||||
<!--? </div>-->
|
||||
<div class="el-upload__tip">
|
||||
<el-button round @click="pageNum=0">
|
||||
<div class="el-icon-back"></div>
|
||||
@@ -160,11 +157,11 @@
|
||||
size="50%"
|
||||
>
|
||||
<el-card v-for="(file,index) in files" :key="index" class="box-card">
|
||||
<div style="cursor: pointer;text-align: left">
|
||||
<div style="cursor: pointer;text-align: left;margin-left: 2rem">
|
||||
<div>取件码:${ file.code }</div>
|
||||
<div>文件名:${ file.name }</div>
|
||||
<div v-if="file.name==='文本分享'">
|
||||
<span>内 容:${ file.text }</span>
|
||||
<span @click="copyText(file.text,1)">内 容:${ file.text }</span>
|
||||
</div>
|
||||
<div v-else>
|
||||
<span>链 接:</span>
|
||||
@@ -185,14 +182,14 @@
|
||||
<el-empty v-if="files.length===0" description="请上传文件"></el-empty>
|
||||
<el-card style="margin-top: 0.2rem" v-for="(file,index) in files" :key="index">
|
||||
<el-row>
|
||||
<el-col :span="20">
|
||||
<el-col :span="15">
|
||||
<el-row>
|
||||
<el-col :span="24" style="line-height: 45px">
|
||||
${ file.name }
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
取件码:
|
||||
<h1 @click="copyCode(file.code)" style="margin: 0;display: inline;cursor: pointer">
|
||||
<h1 @click="copyText(file.code,0)" style="margin: 0;display: inline;cursor: pointer">
|
||||
${ file.code }
|
||||
</h1>
|
||||
</el-col>
|
||||
@@ -299,10 +296,13 @@
|
||||
})
|
||||
})
|
||||
},
|
||||
copyCode: function (value) {
|
||||
copyText: function (value, style = 1) {
|
||||
if (style === 0) {
|
||||
value = '我在分享了给你文件,取件码:${value},${window.location.href}?code=${value}';
|
||||
}
|
||||
const input = document.createElement('input');
|
||||
input.setAttribute('readonly', 'readonly');
|
||||
input.setAttribute('value', `我在${window.location.href}分享了给你文件,取件码:${value}`);
|
||||
input.setAttribute('value', value);
|
||||
document.body.appendChild(input);
|
||||
input.select();
|
||||
if (document.execCommand('copy')) {
|
||||
|
||||
Reference in New Issue
Block a user