333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<template>
  <el-dialog v-dialogDrag ref="uploadRef" :visible.sync="currentDialogVisible" :title="title" class="import-dialog-container" width="580px" @close="dialogClose">
    <el-form>
      <el-row>
        <el-form-item label="月台使用类型:">
          <el-input v-model="form.platformType" class="w-200"></el-input>
        </el-form-item>
        <el-form-item label="网点名称:" style="padding-left: 30px;">
          <el-input v-model="form.siteName" class="w-200"></el-input>
        </el-form-item>
        <el-form-item label="月台名称:" style="padding-left: 30px;">
          <el-input v-model="form.platformName " class="w-200"></el-input>
        </el-form-item>
        <el-form-item label="使用开始时间:">
          <el-input v-model="form.startTime" class="w-200"></el-input>
        </el-form-item>
        <el-form-item label="使用结束时间:">
          <el-input v-model="form.endTime" class="w-200"></el-input>
        </el-form-item>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="showPay()">取 消</el-button>
      <el-button type="primary" @click="save()">保存</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    label: {
      type: String,
      default: null
    },
    config: {
      type: Object,
      default: () => {
        return {};
      }
    },
    // 导入前事件
    beforeImportSubmit: {
      type: Function,
      default: () => {
        return () => {};
      }
    }
  },
  data() {
    return {
      form: {
        platformName: null,
        siteName: null,
        platformType: null,
        startTime: null,
        endTime: null
      }
    };
  },
  computed: {
    // 标题
    title: function() {
      return this.config.title || "批量导入操作";
    },
    // 显示窗口
    currentDialogVisible: {
      get: function() {
        return this.visible;
      },
      set: function(val) {
        this.$emit("update:visible", val);
      }
    }
  },
  mounted() {
    this.uploadKey = this.common.getGUID();
  },
  methods: {
    // 保存数据
    save() {
      this.currentDialogVisible = false;
    },
    // 关闭窗口
    dialogClose() {
      this.$emit("on-close"); // 关闭事件
    },
    showPay() {
      this.currentDialogVisible = false;
    }
  }
};
</script>
 
<style lang="scss" scoped>
.import-dialog-container {
  /deep/ .el-upload-list {
    margin-right: 20px;
  }
  /deep/ .scrollbar-wrap {
    max-height: 400px;
    overflow-x: hidden;
    padding: 0px;
    padding-bottom: 30px !important;
    padding-top: 0px !important;
  }
  .msg-container {
    margin: 0;
    padding: 0;
    .msg-item {
      margin: 0;
      padding: 5px 0;
      word-wrap: break-word;
    }
  }
  .body-content {
    margin-top: 20px;
  }
}
</style>