重命名 变量

This commit is contained in:
zhuangyuanke 2024-12-09 17:03:58 +08:00
parent 68c4a30858
commit 26936a66ad

View File

@ -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 = {};