Commit a161ac14 by zhaochengxiang

跳转至电子表格

parent 0743b8cb
...@@ -96,3 +96,7 @@ export function* authorize(payload) { ...@@ -96,3 +96,7 @@ export function* authorize(payload) {
export function* release(payload) { export function* release(payload) {
return yield call(pds.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) { ...@@ -96,5 +96,9 @@ export function release(payload) {
return PostJSON("/pdataservice/pdsWorkflow/kickoffRelease", payload) return PostJSON("/pdataservice/pdsWorkflow/kickoffRelease", payload)
} }
export function getSmartBiUrl(payload) {
return Get(`/${payload.url}`);
}
...@@ -775,6 +775,16 @@ const ModelTable = (props) => { ...@@ -775,6 +775,16 @@ const ModelTable = (props) => {
onChange && onChange(); 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) => { ...@@ -946,6 +956,11 @@ const ModelTable = (props) => {
下载Tableau tds 下载Tableau tds
</RcItem> </RcItem>
} }
{
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && currentItem?.supportSmartBIWebSpreadSheet && <RcItem id="smart" onClick={handleItemClick}>
跳转至电子表格
</RcItem>
}
{/* { {/* {
getDataModelerRole(user)!==DataModelerRoleReader &&currentItem?.deployable && <RcItem id='createTable' onClick={handleItemClick}> 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