Commit 142b2b29 by zhaochengxiang

增加空服务操作

parent a0473813
...@@ -35,6 +35,8 @@ const actions = [ ...@@ -35,6 +35,8 @@ const actions = [
// { title: '下载Tableau tds', key: 'downloadTds' }, // { title: '下载Tableau tds', key: 'downloadTds' },
// { title: '跳转至电子表格', key: 'smart' }, // { title: '跳转至电子表格', key: 'smart' },
{ title: '更换管理', key: 'exchangeOwner' }, { title: '更换管理', key: 'exchangeOwner' },
{ title: '拖拉创建字段', key: 'dragAttribute' },
{ title: '自定义sql创建字段', key: 'sqlAttribute' }
] ]
const ModelNameColumn = (props) => { const ModelNameColumn = (props) => {
...@@ -210,6 +212,11 @@ const ModelTable = (props) => { ...@@ -210,6 +212,11 @@ const ModelTable = (props) => {
authActionTitles.push('更换管理'); authActionTitles.push('更换管理');
} }
if (getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && record.serviceDefinitionType === 'empty') {
authActionTitles.push('拖拉创建字段');
authActionTitles.push('自定义sql创建字段');
}
// if (getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && !isOnlyEnding && record.supportODataDisable) { // if (getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && !isOnlyEnding && record.supportODataDisable) {
// authActionTitles.push('下载Tableau tds'); // authActionTitles.push('下载Tableau tds');
// } // }
...@@ -459,6 +466,10 @@ const ModelTable = (props) => { ...@@ -459,6 +466,10 @@ const ModelTable = (props) => {
} else if (id === 'copyUri') { } else if (id === 'copyUri') {
copy(record.odata); copy(record.odata);
showMessage('success', 'URI复制成功'); showMessage('success', 'URI复制成功');
} else if (id === 'dragAttribute') {
app?.editServer?.({ dirId: catalogId, type: id });
} else if (id === 'sqlAttribute') {
app?.editServer?.({ dirId: catalogId, type: id });
} }
} }
......
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