勾选只能勾未处理
This commit is contained in:
parent
9d56dfd106
commit
1f6955e4a2
@ -59,6 +59,7 @@ export interface Item {
|
|||||||
locationType: string;
|
locationType: string;
|
||||||
drivingInfo: string;
|
drivingInfo: string;
|
||||||
submissionInfo: string;
|
submissionInfo: string;
|
||||||
|
alarmStatus: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -202,7 +202,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, onMounted, computed, onUnmounted } from 'vue';
|
import { ref, reactive, onMounted, computed, onUnmounted, watch } from 'vue';
|
||||||
import { date, useQuasar, type QTableColumn } from 'quasar';
|
import { date, useQuasar, type QTableColumn } from 'quasar';
|
||||||
import {
|
import {
|
||||||
alarmInfoListQuery,
|
alarmInfoListQuery,
|
||||||
@ -349,6 +349,19 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const selected = ref<Item[]>([]);
|
const selected = ref<Item[]>([]);
|
||||||
|
watch(
|
||||||
|
selected,
|
||||||
|
() => {
|
||||||
|
for (let i = 0; i < selected.value.length; i++) {
|
||||||
|
if (selected.value[i].alarmStatus !== undefined) {
|
||||||
|
selected.value.splice(i, 1);
|
||||||
|
i--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ deep: true }
|
||||||
|
);
|
||||||
|
|
||||||
function batchHandle() {
|
function batchHandle() {
|
||||||
const params = selected.value.map((item) => item.id);
|
const params = selected.value.map((item) => item.id);
|
||||||
$q.dialog({
|
$q.dialog({
|
||||||
|
Loading…
Reference in New Issue
Block a user