|
@@ -179,7 +179,7 @@ import { Splitpanes, Pane } from 'splitpanes'
|
|
|
import { setPaneSize } from '@/utils/common'
|
|
|
import useMainStore from '@/store/main'
|
|
|
import BtnPagination from '@/components/common/BtnPagination.vue'
|
|
|
-const isMult = ref(false)
|
|
|
+// const isMult = ref(false)
|
|
|
const multipleSelection = ref<any>([])
|
|
|
const handleSelectionChange = (val: any) => {
|
|
|
multipleSelection.value = val
|
|
@@ -352,7 +352,9 @@ const {
|
|
|
onCurrentChange,
|
|
|
nextRow,
|
|
|
elTableRef,
|
|
|
-} = useTableCheck(data, true, null, false, isMult)
|
|
|
+ isMult,
|
|
|
+ multToggle,
|
|
|
+} = useTableCheck(data, true, null, false)
|
|
|
|
|
|
watch(current, () => {
|
|
|
if (current.value) {
|
|
@@ -511,19 +513,6 @@ const { drawing, dataUrl } = useSetImgBg(imgOption, frontColor, setFrontColor)
|
|
|
|
|
|
onRefresh()
|
|
|
|
|
|
-const multToggle = () => {
|
|
|
- isMult.value = !isMult.value
|
|
|
- editScoreVisible.value = !isMult.value
|
|
|
- if (!isMult.value && tableData.value?.length && current.value) {
|
|
|
- nextTick(() => {
|
|
|
- let index = tableData.value.findIndex((task: any) => task.taskId == current.value?.taskId)
|
|
|
- elTableRef?.value?.setCurrentRow(tableData.value[index == -1 ? 0 : index])
|
|
|
- })
|
|
|
- }
|
|
|
- if (isMult.value) {
|
|
|
- elTableRef?.value?.clearSelection()
|
|
|
- }
|
|
|
-}
|
|
|
const rejectIds = computed(() => {
|
|
|
return isMult.value ? multipleSelection.value.map((item: any) => item.taskId) : [current.value?.taskId]
|
|
|
})
|