Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xichonght
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
zhangdishen
xichonght
Commits
97866e0d
Commit
97866e0d
authored
Aug 23, 2019
by
miaohaoyun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mhy' into 'master'
优化 See merge request
!63
parents
a37c09ef
280e807d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
importByExcel.vue
xichongSys/src/views/Myvue/importByExcel.vue
+7
-7
Role.vue
xichongSys/src/views/Sys/Role.vue
+3
-3
No files found.
xichongSys/src/views/Myvue/importByExcel.vue
View file @
97866e0d
...
...
@@ -45,7 +45,7 @@
multiple
drag
accept=
".xls,.xlsx"
:limit=
"
5
"
:limit=
"
1
"
:headers=
"myHeader"
:before-upload=
"handleBeforeUpload"
:file-list=
"fileList"
...
...
@@ -55,7 +55,7 @@
:auto-upload=
"false"
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传xls/xlsx文件,一次最多只能上传
5
个文件
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传xls/xlsx文件,一次最多只能上传
1
个文件
</div>
</el-upload>
<el-button
style=
"margin-top: 10px"
size=
"small"
type=
"success"
@
click=
"submitUpload1"
>
数据导入
</el-button>
</el-tab-pane>
...
...
@@ -103,7 +103,7 @@
multiple
drag
accept=
".xls,.xlsx"
:limit=
"
5
"
:limit=
"
1
"
:headers=
"myHeader"
:before-upload=
"handleBeforeUpload"
:file-list=
"fileList"
...
...
@@ -113,7 +113,7 @@
:auto-upload=
"false"
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传xls/xlsx文件,一次最多只能上传
5
个文件
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传xls/xlsx文件,一次最多只能上传
1
个文件
</div>
</el-upload>
<el-button
style=
"margin-top: 10px"
size=
"small"
type=
"success"
@
click=
"submitUpload2"
>
数据导入
</el-button>
</el-tab-pane>
...
...
@@ -162,7 +162,7 @@
multiple
drag
accept=
".xls,.xlsx"
:limit=
"
5
"
:limit=
"
1
"
:headers=
"myHeader"
:before-upload=
"handleBeforeUpload"
:file-list=
"fileList"
...
...
@@ -172,7 +172,7 @@
:auto-upload=
"false"
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传xls/xlsx文件,一次最多只能上传
5
个文件
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传xls/xlsx文件,一次最多只能上传
1
个文件
</div>
</el-upload>
<el-button
style=
"margin-top: 10px"
size=
"small"
type=
"success"
@
click=
"submitUpload3"
>
数据导入
</el-button>
</el-tab-pane>
...
...
@@ -223,7 +223,7 @@
this
.
$message
.
warning
(
"当前限制选择 1 个文件,请删除后继续上传"
);
},
handleBeforeUpload
(
file
)
{
//
this.loading = true;
this
.
loading
=
true
;
if
(
!
file
.
name
.
endsWith
(
".xls"
)
&&
!
file
.
name
.
endsWith
(
".xlsx"
))
{
this
.
$message
.
warning
(
file
.
name
+
"不是excel文件"
);
this
.
loading
=
false
;
...
...
xichongSys/src/views/Sys/Role.vue
View file @
97866e0d
...
...
@@ -32,9 +32,9 @@
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"dataForm.remark"
auto-complete=
"off"
type=
"textarea"
></el-input>
</el-form-item>
<el-form-item
label=
"签章"
prop=
"seal"
align=
"left"
>
<el-form-item
label=
"签章"
prop=
"seal"
align=
"left"
style=
"height: 80px"
>
<el-popover
v-if=
"typeof(dataForm.sealStr) !== 'undefined' && dataForm.sealStr !== null && dataForm.sealStr != ''"
v-if=
"typeof(dataForm.sealStr) !== 'undefined' && dataForm.sealStr !== null && dataForm.sealStr !=
=
''"
placement=
"left"
title=
""
trigger=
"hover"
>
...
...
@@ -52,7 +52,7 @@
:auto-upload=
"false"
>
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
选取文件
</el-button>
<el-button
v-if=
"typeof(dataForm.sealStr) !== 'undefined' && dataForm.sealStr !== null && dataForm.sealStr != ''"
v-if=
"typeof(dataForm.sealStr) !== 'undefined' && dataForm.sealStr !== null && dataForm.sealStr !=
=
''"
icon=
"el-icon-delete"
size=
"small"
type=
"warning"
...
...
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