update
This commit is contained in:
@@ -100,19 +100,18 @@ const menuTabs = reactive([
|
|||||||
const getData = async (id, task_children_id) => {
|
const getData = async (id, task_children_id) => {
|
||||||
const {data} = await Api.system.getTaskinfo(id || details.value.id, task_children_id || details.value?.children?.id);
|
const {data} = await Api.system.getTaskinfo(id || details.value.id, task_children_id || details.value?.children?.id);
|
||||||
details.value = data;
|
details.value = data;
|
||||||
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
const {id, home: _home, tab, task_children_id, delta: _delta} = options;
|
const {id, home: _home, tab, task_children_id, delta: _delta} = options;
|
||||||
home.value = _home === '1';
|
home.value = _home === '1';
|
||||||
if (tab) currentTabs.value = Number(tab);
|
if (tab) currentTabs.value = Number(tab);
|
||||||
if (delta) delta.value = _delta
|
if (delta) delta.value = _delta;
|
||||||
getData(id, task_children_id);
|
getData(id, task_children_id);
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
const init = () => {
|
||||||
setTimeout(() => {
|
|
||||||
const instancs = getCurrentInstance();
|
|
||||||
let ALGL = 0;
|
let ALGL = 0;
|
||||||
let HTYQ = 0;
|
let HTYQ = 0;
|
||||||
let SJYQ = 0;
|
let SJYQ = 0;
|
||||||
@@ -129,9 +128,10 @@ onMounted(() => {
|
|||||||
menuTabs[0].value = ALGL;
|
menuTabs[0].value = ALGL;
|
||||||
menuTabs[1].value = HTYQ;
|
menuTabs[1].value = HTYQ;
|
||||||
menuTabs[2].value = SJYQ;
|
menuTabs[2].value = SJYQ;
|
||||||
}, 500);
|
|
||||||
if (home.value) showInitModal.value = true;
|
if (home.value) showInitModal.value = true;
|
||||||
})
|
}
|
||||||
|
|
||||||
const scrollState = reactive({
|
const scrollState = reactive({
|
||||||
top: 0,
|
top: 0,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user