Commit 1e8f8db5 authored by renjintao's avatar renjintao

processBack

parent c3be47cb
<template> <template>
<div class="content"> <div class="table-content">
<TablePaste hide-table :input-props="inputProps" @on-success="handleSuccess" @on-error="handleError" v-show="showTablePaste" /> <TablePaste hide-table :input-props="inputProps" @on-success="handleSuccess" @on-error="handleError" v-show="showTablePaste" />
<DataGrid border :height="tdHeightExcel" :columns="columnsImport" :data="excelData" :page="false" :set="false"> <div class="table-tools">
<template slot="easySearch"> <div class="table-search">
<Form inline> <Form inline>
<FormItem> <FormItem>
<span>导入到</span> <span>导入到</span>
...@@ -16,13 +16,6 @@ ...@@ -16,13 +16,6 @@
<FormItem> <FormItem>
<Button type="primary" @click="openInfoModal">导入</Button> <Button type="primary" @click="openInfoModal">导入</Button>
</FormItem> </FormItem>
</Form>
</template>
<template slot="buttons">
<Form inline>
<FormItem>
<Button @click="downFile">下载原始文件</Button>
</FormItem>
<FormItem> <FormItem>
<div style="height:34px;overflow: hidden;padding:0"> <div style="height:34px;overflow: hidden;padding:0">
<Upload action :before-upload="beforeUpload" ref="uploadfile" :format="formatList"> <Upload action :before-upload="beforeUpload" ref="uploadfile" :format="formatList">
...@@ -30,15 +23,33 @@ ...@@ -30,15 +23,33 @@
</Upload> </Upload>
</div> </div>
</FormItem> </FormItem>
</Form>
</div>
<div class="btns">
<Form inline>
<FormItem>
原文件:<a @click="downFile">{{entity.file}}</a>
</FormItem>
<FormItem>
<a class="ml10 mr10" @click="resetTable">刷新</a>
</FormItem>
<FormItem> <FormItem>
<Button @click="openPaste" :type="btnType" :ghost="ghostStatus">{{btnTxt}}</Button> <Button @click="openPaste" :type="btnType" :ghost="ghostStatus">{{btnTxt}}</Button>
</FormItem> </FormItem>
<FormItem> <FormItem>
<Button @click="resetTable">还原到原始文件</Button> <RadioGroup value="large" type="button">
<Radio label="large">数据展示</Radio>
<Radio label="default">粘贴Excel</Radio>
</RadioGroup>
</FormItem> </FormItem>
</Form> </Form>
</template> </div>
</DataGrid> </div>
<div class="table-main" ref="main">
<Table border="true" :columns="columnsImport" :data="excelData" :height="tdHeightExcel" ref="table" class="tableCommon"></Table>
</div>
<FooterToolbar v-if="sheetNames.length>1"> <FooterToolbar v-if="sheetNames.length>1">
<Form inline> <Form inline>
<FormItem> <FormItem>
...@@ -551,10 +562,10 @@ export default { ...@@ -551,10 +562,10 @@ export default {
pageChange(val) { pageChange(val) {
switch (val) { switch (val) {
case 0: case 0:
this.loadColum(this.columns0); //this.loadColum(this.columns0);
break; break;
case 1: case 1:
this.loadColum(this.columns1); //this.loadColum(this.columns1);
break; break;
case undefined: case undefined:
if (this.dataType == 0) { if (this.dataType == 0) {
...@@ -564,7 +575,7 @@ export default { ...@@ -564,7 +575,7 @@ export default {
} }
break; break;
default: default:
this.loadColum(this.columns1); //this.loadColum(this.columns1);
} }
}, },
handleClose() { handleClose() {
...@@ -720,7 +731,54 @@ export default { ...@@ -720,7 +731,54 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
.content { .table-content {
position: relative;
height: 100%;
display: flex;
flex-direction: column;
.tip {
display: inline;
}
form {
display: inline-block;
.ivu-form-item {
margin: 0;
vertical-align: middle;
}
}
.table-main {
width: 100%;
text-align: left;
padding: 0;
display: block;
overflow-y: auto;
flex-grow: 1;
tr td .ivu-table-cell {
padding: 0 5px;
}
overflow-x: hidden;
}
.table-tools {
display: flex;
line-height: 50px;
.table-search {
flex-grow: 1;
}
.btns {
min-width: 200px;
text-align: right;
}
}
.table-footer { .table-footer {
line-height: 45px; line-height: 45px;
background: #f5f5f5; background: #f5f5f5;
...@@ -728,6 +786,7 @@ export default { ...@@ -728,6 +786,7 @@ export default {
.ivu-footer-toolbar { .ivu-footer-toolbar {
text-align: left; text-align: left;
background: #f5f5f5;
.ivu-footer-toolbar-right { .ivu-footer-toolbar-right {
float: left; float: left;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment