新增县级,农村取水量导入

This commit is contained in:
710356044
2022-01-21 22:40:09 +08:00
parent 00f536bf79
commit 356923bff6
5 changed files with 143 additions and 14 deletions

View File

@@ -196,12 +196,18 @@
accept=".xls,.xlsx,.csv"
>
<a-button
<!-- <a-button
:disabled="isCity(record)"
type="primary"
shape="round"
size="small"
>取水量导入</a-button
> -->
<a-button
type="primary"
shape="round"
size="small"
>取水量导入</a-button
>
</a-upload>
</a-space>
@@ -355,14 +361,15 @@ export default {
methods: {
/* 判断是否是市级,用于取水量导入 */
isCity(record) {
if (record.regionLevel === "市级") {
return false;
} else {
return true;
}
},
/*市级取水量导入 */
// isCity(record) {
// if (record.regionLevel === "市级") {
// return false;
// } else {
// return true;
// }
// },
/*取水量导入 */
importWaterWithdrawal(file,record) {
const hide = this.$message.loading("导入中..", 0);
let reader = new FileReader();