Update global.less.

pull/9/head
ruibaby 2019-04-20 12:09:20 +08:00
parent 43bd04d0b2
commit 76af6ed35e
9 changed files with 54 additions and 204 deletions

View File

@ -515,4 +515,33 @@ body {
padding-bottom: 0!important; padding-bottom: 0!important;
margin-bottom: 20px; margin-bottom: 20px;
} }
}
.ant-list-item{
word-break: break-all;
}
.card-container {
background: #f5f5f5;
& > .ant-tabs-card {
& > .ant-tabs-content {
margin-top: -16px;
& > .ant-tabs-tabpane {
background: #fff;
padding: 16px;
}
}
& > .ant-tabs-bar {
border-color: #fff;
.ant-tabs-tab {
border: none!important;
margin-right: 0!important;
background: transparent;
}
.ant-tabs-tab-active {
border-color: #fff;
background: #fff;
}
}
}
} }

View File

@ -1,30 +1,17 @@
<template> <template>
<page-view> <page-view>
<a-row <a-row :gutter="12" type="flex" align="middle">
:gutter="12" <a-col :span="24" class="search-box">
type="flex"
align="middle"
>
<a-col
:span="24"
class="search-box"
>
<a-card :bordered="false"> <a-card :bordered="false">
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="48"> <a-row :gutter="48">
<a-col <a-col :md="6" :sm="24">
:md="6"
:sm="24"
>
<a-form-item label="关键词"> <a-form-item label="关键词">
<a-input v-model="queryParam.keyword" /> <a-input v-model="queryParam.keyword"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col <a-col :md="6" :sm="24">
:md="6"
:sm="24"
>
<a-form-item label="年月份"> <a-form-item label="年月份">
<a-select placeholder="请选择年月"> <a-select placeholder="请选择年月">
<a-select-option value="2019-01">2019-01</a-select-option> <a-select-option value="2019-01">2019-01</a-select-option>
@ -33,40 +20,24 @@
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col <a-col :md="6" :sm="24">
:md="6"
:sm="24"
>
<a-form-item label="类型"> <a-form-item label="类型">
<a-select placeholder="请选择类型"> <a-select placeholder="请选择类型">
<a-select-option value="image/png">image/png</a-select-option> <a-select-option value="image/png">image/png</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col <a-col :md="6" :sm="24">
:md="6"
:sm="24"
>
<span class="table-page-search-submitButtons"> <span class="table-page-search-submitButtons">
<a-button <a-button type="primary" @click="loadAttachments(true)"></a-button>
type="primary" <a-button style="margin-left: 8px;" @click="resetParam"></a-button>
@click="loadAttachments"
>查询</a-button>
<a-button
style="margin-left: 8px;"
@click="resetParam"
>重置</a-button>
</span> </span>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<div class="table-operator"> <div class="table-operator">
<a-button <a-button type="primary" icon="plus" @click="showUploadModal"></a-button>
type="primary"
icon="plus"
@click="showUploadModal"
>上传</a-button>
</div> </div>
</a-card> </a-card>
</a-col> </a-col>
@ -80,11 +51,7 @@
:sm="12" :sm="12"
:xs="24" :xs="24"
> >
<a-card <a-card :bodyStyle="{ padding: 0 }" hoverable @click="showDetailDrawer(attachment)">
:bodyStyle="{ padding: 0 }"
hoverable
@click="showDetailDrawer(attachment)"
>
<div class="attach-thumb"> <div class="attach-thumb">
<img :src="attachment.thumbPath"> <img :src="attachment.thumbPath">
</div> </div>
@ -94,10 +61,7 @@
</a-card> </a-card>
</a-col> </a-col>
</a-row> </a-row>
<a-row <a-row type="flex" justify="end">
type="flex"
justify="end"
>
<a-pagination <a-pagination
:total="pagination.total" :total="pagination.total"
:defaultPageSize="pagination.size" :defaultPageSize="pagination.size"
@ -107,19 +71,10 @@
@showSizeChange="handlePaginationChange" @showSizeChange="handlePaginationChange"
/> />
</a-row> </a-row>
<a-modal <a-modal title="上传附件" v-model="uploadVisible" :footer="null">
title="上传附件" <upload name="file" multiple :uploadHandler="uploadHandler" @success="handleUploadSuccess">
v-model="uploadVisible"
:footer="null"
>
<upload
name="file"
multiple
:uploadHandler="uploadHandler"
@success="handleUploadSuccess"
>
<p class="ant-upload-drag-icon"> <p class="ant-upload-drag-icon">
<a-icon type="inbox" /> <a-icon type="inbox"/>
</p> </p>
<p class="ant-upload-text">点击选择文件或将文件拖拽到此处</p> <p class="ant-upload-text">点击选择文件或将文件拖拽到此处</p>
<p class="ant-upload-hint">支持单个或批量上传</p> <p class="ant-upload-hint">支持单个或批量上传</p>
@ -171,10 +126,13 @@ export default {
this.loadAttachments() this.loadAttachments()
}, },
methods: { methods: {
loadAttachments() { loadAttachments(isSearch) {
this.queryParam.page = this.pagination.page - 1 this.queryParam.page = this.pagination.page - 1
this.queryParam.size = this.pagination.size this.queryParam.size = this.pagination.size
this.queryParam.sort = this.pagination.sort this.queryParam.sort = this.pagination.sort
if(isSearch){
this.queryParam.page = 0
}
attachmentApi.query(this.queryParam).then(response => { attachmentApi.query(this.queryParam).then(response => {
this.attachments = response.data.data.content this.attachments = response.data.data.content
this.pagination.total = response.data.data.total this.pagination.total = response.data.data.total

View File

@ -206,7 +206,7 @@ export default {
} }
</script> </script>
<style> <style scope>
.attach-detail-img img { .attach-detail-img img {
width: 100%; width: 100%;
} }

View File

@ -117,7 +117,7 @@ export default {
skeletonLoading: true, skeletonLoading: true,
pagination: { pagination: {
page: 1, page: 1,
size: 14, size: 20,
sort: '' sort: ''
}, },
attachments: [], attachments: [],
@ -178,7 +178,7 @@ export default {
} }
</script> </script>
<style> <style scope>
.attachment-control { .attachment-control {
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;

View File

@ -394,30 +394,4 @@ export default {
bottom: 80px; bottom: 80px;
right: 20px; right: 20px;
} }
.card-container {
background: #f5f5f5;
}
.card-container > .ant-tabs-card > .ant-tabs-content {
margin-top: -16px;
}
.card-container > .ant-tabs-card > .ant-tabs-content > .ant-tabs-tabpane {
background: #fff;
padding: 16px;
}
.card-container > .ant-tabs-card > .ant-tabs-bar {
border-color: #fff;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
border-color: transparent;
background: transparent;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active {
border-color: #fff;
background: #fff;
}
</style> </style>

View File

@ -107,32 +107,4 @@ export default {
} }
} }
} }
</script> </script>
<style>
.card-container {
background: #f5f5f5;
}
.card-container > .ant-tabs-card > .ant-tabs-content {
margin-top: -16px;
}
.card-container > .ant-tabs-card > .ant-tabs-content > .ant-tabs-tabpane {
background: #fff;
padding: 16px;
}
.card-container > .ant-tabs-card > .ant-tabs-bar {
border-color: #fff;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
border-color: transparent;
background: transparent;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active {
border-color: #fff;
background: #fff;
}
</style>

View File

@ -129,31 +129,4 @@ export default {
} }
} }
} }
</script> </script>
<style>
.card-container {
background: #f5f5f5;
}
.card-container > .ant-tabs-card > .ant-tabs-content {
margin-top: -16px;
}
.card-container > .ant-tabs-card > .ant-tabs-content > .ant-tabs-tabpane {
background: #fff;
padding: 16px;
}
.card-container > .ant-tabs-card > .ant-tabs-bar {
border-color: #fff;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
border-color: transparent;
background: transparent;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active {
border-color: #fff;
background: #fff;
}
</style>

View File

@ -427,30 +427,3 @@ export default {
} }
} }
</script> </script>
<style>
.card-container {
background: #f5f5f5;
}
.card-container > .ant-tabs-card > .ant-tabs-content {
margin-top: -16px;
}
.card-container > .ant-tabs-card > .ant-tabs-content > .ant-tabs-tabpane {
background: #fff;
padding: 16px;
}
.card-container > .ant-tabs-card > .ant-tabs-bar {
border-color: #fff;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
border-color: transparent;
background: transparent;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active {
border-color: #fff;
background: #fff;
}
</style>

View File

@ -209,33 +209,4 @@ export default {
} }
} }
} }
</style> </style>
<style>
.card-container {
background: #f5f5f5;
}
.card-container > .ant-tabs-card > .ant-tabs-content {
margin-top: -16px;
}
.card-container > .ant-tabs-card > .ant-tabs-content > .ant-tabs-tabpane {
background: #fff;
padding: 16px;
}
.card-container > .ant-tabs-card > .ant-tabs-bar {
border-color: #fff;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
border-color: transparent;
background: transparent;
}
.card-container > .ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active {
border-color: #fff;
background: #fff;
}
</style>