Commit a161ac14 by zhaochengxiang

跳转至电子表格

parent 0743b8cb
......@@ -96,3 +96,7 @@ export function* authorize(payload) {
export function* release(payload) {
return yield call(pds.release, payload)
}
export function* getSmartBiUrl(payload) {
return yield call(pds.getSmartBiUrl, payload)
}
\ No newline at end of file
......@@ -96,5 +96,9 @@ export function release(payload) {
return PostJSON("/pdataservice/pdsWorkflow/kickoffRelease", payload)
}
export function getSmartBiUrl(payload) {
return Get(`/${payload.url}`);
}
......@@ -775,6 +775,16 @@ const ModelTable = (props) => {
onChange && onChange();
}
})
} else if (key === 'smart') {
dispatch({
type: 'pds.getSmartBiUrl',
payload: {
url: currentItem?.smartBiWebSpreadSheetEntry
},
callback: (data) => {
window.open(data)
}
})
}
}
......@@ -946,6 +956,11 @@ const ModelTable = (props) => {
下载Tableau tds
</RcItem>
}
{
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && currentItem?.supportSmartBIWebSpreadSheet && <RcItem id="smart" onClick={handleItemClick}>
跳转至电子表格
</RcItem>
}
{/* {
getDataModelerRole(user)!==DataModelerRoleReader &&currentItem?.deployable && <RcItem id='createTable' onClick={handleItemClick}>
建表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment