|
|
@ -1,103 +1,96 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="left"> |
|
|
|
<div class="left"> |
|
|
|
<el-menu class="menu" ref="type" @open="selectType" @select="selectType" unique-opened |
|
|
|
<el-menu class="menu" ref="type" @open="selectType" @select="selectType" unique-opened :default-active="defaultType" :default-openeds="defaultOpenType"> |
|
|
|
:default-active="defaultType" :default-openeds="defaultOpenType"> |
|
|
|
<menuTree :menuList="typeList"></menuTree> |
|
|
|
<menuTree :menuList="typeList"></menuTree> |
|
|
|
</el-menu> |
|
|
|
</el-menu> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="right"> |
|
|
|
|
|
|
|
<div class="page"> |
|
|
|
|
|
|
|
<h6 class="l-title"><img src="@/assets/img/data1.png" alt=""> 数据介绍</h6> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<div class="search"> |
|
|
|
|
|
|
|
<input v-model="keyword" type="text" placeholder="请输入数据表名称"> |
|
|
|
|
|
|
|
<img src="../../../assets/img/search-gray.png" alt="" class="search-icon"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="desc">{{ introduce }}</div> |
|
|
|
<div class="right"> |
|
|
|
<div class="source"><img src="@/assets/img/data2.png" alt=""> 数据来源:{{ dataSource }}</div> |
|
|
|
<div class="page"> |
|
|
|
<div class="page-content"> |
|
|
|
<h6 class="l-title"><img src="@/assets/img/data1.png" alt=""> 数据介绍</h6> |
|
|
|
<el-table :data="listData" class="table" ref="table" stripe header-align="center" row-key="id" |
|
|
|
<div> |
|
|
|
highlight-current-row @current-change="previewCurrentChange"> |
|
|
|
<div class="search"> |
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column> |
|
|
|
<input v-model="keyword" type="text" placeholder="请输入数据表名称"> |
|
|
|
<el-table-column prop="showName" label="数据表名称" min-width="220" align="center" |
|
|
|
<img src="../../../assets/img/search-gray.png" alt="" class="search-icon"> |
|
|
|
:show-overflow-tooltip="true"></el-table-column> |
|
|
|
</div> |
|
|
|
<el-table-column prop="dataTotal" label="数据总量" width="90" align="center"></el-table-column> |
|
|
|
</div> |
|
|
|
<el-table-column prop="timeRange" label="起止时间" width="175" align="center"></el-table-column> |
|
|
|
<div class="desc">{{introduce}}</div> |
|
|
|
<el-table-column prop="dataSize" label="数据大小" width="90" align="center"> |
|
|
|
<div class="source"><img src="@/assets/img/data2.png" alt=""> 数据来源:{{dataSource}}</div> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="page-content"> |
|
|
|
{{ scope.row.dataSize }}M |
|
|
|
<el-table :data="listData" class="table" ref="table" stripe header-align="center" row-key="id" highlight-current-row @current-change="previewCurrentChange"> |
|
|
|
</template> |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="showName" label="数据表名称" min-width="300" align="center" :show-overflow-tooltip="true"></el-table-column> |
|
|
|
<el-table-column prop="updateTime" label="更新时间" width="155" align="center"></el-table-column> |
|
|
|
<el-table-column prop="dataTotal" label="数据总量" width="90" align="center"></el-table-column> |
|
|
|
<el-table-column label="操作" width="100" align="center"> |
|
|
|
<el-table-column prop="timeRange" label="起止时间" width="220" align="center"></el-table-column> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-table-column prop="dataSize" label="数据大小" width="90" align="center"> |
|
|
|
<el-button type="text" @click="preview(scope.row)" v-auth>预览</el-button> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" @click="download(scope.row)" v-auth>下载</el-button> |
|
|
|
{{scope.row.dataSize}}M |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-table-column prop="updateTime" label="更新时间" width="170" align="center"></el-table-column> |
|
|
|
<div class="pagination"> |
|
|
|
<el-table-column label="操作" width="200" align="center"> |
|
|
|
<el-pagination background @current-change="handleCurrentChange" :current-page="page" |
|
|
|
<template slot-scope="scope"> |
|
|
|
layout="total, prev, pager, next, jumper" :total="total"></el-pagination> |
|
|
|
<el-button type="text" @click="preview(scope.row)" v-auth>预览</el-button> |
|
|
|
</div> |
|
|
|
<el-button type="text" @click="download(scope.row)" v-auth>下载</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
<div class="pagination"> |
|
|
|
|
|
|
|
<el-pagination background @current-change="handleCurrentChange" :current-page="page" layout="total, prev, pager, next, jumper" :total="total"></el-pagination> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="下载" :visible.sync="downloadVisible" width="540px" @close="closeDownload" |
|
|
|
<el-dialog title="下载" :visible.sync="downloadVisible" width="540px" @close="closeDownload" :close-on-click-modal="false"> |
|
|
|
:close-on-click-modal="false"> |
|
|
|
<el-form ref="form" label-width="100px" label-suffix=":"> |
|
|
|
<el-form ref="form" label-width="100px" label-suffix=":"> |
|
|
|
<el-form-item label="数据筛选"> |
|
|
|
<el-form-item label="数据筛选"> |
|
|
|
<div class="checkboxs"> |
|
|
|
<div class="checkboxs"> |
|
|
|
<el-checkbox v-model="checkAllFields" @change="checkAllFieldsChange">全选</el-checkbox> |
|
|
|
<el-checkbox v-model="checkAllFields" @change="checkAllFieldsChange">全选</el-checkbox> |
|
|
|
<el-checkbox-group v-model="fields"> |
|
|
|
<el-checkbox-group v-model="fields"> |
|
|
|
<el-checkbox v-for="(item,index) in fieldsList" :key="index" :label="item.comment"></el-checkbox> |
|
|
|
<el-checkbox v-for="(item, index) in fieldsList" :key="index" :label="item.comment"></el-checkbox> |
|
|
|
</el-checkbox-group> |
|
|
|
</el-checkbox-group> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="开始时间"> |
|
|
|
|
|
|
|
<el-date-picker v-model="startTime" type="date" placeholder="请选择开始时间" size="small" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :picker-options="timeOptions" :disabled="startTimeDisabled" :default-value="startTimeDefault" @change="timeChange"></el-date-picker> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="结束时间"> |
|
|
|
|
|
|
|
<el-date-picker v-model="endTime" type="date" placeholder="请选择结束时间" size="small" format="yyyy-MM-dd" value-format="yyyy-MM-dd" :picker-options="timeOptions" :disabled="endTimeDisabled" :default-value="endTimeDefault" @change="timeChange"></el-date-picker> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="数据频率"> |
|
|
|
|
|
|
|
<el-select v-model="frequency" placeholder="请选择数据频率" size="small"> |
|
|
|
|
|
|
|
<el-option v-for="(item,index) in frequencyList" :key="index" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
|
|
|
<el-button size="small" @click="downloadVisible = false">取消</el-button> |
|
|
|
|
|
|
|
<el-button size="small" type="primary" @click="confirmDown">确定</el-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-drawer |
|
|
|
|
|
|
|
custom-class="preview-dia" |
|
|
|
|
|
|
|
size="950px" |
|
|
|
|
|
|
|
:with-header="false" |
|
|
|
|
|
|
|
:visible.sync="previewVisible"> |
|
|
|
|
|
|
|
<div class="flex j-between"> |
|
|
|
|
|
|
|
<div class="l-title" style="margin-bottom: 0"> |
|
|
|
|
|
|
|
<img src="@/assets/img/data3.png" alt=""> |
|
|
|
|
|
|
|
数据预览 |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<img width="52" src="@/assets/img/close.png" style="cursor: pointer" alt="" @click="previewVisible = false"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<div class="preview-wrap"> |
|
|
|
<el-form-item label="开始时间"> |
|
|
|
<el-table :data="previewData" class="table" id="previewTable" stripe header-align="center" row-key="id"> |
|
|
|
<el-date-picker v-model="startTime" type="date" placeholder="请选择开始时间" size="small" format="yyyy-MM-dd" |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
value-format="yyyy-MM-dd" :picker-options="timeOptions" :disabled="startTimeDisabled" |
|
|
|
<el-table-column v-for="(item,index) in previewHead" :prop="item.field" :key="index" :label="item.comment" align="center"></el-table-column> |
|
|
|
:default-value="startTimeDefault" @change="timeChange"></el-date-picker> |
|
|
|
</el-table> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<el-form-item label="结束时间"> |
|
|
|
</el-drawer> |
|
|
|
<el-date-picker v-model="endTime" type="date" placeholder="请选择结束时间" size="small" format="yyyy-MM-dd" |
|
|
|
</div> |
|
|
|
value-format="yyyy-MM-dd" :picker-options="timeOptions" :disabled="endTimeDisabled" |
|
|
|
|
|
|
|
:default-value="endTimeDefault" @change="timeChange"></el-date-picker> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="数据频率"> |
|
|
|
|
|
|
|
<el-select v-model="frequency" placeholder="请选择数据频率" size="small"> |
|
|
|
|
|
|
|
<el-option v-for="(item, index) in frequencyList" :key="index" :label="item.name" |
|
|
|
|
|
|
|
:value="item.id"></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
|
|
|
<el-button size="small" @click="downloadVisible = false">取消</el-button> |
|
|
|
|
|
|
|
<el-button size="small" type="primary" @click="confirmDown">确定</el-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-drawer custom-class="preview-dia" size="950px" :with-header="false" :visible.sync="previewVisible"> |
|
|
|
|
|
|
|
<div class="flex j-between"> |
|
|
|
|
|
|
|
<div class="l-title" style="margin-bottom: 0"> |
|
|
|
|
|
|
|
<img src="@/assets/img/data3.png" alt=""> |
|
|
|
|
|
|
|
数据预览 |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<img width="52" src="@/assets/img/close.png" style="cursor: pointer" alt="" @click="previewVisible = false"> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="preview-wrap"> |
|
|
|
|
|
|
|
<el-table :data="previewData" class="table" id="previewTable" stripe header-align="center" row-key="id"> |
|
|
|
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column v-for="(item, index) in previewHead" :prop="item.field" :key="index" :label="item.comment" |
|
|
|
|
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-drawer> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -112,7 +105,7 @@ export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
menuTree |
|
|
|
menuTree |
|
|
|
}, |
|
|
|
}, |
|
|
|
data () { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
that: this, |
|
|
|
that: this, |
|
|
|
token: util.local.get(Setting.tokenKey), |
|
|
|
token: util.local.get(Setting.tokenKey), |
|
|
@ -147,7 +140,7 @@ export default { |
|
|
|
startTimeDefault: '', |
|
|
|
startTimeDefault: '', |
|
|
|
endTimeDefault: '', |
|
|
|
endTimeDefault: '', |
|
|
|
timeOptions: { |
|
|
|
timeOptions: { |
|
|
|
disabledDate (time) { |
|
|
|
disabledDate(time) { |
|
|
|
return time.getTime() < startTimeLimit || time.getTime() > endTimeLimit |
|
|
|
return time.getTime() < startTimeLimit || time.getTime() > endTimeLimit |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -180,7 +173,7 @@ export default { |
|
|
|
]), |
|
|
|
]), |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
keyword: function (val) { |
|
|
|
keyword: function(val) { |
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
clearTimeout(this.searchTimer) |
|
|
|
if (!this.rendered) { |
|
|
|
if (!this.rendered) { |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
|
this.searchTimer = setTimeout(() => { |
|
|
@ -190,7 +183,7 @@ export default { |
|
|
|
this.rendered = false |
|
|
|
this.rendered = false |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
mounted() { |
|
|
|
this.getType() |
|
|
|
this.getType() |
|
|
|
// 如果是从首页点下载按钮跳转过来的,就直接显示下载弹框 |
|
|
|
// 如果是从首页点下载按钮跳转过来的,就直接显示下载弹框 |
|
|
|
if (this.$route.query.download) { |
|
|
|
if (this.$route.query.download) { |
|
|
@ -202,7 +195,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getType () { |
|
|
|
getType() { |
|
|
|
// 获取分类 |
|
|
|
// 获取分类 |
|
|
|
this.$post(this.api.getTableByClassification).then(res => { |
|
|
|
this.$post(this.api.getTableByClassification).then(res => { |
|
|
|
let typeId = this.typeId // 取得传值的id |
|
|
|
let typeId = this.typeId // 取得传值的id |
|
|
@ -211,7 +204,7 @@ export default { |
|
|
|
let action |
|
|
|
let action |
|
|
|
let isFirst = true // 判断是否是第一条数据 |
|
|
|
let isFirst = true // 判断是否是第一条数据 |
|
|
|
// 取得选中的那一栏 |
|
|
|
// 取得选中的那一栏 |
|
|
|
function actionId (arr) {//传入res |
|
|
|
function actionId(arr) {//传入res |
|
|
|
arr && arr.map((e, i) => { |
|
|
|
arr && arr.map((e, i) => { |
|
|
|
e.id = String(e.id) |
|
|
|
e.id = String(e.id) |
|
|
|
if (!i && isFirst) { |
|
|
|
if (!i && isFirst) { |
|
|
@ -244,7 +237,7 @@ export default { |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getData () { |
|
|
|
getData() { |
|
|
|
this.$post(`${this.api.getIdQueryTable}?categoryId=${this.defaultType}&showName=${this.keyword}&pageNum=${this.page}&pageSize=${this.pageSize}&updateTime=`).then(res => { |
|
|
|
this.$post(`${this.api.getIdQueryTable}?categoryId=${this.defaultType}&showName=${this.keyword}&pageNum=${this.page}&pageSize=${this.pageSize}&updateTime=`).then(res => { |
|
|
|
const list = res.pageList.records |
|
|
|
const list = res.pageList.records |
|
|
|
list.map(e => { |
|
|
|
list.map(e => { |
|
|
@ -269,26 +262,26 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$router.replace('list') |
|
|
|
this.$router.replace('list') |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => {}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
initData () { |
|
|
|
initData() { |
|
|
|
this.page = 1 |
|
|
|
this.page = 1 |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCurrentChange (val) { |
|
|
|
handleCurrentChange(val) { |
|
|
|
this.page = val |
|
|
|
this.page = val |
|
|
|
this.$refs.table.clearSelection() |
|
|
|
this.$refs.table.clearSelection() |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 分类展开及点击回调 |
|
|
|
// 分类展开及点击回调 |
|
|
|
selectType (index, indexPath) { |
|
|
|
selectType(index, indexPath) { |
|
|
|
let introduce = '' |
|
|
|
let introduce = '' |
|
|
|
let dataSource = '' |
|
|
|
let dataSource = '' |
|
|
|
this.keyword = '' |
|
|
|
this.keyword = '' |
|
|
|
let list = this.typeList |
|
|
|
let list = this.typeList |
|
|
|
let select = '' |
|
|
|
let select = '' |
|
|
|
// 获取最里层的第一个子级id |
|
|
|
// 获取最里层的第一个子级id |
|
|
|
function getDeepest (data) { |
|
|
|
function getDeepest(data) { |
|
|
|
if (data[0].children && data[0].children.length) { |
|
|
|
if (data[0].children && data[0].children.length) { |
|
|
|
getDeepest(data[0].children) |
|
|
|
getDeepest(data[0].children) |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -297,7 +290,7 @@ export default { |
|
|
|
if (data[0].dataSource) dataSource = data[0].dataSource |
|
|
|
if (data[0].dataSource) dataSource = data[0].dataSource |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
function handleData (data) { |
|
|
|
function handleData(data) { |
|
|
|
data.map((n, i) => { |
|
|
|
data.map((n, i) => { |
|
|
|
// 匹配到点击的分类,默认展开子级第一个分类 |
|
|
|
// 匹配到点击的分类,默认展开子级第一个分类 |
|
|
|
if (n.id == index) { |
|
|
|
if (n.id == index) { |
|
|
@ -324,10 +317,10 @@ export default { |
|
|
|
this.previewData = [] |
|
|
|
this.previewData = [] |
|
|
|
this.initData() |
|
|
|
this.initData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
previewCurrentChange (val) { |
|
|
|
previewCurrentChange(val) { |
|
|
|
this.currentRow = val |
|
|
|
this.currentRow = val |
|
|
|
}, |
|
|
|
}, |
|
|
|
preview (row) { |
|
|
|
preview(row) { |
|
|
|
this.$get(`${this.api.previewData}?tableName=${row.name}&tableId=${row.id}`).then(res => { |
|
|
|
this.$get(`${this.api.previewData}?tableName=${row.name}&tableId=${row.id}`).then(res => { |
|
|
|
// 查询次数+1 |
|
|
|
// 查询次数+1 |
|
|
|
this.$post(this.api.saveRecord, { |
|
|
|
this.$post(this.api.saveRecord, { |
|
|
@ -354,11 +347,11 @@ export default { |
|
|
|
this.previewVisible = true |
|
|
|
this.previewVisible = true |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
checkAllFieldsChange (val) { |
|
|
|
checkAllFieldsChange(val) { |
|
|
|
this.fields = val ? this.fieldsList.map(n => n.comment) : [] |
|
|
|
this.fields = val ? this.fieldsList.map(n => n.comment) : [] |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 显示下载弹框 |
|
|
|
// 显示下载弹框 |
|
|
|
download (row) { |
|
|
|
download(row) { |
|
|
|
// 查询是否购买了该数据,只有购买了才能下载 |
|
|
|
// 查询是否购买了该数据,只有购买了才能下载 |
|
|
|
this.$get(`${this.api.isDownload}`, { |
|
|
|
this.$get(`${this.api.isDownload}`, { |
|
|
|
tableId: row.id, |
|
|
|
tableId: row.id, |
|
|
@ -393,11 +386,11 @@ export default { |
|
|
|
}).catch(res => { }) |
|
|
|
}).catch(res => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 开始结束时间选择回调 |
|
|
|
// 开始结束时间选择回调 |
|
|
|
timeChange () { |
|
|
|
timeChange() { |
|
|
|
// 如果开始时间大于结束时间,则提示 |
|
|
|
// 如果开始时间大于结束时间,则提示 |
|
|
|
if (this.startTime && this.endTime && new Date(this.startTime) > new Date(this.endTime)) util.warningMsg('结束时间不能小于开始时间') |
|
|
|
if (this.startTime && this.endTime && new Date(this.startTime) > new Date(this.endTime)) util.warningMsg('结束时间不能小于开始时间') |
|
|
|
}, |
|
|
|
}, |
|
|
|
closeDownload () { |
|
|
|
closeDownload() { |
|
|
|
this.checkAllFields = false |
|
|
|
this.checkAllFields = false |
|
|
|
this.fields = [] |
|
|
|
this.fields = [] |
|
|
|
this.startTime = '' |
|
|
|
this.startTime = '' |
|
|
@ -405,7 +398,7 @@ export default { |
|
|
|
this.frequency = '' |
|
|
|
this.frequency = '' |
|
|
|
this.$router.push('/data').catch(err => { }) |
|
|
|
this.$router.push('/data').catch(err => { }) |
|
|
|
}, |
|
|
|
}, |
|
|
|
confirmDown () { |
|
|
|
confirmDown() { |
|
|
|
let fields = this.fields |
|
|
|
let fields = this.fields |
|
|
|
if (!fields.length) return util.warningMsg('请选择字段') |
|
|
|
if (!fields.length) return util.warningMsg('请选择字段') |
|
|
|
if (!this.startTime) return util.warningMsg('请选择开始时间') |
|
|
|
if (!this.startTime) return util.warningMsg('请选择开始时间') |
|
|
@ -490,175 +483,139 @@ export default { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.wrap { |
|
|
|
.wrap{ |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
padding-bottom: 20px !important; |
|
|
|
padding-bottom: 20px !important; |
|
|
|
|
|
|
|
/deep/.left{ |
|
|
|
/deep/.left { |
|
|
|
height: calc(100vh - 166px); |
|
|
|
width: 239px; |
|
|
|
margin-right: 20px; |
|
|
|
height: calc(100vh - 190px); |
|
|
|
overflow: auto; |
|
|
|
margin-right: 20px; |
|
|
|
&::-webkit-scrollbar { |
|
|
|
overflow: auto; |
|
|
|
display: none; |
|
|
|
|
|
|
|
width: 8px; |
|
|
|
&::-webkit-scrollbar { |
|
|
|
height: 8px; |
|
|
|
display: none; |
|
|
|
} |
|
|
|
width: 8px; |
|
|
|
&::-webkit-scrollbar-thumb { |
|
|
|
height: 8px; |
|
|
|
display: none; |
|
|
|
} |
|
|
|
width: 5px; |
|
|
|
|
|
|
|
border-radius: 6px; |
|
|
|
&::-webkit-scrollbar-thumb { |
|
|
|
background: rgba(173,173,173,.7); |
|
|
|
display: none; |
|
|
|
} |
|
|
|
width: 5px; |
|
|
|
.menu{ |
|
|
|
border-radius: 6px; |
|
|
|
width: 240px; |
|
|
|
background: rgba(173, 173, 173, .7); |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
&>.el-menu-item,.el-submenu__title{ |
|
|
|
|
|
|
|
span{ |
|
|
|
.menu { |
|
|
|
font-size: 15px; |
|
|
|
width: 240px; |
|
|
|
color: #3381d2; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
&>.el-menu-item, |
|
|
|
&>.el-submenu>.el-menu{ |
|
|
|
.el-submenu__title { |
|
|
|
background-color: #FAFAFA !important; |
|
|
|
span { |
|
|
|
} |
|
|
|
font-size: 15px; |
|
|
|
.el-submenu__title i{ |
|
|
|
color: #3381d2; |
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.el-submenu .el-menu{ |
|
|
|
|
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.el-submenu.is-active{ |
|
|
|
|
|
|
|
.el-submenu__title{ |
|
|
|
|
|
|
|
&+.el-menu .el-submenu__title{ |
|
|
|
|
|
|
|
height: 50px; |
|
|
|
|
|
|
|
line-height: 50px; |
|
|
|
|
|
|
|
background-color: rgba(147,184,255,.15); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
i{ |
|
|
|
|
|
|
|
color: #006EFF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.el-menu-item{ |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
|
|
&.is-active{ |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
background-color: #0070FF; |
|
|
|
|
|
|
|
span { |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.level-6 { |
|
|
|
|
|
|
|
padding-right: 0; |
|
|
|
|
|
|
|
.el-submenu__title { |
|
|
|
|
|
|
|
padding-left: 10px !important; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.right{ |
|
|
|
|
|
|
|
flex: 1; |
|
|
|
&>.el-submenu>.el-menu { |
|
|
|
max-width: calc(100% - 220px); |
|
|
|
background-color: #FAFAFA !important; |
|
|
|
.page{ |
|
|
|
} |
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
|
|
.source { |
|
|
|
.el-submenu__title i { |
|
|
|
margin-bottom: 12px; |
|
|
|
font-size: 14px; |
|
|
|
color: #7EB1F3; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
.el-submenu .el-menu { |
|
|
|
} |
|
|
|
|
|
|
|
/deep/.el-table__body tr.current-row > td{ |
|
|
|
|
|
|
|
background-color: #daeaff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.desc{ |
|
|
|
|
|
|
|
padding: 9px 12px; |
|
|
|
|
|
|
|
margin: 20px 0 10px; |
|
|
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
|
|
color: #333; |
|
|
|
|
|
|
|
background-color: #FAFAFA; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.search{ |
|
|
|
|
|
|
|
z-index: 2; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 10px; |
|
|
|
|
|
|
|
right: 16px; |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
width: 345px; |
|
|
|
|
|
|
|
height: 34px; |
|
|
|
|
|
|
|
padding: 7px 10px; |
|
|
|
|
|
|
|
margin: 0 auto; |
|
|
|
background-color: #fff; |
|
|
|
background-color: #fff; |
|
|
|
} |
|
|
|
border: 1px solid #e6e6e6; |
|
|
|
|
|
|
|
border-radius: 5px; |
|
|
|
.el-submenu.is-active { |
|
|
|
|
|
|
|
.el-submenu__title { |
|
|
|
input{ |
|
|
|
&+.el-menu .el-submenu__title { |
|
|
|
width: 260px; |
|
|
|
height: 50px; |
|
|
|
margin-left: 10px; |
|
|
|
line-height: 50px; |
|
|
|
font-size: 14px; |
|
|
|
background-color: rgba(147, 184, 255, .15); |
|
|
|
color: #333; |
|
|
|
} |
|
|
|
background-color: transparent; |
|
|
|
|
|
|
|
border: 0; |
|
|
|
i { |
|
|
|
&::-webkit-input-placeholder{color: #999} |
|
|
|
color: #006EFF; |
|
|
|
&::-moz-placeholder{color: #999} |
|
|
|
} |
|
|
|
&:-moz-placeholder{color: #999} |
|
|
|
|
|
|
|
&:focus{ |
|
|
|
|
|
|
|
outline: none; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.remove{ |
|
|
|
|
|
|
|
cursor: pointer; |
|
|
|
.el-menu-item { |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.is-active { |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
background-color: #0070FF; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
span { |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.search-icon{ |
|
|
|
|
|
|
|
width: 18px; |
|
|
|
.level-6 { |
|
|
|
|
|
|
|
padding-right: 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-submenu__title { |
|
|
|
|
|
|
|
padding-left: 10px !important; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/.preview-dia{ |
|
|
|
|
|
|
|
padding: 20px; |
|
|
|
.right { |
|
|
|
.preview-wrap{ |
|
|
|
width: calc(100% - 260px); |
|
|
|
height: calc(100vh - 80px); |
|
|
|
|
|
|
|
overflow: auto; |
|
|
|
.page { |
|
|
|
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.source { |
|
|
|
|
|
|
|
margin-bottom: 12px; |
|
|
|
|
|
|
|
color: #7EB1F3; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-table__body tr.current-row>td { |
|
|
|
|
|
|
|
background-color: #daeaff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.desc { |
|
|
|
|
|
|
|
padding: 9px 12px; |
|
|
|
|
|
|
|
margin: 20px 0 10px; |
|
|
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
|
|
color: #333; |
|
|
|
|
|
|
|
background-color: #FAFAFA; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.search { |
|
|
|
|
|
|
|
z-index: 2; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 10px; |
|
|
|
|
|
|
|
right: 16px; |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
width: 345px; |
|
|
|
|
|
|
|
height: 34px; |
|
|
|
|
|
|
|
padding: 7px 10px; |
|
|
|
|
|
|
|
margin: 0 auto; |
|
|
|
|
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
border: 1px solid #e6e6e6; |
|
|
|
|
|
|
|
border-radius: 5px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input { |
|
|
|
|
|
|
|
width: 260px; |
|
|
|
|
|
|
|
margin-left: 10px; |
|
|
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
color: #333; |
|
|
|
|
|
|
|
background-color: transparent; |
|
|
|
|
|
|
|
border: 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&::-webkit-input-placeholder { |
|
|
|
|
|
|
|
color: #999 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&::-moz-placeholder { |
|
|
|
|
|
|
|
color: #999 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:-moz-placeholder { |
|
|
|
|
|
|
|
color: #999 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&:focus { |
|
|
|
|
|
|
|
outline: none; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.remove { |
|
|
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.search-icon { |
|
|
|
|
|
|
|
width: 18px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/deep/.preview-dia { |
|
|
|
|
|
|
|
padding: 20px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.preview-wrap { |
|
|
|
|
|
|
|
height: calc(100vh - 80px); |
|
|
|
|
|
|
|
overflow: auto; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |