Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1a1a7e15
authored
2021-01-21 13:53:31 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
宗地提交审核流程开发和接口联调
1 parent
ebd8e744
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
229 additions
and
44 deletions
src/api/dbx.js
src/api/user.js
src/assets/less/main.less
src/components/lcytj/index.vue
src/views/dbx/dbxinfo/index.vue
src/views/dbx/index.vue
src/views/manage/dictionary/index.vue
src/views/panel/create/index.vue
src/views/zd/zddcb/index.vue
src/api/dbx.js
View file @
1a1a7e1
...
...
@@ -4,7 +4,7 @@ import request from '@/plugin/axios'
*/
export
function
getDbxList
(
data
)
{
return
request
({
url
:
'/
system/basiccommon/query
Dbx'
,
url
:
'/
qj/workarea/get
Dbx'
,
method
:
'post'
,
data
:
data
,
})
...
...
src/api/user.js
View file @
1a1a7e1
...
...
@@ -19,3 +19,33 @@ export function getInfo(token) {
params
:
{
token
}
})
}
/**
* 创建工作流
*/
export
function
createProcessInstance
(
data
)
{
return
request
({
url
:
'/workflow/createProcessInstance'
,
method
:
'post'
,
data
:
data
})
}
/**
* 流程的预提交
*/
export
function
pretransitProcess
(
data
)
{
return
request
({
url
:
'/workflow/pretransitProcess'
,
method
:
'post'
,
data
:
data
})
}
/**
* 流程提交
*/
export
function
transitProcess
(
data
)
{
return
request
({
url
:
'/workflow/transitProcess'
,
method
:
'post'
,
data
:
data
})
}
...
...
src/assets/less/main.less
View file @
1a1a7e1
...
...
@@ -370,3 +370,7 @@ ol, ul { list-style:none; }
background-color: #00cacd;
border-color: #00cacd;
}
//表格划过行背景色
.el-table--enable-row-hover .el-table__body tr:hover>td{
background-color: #F5FBFF;
}
\ No newline at end of file
...
...
src/components/lcytj/index.vue
0 → 100644
View file @
1a1a7e1
<
template
>
<el-dialog
v-dialogDrag
:close-on-click-modal=
"false"
title=
"选择审批人"
:visible
.
sync=
"visible"
width=
"500px"
@
close=
"visible = false"
:modal-append-to-body=
"false"
>
<div
class=
"spr"
>
<el-radio
v-model=
"spr"
:label=
"item.activityInstance"
v-for=
"item in sprList"
:key=
"item.activityInstance"
border
>
{{
item
.
name
}}
</el-radio
>
</div>
<div
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"confirm"
>
确 定
</el-button>
<el-button
@
click=
"visible = false"
>
取 消
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
{
pretransitProcess
,
transitProcess
}
from
"@api/user"
;
export
default
{
name
:
""
,
components
:
{},
props
:
{
visible
:
{
type
:
Boolean
,
default
:
function
()
{
return
false
;
},
},
workitemInstanceId
:
{
type
:
String
,
default
:
""
,
},
},
data
()
{
return
{
spr
:
""
,
sprList
:
[],
};
},
created
()
{},
mounted
()
{},
methods
:
{
confirm
()
{
let
params
=
{
executeActors
:
this
.
sprList
.
filter
(
i
=>
i
.
activityInstance
==
this
.
spr
),
message
:
""
,
params
:
{},
targetNodes
:
[],
workitemInstanceId
:
this
.
$route
.
query
.
workitemInstanceId
};
transitProcess
(
params
).
then
((
res
)
=>
{
this
.
$message
.
success
(
"提交成功!"
)
});
},
getSpr
()
{
let
params
=
{
params
:
{},
workitemInstanceId
:
this
.
$route
.
query
.
workitemInstanceId
,
};
pretransitProcess
(
params
).
then
((
res
)
=>
{
this
.
sprList
=
res
[
0
].
masterActors
;
this
.
spr
=
res
[
0
].
masterActors
[
0
].
activityInstance
;
});
},
},
computed
:
{},
watch
:
{
visible
:
{
handler
(
val
)
{
if
(
val
)
{
this
.
getSpr
();
}
},
immediate
:
true
,
},
},
};
</
script
>
<
style
scoped
lang=
"less"
>
.spr
{
margin
:
20px
0
;
}
.dialog-footer
{
text-align
:
center
;
}
</
style
>
src/views/dbx/dbxinfo/index.vue
View file @
1a1a7e1
<
template
>
<el-tabs
v-model=
"activeName"
type=
"card"
>
<div
class=
"main"
>
<!--
<p
class=
"tips"
>
查询条件
</p>
-->
<SearchHead
@
getSearchCondition=
"geQuerytData"
:type=
"type"
></SearchHead>
...
...
@@ -53,7 +52,6 @@
</div>
</div>
</el-tabs>
</template>
<
script
>
...
...
@@ -67,7 +65,7 @@
props
:
{},
data
()
{
return
{
activeName
:
'
zhc
x'
,
activeName
:
'
db
x'
,
type
:
'add'
,
total
:
0
,
pageNo
:
1
,
...
...
@@ -161,7 +159,8 @@
query
:
{
bsm
:
row
.
glbsm
,
source
:
2
,
auth
:
'0,1,2'
auth
:
'0,1,2'
,
workitemInstanceId
:
row
.
id
}
});
},
...
...
src/views/dbx/index.vue
View file @
1a1a7e1
<
template
>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-remove=
"removeTab"
>
<el-tabs
v-model=
"activeName"
@
tab-remove=
"removeTab"
>
<el-tab-pane
label=
"待办箱"
name=
"dbx"
><dbxInfo></dbxInfo></el-tab-pane>
<!--
<el-tab-pane-->
<!-- v-for="(item, index) in editableTabs"-->
...
...
@@ -11,7 +11,6 @@
<!--
</el-tab-pane>
-->
</el-tabs>
</
template
>
<
script
>
import
dbxInfo
from
"@/views/dbx/dbxinfo/index"
...
...
@@ -62,7 +61,6 @@
}
});
}
this
.
activeName
=
activeName
;
this
.
editableTabs
=
tabs
.
filter
(
tab
=>
tab
.
name
!==
targetName
);
},
...
...
src/views/manage/dictionary/index.vue
View file @
1a1a7e1
<
template
>
<div
class=
"
log-content
"
>
<div
class=
"
main
"
>
<div
class=
"log-search"
>
字典名称:
<el-input
v-model=
"searchKey"
style=
"border: 1px solid #C0C4CC;width: 230px;border-radius: 4px"
placeholder=
"请输入内容"
></el-input>
<el-button
type=
"primary"
@
click=
"query"
icon=
"el-icon-search"
>
查询
</el-button>
<el-button
type=
"warning"
@
click=
"reset"
icon=
"el-icon-refresh"
>
重置
</el-button>
</div>
<div
class=
"log-detail"
>
<div
class=
"log-detail"
:style=
"
{ height: dicHeight+'px' }"
>
<div
class=
"log-menu"
>
<div
style=
"height: 40px"
>
<span
class=
"menu-title"
>
...
...
@@ -33,10 +33,11 @@
<div
class=
"log-table"
>
<el-table
:data=
"concreteDic"
style=
"width: 100%;margin-bottom: 20px;"
row-key=
"bsm"
height=
"100%"
border
:default-expand-all=
"false"
:row-class-name=
"tableRowClassName"
:tree-props=
"
{children: 'children', hasChildren: 'hasChildren'}">
<el-table-column
prop=
"mc"
align=
"center"
label=
"名称"
>
</el-table-column>
...
...
@@ -174,7 +175,7 @@
},
startValue
:
''
,
endValue
:
''
,
dicHeight
:
0
,
}
},
methods
:{
...
...
@@ -303,9 +304,19 @@
removeStorage
(){
sessionStorage
.
removeItem
(
"state"
);
},
tableRowClassName
({
row
,
rowIndex
})
{
if
(
rowIndex
%
2
!==
0
)
{
return
"even-row"
;
}
else
{
return
""
;
}
},
},
mounted
()
{
this
.
getData
();
this
.
$nextTick
(()
=>
{
this
.
dicHeight
=
(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
-
237
;
})
},
watch
:{
menuvisible
(
value
)
{
...
...
@@ -319,7 +330,7 @@
}
</
script
>
<
style
scoped
>
<
style
scoped
lang=
"less"
>
.log-content
{
width
:
100%
;
/*border: 1px solid red;*/
...
...
@@ -336,24 +347,23 @@
margin-top
:
10px
;
width
:
100%
;
border
:
1px
solid
#E6E6E6
;
height
:
900px
;
overflow
:
scroll
;
background-color
:
white
;
box-sizing
:
border-box
;
padding
:
6px
;
}
.log-menu
{
width
:
17%
;
float
:
left
;
height
:
900px
;
overflow
:
scroll
;
height
:
100%
;
overflow
-y
:
scroll
;
border-right
:
1px
solid
#E6E6E6
;
}
.log-table
{
width
:
81%
;
float
:
right
;
height
:
900px
;
overflow
:
scroll
;
height
:
100%
;
}
.el-button
{
...
...
@@ -364,9 +374,13 @@
font-weight
:
bold
;
font-size
:
20px
;
margin-top
:
20px
;
margin-left
:
5px
;
float
:
left
;
width
:
100%
width
:
100%
;
text-indent
:
10px
;
.el-button
{
position
:
relative
;
top
:
-2px
;
}
}
ul
{
...
...
src/views/panel/create/index.vue
View file @
1a1a7e1
...
...
@@ -161,6 +161,7 @@ import { insertQjZdjbxx } from "@api/zd";
import
{
insertZrzjbxx
}
from
"@api/zrz"
;
import
{
insertDzjbxx
}
from
"@api/dz"
;
import
{
insertGzwjbxx
}
from
"@api/gzw"
;
import
{
createProcessInstance
}
from
"@api/user"
;
export
default
{
name
:
""
,
...
...
@@ -196,6 +197,7 @@ export default {
userbsm
:
""
,
xmmc
:
""
,
xzqbsm
:
""
,
type
:
"zd"
,
zdtzmbsm
:
""
},
ruleForm1
:{
...
...
@@ -291,24 +293,54 @@ export default {
newZd
()
{
this
.
$refs
[
'ruleForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
insertQjZdjbxx
(
this
.
ruleForm
)
// insertQjZdjbxx(this.ruleForm)
// .then((res) => {
// console.log(res.result);
// if (res.code == "200") {
// this.getRightTree(res.result,'0,1,2');
// this.$message({
// message: "创建成功!",
// type: "success",
// });
// this.$store.state.zdbsm = res.result;
// //todo 跳转到宗地基本信息内容表页面 (预留)
// this.close();
// this.$router.push({
// path: '/zd', query:{
// source: 2,
// bsm:res.result
// }
// });
// } else {
// this.$message.error(res.message);
// }
// })
// .catch((error) => {});
let
data
=
{
params
:
this
.
ruleForm
,
workflowName
:
'新建1'
}
createProcessInstance
(
data
)
.
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
if
(
res
.
code
==
"200"
)
{
this
.
getRightTree
(
res
.
result
,
'0,1,2'
);
console
.
log
(
res
);
if
(
res
.
needShow
)
{
//
this.getRightTree(res.result,'0,1,2');
this
.
$message
({
message
:
"创建成功!"
,
type
:
"success"
,
});
this
.
$store
.
state
.
zdbsm
=
res
.
result
;
//todo 跳转到宗地基本信息内容表页面 (预留)
this
.
close
();
this
.
$router
.
push
({
path
:
'/zd'
,
query
:{
source
:
2
,
bsm
:
res
.
result
}
});
// 根据res.processInstance.businessId去查询zdbsm TODO
// this.$store.state.zdbsm = res.result;
//todo 跳转到宗地基本信息内容表页面 (预留)
// this.close();
// this.$router.push({
// path: '/zd', query:{
// source: 2,
// bsm:res.result
// }
// });
}
else
{
this
.
$message
.
error
(
res
.
message
);
}
...
...
@@ -499,6 +531,7 @@ export default {
margin-left
:
20px
;
margin-top
:
20px
;
/deep/.el-tabs__content{
background-color
:
#fff
!important
;
position
:
relative
!important
;
}
.el-tabs__item
{
...
...
src/views/zd/zddcb/index.vue
View file @
1a1a7e1
...
...
@@ -364,10 +364,11 @@
</tr>
</table>
<div
class=
"header-button"
:style=
"
{width:mainBoxWidth+'px'}">
<el-button
type=
"primary"
class=
"saveBtn"
@
click=
"updateZDxx"
:disabled=
"disabled"
icon=
"iconfont
el-icon-search
"
>
保存
</el-button>
<el-button
type=
"primary"
class=
"saveBtn"
@
click=
"updateZDxx"
:disabled=
"disabled"
icon=
"iconfont
iconbaocun
"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"submitZDxx"
:disabled=
"disabled"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"registerCall"
>
登记调用
</el-button>
</div>
<Lcytj
:visible=
"lcytjVisible"
:workitemInstanceId=
"workitemInstanceId"
></Lcytj>
</div>
</div>
</
template
>
...
...
@@ -376,6 +377,7 @@
import
Qlr
from
"@components/formMenu/qlr"
;
import
Qlxz
from
"@components/formMenu/qlxz"
;
import
geoUtils
from
"@components/lineTree/tx/js/geoUtils"
;
import
Lcytj
from
"@components/lcytj"
import
{
getAllList
,
getDdicByMC
,
...
...
@@ -398,11 +400,11 @@
components
:
{
Qlr
,
Qlxz
,
Lcytj
},
props
:
{},
data
()
{
return
{
//树型结构
show
:
true
,
clearable
:
true
,
...
...
@@ -478,7 +480,9 @@
BHQKID
:
""
,
DJZQDM
:
""
,
SYQLXID
:
""
,
}
},
lcytjVisible
:
false
,
workitemInstanceId
:
''
,
};
},
mixins
:
[
geoUtils
],
...
...
@@ -858,14 +862,17 @@
status
:
1
,
type
:
"zd"
}
submit
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"提交成功!"
)
this
.
getZdjbxxData
(
this
.
curZdbsm
);
this
.
$store
.
state
.
oldZdbsm
=
''
;
this
.
getRightTree
(
this
.
curZdbsm
,
'0,1,2'
)
}
})
this
.
lcytjVisible
=
false
;
this
.
lcytjVisible
=
true
;
this
.
workitemInstanceId
=
this
.
$route
.
query
.
workitemInstanceId
;
// submit(data).then((res) => {
// if (res.code === 200) {
// this.$message.success("提交成功!")
// this.getZdjbxxData(this.curZdbsm);
// this.$store.state.oldZdbsm = '';
// this.getRightTree(this.curZdbsm,'0,1,2')
// }
// })
},
getQlrxxData
()
{
// console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
...
...
@@ -1066,6 +1073,9 @@
.saveBtn
{
background-color
:
#00CACD
;
border-color
:
#00CACD
;
/deep/.iconfont{
font-size
:
14px
;
}
}
.saveBtn
:hover
{
background-color
:
rgba
(
0
,
202
,
205
,
.8
);
...
...
Please
register
or
sign in
to post a comment