<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>
|