Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
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
王衍超
rbc-demo
Commits
260605f4
Commit
260605f4
authored
Mar 24, 2022
by
raojiaguan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
林草相关扩展
parent
97a292db
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
177 additions
and
2 deletions
+177
-2
lincaoAddView.js
...p/@gms/gms-plugin-billexpand/src/actions/lincaoAddView.js
+15
-0
updateStateLincaoAction.js
...-plugin-billexpand/src/actions/updateStateLincaoAction.js
+0
-1
updateStateLincaoActionExtend.js
...n-billexpand/src/actions/updateStateLincaoActionExtend.js
+64
-0
lincaoView.vue
...lop/@gms/gms-plugin-billexpand/src/control/lincaoView.vue
+37
-0
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+56
-0
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+5
-1
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/lincaoAddView.js
0 → 100644
View file @
260605f4
import
lincaoView
from
'../control/lincaoView.vue'
export
default
{
execute
:
function
(
bill
,
param
)
{
// if (param.param.ipAddress && param.param.layerIds && bill.dom.billdata.JBR) {
GMS
.
$hideContainer
.
addComponent
(
lincaoView
,
{},
function
(
c
)
{
debugger
c
.
url
=
`http://
${
param
.
param
.
ipAddress
}
/jq/addAssociateDatas.do?unitCode=
${
nros
.
getUser
().
loginUnit
}
&layerIds=
${
param
.
param
.
layerIds
}
&projectNum=
${
bill
.
dom
.
billdata
.
JBR
}
`
c
.
modalShow
=
true
;
})
// } else {
// GAMS.Common.messagePrompt('缺少参数')
// }
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/actions/updateStateLincaoAction.js
View file @
260605f4
...
@@ -24,7 +24,6 @@ export default {
...
@@ -24,7 +24,6 @@ export default {
});
});
},
},
updateFieldAction
(
bill
,
param
)
{
updateFieldAction
(
bill
,
param
)
{
debugger
let
_actions
=
param
.
param
.
actions
;
let
_actions
=
param
.
param
.
actions
;
let
define
=
param
.
define
;
let
define
=
param
.
define
;
let
postData
=
{
let
postData
=
{
...
...
develop/@gms/gms-plugin-billexpand/src/actions/updateStateLincaoActionExtend.js
0 → 100644
View file @
260605f4
/*
* @Author: rao JiaGuan
* @Date: 2022年3月24日11:15:52
* @LastEditors: rao JiaGuan
* @Description: 林草项目状态修改扩展
*/
export
default
{
execute
:
function
(
bill
,
param
)
{
let
msg
;
if
(
param
.
param
.
clickMessage
){
msg
=
param
.
param
.
clickMessage
}
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"信息提示"
,
content
:
msg
,
onOk
:
()
=>
{
this
.
updateFieldAction
(
bill
,
param
);
},
onCancel
:
()
=>
{
GMS
.
$hideContainer
.
$Message
[
"error"
]({
content
:
"已取消"
,
});
},
});
},
updateFieldAction
(
bill
,
param
)
{
let
_actions
=
param
.
param
.
actions
;
let
define
=
param
.
define
;
let
postData
=
{
data
:
bill
.
getBuillData
(),
};
let
url
=
`/gms/bill/executed/
${
define
}
/
${
_actions
}
?transmission=total`
;
GMS
.
$http
.
post
(
url
,
postData
,
{
headers
:
{
post
:
{
"Content-Type"
:
"application/json"
,
},
},
})
.
then
((
res
)
=>
{
if
(
res
.
status
==
200
&&
res
.
data
.
code
==
0
)
{
const
masterName
=
bill
.
billdata
.
billTable
.
masterName
;
let
successMessage
;
if
(
param
.
param
.
successMessage
){
successMessage
=
param
.
param
.
successMessage
}
GMS
.
vbus
.
$Message
.
success
(
successMessage
);
// 刷新页面
GMS
.
vbus
.
$emit
(
"custom-query-refresh"
);
GMS
.
vbus
.
$emit
(
"tab-count-refresh"
);
GMS
.
vbus
.
$emit
(
"submitSuccess"
);
}
else
if
(
res
.
data
.
code
==
-
1
&&
res
.
data
.
message
)
{
let
stringOne
=
res
.
data
.
message
.
split
(
":"
)[
1
];
let
stringResult
=
stringOne
.
split
(
";"
)[
0
];
GMS
.
vbus
.
$Message
.
error
(
stringResult
);
}
else
{
res
.
data
.
message
&&
GMS
.
vbus
.
$Message
.
error
(
res
.
data
.
message
);
}
});
},
};
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/control/lincaoView.vue
0 → 100644
View file @
260605f4
<
template
>
<div>
<el-dialog
:visible
.
sync=
"dialogVisible"
width=
"80%"
v-dialogDrag
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<iframe
:src=
"url"
></iframe>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
{
props
:
{},
data
()
{
return
{
dialogVisible
:
true
,
url
:
""
,
};
},
watch
:
{
},
methods
:
{
eventListener
(
message
){
}
},
mounted
()
{
windows
.
addEventListener
(
'message'
,
eventListener
)
},
};
</
script
>
<
style
scoped
lang=
"less"
></
style
>
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
260605f4
...
@@ -1312,6 +1312,41 @@ export default {
...
@@ -1312,6 +1312,41 @@ export default {
},
},
{
{
"discard"
:
false
,
"discard"
:
false
,
"path"
:
"一体化/通用"
,
"extends"
:
{
"param"
:
[
{
"icon"
:
"#iconbianji"
,
"selectType"
:
"card"
,
"componentName"
:
"successMessage"
,
"type"
:
"string"
,
"title"
:
"成功后提醒语"
,
"key"
:
"successMessage"
},
{
"icon"
:
"#iconbianji"
,
"selectType"
:
"card"
,
"componentName"
:
"clickMessage"
,
"type"
:
"string"
,
"title"
:
"点击后提示语"
,
"key"
:
"clickMessage"
},
{
"ref"
:
"gams2.bill"
,
"type"
:
"select"
,
"title"
:
"执行动作"
,
"key"
:
"actions"
,
"innerRef"
:
"actions"
},
]
},
"description"
:
""
,
"title"
:
"修改状态通用扩展[updateStateLincaoActionExtend]"
,
"value"
:
"updateStateLincaoActionExtend"
,
"btnDisable"
:
"false"
},
{
"discard"
:
false
,
"path"
:
"资产/通用"
,
"path"
:
"资产/通用"
,
"extends"
:
{
"extends"
:
{
"param"
:
[{
"param"
:
[{
...
@@ -1515,6 +1550,27 @@ export default {
...
@@ -1515,6 +1550,27 @@ export default {
},
},
{
{
"discard"
:
false
,
"discard"
:
false
,
"path"
:
"林草报销/专用"
,
"extends"
:
{
"param"
:
[{
"isRequired"
:
false
,
"title"
:
"请求路径ip地址"
,
"key"
:
"ipAddress"
,
"type"
:
"String"
,
},{
"isRequired"
:
false
,
"title"
:
"layerIds"
,
"key"
:
"layerIds"
,
"type"
:
"String"
,
}]
},
"description"
:
""
,
"title"
:
"林草新增视图关联[lincaoAddView]"
,
"value"
:
"lincaoAddView"
,
"alwaysUse"
:
true
},
{
"discard"
:
false
,
"path"
:
"资产/通用"
,
"path"
:
"资产/通用"
,
"extends"
:
{
"extends"
:
{
"param"
:
[{
"param"
:
[{
...
...
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
260605f4
...
@@ -10,6 +10,7 @@ import showDetailSPAction from './actions/showDetailSPAction';
...
@@ -10,6 +10,7 @@ import showDetailSPAction from './actions/showDetailSPAction';
import
editAction
from
'./actions/editAction'
;
import
editAction
from
'./actions/editAction'
;
import
updatebillStateAction
from
'./actions/updatebillStateAction'
;
import
updatebillStateAction
from
'./actions/updatebillStateAction'
;
import
updateStateLincaoAction
from
'./actions/updateStateLincaoAction'
;
import
updateStateLincaoAction
from
'./actions/updateStateLincaoAction'
;
import
updateStateLincaoActionExtend
from
'./actions/updateStateLincaoActionExtend'
;
import
draftSearchAction
from
'./actions/draftSearchAction'
;
import
draftSearchAction
from
'./actions/draftSearchAction'
;
import
draftSaveAction
from
'./actions/draftSaveAction'
;
import
draftSaveAction
from
'./actions/draftSaveAction'
;
import
copyBillAction
from
'./actions/copyBillAction'
;
import
copyBillAction
from
'./actions/copyBillAction'
;
...
@@ -38,6 +39,7 @@ import CW_imageView from './actions/imageView'
...
@@ -38,6 +39,7 @@ import CW_imageView from './actions/imageView'
import
relateInvoiceAction
from
'./actions/relateInvoiceAction.js'
import
relateInvoiceAction
from
'./actions/relateInvoiceAction.js'
import
deleteInvoiceAction
from
'./actions/deleteInvoiceAction.js'
import
deleteInvoiceAction
from
'./actions/deleteInvoiceAction.js'
import
saveActionBXD
from
'./actions/saveActionBXD'
;
import
saveActionBXD
from
'./actions/saveActionBXD'
;
import
lincaoAddView
from
'./actions/lincaoAddView'
;
//queryAction
//queryAction
import
leafletGenerationAction
from
'./query-actions/leafletGenerationAction.js'
import
leafletGenerationAction
from
'./query-actions/leafletGenerationAction.js'
import
leafletGenerationTYAction
from
'./query-actions/leafletGenerationTYAction.js'
import
leafletGenerationTYAction
from
'./query-actions/leafletGenerationTYAction.js'
...
@@ -220,7 +222,8 @@ export default {
...
@@ -220,7 +222,8 @@ export default {
throughQuery
,
throughQuery
,
deleteInvoiceAction
,
deleteInvoiceAction
,
simpleAdvanceDeleteAction
,
simpleAdvanceDeleteAction
,
queryDeleteBill
queryDeleteBill
,
lincaoAddView
},
},
billAction
:
{
billAction
:
{
printMultiAction
,
printMultiAction
,
...
@@ -235,6 +238,7 @@ export default {
...
@@ -235,6 +238,7 @@ export default {
editAction
,
editAction
,
updatebillStateAction
,
updatebillStateAction
,
updateStateLincaoAction
,
updateStateLincaoAction
,
updateStateLincaoActionExtend
,
draftSearchAction
,
draftSearchAction
,
draftSaveAction
,
draftSaveAction
,
draftFixBugAction
,
draftFixBugAction
,
...
...
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