|
|
@ -15,6 +15,7 @@ import { useInfiniteScroll } from '@vueuse/core'
|
|
|
|
import BatchModal from '../modal/BatchModal.vue'
|
|
|
|
import BatchModal from '../modal/BatchModal.vue'
|
|
|
|
import CustomSettingModal from '../modal/CustomSettingModal.vue'
|
|
|
|
import CustomSettingModal from '../modal/CustomSettingModal.vue'
|
|
|
|
import ImgDetailModal from "../modal/ImgDetailModal.vue"
|
|
|
|
import ImgDetailModal from "../modal/ImgDetailModal.vue"
|
|
|
|
|
|
|
|
import MapModal from "../modal/MapModal.vue"
|
|
|
|
import PictureTable from './PictureTable.vue'
|
|
|
|
import PictureTable from './PictureTable.vue'
|
|
|
|
import TaskTable from './TaskTable.vue'
|
|
|
|
import TaskTable from './TaskTable.vue'
|
|
|
|
import History from './History.vue'
|
|
|
|
import History from './History.vue'
|
|
|
@ -46,6 +47,7 @@ const selectItems = ref<any[]>([])
|
|
|
|
const message = useMessage()
|
|
|
|
const message = useMessage()
|
|
|
|
const dialog = useDialog()
|
|
|
|
const dialog = useDialog()
|
|
|
|
const notPassModalRef = ref(null)
|
|
|
|
const notPassModalRef = ref(null)
|
|
|
|
|
|
|
|
const MapModalRef= ref(null)
|
|
|
|
const batchModalRef: any = ref(null)
|
|
|
|
const batchModalRef: any = ref(null)
|
|
|
|
const totalCount = ref(0)
|
|
|
|
const totalCount = ref(0)
|
|
|
|
const taskId: any = ref('') // 任务id
|
|
|
|
const taskId: any = ref('') // 任务id
|
|
|
@ -331,7 +333,7 @@ async function handleDragEnd(event, item) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async function addSuspicious() {
|
|
|
|
async function addSuspicious() {
|
|
|
|
taskStore.setInFileId(taskDetailInfo.value.ocrPicture)
|
|
|
|
taskStore.setInFileId(taskDetailInfo.value.ocrPicture)
|
|
|
|
console.log(taskDetailInfo.value.ocrPicture)
|
|
|
|
// console.log(taskDetailInfo.value.ocrPicture)
|
|
|
|
if (taskDetailInfo.value.ocrPicture.pictureid) {
|
|
|
|
if (taskDetailInfo.value.ocrPicture.pictureid) {
|
|
|
|
const res = await dubiousfileyd({
|
|
|
|
const res = await dubiousfileyd({
|
|
|
|
pictureid: taskDetailInfo.value.ocrPicture.id,
|
|
|
|
pictureid: taskDetailInfo.value.ocrPicture.id,
|
|
|
@ -529,15 +531,18 @@ function switchBatch() {
|
|
|
|
|
|
|
|
|
|
|
|
function getrowValue(e) {
|
|
|
|
function getrowValue(e) {
|
|
|
|
if (e.key == 'location') {
|
|
|
|
if (e.key == 'location') {
|
|
|
|
|
|
|
|
const modal = unref(MapModalRef)! as any
|
|
|
|
|
|
|
|
console.log(modal)
|
|
|
|
const locationobj = JSON.parse(taskDetailInfo.value.ocrPicture.location)
|
|
|
|
const locationobj = JSON.parse(taskDetailInfo.value.ocrPicture.location)
|
|
|
|
const lat = locationobj.lat.$numberDecimal
|
|
|
|
const lat = locationobj.lat.$numberDecimal
|
|
|
|
const lng = locationobj.lng.$numberDecimal
|
|
|
|
const lng = locationobj.lng.$numberDecimal
|
|
|
|
const name = e.value
|
|
|
|
const name = e.value
|
|
|
|
const protocol = window.location.protocol
|
|
|
|
modal.showModal({name,lat,lng})
|
|
|
|
const hostname = window.location.hostname
|
|
|
|
// const protocol = window.location.protocol
|
|
|
|
const port = window.location.port
|
|
|
|
//const hostname = window.location.hostname
|
|
|
|
const hostWithPort = `${protocol}//${hostname}:${port}/`
|
|
|
|
// const port = window.location.port
|
|
|
|
window.open(`${hostWithPort}map` + `?name=${name}&lat=${lat}&lng=${lng}`)
|
|
|
|
//const hostWithPort = `${protocol}//${hostname}:${port}/`
|
|
|
|
|
|
|
|
// window.open(`${hostWithPort}map` + `?name=${name}&lat=${lat}&lng=${lng}`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function overTaskHandelr(item: any) {
|
|
|
|
function overTaskHandelr(item: any) {
|
|
|
@ -1380,6 +1385,7 @@ function nopassfun(e){
|
|
|
|
<BatchModal ref="batchModalRef" @reject="rejectHandler" @approval="approvalHandler" />
|
|
|
|
<BatchModal ref="batchModalRef" @reject="rejectHandler" @approval="approvalHandler" />
|
|
|
|
<CustomSettingModal ref="CustomSettingModalRef" @on-ok="getDetail" />
|
|
|
|
<CustomSettingModal ref="CustomSettingModalRef" @on-ok="getDetail" />
|
|
|
|
<img-detail-modal ref="imgdetailref" @passfun="passfun" @nopassfun="nopassfun"/>
|
|
|
|
<img-detail-modal ref="imgdetailref" @passfun="passfun" @nopassfun="nopassfun"/>
|
|
|
|
|
|
|
|
<MapModal ref="MapModalRef"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|