Commit 97866e0d authored by miaohaoyun's avatar miaohaoyun

Merge branch 'mhy' into 'master'

优化

See merge request !63
parents a37c09ef 280e807d
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
multiple multiple
drag drag
accept=".xls,.xlsx" accept=".xls,.xlsx"
:limit="5" :limit="1"
:headers="myHeader" :headers="myHeader"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:file-list="fileList" :file-list="fileList"
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
:auto-upload="false"> :auto-upload="false">
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <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-upload>
<el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload1">数据导入</el-button> <el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload1">数据导入</el-button>
</el-tab-pane> </el-tab-pane>
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
multiple multiple
drag drag
accept=".xls,.xlsx" accept=".xls,.xlsx"
:limit="5" :limit="1"
:headers="myHeader" :headers="myHeader"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:file-list="fileList" :file-list="fileList"
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
:auto-upload="false"> :auto-upload="false">
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <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-upload>
<el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload2">数据导入</el-button> <el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload2">数据导入</el-button>
</el-tab-pane> </el-tab-pane>
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
multiple multiple
drag drag
accept=".xls,.xlsx" accept=".xls,.xlsx"
:limit="5" :limit="1"
:headers="myHeader" :headers="myHeader"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:file-list="fileList" :file-list="fileList"
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
:auto-upload="false"> :auto-upload="false">
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <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-upload>
<el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload3">数据导入</el-button> <el-button style="margin-top: 10px" size="small" type="success" @click="submitUpload3">数据导入</el-button>
</el-tab-pane> </el-tab-pane>
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
this.$message.warning("当前限制选择 1 个文件,请删除后继续上传"); this.$message.warning("当前限制选择 1 个文件,请删除后继续上传");
}, },
handleBeforeUpload(file) { handleBeforeUpload(file) {
// this.loading = true; this.loading = true;
if (!file.name.endsWith(".xls") && !file.name.endsWith(".xlsx")) { if (!file.name.endsWith(".xls") && !file.name.endsWith(".xlsx")) {
this.$message.warning(file.name + "不是excel文件"); this.$message.warning(file.name + "不是excel文件");
this.loading = false; this.loading = false;
......
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="dataForm.remark" auto-complete="off" type="textarea"></el-input> <el-input v-model="dataForm.remark" auto-complete="off" type="textarea"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="签章" prop="seal" align="left"> <el-form-item label="签章" prop="seal" align="left" style="height: 80px">
<el-popover <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" placement="left"
title="" title=""
trigger="hover"> trigger="hover">
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
:auto-upload="false"> :auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button> <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<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" icon="el-icon-delete"
size="small" size="small"
type="warning" type="warning"
......
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