Commit 0b019cfd authored by youjie's avatar youjie

no message

parent 176262b0
......@@ -184,10 +184,10 @@
</el-pagination>
</div> -->
</div>
<el-dialog custom-class='w700' title="导入" :visible.sync="outerVisible" center>
<el-dialog custom-class='w700' title="导入" :visible.sync="outerVisible" center @close="addMsg.BranchId=''">
<el-form class="clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="100px">
<el-row>
<el-col :span="5">
<el-col :span="10" style="margin-left: 100px;">
<el-form-item label="公司" prop="BranchId">
<el-select filterable v-model='addMsg.BranchId'>
<!-- <el-option label="不限" value=0></el-option> -->
......@@ -196,8 +196,9 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="addMsg.BranchId">
<el-upload style="text-align: center;" drag class="upload-demo"
</el-row>
</el-form>
<el-upload v-if="addMsg.BranchId" style="text-align: center;" drag class="upload-demo"
:action="importFileUrl2"
:on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload">
......@@ -205,9 +206,6 @@
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<!-- <div slot="tip" class="el-upload__tip">只能上传Excel文件</div> -->
</el-upload>
</el-col>
</el-row>
</el-form>
</el-dialog>
......@@ -221,7 +219,7 @@
rules: { //表单必填验证
BranchId: [{
required: true,
message: '请选择公司',
message: '请先选择公司再上传',
trigger: 'change'
}]
},
......
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