Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangtianqi
2 years ago
Commit
3657b873f77eb21b6867f79026be4e69ab71517e
1 parent
1c60119e
feat:删除admin.req的token
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
47 additions
and
47 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/alarmpolicyEdit.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmsubscribeIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmtemplateIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/application.js
hg-monitor-web-base/src/main/resources/static/src/controller/assetsProperty.js
hg-monitor-web-base/src/main/resources/static/src/controller/assetsRepairAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/assetscount.js
hg-monitor-web-base/src/main/resources/static/src/controller/bizupgradeAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/bustype.js
hg-monitor-web-base/src/main/resources/static/src/controller/bustypeAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/cmdbindex.js
hg-monitor-web-base/src/main/resources/static/src/controller/collectoradd.js
hg-monitor-web-base/src/main/resources/static/src/controller/collectorbindtask.js
hg-monitor-web-base/src/main/resources/static/src/controller/collectoredit.js
hg-monitor-web-base/src/main/resources/static/src/controller/collectorgenerate.js
hg-monitor-web-base/src/main/resources/static/src/controller/collectorlist.js
hg-monitor-web-base/src/main/resources/static/src/controller/ddicAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/deviceAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/devicehitchAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/dirctiveCheckTemplateAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/dutyIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/emergencyAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/extraAdd.js
hg-monitor-web-base/src/main/resources/static/src/controller/alarmpolicyEdit.js
View file @
3657b87
...
...
@@ -217,7 +217,7 @@ layui.define(['form', 'admin', 'laydate', 'common', 'sessions', 'reskpilist', 't
layer
.
load
(
!
[]
+
!!
{}
+
!
''
);
admin
.
req
({
url
:
domainName
+
'/api-web/policy/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/policy/save
'
,
data
:
JSON
.
stringify
(
policy
),
type
:
'post'
,
contentType
:
"application/json; charset=utf-8"
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/alarmsubscribeIndex.js
View file @
3657b87
...
...
@@ -105,7 +105,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions'], function
layer
.
close
(
index
);
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/alarmsubscribe/deleteByResIdsAndSubIds
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/alarmsubscribe/deleteByResIdsAndSubIds
'
,
data
:
{
resIds
:
resIdList
.
toString
(),
subIds
:
ids
.
toString
()
...
...
@@ -1010,7 +1010,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions'], function
targetId
:
targetId
};
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/bTypeSubscribe/insertOrChange
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/bTypeSubscribe/insertOrChange
'
,
type
:
'post'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
typeSubscribe
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/alarmtemplateIndex.js
View file @
3657b87
...
...
@@ -130,7 +130,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'reslist', 'sessions'
resIds
.
push
(
v
.
resId
);
})
admin
.
req
({
url
:
domainName
+
'/api-web/manage/resource/alarmTemplate?resIds='
+
resIds
.
toString
()
+
"&flag="
+
flag
+
'&alarmTempId='
+
tempIds
.
toString
()
+
'&accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/resource/alarmTemplate?resIds='
+
resIds
.
toString
()
+
"&flag="
+
flag
+
'&alarmTempId='
+
tempIds
.
toString
(),
done
:
function
(
res
)
{
if
(
res
.
success
)
{
layer
.
msg
(
"配置成功!"
,
{
offset
:
'15px'
,
icon
:
1
,
time
:
2000
},
function
()
{
...
...
@@ -208,7 +208,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'reslist', 'sessions'
layer
.
close
(
index
);
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/alarmtemplate/deleteByResIdsAndTempIds
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/alarmtemplate/deleteByResIdsAndTempIds
'
,
data
:
{
resIds
:
resIdList
.
toString
(),
tempIds
:
tempIds
.
toString
()
...
...
@@ -566,7 +566,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'reslist', 'sessions'
btn
:
[
'确定'
,
'取消'
]
//按钮
},
function
()
{
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/alarmtemplate/deleteByResIdsAndTempIds
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/alarmtemplate/deleteByResIdsAndTempIds
'
,
async
:
false
,
data
:
{
resIds
:
id
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/application.js
View file @
3657b87
...
...
@@ -211,7 +211,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
application
=
Object
.
assign
(
application
,
data
.
field
);
application
.
appCode
=
appCodePrefix
+
application
.
appCode
;
admin
.
req
({
url
:
domainName
+
'/api-web/manage/application/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/application/save
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
application
),
...
...
@@ -279,7 +279,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
layer
.
confirm
(
'确认要删除吗?'
,
{
icon
:
3
,
title
:
'提示'
},
function
()
{
loading
=
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/application/deleteById
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/application/deleteById
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
appIds
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/assetsProperty.js
View file @
3657b87
...
...
@@ -223,7 +223,7 @@ layui.define(['admin', 'table', 'common', 'sessions', 'form'], function (exports
if
(
propNameList
.
length
>
0
)
{
var
isExist
=
true
;
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/inspection/home/assets/checkId
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/inspection/home/assets/checkId
'
,
async
:
false
,
type
:
'POST'
,
contentType
:
'application/json'
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/assetsRepairAdd.js
View file @
3657b87
...
...
@@ -54,7 +54,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
delete
data
[
'select'
]
params
.
workReport
=
JSON
.
stringify
(
data
)
admin
.
req
({
url
:
domainName
+
'/api-room/assetsrepair/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-room/assetsrepair/save
'
,
data
:
JSON
.
stringify
(
params
),
type
:
'post'
,
contentType
:
"application/json; charset=utf-8"
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/assetscount.js
View file @
3657b87
...
...
@@ -154,7 +154,7 @@ layui.define(['tree', 'table', 'view', 'carousel', 'common', 'laytpl', 'sessions
//业务系统主机数
function
renderResCount
()
{
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/assetsCount/bustype
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/assetsCount/bustype
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -189,7 +189,7 @@ layui.define(['tree', 'table', 'view', 'carousel', 'common', 'laytpl', 'sessions
//资产类型主机数
function
renderResTypeCount
()
{
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/assetsCount/restype
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/assetsCount/restype
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -218,7 +218,7 @@ layui.define(['tree', 'table', 'view', 'carousel', 'common', 'laytpl', 'sessions
//业务系统主机数
function
renderDomainCount
()
{
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/assetsCount/domain
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/assetsCount/domain
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -257,7 +257,7 @@ layui.define(['tree', 'table', 'view', 'carousel', 'common', 'laytpl', 'sessions
//业务系统主机数
function
topLeftAreaInfo
()
{
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/assetsCount/countByType
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/assetsCount/countByType
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/bizupgradeAdd.js
View file @
3657b87
...
...
@@ -54,7 +54,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
delete
data
[
'select'
]
params
.
bizupgrade
=
JSON
.
stringify
(
data
)
admin
.
req
({
url
:
domainName
+
'/api-web/machineRoom/bizupgrade/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/machineRoom/bizupgrade/save
'
,
data
:
JSON
.
stringify
(
params
),
type
:
'post'
,
contentType
:
"application/json; charset=utf-8"
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/bustype.js
View file @
3657b87
...
...
@@ -597,7 +597,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'laytpl', 'common', 'view', 'se
resIds
:
arrResIds
.
toString
()
};
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/bResource/resourceByResId
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/bResource/resourceByResId
'
,
type
:
'post'
,
data
:
JSON
.
stringify
(
map
),
contentType
:
"application/json;charset=utf-8"
,
...
...
@@ -671,7 +671,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'laytpl', 'common', 'view', 'se
resIds
:
arrResIds
.
toString
()
};
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/bResource/resourceByResId
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/bResource/resourceByResId
'
,
type
:
'post'
,
data
:
JSON
.
stringify
(
map
),
contentType
:
"application/json;charset=utf-8"
,
...
...
@@ -793,7 +793,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'laytpl', 'common', 'view', 'se
layer
.
confirm
(
'确认要删除吗?'
,
{
icon
:
3
,
title
:
'提示'
},
function
()
{
loading
=
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/bustype/deleteByIds
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/bustype/deleteByIds
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
busIds
),
...
...
@@ -822,7 +822,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'laytpl', 'common', 'view', 'se
function
add
(
addResLayerIndex
,
inserts
,
busId
,
insertCount
,
isExistCount
,
resType
)
{
// 发送请求添加绑定
admin
.
req
({
url
:
domainName
+
'/api-web/manage/bustype/addResource/'
+
busId
+
'?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/bustype/addResource/'
+
busId
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -848,7 +848,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'laytpl', 'common', 'view', 'se
//取消绑定
function
del
(
busId
,
deletes
,
resType
)
{
admin
.
req
({
url
:
domainName
+
'/api-web/manage/bustype/deleteResource/'
+
busId
+
'?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/bustype/deleteResource/'
+
busId
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/bustypeAdd.js
View file @
3657b87
...
...
@@ -98,7 +98,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'laytpl', 'common', 'view', 'se
busType
.
nickname
=
userSelect
.
getValue
(
"name"
)[
0
]
delete
busType
.
select
admin
.
req
({
url
:
domainName
+
'/api-web/manage/bustype/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/bustype/save
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
busType
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/cmdbindex.js
View file @
3657b87
...
...
@@ -13,7 +13,7 @@ layui.define(['table', 'view', 'carousel', 'common', 'laytpl', 'sessions', 'admi
accessToken
=
common
.
getMjToken
();
// top
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getResCountByNormType
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getResCountByNormType
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -28,7 +28,7 @@ layui.define(['table', 'view', 'carousel', 'common', 'laytpl', 'sessions', 'admi
});
//主机
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getHostResCount
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getHostResCount
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -56,7 +56,7 @@ layui.define(['table', 'view', 'carousel', 'common', 'laytpl', 'sessions', 'admi
});
//数据库、中间件、虚拟化
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getDBVResCount
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getDBVResCount
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -92,7 +92,7 @@ layui.define(['table', 'view', 'carousel', 'common', 'laytpl', 'sessions', 'admi
});
//网络设备
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getWLSBResCount
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getWLSBResCount
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -116,7 +116,7 @@ layui.define(['table', 'view', 'carousel', 'common', 'laytpl', 'sessions', 'admi
});
//业务系统主机数
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getBusResCount
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getBusResCount
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
@@ -139,7 +139,7 @@ layui.define(['table', 'view', 'carousel', 'common', 'laytpl', 'sessions', 'admi
});
//分使用单位统计主机数
admin
.
req
({
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getGroupResCount
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/cmdb/resource/getGroupResCount
'
,
type
:
"GET"
,
dataType
:
"json"
,
success
:
function
(
res
)
{
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/collectoradd.js
View file @
3657b87
...
...
@@ -212,7 +212,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'admin', 'reslist', 'alarms
return
false
;
}
admin
.
req
({
url
:
domainName
+
'/api-web/manage/collector/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/collector/save
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
collector
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/collectorbindtask.js
View file @
3657b87
...
...
@@ -106,7 +106,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'view', 'admin', 'element',
task
=
Object
.
assign
(
task
,
data
.
field
);
loading
=
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/task/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/task/save
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
task
),
...
...
@@ -169,7 +169,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'view', 'admin', 'element',
}
loading
=
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/collector/addTask/'
+
collectorId
+
'?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/collector/addTask/'
+
collectorId
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
taskIds
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/collectoredit.js
View file @
3657b87
...
...
@@ -27,7 +27,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'admin', 'reslist', 'alarms
collector
=
Object
.
assign
(
collector
,
data
.
field
);
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/collector/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/collector/save
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
collector
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/collectorgenerate.js
View file @
3657b87
...
...
@@ -131,7 +131,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'admin', 'reslist', 'alarms
collector
=
Object
.
assign
(
collector
,
data
.
field
);
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/collector/generate
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/collector/generate
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
collector
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/collectorlist.js
View file @
3657b87
...
...
@@ -316,7 +316,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'view', 'admin', 'upload',
// return;
// }
admin
.
req
({
url
:
domainName
+
'/api-web/manage/collector/sync
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/collector/sync
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
collector
),
...
...
@@ -497,7 +497,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'view', 'admin', 'upload',
function
getByCollectorId
(
collectorId
)
{
var
reslist
=
layui
.
reslist
();
admin
.
req
({
url
:
domainName
+
'/api-web/trapoid/getByCollectorId?collectorId='
+
collectorId
+
'&accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/trapoid/getByCollectorId?collectorId='
+
collectorId
,
type
:
'GET'
,
contentType
:
'application/json'
,
}).
done
(
function
(
response
)
{
...
...
@@ -522,7 +522,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'view', 'admin', 'upload',
resIds
:
resIds
}
admin
.
req
({
url
:
domainName
+
'/api-web/trapoid/saveTrapConfigBatch
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/trapoid/saveTrapConfigBatch
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
param
),
...
...
@@ -599,7 +599,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'view', 'admin', 'upload',
layer
.
confirm
(
'将要删除'
+
collectorIds
.
length
+
'条数据,该操作无法恢复,是否确定?'
,
{
icon
:
7
},
function
()
{
loading
=
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/collector/deleteByIds
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/collector/deleteByIds
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
collectorIds
),
...
...
@@ -637,7 +637,7 @@ layui.define(['table', 'form', 'sessions', 'common', 'view', 'admin', 'upload',
$btn
.
removeClass
(
'layui-btn-normal'
);
$btn
.
addClass
(
'layui-disabled'
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/collector/syncByCollectorIdList
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/collector/syncByCollectorIdList
'
,
type
:
'POST'
,
timeout
:
collectorIdList
.
length
*
1000
*
30
+
10000
,
contentType
:
'application/json'
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/ddicAdd.js
View file @
3657b87
...
...
@@ -113,7 +113,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
}
// 判断服务器是否有重复的
admin
.
req
({
url
:
domainName
+
'/api-web/manage/ddic/checkoutDdic
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/ddic/checkoutDdic
'
,
async
:
false
,
type
:
'POST'
,
data
:
params
...
...
@@ -140,7 +140,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
ddic
.
oldDdicCode
=
oldDdicCode
;
layer
.
load
(
2
);
admin
.
req
({
url
:
domainName
+
'/api-web/manage/ddic/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/ddic/save
'
,
type
:
'POST'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
ddic
),
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/deviceAdd.js
View file @
3657b87
...
...
@@ -89,7 +89,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'laydate'
params
.
deviceRecord
=
JSON
.
stringify
(
data
);
console
.
log
(
params
)
admin
.
req
({
url
:
domainName
+
'/api-web/machineRoom/machineRoomEnterDevice/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/machineRoom/machineRoomEnterDevice/save
'
,
data
:
JSON
.
stringify
(
params
),
type
:
'post'
,
contentType
:
"application/json; charset=utf-8"
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/devicehitchAdd.js
View file @
3657b87
...
...
@@ -59,7 +59,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
delete
data
[
'select'
]
params
.
devicehitch
=
JSON
.
stringify
(
data
)
admin
.
req
({
url
:
domainName
+
'/api-web/machineRoom/devicehitch/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/machineRoom/devicehitch/save
'
,
data
:
JSON
.
stringify
(
params
),
type
:
'post'
,
contentType
:
"application/json; charset=utf-8"
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/dirctiveCheckTemplateAdd.js
View file @
3657b87
...
...
@@ -125,7 +125,7 @@ layui.define(['table', 'form', 'laydate', 'common', 'sessions', 'laydate', 'admi
bean
[
'arr'
]
=
arr
;
admin
.
req
({
type
:
'post'
,
url
:
common
.
domainName
+
'/api-web/manage/dirctive/saveCheckTemplate
?accessToken='
+
accessToken
,
url
:
common
.
domainName
+
'/api-web/manage/dirctive/saveCheckTemplate
'
,
contentType
:
"application/json; charset=utf-8"
,
data
:
JSON
.
stringify
(
bean
),
success
:
function
(
res
)
{
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/dutyIndex.js
View file @
3657b87
...
...
@@ -463,7 +463,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
changeUserAccount
}
admin
.
req
({
url
:
domainName
+
'/api-web/manage/duty/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/duty/save
'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -489,7 +489,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
function
iSExchange
(
id
)
{
var
value
=
false
;
admin
.
req
({
url
:
domainName
+
'/api-web/manage/duty/queryExchange
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/duty/queryExchange
'
,
async
:
false
,
data
:
{
id
:
id
},
}).
done
(
function
(
response
)
{
...
...
@@ -505,7 +505,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
function
iSExchangeClass
(
id
)
{
var
value
=
false
;
admin
.
req
({
url
:
domainName
+
'/api-web/manage/duty/queryExchangeClass
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/manage/duty/queryExchangeClass
'
,
async
:
false
,
data
:
{
id
:
id
},
}).
done
(
function
(
response
)
{
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/emergencyAdd.js
View file @
3657b87
...
...
@@ -93,7 +93,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
delete
data
[
'select'
]
params
.
emergency
=
JSON
.
stringify
(
data
)
admin
.
req
({
url
:
domainName
+
'/api-web/emergency/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/emergency/save
'
,
data
:
JSON
.
stringify
(
params
),
type
:
'post'
,
contentType
:
"application/json; charset=utf-8"
,
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/extraAdd.js
View file @
3657b87
...
...
@@ -59,7 +59,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect
delete
data
[
'select'
]
params
.
extra
=
JSON
.
stringify
(
data
)
admin
.
req
({
url
:
domainName
+
'/api-web/machineRoom/extra/save
?accessToken='
+
accessToken
,
url
:
domainName
+
'/api-web/machineRoom/extra/save
'
,
data
:
JSON
.
stringify
(
params
),
type
:
'post'
,
contentType
:
"application/json; charset=utf-8"
,
...
...
Please
register
or
login
to post a comment