重命名 变量

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>
<div>2.最大支持2MB的xls/xlsx文件</div> <div>2.最大支持2MB的xls/xlsx文件</div>
<div>3.一次导入患者数量不能超过5000</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 >自动去除当日重复记录</el-checkbox
> >
</div> </div>
@ -452,11 +452,11 @@ export default {
form: {}, form: {},
uploadopen: false, uploadopen: false,
fileList: [], fileList: [],
records: true, isDistinct: true,//true
action: { action: {
data: { data: {
records: '', isDistinct: '',
}, },
headers: { headers: {
@ -581,11 +581,11 @@ export default {
}, },
// //
submitUpload() { submitUpload() {
if (this.records == true) { if (this.isDistinct == true) {
this.action.data.records = 1 this.action.data.isDistinct = 1
} else { } else {
this.action.data.records = 0 this.action.data.isDistinct = 0
} }
this.$refs.upload.submit(); this.$refs.upload.submit();
}, },
@ -612,7 +612,7 @@ export default {
this.uploadopen = true; this.uploadopen = true;
this.records = true; this.isDistinct = true;
this.fileList = []; this.fileList = [];
this.form = {}; this.form = {};