1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
| <template>
| <GlobalWindow
| :title="title"
| width="100%"
| :visible.sync="visible"
| :confirm-working="isWorking"
| @confirm="confirm"
| >
| <el-form class="demo-form-inline">
| <el-form-item label="上传名单" required>
| <el-button type="primary" @click="clickRef">点击上传</el-button>
| <el-button type="text">名单模板.EXCEL</el-button>
| </el-form-item>
| </el-form>
| <input type="file" accept=".excel" ref="fileExcel" @change="result" />
| </GlobalWindow>
| </template>
|
| <script>
| import BaseOpera from '@/components/base/BaseOpera'
| import GlobalWindow from '@/components/common/GlobalWindow'
| export default {
| name: 'importEmployees',
| extends: BaseOpera,
| components: { GlobalWindow },
| data () {
| return {
| list: []
| }
| },
| methods: {
| open (title, arr) {
| this.title = title
| this.visible = true
| },
| clickRef () {
| this.$refs.fileExcel.click()
| },
| result (e) {
| console.log(e)
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
|
| </style>
|
|