no message
This commit is contained in:
parent
363ae88f50
commit
39dd3c3d42
@ -3,7 +3,7 @@
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="x-dialog" ref="xDialog">
|
<div class="x-dialog" ref="xDialog">
|
||||||
<el-dialog ref="dialog" :draggable="true" v-model="dialogVisible" :fullscreen="isFullscreen" v-bind="$attrs" :show-close="false">
|
<el-dialog ref="dialog" align-center destroy-on-close v-model="dialogVisible" :fullscreen="isFullscreen" v-bind="$attrs" :show-close="false">
|
||||||
<template #header>
|
<template #header>
|
||||||
<slot name="header">
|
<slot name="header">
|
||||||
<span class="el-dialog__title">{{ title }}</span>
|
<span class="el-dialog__title">{{ title }}</span>
|
||||||
@ -68,6 +68,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
.x-dialog__headerbtn {
|
.x-dialog__headerbtn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: var(--el-dialog-padding-primary);
|
top: var(--el-dialog-padding-primary);
|
||||||
@ -93,12 +94,12 @@
|
|||||||
--el-dialog-margin-top: 0;
|
--el-dialog-margin-top: 0;
|
||||||
--el-dialog-width:60%;
|
--el-dialog-width:60%;
|
||||||
--el-border-color-base: rgb(231 235 241 / 50%);
|
--el-border-color-base: rgb(231 235 241 / 50%);
|
||||||
margin-bottom: 0;
|
/*margin-bottom: 0;
|
||||||
max-height: calc(100% - 80px);
|
top: 60px !important;*/
|
||||||
|
max-height: calc(100% - 50px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
top: 60px !important;
|
|
||||||
left: 0px !important;
|
left: 0px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,6 +117,11 @@
|
|||||||
border-top: 1px solid var(--el-border-color-base);
|
border-top: 1px solid var(--el-border-color-base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.x-dialog:deep(.el-dialog) .el-dialog__footer:empty {
|
||||||
|
padding: 0;
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
|
||||||
.x-dialog:deep(.el-dialog).is-fullscreen {
|
.x-dialog:deep(.el-dialog).is-fullscreen {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="xTable-page" v-if="!hidePagination || !hideDo">
|
<div class="xTable-page" v-if="!hidePagination || !hideDo">
|
||||||
<div class="xTable-pagination">
|
<div class="xTable-pagination" v-if="!hidePagination">
|
||||||
<el-pagination v-if="!hidePagination" background :small="true" :layout="paginationLayout" :total="total" :page-size="scPageSize" :page-sizes="pageSizes" v-model:currentPage="currentPage" @current-change="paginationChange" @update:page-size="pageSizeChange"></el-pagination>
|
<el-pagination background :small="true" :layout="paginationLayout" :total="total" :page-size="scPageSize" :page-sizes="pageSizes" v-model:currentPage="currentPage" @current-change="paginationChange" @update:page-size="pageSizeChange"></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<div class="xTable-do" v-if="!hideDo">
|
<div class="xTable-do" v-if="!hideDo">
|
||||||
<el-button v-if="!hideRefresh" @click="refresh" icon="el-icon-refresh" circle style="margin-left:15px"></el-button>
|
<el-button v-if="!hideRefresh" @click="refresh" icon="el-icon-refresh" circle style="margin-left:15px"></el-button>
|
||||||
@ -196,6 +196,7 @@
|
|||||||
[config.request.prop]: this.prop,
|
[config.request.prop]: this.prop,
|
||||||
[config.request.order]: this.order
|
[config.request.order]: this.order
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.hidePagination){
|
if(this.hidePagination){
|
||||||
delete reqData[config.request.page]
|
delete reqData[config.request.page]
|
||||||
delete reqData[config.request.pageSize]
|
delete reqData[config.request.pageSize]
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="sc-water-mark" ref="scWaterMark">
|
<div class="x-water-mark" ref="xWaterMark">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -46,10 +46,10 @@
|
|||||||
watermark.setAttribute('class', 'watermark')
|
watermark.setAttribute('class', 'watermark')
|
||||||
const styleStr = `position:absolute;top:0;left:0;right:0;bottom:0;z-index:99;pointer-events:none;background-repeat:repeat;background-image:url('${canvas.toDataURL("image/png")}');`
|
const styleStr = `position:absolute;top:0;left:0;right:0;bottom:0;z-index:99;pointer-events:none;background-repeat:repeat;background-image:url('${canvas.toDataURL("image/png")}');`
|
||||||
watermark.setAttribute('style', styleStr);
|
watermark.setAttribute('style', styleStr);
|
||||||
this.$refs.scWaterMark.appendChild(watermark)
|
this.$refs.xWaterMark.appendChild(watermark)
|
||||||
},
|
},
|
||||||
clear(){
|
clear(){
|
||||||
var wmDom = this.$refs.scWaterMark.querySelector('.watermark')
|
var wmDom = this.$refs.xWaterMark.querySelector('.watermark')
|
||||||
wmDom && wmDom.remove()
|
wmDom && wmDom.remove()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -57,5 +57,5 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.sc-water-mark {position: relative;display: inherit;width: 100%;height: 100%;}
|
.x-water-mark {position: relative;display: inherit;width: 100%;height: 100%;}
|
||||||
</style>
|
</style>
|
@ -7,7 +7,7 @@ export default {
|
|||||||
paginationLayout: "total, sizes, prev, pager, next, jumper", //表格分页布局,可设置"total, sizes, prev, pager, next, jumper"
|
paginationLayout: "total, sizes, prev, pager, next, jumper", //表格分页布局,可设置"total, sizes, prev, pager, next, jumper"
|
||||||
parseData: function(res) { //数据分析
|
parseData: function(res) { //数据分析
|
||||||
return {
|
return {
|
||||||
data: res.data, //分析无分页的数据字段结构
|
data: res.data.data, //分析无分页的数据字段结构
|
||||||
rows: res.data.data, //分析行数据字段结构
|
rows: res.data.data, //分析行数据字段结构
|
||||||
total: res.data.count, //分析总数字段结构
|
total: res.data.count, //分析总数字段结构
|
||||||
summary: res.data.summary, //分析合计行字段结构
|
summary: res.data.summary, //分析合计行字段结构
|
||||||
|
@ -23,21 +23,62 @@
|
|||||||
@click="sideClick(item)"/>
|
@click="sideClick(item)"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="message-body-content">
|
<div class="message-body-content">
|
||||||
<xTable name="OfferCollege"></xTable>
|
<!-- <xTable name="OfferCollege"></xTable> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<x-dialog v-model="dialogVisible" title="fdsafa">
|
<x-dialog v-model="dialogVisible" width="80%" title="fdsafa">
|
||||||
<xTable name="OfferCollege"></xTable>
|
<div style="padding:0 6px 6px 6px" class="pagetable">
|
||||||
</x-dialog>
|
<xTable
|
||||||
|
ref="table"
|
||||||
|
:tableColumn="column"
|
||||||
|
:name="tablename"
|
||||||
|
:params="search"
|
||||||
|
api="app/url/lists"
|
||||||
|
:row-key="key"
|
||||||
|
:remoteSort="true"
|
||||||
|
:remoteFilter="true"
|
||||||
|
:hideDo="true"
|
||||||
|
:hideRefresh="true"
|
||||||
|
:hideSetting="true"
|
||||||
|
:hidePagination="true"
|
||||||
|
height="500"
|
||||||
|
border
|
||||||
|
stripe>
|
||||||
|
|
||||||
|
<el-table-column prop="msg" label="msg" width="800" />
|
||||||
|
<el-table-column prop="id" label="Name" width="180" />
|
||||||
|
<el-table-column prop="address" label="Address" width="500" />
|
||||||
|
|
||||||
|
|
||||||
|
</xTable>
|
||||||
|
</div>
|
||||||
|
<template #footer>
|
||||||
|
<el-pagination
|
||||||
|
style="float: right;"
|
||||||
|
background
|
||||||
|
:small="true"
|
||||||
|
layout="consists,prev,pager,next"
|
||||||
|
:total="1000"
|
||||||
|
:page-size="100"
|
||||||
|
:page-sizes="100" />
|
||||||
|
</template>
|
||||||
|
</x-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
<style scoped>
|
||||||
|
.x-dialog:deep(.el-dialog) .el-dialog__body { padding: 0}
|
||||||
|
.pagetable /deep/ .el-table--border th.el-table__cell{
|
||||||
|
background-color: #f6f8fa;
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import xMenuItem from '@/components/xMenu/item'
|
import xMenuItem from '@/components/xMenu/item'
|
||||||
import xTable from '@/views/system/table'
|
// import xTable from '@/views/system/table'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -45,7 +86,7 @@ export default {
|
|||||||
name: 'trajectory',
|
name: 'trajectory',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
xTable,
|
// xTable,
|
||||||
xMenuItem,
|
xMenuItem,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-main>
|
<el-main>
|
||||||
<el-card shadow="never">
|
<el-card shadow="never">
|
||||||
<sc-water-mark ref="wm" text="欢迎体验SCUI" subtext="admin@scui.com">
|
<x-water-mark ref="wm" text="欢迎体验SCUI" subtext="admin@scui.com">
|
||||||
<el-table :data="tableData" border stripe style="width: 100%">
|
<el-table :data="tableData" border stripe style="width: 100%">
|
||||||
<el-table-column prop="date" label="Date" width="180" />
|
<el-table-column prop="date" label="Date" width="180" />
|
||||||
<el-table-column prop="name" label="Name" width="180" />
|
<el-table-column prop="name" label="Name" width="180" />
|
||||||
<el-table-column prop="address" label="Address" />
|
<el-table-column prop="address" label="Address" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</sc-water-mark>
|
</x-water-mark>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card shadow="never" style="margin-top: 15px;">
|
<el-card shadow="never" style="margin-top: 15px;">
|
||||||
<el-button type="primary" @click="create">创建水印</el-button>
|
<el-button type="primary" @click="create">创建水印</el-button>
|
||||||
|
4
src/x.js
4
src/x.js
@ -26,7 +26,7 @@ import xTrend from './components/xMini/Trend'
|
|||||||
import xQrCode from './components/xQrCode'
|
import xQrCode from './components/xQrCode'
|
||||||
import xPageHeader from './components/xPageHeader'
|
import xPageHeader from './components/xPageHeader'
|
||||||
import xSelect from './components/xSelect'
|
import xSelect from './components/xSelect'
|
||||||
import scWaterMark from './components/scWaterMark'
|
import xWaterMark from './components/xWaterMark'
|
||||||
import {
|
import {
|
||||||
Flexbox,
|
Flexbox,
|
||||||
FlexboxItem
|
FlexboxItem
|
||||||
@ -69,7 +69,7 @@ export default {
|
|||||||
app.component('xSelect', xSelect);
|
app.component('xSelect', xSelect);
|
||||||
app.component('xDialog', xDialog);
|
app.component('xDialog', xDialog);
|
||||||
app.component('xTitle', xTitle);
|
app.component('xTitle', xTitle);
|
||||||
app.component('scWaterMark', scWaterMark);
|
app.component('xWaterMark', xWaterMark);
|
||||||
app.component('xQrCode', xQrCode);
|
app.component('xQrCode', xQrCode);
|
||||||
app.component('xStatusIndicator', xStatusIndicator);
|
app.component('xStatusIndicator', xStatusIndicator);
|
||||||
app.component('xTrend', xTrend);
|
app.component('xTrend', xTrend);
|
||||||
|
Loading…
Reference in New Issue
Block a user