update
This commit is contained in:
@@ -100,38 +100,38 @@ 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(() => {
|
let ALGL = 0;
|
||||||
const instancs = getCurrentInstance();
|
let HTYQ = 0;
|
||||||
let ALGL = 0;
|
let SJYQ = 0;
|
||||||
let HTYQ = 0;
|
|
||||||
let SJYQ = 0;
|
|
||||||
|
|
||||||
const mainDetailBox = document.querySelector('#mainDetailBox');
|
const mainDetailBox = document.querySelector('#mainDetailBox');
|
||||||
const taskHeader = document.querySelector('#taskHeader');
|
const taskHeader = document.querySelector('#taskHeader');
|
||||||
const fbyq = document.querySelector('#FBYQ');
|
const fbyq = document.querySelector('#FBYQ');
|
||||||
const htyq = document.querySelector('#HTYQ');
|
const htyq = document.querySelector('#HTYQ');
|
||||||
mainDetailWidth.value = mainDetailBox.clientWidth;
|
mainDetailWidth.value = mainDetailBox.clientWidth;
|
||||||
ALGL += taskHeader.clientHeight + 12.5;
|
ALGL += taskHeader.clientHeight + 12.5;
|
||||||
HTYQ += ALGL + mainDetailBox.clientHeight + fbyq.clientHeight + 25;
|
HTYQ += ALGL + mainDetailBox.clientHeight + fbyq.clientHeight + 25;
|
||||||
SJYQ += HTYQ + htyq.clientHeight + 12.5;
|
SJYQ += HTYQ + htyq.clientHeight + 12.5;
|
||||||
|
|
||||||
|
menuTabs[0].value = ALGL;
|
||||||
|
menuTabs[1].value = HTYQ;
|
||||||
|
menuTabs[2].value = SJYQ;
|
||||||
|
|
||||||
menuTabs[0].value = ALGL;
|
|
||||||
menuTabs[1].value = HTYQ;
|
|
||||||
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