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
|
// cover some element-ui styles
|
||||||
|
.app-main {
|
||||||
|
|
||||||
.el-breadcrumb__inner,
|
|
||||||
.el-breadcrumb__inner a {
|
|
||||||
font-weight: 400 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-upload {
|
.el-breadcrumb__inner,
|
||||||
input[type="file"] {
|
.el-breadcrumb__inner a {
|
||||||
display: none !important;
|
font-weight: 400 !important;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.el-upload__input {
|
.el-upload {
|
||||||
display: none;
|
input[type="file"] {
|
||||||
}
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.cell {
|
.el-upload__input {
|
||||||
.el-tag {
|
display: none;
|
||||||
margin-right: 0px;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.small-padding {
|
|
||||||
.cell {
|
.cell {
|
||||||
padding-left: 5px;
|
.el-tag {
|
||||||
padding-right: 5px;
|
margin-right: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.fixed-width {
|
.small-padding {
|
||||||
.el-button--mini {
|
.cell {
|
||||||
padding: 7px 10px;
|
padding-left: 5px;
|
||||||
width: 60px;
|
padding-right: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.status-col {
|
.fixed-width {
|
||||||
.cell {
|
.el-button--mini {
|
||||||
padding: 0 10px;
|
padding: 7px 10px;
|
||||||
text-align: center;
|
width: 60px;
|
||||||
|
|
||||||
.el-tag {
|
|
||||||
margin-right: 0px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// to fixed https://github.com/ElemeFE/element/issues/2461
|
.status-col {
|
||||||
.el-dialog {
|
.cell {
|
||||||
transform: none;
|
padding: 0 10px;
|
||||||
left: 0;
|
text-align: center;
|
||||||
position: relative;
|
|
||||||
margin: 0 auto;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
// refine element ui upload
|
.el-tag {
|
||||||
.upload-container {
|
margin-right: 0px;
|
||||||
.el-upload {
|
}
|
||||||
width: 100%;
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// to fixed https://github.com/ElemeFE/element/issues/2461
|
||||||
|
.el-dialog {
|
||||||
|
transform: none;
|
||||||
|
left: 0;
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.el-upload-dragger {
|
// refine element ui upload
|
||||||
|
.upload-container {
|
||||||
|
.el-upload {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
|
||||||
|
.el-upload-dragger {
|
||||||
|
width: 100%;
|
||||||
|
height: 200px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// dropdown
|
// dropdown
|
||||||
.el-dropdown-menu {
|
.el-dropdown-menu {
|
||||||
a {
|
a {
|
||||||
display: block
|
display: block
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// fix date-picker ui bug in filter-item
|
// fix date-picker ui bug in filter-item
|
||||||
.el-range-editor.el-input__inner {
|
.el-range-editor.el-input__inner {
|
||||||
display: inline-flex !important;
|
display: inline-flex !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// to fix el-date-picker css style
|
// to fix el-date-picker css style
|
||||||
.el-range-separator {
|
.el-range-separator {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
|
.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-date-editor.el-input,
|
.el-date-editor.el-input,
|
||||||
.el-date-editor.el-input__inner {
|
.el-date-editor.el-input__inner {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pagination__jump {
|
.el-pagination__jump {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table th.el-table__cell>.cell {
|
.el-table th.el-table__cell>.cell {
|
||||||
font-family: "Source Han Sans CN-Bold";
|
font-family: "Source Han Sans CN-Bold";
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody .el-table__row .el-table__cell .cell {
|
tbody .el-table__row .el-table__cell .cell {
|
||||||
font-family: "Source Han Sans CN-Regular";
|
font-family: "Source Han Sans CN-Regular";
|
||||||
color: #292F38;
|
color: #292F38;
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody .el-table__row .el-table__cell:first-child .cell {
|
tbody .el-table__row .el-table__cell:first-child .cell {
|
||||||
color: #4D5158;
|
color: #4D5158;
|
||||||
font-family: "DIN-Regular";
|
font-family: "DIN-Regular";
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__header {
|
.el-dialog__header {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: "Source Han Sans CN-Regular";
|
font-family: "Source Han Sans CN-Regular";
|
||||||
background: #F8F9FA;
|
background: #F8F9FA;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__headerbtn {
|
.el-dialog__headerbtn {
|
||||||
top: 14px;
|
top: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-form-item__label {
|
.el-form-item__label {
|
||||||
font-family: "Source Han Sans CN-Regular";
|
font-family: "Source Han Sans CN-Regular";
|
||||||
color: #292F38;
|
color: #292F38;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-select {
|
.el-select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__body {
|
.el-dialog__body {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-dialog__footer {
|
.el-dialog__footer {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-descriptions-row th {
|
.el-descriptions-row th {
|
||||||
width: 15%;
|
width: 15%;
|
||||||
background: #F5F7FA !important;
|
background: #F5F7FA !important;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: "Source Han Sans CN-Medium" ;
|
font-family: "Source Han Sans CN-Medium";
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #292F38 !important;
|
color: #292F38 !important;
|
||||||
}
|
}
|
||||||
.el-descriptions-row td {
|
|
||||||
font-size: 14px;
|
.el-descriptions-row td {
|
||||||
font-family: "Source Han Sans CN-Regular";
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-family: "Source Han Sans CN-Regular";
|
||||||
line-height: 40px;
|
font-weight: 400;
|
||||||
color: #4D5158 !important;
|
line-height: 40px;
|
||||||
}
|
color: #4D5158 !important;
|
||||||
// 去除数字输入框后面的加减号
|
}
|
||||||
input::-webkit-outer-spin-button,
|
|
||||||
input::-webkit-inner-spin-button {
|
// 去除数字输入框后面的加减号
|
||||||
-webkit-appearance: none;
|
input::-webkit-outer-spin-button,
|
||||||
}
|
input::-webkit-inner-spin-button {
|
||||||
input[type="number"]{
|
-webkit-appearance: none;
|
||||||
-moz-appearance: textfield;
|
}
|
||||||
|
|
||||||
|
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>
|