叉号 加 表格边框

This commit is contained in:
asd
2020-05-08 01:04:18 +08:00
parent 0155c26da5
commit f968d51868
2 changed files with 53 additions and 11 deletions

View File

@@ -2680,7 +2680,7 @@ export default {
method: "post",
url: "v1/test/end-sub",
data: {
subStatus: 1000,
subStatus: 1,
// project_id: 83,
project_id: this.id,
explain: this.fileurl,

View File

@@ -1803,16 +1803,25 @@
<div class="xxxx" style="position: relative">
<a
style="position: absolute;
top: 54px;
left: 202px;
color: #7471ef;
z-index: 999;
font-size: 13px;
cursor:pointer;"
top: 54px;
left: 202px;
color: #7471ef;
z-index: 999;
font-size: 13px;
cursor:pointer;"
:href="dianziurl"
target="_blank"
v-if="dianziurl !=''"
>预览</a>
<div style="
position: absolute;
top: 51px;
left: 275px;
color: rgb(116, 113, 239);
z-index: 999;
font-size: 22px;
cursor: pointer;
" @click="delfileLists1" v-if="dianziurl !=''">×</div>
<template>
<el-upload
class="upload-demo"
@@ -1823,9 +1832,10 @@
:before-remove="beforeRemove1"
multiple
:limit="1"
:on-exceed="handleExceed"
:on-exceed="handleExceed1"
:file-list="fileLists1"
style="margin-left:20px;margin-top:10px"
ref="dianzi"
>
<el-button
size="small"
@@ -1928,6 +1938,15 @@
target="_blank"
v-if="xinweiurl != ''"
>预览</a>
<div style="
position: absolute;
top: 41px;
left: 275px;
color: rgb(116, 113, 239);
z-index: 999;
font-size: 22px;
cursor: pointer;
" @click="delfileLists2" v-if="xinweiurl !=''">×</div>
<el-upload
class="upload-demo"
:action="$upload"
@@ -1937,8 +1956,9 @@
:before-remove="beforeRemove1"
multiple
:limit="1"
:on-exceed="handleExceed"
:on-exceed="handleExceed1"
:file-list="fileLists2"
ref="xinwen"
>
<el-button size="small" type="primary">上传文件</el-button>
<!-- <span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span> -->
@@ -3565,6 +3585,13 @@ export default {
} 个文件,共选择了 ${files.length + fileList.length} 个文件`
);
},
handleExceed1(files, fileList) {
this.$message.warning(
`当前限制选择 1 个文件,本次选择了 ${
files.length
} 个文件,共选择了 ${files.length + fileList.length} 个文件`
);
},
beforeRemove1(file, fileList) {
// this.$$confirm(`确定移除 ${file.name} ?`)
// this.$message.warning("信息查看能删除");
@@ -4152,6 +4179,16 @@ export default {
// this.imageUrl4 = "../static/img/pdf.jpg";
// }
// }
},
delfileLists1(){
this.fileLists1 = []
this.dianziurl = ""
this.$refs.dianzi.clearFiles()
},
delfileLists2(){
this.fileLists2 = []
this.xinweiurl = ""
this.$refs.xinwen.clearFiles()
}
},
created() {
@@ -4220,7 +4257,7 @@ export default {
.wrapper /deep/ .el-upload-list__item {
// display: none !important;
// right: 36px;
width: 575px;
width: 440px;
// background-color:red;
position: relative;
right: 190px;
@@ -4250,6 +4287,8 @@ export default {
.wrapper /deep/ th {
height: 64px !important;
line-height: 64px !important;
font-size: 19px !important;
color: #fff !important;
}
.wrapper /deep/ table td {
height: 53px;
@@ -4882,7 +4921,7 @@ export default {
height: 258px;
overflow-y: auto;
td {
border: none !important;
border: 1px solid #eee !important;
}
}
.on {
@@ -5632,4 +5671,7 @@ select {
margin-right: 35px;
white-space: nowrap;
}
/deep/ .el-dialog__header{
background:linear-gradient(69deg,#cc263f,#f42b47 100%,#ed162d 0,#e60012 0),linear-gradient(#e60012,#e60012) !important;
}
</style>