重命名 变量
This commit is contained in:
parent
68c4a30858
commit
26936a66ad
@ -119,7 +119,7 @@
|
||||
</div>
|
||||
<div>2.最大支持2MB的xls/xlsx文件</div>
|
||||
<div>3.一次导入患者数量不能超过5000</div>
|
||||
<el-checkbox v-model="records" style="font-size: 12px"
|
||||
<el-checkbox v-model="isDistinct" style="font-size: 12px"
|
||||
>自动去除当日重复记录</el-checkbox
|
||||
>
|
||||
</div>
|
||||
@ -452,11 +452,11 @@ export default {
|
||||
form: {},
|
||||
uploadopen: false,
|
||||
fileList: [],
|
||||
records: true,
|
||||
isDistinct: true,//是否自动去重,true表示去重
|
||||
|
||||
action: {
|
||||
data: {
|
||||
records: '',
|
||||
isDistinct: '',
|
||||
},
|
||||
|
||||
headers: {
|
||||
@ -581,11 +581,11 @@ export default {
|
||||
},
|
||||
//导入相关的方法
|
||||
submitUpload() {
|
||||
if (this.records == true) {
|
||||
this.action.data.records = 1
|
||||
if (this.isDistinct == true) {
|
||||
this.action.data.isDistinct = 1
|
||||
|
||||
} else {
|
||||
this.action.data.records = 0
|
||||
this.action.data.isDistinct = 0
|
||||
}
|
||||
this.$refs.upload.submit();
|
||||
},
|
||||
@ -612,7 +612,7 @@ export default {
|
||||
|
||||
|
||||
this.uploadopen = true;
|
||||
this.records = true;
|
||||
this.isDistinct = true;
|
||||
|
||||
this.fileList = [];
|
||||
this.form = {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user