You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
<template> |
|
<div> |
|
<el-row> |
|
<el-form label-width="100px" :size="$store.getters.size"> |
|
<el-row :gutter="gridNum.row.gutter"> |
|
<el-col :span="24"> |
|
<el-form-item label="模板文件" prop="userPhone"> |
|
<el-upload |
|
class="upload-demo" |
|
action="" |
|
:file-list="fileList" |
|
:auto-upload="false" |
|
:limit="1" |
|
> |
|
<el-button size="small" type="primary">点击上传</el-button> |
|
<div slot="tip" class="el-upload__tip">只能上传excel文件</div> |
|
</el-upload> |
|
</el-form-item> |
|
</el-col> |
|
</el-row> |
|
<el-col :span="24" style="text-align: right"> |
|
<el-button @click="close">取消</el-button> |
|
<el-button |
|
type="primary" |
|
@click="close" |
|
>下载模板</el-button> |
|
<el-button |
|
type="primary" |
|
@click="submit" |
|
>提交</el-button> |
|
</el-col> |
|
</el-form> |
|
</el-row> |
|
</div> |
|
</template> |
|
<script> |
|
export default { |
|
data() { |
|
return { |
|
fileList: [], |
|
gridNum: { |
|
row: { |
|
gutter: 2 |
|
}, |
|
cols: { |
|
xs: 24, |
|
sm: 24, |
|
md: 12, |
|
lg: 12, |
|
xl: 6 |
|
} |
|
} |
|
} |
|
}, |
|
methods: { |
|
close() { |
|
this.$emit('closeDialog') |
|
}, |
|
submit() { |
|
this.$emit('getByPage') |
|
} |
|
} |
|
} |
|
</script>
|
|
|