新增县级,农村取水量导入
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user