Compare commits
2 Commits
9d59c95768
...
5f204c2b92
Author | SHA1 | Date |
---|---|---|
Kane | 5f204c2b92 | |
Kane | 9af9fa474e |
|
@ -308,6 +308,11 @@ export default {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/*****************************************************
|
||||||
|
* 响应显示需求详情的点击事件
|
||||||
|
* @param serial_no 需求编号
|
||||||
|
*****************************************************/
|
||||||
const showRequirementDetail = (serial_no) =>
|
const showRequirementDetail = (serial_no) =>
|
||||||
{
|
{
|
||||||
console.log("状态", query_param.select_status);
|
console.log("状态", query_param.select_status);
|
||||||
|
@ -321,11 +326,13 @@ export default {
|
||||||
console.log("查看需求号:", serial_no);
|
console.log("查看需求号:", serial_no);
|
||||||
};
|
};
|
||||||
|
|
||||||
//需求详情对话框关闭事件
|
|
||||||
|
//#region 需求详情对话框关闭事件
|
||||||
const closeRequirementDetail = () =>
|
const closeRequirementDetail = () =>
|
||||||
{
|
{
|
||||||
ui.dialogRequirementDetailLoadingVisible = true;
|
ui.dialogRequirementDetailLoadingVisible = true;
|
||||||
};
|
};
|
||||||
|
//#endregion
|
||||||
|
|
||||||
//用户选择状态时的事件
|
//用户选择状态时的事件
|
||||||
const onUIChange = () =>
|
const onUIChange = () =>
|
||||||
|
@ -339,6 +346,7 @@ export default {
|
||||||
store.state.requirement.ui.selected_status = query_param.select_status;
|
store.state.requirement.ui.selected_status = query_param.select_status;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//#region onBeforeMount定义
|
||||||
onBeforeMount(() =>
|
onBeforeMount(() =>
|
||||||
{
|
{
|
||||||
// debugger;
|
// debugger;
|
||||||
|
@ -358,20 +366,26 @@ export default {
|
||||||
onUIChange();
|
onUIChange();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//#endregion
|
||||||
|
|
||||||
|
//#region onBeforeUnmount
|
||||||
onBeforeUnmount(() =>
|
onBeforeUnmount(() =>
|
||||||
{
|
{
|
||||||
onUIChange();
|
onUIChange();
|
||||||
});
|
});
|
||||||
|
//#endregion
|
||||||
|
|
||||||
/*加载数据***************************/
|
|
||||||
|
//#region 加载数据
|
||||||
//需求状态相关,默认全部选择
|
//需求状态相关,默认全部选择
|
||||||
query_requirement_ui(store.state.requirement, "ErrorPage");
|
query_requirement_ui(store.state.requirement, "ErrorPage");
|
||||||
|
//#endregion
|
||||||
|
|
||||||
//输出控制台
|
//输出控制台
|
||||||
console.log(store.state.app);
|
console.log(store.state.app);
|
||||||
console.log(store.state.requirement);
|
console.log(store.state.requirement);
|
||||||
|
|
||||||
|
//#region 返回值
|
||||||
return {
|
return {
|
||||||
//data
|
//data
|
||||||
requirement_data,
|
requirement_data,
|
||||||
|
@ -392,6 +406,7 @@ export default {
|
||||||
//生命周期
|
//生命周期
|
||||||
onBeforeMount,
|
onBeforeMount,
|
||||||
};
|
};
|
||||||
|
//#endregion
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue