This commit is contained in:
2025-06-23 14:44:05 +08:00
parent 56caa92801
commit 534adf126a
5 changed files with 28 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ import XImage from "../../components/XImage.vue";
import Api from "../../api/index.js";
import dayjs from "dayjs";
import XPrompt from "../../components/XPrompt.vue";
import {numberToCharacter} from "../../utils/uils.js";
import {numberToCharacter, toPage} from "../../utils/uils.js";
import AcceptAssignmentModal from "../../components/AcceptAssignmentModal.vue";
import ICON from "../../static/icons/prompt.png";
import XConfirmModal from "../../components/XConfirmModal.vue";
@@ -49,6 +49,7 @@ const tabs = computed(() => [
isDot: details.value?.children.is_read > 0,
},
]);
const delta = ref(1);
const getData = async (id, task_children_id) => {
const {data} = await Api.system.getTaskinfo(id || details.value.id, task_children_id || details.value?.children?.id);
@@ -56,9 +57,10 @@ const getData = async (id, task_children_id) => {
}
onLoad((options) => {
const {id, home: _home, tab, task_children_id} = options;
const {id, home: _home, tab, task_children_id, delta: _delta} = options;
home.value = _home === '1';
if (tab) currentTabs.value = Number(tab);
if (delta) delta.value = _delta
getData(id, task_children_id);
});
@@ -73,13 +75,13 @@ onMounted(() => {
mainDetailWidth.value = result[0].width;
})
});
showInitModal.value = true;
if (home.value) showInitModal.value = true;
})
</script>
<template>
<!--任务详情-->
<XNav></XNav>
<XNav :delta="delta"></XNav>
<x-notice-bar></x-notice-bar>
<view class="!p-[20rpx] !flex flex-col gap-[20rpx] box-border" v-if="details">
@@ -243,6 +245,12 @@ onMounted(() => {
</view>
</view>
</view>
<view class="block items-center">
<view class="block-title">ip限制:</view>
<view class="block-info">
{{ details.choose_area_arr.join(',') }}
</view>
</view>
</view>
</view>