Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-tool
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tool
web-tool
Commits
5cbf7fd2
Commit
5cbf7fd2
authored
Dec 19, 2023
by
Gwofoo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了运行不了的bug
parent
0862891d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
39 deletions
+30
-39
index.js
packages/graphmod-assets/src/index.js
+1
-7
api.js
packages/graphmod-atl/src/api.js
+4
-3
DownloadView.js
packages/graphmod-atl/src/download/DownloadView.js
+4
-24
index.js
packages/graphmod-atl/src/index.js
+2
-2
Scene.js
packages/graphmod-atl/src/scene/Scene.js
+9
-1
index.js
packages/graphmod-atl/src/scene/index.js
+2
-2
api.js
packages/graphmod-utils/src/api.js
+8
-0
No files found.
packages/graphmod-assets/src/index.js
View file @
5cbf7fd2
...
@@ -131,12 +131,6 @@ const common = {
...
@@ -131,12 +131,6 @@ const common = {
alertmergeIcon
:
require
(
'./../assets/common/alertmergeIcon.png'
)
alertmergeIcon
:
require
(
'./../assets/common/alertmergeIcon.png'
)
};
};
const
alarm
=
{
alarmRed
:
require
(
'../assets/alarm/light-red.gif'
),
alarmGreen
:
require
(
'../assets/alarm/light-green.gif'
)
};
export
default
{
export
default
{
common
,
common
alarm
};
};
packages/graphmod-atl/src/api.js
View file @
5cbf7fd2
...
@@ -21,7 +21,8 @@ const {
...
@@ -21,7 +21,8 @@ const {
export
const
UrlConsts
=
{
export
const
UrlConsts
=
{
deleteAgency
:
(
url
)
=>
completePrefix
(
baseURI
,
'atl/agency/relation/{agencyCode}/{sequenceNbrs}'
),
deleteAgency
:
(
url
)
=>
completePrefix
(
baseURI
,
'atl/agency/relation/{agencyCode}/{sequenceNbrs}'
),
exportAgency
:
(
url
)
=>
completePrefix
(
baseURI
,
'atl/agency/export/{agencyCode}/{sequenceNbrs}'
),
// exportAgency: (url) => completePrefix(baseURI, 'atl/agency/export/{agencyCode}/{sequenceNbrs}'),
exportAgency
:
(
url
)
=>
completePrefix
(
baseURI
,
'atl/agency/export/{agencyCode}/{ipSeq}/{sequenceNbrs}'
),
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'atl/v1/dataApi/generateSQL'
)
// 通用导出SQL脚本 get
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'atl/v1/dataApi/generateSQL'
)
// 通用导出SQL脚本 get
};
};
...
@@ -42,6 +43,6 @@ export const templateDownload = (params) => {
...
@@ -42,6 +43,6 @@ export const templateDownload = (params) => {
/**
/**
* 导出机构
* 导出机构
*/
*/
export
const
exportByAgencyCode
=
(
agencyCode
,
sequenceNbrs
)
=>
{
export
const
exportByAgencyCode
=
(
agencyCode
,
ipSeq
,
sequenceNbrs
)
=>
{
return
fileDownload
({
url
:
formatUrl
(
UrlConsts
.
exportAgency
(),
{
agencyCode
,
sequenceNbrs
})
});
return
fileDownload
({
url
:
formatUrl
(
UrlConsts
.
exportAgency
(),
{
agencyCode
,
ipSeq
,
sequenceNbrs
})
});
};
};
packages/graphmod-atl/src/download/DownloadView.js
View file @
5cbf7fd2
...
@@ -55,6 +55,7 @@ class DownloadView extends Component {
...
@@ -55,6 +55,7 @@ class DownloadView extends Component {
break
;
break
;
case
'exportAgency'
:
case
'exportAgency'
:
agencyCode
=
LocationParam
.
getLocationParamByName
(
'agencyCode'
);
agencyCode
=
LocationParam
.
getLocationParamByName
(
'agencyCode'
);
ipSeq
=
LocationParam
.
getLocationParamByName
(
'ipSeq'
);
break
;
break
;
case
'export'
:
case
'export'
:
ipSeq
=
LocationParam
.
getLocationParamByName
(
'ipSeq'
);
ipSeq
=
LocationParam
.
getLocationParamByName
(
'ipSeq'
);
...
@@ -73,7 +74,8 @@ class DownloadView extends Component {
...
@@ -73,7 +74,8 @@ class DownloadView extends Component {
break
;
break
;
case
'exportAgency'
:
{
case
'exportAgency'
:
{
sequenceNbrs
=
dataConfig
[
dataConfig
.
dimension
];
sequenceNbrs
=
dataConfig
[
dataConfig
.
dimension
];
exportByAgencyCode
(
agencyCode
,
sequenceNbrs
);
// exportByAgencyCode(agencyCode, sequenceNbrs);
exportByAgencyCode
(
agencyCode
,
ipSeq
,
sequenceNbrs
);
}
}
break
;
break
;
case
'export'
:
case
'export'
:
...
@@ -86,32 +88,10 @@ class DownloadView extends Component {
...
@@ -86,32 +88,10 @@ class DownloadView extends Component {
}
else
{
}
else
{
briskWarningTip
(
'至少选择一行数据'
);
briskWarningTip
(
'至少选择一行数据'
);
}
}
// this.setState({ selectId: dataConfig[dataConfig.dimension], logsVisible: true }, () => {
// switch (dataConfig.type) {
// case 'deleteAgency':
// {
// sequenceNbrs = dataConfig[dataConfig.dimension];
// deleteByAgencyCode(agencyCode, sequenceNbrs);
// }
// break;
// case 'exportAgency':
// {
// sequenceNbrs = dataConfig[dataConfig.dimension];
// exportByAgencyCode(agencyCode,sequenceNbrs);
// }
// break;
// case 'export':
// templateDownload({ resourceCode: dataConfig.resourceCode, dimension: dataConfig.dimension, [dataConfig.dimension]: dataConfig[dataConfig.dimension], ipSeq });
// break;
// }
// });
};
};
render
()
{
render
()
{
const
{
dataConfig
=
{}
}
=
this
.
props
;
const
{
dataConfig
=
{}
,
record
}
=
this
.
props
;
const
{
logsVisible
,
selectId
}
=
this
.
state
;
const
{
logsVisible
,
selectId
}
=
this
.
state
;
switch
(
dataConfig
.
type
)
{
switch
(
dataConfig
.
type
)
{
...
...
packages/graphmod-atl/src/index.js
View file @
5cbf7fd2
...
@@ -3,11 +3,11 @@ import { chainModResult } from 'amos-viz/lib/widgets/modLoader';
...
@@ -3,11 +3,11 @@ import { chainModResult } from 'amos-viz/lib/widgets/modLoader';
import
'./index.scss'
;
import
'./index.scss'
;
import
'./cssvar.scss'
;
import
'./cssvar.scss'
;
import
Download
from
'./download'
;
import
Download
from
'./download'
;
import
S
hifting
from
'./siftingSort
'
;
import
S
cene
from
'./scene
'
;
const
IMods
=
[
const
IMods
=
[
...
Download
,
...
Download
,
...
S
hifting
...
S
cene
];
];
export
default
chainModResult
(
IMods
).
mods
;
export
default
chainModResult
(
IMods
).
mods
;
packages/graphmod-atl/src/scene/Scene.js
View file @
5cbf7fd2
...
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
...
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
import
PropTypes
from
'prop-types'
;
import
PropTypes
from
'prop-types'
;
import
{
Tabs
,
TagSelect
,
StdFormRow
,
CardPane
,
Row
,
Col
}
from
'amos-framework'
;
import
{
Tabs
,
TagSelect
,
StdFormRow
,
CardPane
,
Row
,
Col
}
from
'amos-framework'
;
import
{
getSortSences
}
from
'./api'
;
import
{
getSortSences
}
from
'./api'
;
import
{
commonGet
}
from
'@gm/graphmod-utils/src/request'
;
import
'./index.scss'
;
import
'./index.scss'
;
...
@@ -14,7 +15,14 @@ function ListCards({ cardItems }) {
...
@@ -14,7 +15,14 @@ function ListCards({ cardItems }) {
// console.log("传入ListCards中的carditems:")
// console.log("传入ListCards中的carditems:")
// console.log(cardItems)
// console.log(cardItems)
function
handleClick
()
{
function
handleClick
()
{
window
.
open
(
this
);
// window.open(this);
// 向后端先发送
const
backendUrl
=
"http://172.16.0.120:30002/atl/forward?url="
+
encodeURIComponent
(
this
);
commonGet
(
backendUrl
).
then
(
data
=>
{
console
.
log
(
'Data:'
,
data
);
window
.
open
(
this
+
"&token="
+
data
);
});
}
}
for
(
let
i
=
0
;
i
<
cardItems
.
length
;
i
+=
4
)
{
for
(
let
i
=
0
;
i
<
cardItems
.
length
;
i
+=
4
)
{
...
...
packages/graphmod-atl/src/scene/index.js
View file @
5cbf7fd2
import
S
hifting
from
'./Sort
'
;
import
S
cene
from
'./Scene
'
;
export
default
[
export
default
[
{
{
key
:
'atl-shifting'
,
// 筛选缩略图显示页面
key
:
'atl-shifting'
,
// 筛选缩略图显示页面
component
:
S
hifting
component
:
S
cene
}
}
];
];
packages/graphmod-utils/src/api.js
View file @
5cbf7fd2
...
@@ -12,6 +12,7 @@ export const UrlConsts = {
...
@@ -12,6 +12,7 @@ export const UrlConsts = {
dictListUrl
:
url
=>
completePrefix
(
baseURI
,
'systemctl/v1/dictionary/{dictCode}/values'
),
// 根据字典标识获取字典列表 get
dictListUrl
:
url
=>
completePrefix
(
baseURI
,
'systemctl/v1/dictionary/{dictCode}/values'
),
// 根据字典标识获取字典列表 get
platFormUploadfileUrl
:
url
=>
completePrefix
(
baseURI
,
'systemctl/v1/filestorage'
),
// 平台文件服务器上传接口
platFormUploadfileUrl
:
url
=>
completePrefix
(
baseURI
,
'systemctl/v1/filestorage'
),
// 平台文件服务器上传接口
lookFileUrl
:
url
=>
completePrefix
(
'/fileURI/'
,
url
),
// 查看图片 fileURI需要走转向代理
lookFileUrl
:
url
=>
completePrefix
(
'/fileURI/'
,
url
),
// 查看图片 fileURI需要走转向代理
getRegionUrl
:
url
=>
completePrefix
(
baseURI
,
'systemctl/v1/region/tree'
),
// 获取行政区划
remoteUrl
:
completePrefix
(
baseURI
,
'morphic/biz/url'
),
// 请求第三方系统 api, post,需要传入第三方api 地址
remoteUrl
:
completePrefix
(
baseURI
,
'morphic/biz/url'
),
// 请求第三方系统 api, post,需要传入第三方api 地址
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'studio/v1/dataApi/generateSQL'
)
// 通用导出SQL脚本 get
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'studio/v1/dataApi/generateSQL'
)
// 通用导出SQL脚本 get
};
};
...
@@ -40,6 +41,13 @@ export const fileUploadAction = file => {
...
@@ -40,6 +41,13 @@ export const fileUploadAction = file => {
};
};
/**
/**
* 获取行政区划
*/
export
const
getRegion
=
()
=>
{
return
commonGet
(
formatUrl
(
UrlConsts
.
getRegionUrl
()));
};
/**
* 图片文件路径补全
* 图片文件路径补全
* @param {string} fileUrl
* @param {string} fileUrl
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment