|
|
|
@ -21,7 +21,7 @@ |
|
|
|
|
<el-card shadow="hover"> |
|
|
|
|
<el-form label-width="80px" class="flex-between mgb20"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<el-form-item label="创建日期" style="margin: 0 20px 0 0"> |
|
|
|
|
<el-form-item label="更新时间" style="margin: 0 20px 0 0"> |
|
|
|
|
<el-date-picker v-model="updateTime" type="date" placeholder="选择日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="initData"></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-input placeholder="请输入数据表名称" v-model="keyword" prefix-icon="el-icon-search" clearable></el-input> |
|
|
|
@ -41,7 +41,7 @@ |
|
|
|
|
{{scope.row.dataSize}}M |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="updateTime" label="更新时间" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="createTime" label="更新时间" align="center"></el-table-column> |
|
|
|
|
<el-table-column label="操作" width="220" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button type="text" @click="preview(scope.row)">预览</el-button> |
|
|
|
@ -68,7 +68,7 @@ |
|
|
|
|
<p class="hr_tag"></p> |
|
|
|
|
<span>预览</span> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="fieldData" stripe header-align="center"> |
|
|
|
|
<el-table :data="fieldData" stripe header-align="center" v-if="fieldHead.length"> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column v-for="(item,index) in fieldHead" :prop="item.field" :key="index" :label="item.comment" align="center"></el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -304,10 +304,10 @@ export default { |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
n.children = res.list |
|
|
|
|
if(!i && !this.tableName){ |
|
|
|
|
this.tableName = res.list[0].name |
|
|
|
|
this.curId = res.list[0].id |
|
|
|
|
} |
|
|
|
|
// if(!i && !this.tableName){ |
|
|
|
|
// this.tableName = res.list[0].name |
|
|
|
|
// this.curId = res.list[0].id |
|
|
|
|
// } |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|
batchImport(){ |
|
|
|
@ -349,9 +349,9 @@ export default { |
|
|
|
|
}) |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.importTypeList = res |
|
|
|
|
this.defaultTypeActive = [res[0].id] |
|
|
|
|
if(res[0].children.length) this.defaultTypeActive.push(res[0].children[0].id) |
|
|
|
|
this.getFields() |
|
|
|
|
// this.defaultTypeActive = [res[0].id] |
|
|
|
|
// if(res[0].children.length) this.defaultTypeActive.push(res[0].children[0].id) |
|
|
|
|
// this.getFields() |
|
|
|
|
},500) |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
|
|
|
|
|