Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 236 KiB |
@ -1,168 +1,174 @@
|
||||
// cover some element-ui styles
|
||||
.app-main {
|
||||
|
||||
.el-breadcrumb__inner,
|
||||
.el-breadcrumb__inner a {
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
.el-upload {
|
||||
input[type="file"] {
|
||||
display: none !important;
|
||||
.el-breadcrumb__inner,
|
||||
.el-breadcrumb__inner a {
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.el-upload__input {
|
||||
display: none;
|
||||
}
|
||||
.el-upload {
|
||||
input[type="file"] {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.cell {
|
||||
.el-tag {
|
||||
margin-right: 0px;
|
||||
.el-upload__input {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.small-padding {
|
||||
.cell {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
.el-tag {
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fixed-width {
|
||||
.el-button--mini {
|
||||
padding: 7px 10px;
|
||||
width: 60px;
|
||||
.small-padding {
|
||||
.cell {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.status-col {
|
||||
.cell {
|
||||
padding: 0 10px;
|
||||
text-align: center;
|
||||
|
||||
.el-tag {
|
||||
margin-right: 0px;
|
||||
.fixed-width {
|
||||
.el-button--mini {
|
||||
padding: 7px 10px;
|
||||
width: 60px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// to fixed https://github.com/ElemeFE/element/issues/2461
|
||||
.el-dialog {
|
||||
transform: none;
|
||||
left: 0;
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.status-col {
|
||||
.cell {
|
||||
padding: 0 10px;
|
||||
text-align: center;
|
||||
|
||||
// refine element ui upload
|
||||
.upload-container {
|
||||
.el-upload {
|
||||
width: 100%;
|
||||
.el-tag {
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-upload-dragger {
|
||||
// to fixed https://github.com/ElemeFE/element/issues/2461
|
||||
.el-dialog {
|
||||
transform: none;
|
||||
left: 0;
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
// refine element ui upload
|
||||
.upload-container {
|
||||
.el-upload {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
|
||||
.el-upload-dragger {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// dropdown
|
||||
.el-dropdown-menu {
|
||||
a {
|
||||
display: block
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// dropdown
|
||||
.el-dropdown-menu {
|
||||
a {
|
||||
display: block
|
||||
}
|
||||
}
|
||||
|
||||
// fix date-picker ui bug in filter-item
|
||||
.el-range-editor.el-input__inner {
|
||||
display: inline-flex !important;
|
||||
}
|
||||
|
||||
// to fix el-date-picker css style
|
||||
.el-range-separator {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-date-editor.el-input,
|
||||
.el-date-editor.el-input__inner {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.el-pagination__jump {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.el-table th.el-table__cell>.cell {
|
||||
font-family: "Source Han Sans CN-Bold";
|
||||
color: #333333;
|
||||
|
||||
}
|
||||
|
||||
tbody .el-table__row .el-table__cell .cell {
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
color: #292F38;
|
||||
}
|
||||
|
||||
tbody .el-table__row .el-table__cell:first-child .cell {
|
||||
color: #4D5158;
|
||||
font-family: "DIN-Regular";
|
||||
}
|
||||
|
||||
.el-dialog__header {
|
||||
padding-top: 10px;
|
||||
font-size: 16px;
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
background: #F8F9FA;
|
||||
}
|
||||
|
||||
.el-dialog__headerbtn {
|
||||
top: 14px;
|
||||
}
|
||||
|
||||
.el-form-item__label {
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
color: #292F38;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.el-select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.el-dialog__body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.el-dialog__footer {
|
||||
padding-bottom: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.el-descriptions-row th {
|
||||
width: 15%;
|
||||
background: #F5F7FA !important;
|
||||
font-size: 14px;
|
||||
font-family: "Source Han Sans CN-Medium" ;
|
||||
font-weight: 500;
|
||||
color: #292F38 !important;
|
||||
}
|
||||
.el-descriptions-row td {
|
||||
font-size: 14px;
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
font-weight: 400;
|
||||
line-height: 40px;
|
||||
color: #4D5158 !important;
|
||||
}
|
||||
// 去除数字输入框后面的加减号
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
input[type="number"]{
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
// fix date-picker ui bug in filter-item
|
||||
.el-range-editor.el-input__inner {
|
||||
display: inline-flex !important;
|
||||
}
|
||||
|
||||
// to fix el-date-picker css style
|
||||
.el-range-separator {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-date-editor.el-input,
|
||||
.el-date-editor.el-input__inner {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.el-pagination__jump {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.el-table th.el-table__cell>.cell {
|
||||
font-family: "Source Han Sans CN-Bold";
|
||||
color: #333333;
|
||||
|
||||
}
|
||||
|
||||
tbody .el-table__row .el-table__cell .cell {
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
color: #292F38;
|
||||
}
|
||||
|
||||
tbody .el-table__row .el-table__cell:first-child .cell {
|
||||
color: #4D5158;
|
||||
font-family: "DIN-Regular";
|
||||
}
|
||||
|
||||
.el-dialog__header {
|
||||
padding-top: 10px;
|
||||
font-size: 16px;
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
background: #F8F9FA;
|
||||
}
|
||||
|
||||
.el-dialog__headerbtn {
|
||||
top: 14px;
|
||||
}
|
||||
|
||||
.el-form-item__label {
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
color: #292F38;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.el-select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.el-dialog__body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.el-dialog__footer {
|
||||
padding-bottom: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.el-descriptions-row th {
|
||||
width: 15%;
|
||||
background: #F5F7FA !important;
|
||||
font-size: 14px;
|
||||
font-family: "Source Han Sans CN-Medium";
|
||||
font-weight: 500;
|
||||
color: #292F38 !important;
|
||||
}
|
||||
|
||||
.el-descriptions-row td {
|
||||
font-size: 14px;
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
font-weight: 400;
|
||||
line-height: 40px;
|
||||
color: #4D5158 !important;
|
||||
}
|
||||
|
||||
// 去除数字输入框后面的加减号
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
input[type="number"] {
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-upload action="#" list-type="picture-card" :auto-upload="false">
|
||||
<i slot="default" class="el-icon-plus"></i>
|
||||
<div slot="file" slot-scope="{file}">
|
||||
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
|
||||
<span class="el-upload-list__item-actions">
|
||||
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
||||
<i class="el-icon-zoom-in"></i>
|
||||
</span>
|
||||
<span v-if="!disabled" class="el-upload-list__item-delete" @click="handleDownload(file)">
|
||||
<i class="el-icon-download"></i>
|
||||
</span>
|
||||
<span v-if="!disabled" class="el-upload-list__item-delete" @click="handleRemove(file)">
|
||||
<i class="el-icon-delete"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</el-upload>
|
||||
<el-dialog :visible.sync="dialogVisible">
|
||||
<img width="100%" :src="dialogImageUrl" alt="">
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: '',
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
dialogImageUrl: '',
|
||||
dialogVisible: false,
|
||||
disabled: false,
|
||||
fileList:[]
|
||||
}
|
||||
},
|
||||
created() { },
|
||||
mounted() {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleRemove(file) {
|
||||
console.log(file);
|
||||
console.log(this.dialogImageUrl);
|
||||
|
||||
},
|
||||
handlePictureCardPreview(file) {
|
||||
this.dialogImageUrl = file.url;
|
||||
console.log(file);
|
||||
|
||||
this.dialogVisible = true;
|
||||
},
|
||||
handleDownload(file) {
|
||||
console.log(file);
|
||||
}
|
||||
},
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang='scss'></style>
|
@ -0,0 +1,106 @@
|
||||
<template>
|
||||
<div class="dlodbox">
|
||||
<el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="0"
|
||||
:on-success="handleUploadSuccess" disabled>
|
||||
<i slot="default" class="el-icon-plus"></i>
|
||||
<div slot="file" slot-scope="{file}">
|
||||
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="" >
|
||||
<span class="el-upload-list__item-actions">
|
||||
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
||||
<i class="el-icon-zoom-in"></i>
|
||||
</span>
|
||||
<span v-if="!disabled" class="el-upload-list__item-delete" @click="handleDownload(file)">
|
||||
<i class="el-icon-download"></i>
|
||||
</span>
|
||||
<span v-if="!disabled" class="el-upload-list__item-delete" @click="handleRemove(file)">
|
||||
<i class="el-icon-delete"></i>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="shangchuanzhaopian">请上传国徽侧照片</div>
|
||||
</el-upload>
|
||||
<el-dialog :visible.sync="dialogVisible">
|
||||
<img width="100%" :src="dialogImageUrl" alt="">
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: '',
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
dialogImageUrl: '',
|
||||
dialogVisible: false,
|
||||
disabled: false,
|
||||
fileList: []
|
||||
}
|
||||
},
|
||||
created() { },
|
||||
mounted() {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleRemove(file) {
|
||||
console.log(file);
|
||||
console.log(this.dialogImageUrl);
|
||||
console.log(this.fileList);
|
||||
|
||||
|
||||
},
|
||||
handlePictureCardPreview(file) {
|
||||
this.dialogImageUrl = file.url;
|
||||
console.log(file);
|
||||
|
||||
this.dialogVisible = true;
|
||||
},
|
||||
handleDownload(file) {
|
||||
console.log(file);
|
||||
},
|
||||
handleUploadSuccess(response, file) {
|
||||
// 假设每个文件都有一个url属性
|
||||
console.log(file);
|
||||
|
||||
// this.uploadedFiles.push({ url: URL.createObjectURL(file.raw) });
|
||||
// 隐藏上传界面
|
||||
},
|
||||
huidiao(type){
|
||||
console.log(type);
|
||||
|
||||
}
|
||||
},
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang='scss'>
|
||||
.dlodbox {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.el-icon-plus {
|
||||
font-size: 35px;
|
||||
}
|
||||
|
||||
.shangchuanzhaopian {
|
||||
position: relative;
|
||||
bottom: 50px;
|
||||
z-index: 5;
|
||||
font-family: "Source Han Sans CN-Regular";
|
||||
font-size: 20px;
|
||||
color: #8c939d;
|
||||
}
|
||||
|
||||
::v-deep .el-upload--picture-card,
|
||||
.el-upload-list__item {
|
||||
width: 350px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
::v-deep .el-upload-list--picture-card .el-upload-list__item {
|
||||
width: 350px;
|
||||
height: 200px;
|
||||
}
|
||||
</style>
|