Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
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
station
amos-convertor-view
Commits
5d9c615c
Commit
5d9c615c
authored
Feb 20, 2020
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加设备点位数据导出功能
parent
7e2c3792
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
+17
-3
urlConsts.js
src/consts/urlConsts.js
+1
-0
FileUtils.js
src/utils/FileUtils.js
+1
-1
MonitorPointConfig.js
...tLedger/FireResources/FireEquipment/MonitorPointConfig.js
+14
-1
PointToolBar.js
...uipmentLedger/FireResources/FireEquipment/PointToolBar.js
+1
-1
No files found.
src/consts/urlConsts.js
View file @
5d9c615c
...
...
@@ -209,6 +209,7 @@ export const FasSerUrl = {
getPlanTreeUrl
:
completePrefix
(
baseURI
,
'api/visual/plan/tree'
),
//获取预案树url
importExcelFireEquipmentPointUrl
:
completePrefix
(
baseURI
,
'api/excel/import/fireEquipmentPoint'
),
exportExcelFireEquipmentPointUrl
:
completePrefix
(
baseURI
,
'api/excel/export?exportType=model&modelName=point'
),
exportExcelFireEquipmentPointUrl2
:
completePrefix
(
baseURI
,
'api/excel/export2?exportType={exportType}&modelName={modelName}'
),
queryPointFMEAUrl
:
completePrefix
(
baseURI
,
'api/risksource/queryFmea/point/{pointId}'
),
fileDownloadDocs
:
completePrefix
(
baseURI
,
'file/download'
),
//查看文档
lookHtmlTextNavData
:
completePrefix
(
baseURI
,
'file/lookHtmlTextNav'
),
//文档转换为html,带导航
...
...
src/utils/FileUtils.js
View file @
5d9c615c
...
...
@@ -62,10 +62,10 @@ export const downLoadFilePost = (url,searchParam)=>{
method
:
'post'
,
headers
:
{
Accept
:
'application/vnd.ms-excel'
,
'Content-Type'
:
'application/json; charset=utf-8'
,
'X-Api-Key'
:
_amosTool
.
Store
.
getCookieByName
(
apiKey
),
'X-Access-Token'
:
ls
.
read
(
token
)
},
mode
:
'no-cors'
,
body
:
JSON
.
stringify
(
searchParam
)
}).
then
(
e
=>
{
e
.
blob
().
then
(
blob
=>
{
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/MonitorPointConfig.js
View file @
5d9c615c
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
formatUrl
from
'amos-processor/lib/utils/urlFormat'
;
import
{
Form
,
Input
,
AmosAlert
,
Button
,
Select
,
Modal
}
from
'amos-framework'
;
import
AmosGridTable
from
'./../../../common/tableComponent/table/AmosGridTable'
;
import
{
...
...
@@ -419,10 +420,22 @@ class MonitorPointConfig extends Component {
form
.
method
=
'POST'
;
document
.
body
.
appendChild
(
form
);
form
.
action
=
FasSerUrl
.
exportExcelFireEquipmentPointUrl
;
form
.
elements
.
push
();
form
.
submit
();
form
.
remove
();
}
downLoadExeclFile
=
()
=>
{
const
{
searchParam
}
=
this
.
state
;
let
exportType
=
'data'
;
let
modelName
=
'point'
;
let
url
=
formatUrl
(
FasSerUrl
.
exportExcelFireEquipmentPointUrl2
,
{
exportType
,
modelName
});
let
queryParamMap
=
{};
Object
.
assign
(
queryParamMap
,
searchParam
);
queryParamMap
.
pageSize
=
-
1
;
downLoadFilePost
(
url
,
queryParamMap
);
}
configEquip
=
()
=>
{
this
.
setState
({
show
:
true
,
...
...
@@ -457,7 +470,7 @@ class MonitorPointConfig extends Component {
delete
=
{()
=>
this
.
delete
()}
edit
=
{()
=>
this
.
edit
()}
config
=
{()
=>
this
.
configEquip
()}
downloadTemp
=
{
this
.
down
loadTemp
}
downloadTemp
=
{
this
.
down
LoadExeclFile
}
getTableListData
=
{
this
.
getMonitorPointListData
}
pageConfig
=
{
this
.
pageConfig
}
reload
=
{
this
.
reloadPage
}
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/PointToolBar.js
View file @
5d9c615c
...
...
@@ -87,7 +87,7 @@ class PointToolBar extends Component {
(
<
div
style
=
{{
float
:
'left'
}}
>
<
span
>
类型:
<
/span
>
<
Select
onChange
=
{(
e
,
value
)
=>
this
.
onSelectChange
(
e
,
value
)}
defaultValue
=
{
-
1
}
>
<
Select
onChange
=
{(
e
,
value
)
=>
this
.
onSelectChange
(
e
,
value
)}
>
<
Option
>
全部
<
/Option
>
<
Option
value
=
{
'SWITCH'
}
>
开关量
<
/Option
>
<
Option
value
=
{
'ANALOGUE'
}
>
模拟量
<
/Option
>
...
...
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