|
@@ -57,21 +57,20 @@ function Auth(props) {
|
|
let version = {};
|
|
let version = {};
|
|
if (item.type == 'checked') {
|
|
if (item.type == 'checked') {
|
|
version = checkedVersionList.find(v => v.id == item.id);
|
|
version = checkedVersionList.find(v => v.id == item.id);
|
|
|
|
+ localStorage.excelItem = JSON.stringify(version);
|
|
|
|
+ router.push(`/home/detail/${item.project_id}/${item.template_id}`);
|
|
} else {
|
|
} else {
|
|
- version = authVersionList.find(v => v.id == item.id);
|
|
|
|
|
|
+ //调用接口获取version信息
|
|
|
|
+ dispatch({
|
|
|
|
+ type: 'auth/queryVersionByNode',
|
|
|
|
+ payload: { template_node_id: item.node_id },
|
|
|
|
+ callback: checkedVersionList => {
|
|
|
|
+ let version = checkedVersionList.find(v => v.id == item.id) || {};
|
|
|
|
+ localStorage.excelItem = JSON.stringify(version);
|
|
|
|
+ router.push(`/home/detail/${item.project_id}/${item.template_id}`);
|
|
|
|
+ },
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- localStorage.excelItem = JSON.stringify(version);
|
|
|
|
- router.push(`/home/detail/${item.project_id}/${item.template_id}`);
|
|
|
|
- //调用接口获取version信息
|
|
|
|
- // dispatch({
|
|
|
|
- // type: 'auth/queryVersionByNode',
|
|
|
|
- // payload: { template_node_id: item.node_id },
|
|
|
|
- // callback: checkedVersionList => {
|
|
|
|
- // let version = checkedVersionList.find(v => v.id == item.id) || {};
|
|
|
|
- // localStorage.excelItem = JSON.stringify(version);
|
|
|
|
- // router.push(`/home/detail/${item.project_id}/${item.template_id}`);
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
};
|
|
};
|
|
|
|
|
|
const renderUnauth = data => (
|
|
const renderUnauth = data => (
|