Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
1e8f8db5
Commit
1e8f8db5
authored
Aug 26, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
processBack
parent
c3be47cb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
813 additions
and
17 deletions
+813
-17
process.vue
pages/import/process.vue
+76
-17
processBack.vue
pages/import/processBack.vue
+737
-0
No files found.
pages/import/process.vue
View file @
1e8f8db5
<
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=
"easyS
earch"
>
<
div
class=
"table-s
earch"
>
<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;
...
...
pages/import/processBack.vue
0 → 100644
View file @
1e8f8db5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment