Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
9d1e29f6
authored
2023-06-16 17:21:03 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
data[0].id为默认选中的节点
1 parent
8f5b08b3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
103 additions
and
32 deletions
src/api/djbbl.js
src/views/djbworkflow/components/leftmenu/djbFrameData.js
src/views/djbworkflow/components/leftmenu/ordinaryMenu.vue
src/views/djbworkflow/djbBook/fdcq2.vue
src/views/djbworkflow/mixin/index.js
src/views/djbworkflow/workFrame.vue
src/api/djbbl.js
View file @
9d1e29f
...
...
@@ -66,7 +66,25 @@ export function leftMenubl (params) {
params
})
}
/**
* @description: 获取权利类型数组
* @param {*} params
* @author: renchao
*/
// export function getQllxByBdcdyid (params) {
// return request({
// url: SERVER.SERVERAPI + '/rest/djbRepair/getQllxByBdcdyid?bdcdyid='+params,
// method: 'get',
// params
// })
// }
export
function
getQllxByBdcdyid
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/djbDetail//getQllxByBdcdyid'
,
method
:
'get'
,
data
})
}
/**
* @description: 保存数据
* @param {*} data
...
...
src/views/djbworkflow/components/leftmenu/djbFrameData.js
View file @
9d1e29f
import
{
log
}
from
"bpmn-js-token-simulation"
;
var
qlxxPage
=
[
...
...
@@ -36,6 +37,7 @@ var qlxxPage = [
{
qllx
:
"B39"
,
id
:
"cfdj"
,
form
:
"cfdj.vue"
,
label
:
"查封登记"
},
{
qllx
:
"B40"
,
id
:
"ygdj"
,
form
:
"ygdj.vue"
,
label
:
"预告登记"
},
{
qllx
:
"B41"
,
id
:
"ygdj"
,
form
:
"ygdj.vue"
,
label
:
"预告登记"
},
{
qllx
:
"DJB"
,
id
:
"djbfm"
,
form
:
"djbfm.vue"
,
label
:
"预告登记"
},
];
//组装登记簿树形结构
...
...
@@ -66,6 +68,7 @@ export function loadTreeData(qlxxData, bdcdyh) {
//获取权利类型、不动产单元类型对应的树形节点信息
export
function
getNode
(
qllx
,
qlxx
,
bdcdylx
)
{
console
.
log
(
"qllx"
,
qllx
,
"bdcdylx"
,
bdcdylx
);
let
node
;
for
(
var
i
=
0
;
i
<
qlxxPage
.
length
;
i
++
)
{
if
(
qlxxPage
[
i
].
qllx
==
qllx
)
{
...
...
@@ -76,7 +79,9 @@ export function getNode(qllx, qlxx, bdcdylx) {
node
=
{
id
:
"fdcq2"
,
form
:
"fdcq2.vue"
,
label
:
qlxxPage
[
i
].
label
};
}
}
else
{
console
.
log
(
"jin1111"
);
node
=
{
id
:
qlxxPage
[
i
].
id
,
form
:
qlxxPage
[
i
].
form
,
label
:
qlxxPage
[
i
].
label
};
console
.
log
(
"nodenodenodenode"
,
node
);
}
break
;
}
...
...
src/views/djbworkflow/components/leftmenu/ordinaryMenu.vue
View file @
9d1e29f
...
...
@@ -127,6 +127,7 @@ export default {
leftMenu
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
this
.
currentSelectProps
=
res
.
result
[
0
];
console
.
log
(
"this.currentSelectProps"
,
this
.
currentSelectProps
);
this
.
$emit
(
"getCurrentSelectProps"
,
this
.
currentSelectProps
);
}
});
...
...
src/views/djbworkflow/djbBook/fdcq2.vue
View file @
9d1e29f
<!--
* @Description : 房地产权2
* @Autor : miaofang
* @LastEditTime : 2023-06-16 1
0:24:19
* @LastEditTime : 2023-06-16 1
6:53:36
-->
<
template
>
<div
class=
"djxxTable"
>
...
...
@@ -108,23 +108,23 @@ export default {
// 编辑
editDialog
(
row
){
//
this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', {
//
confirmButtonText: '确定',
//
cancelButtonText: '取消',
//
type: 'warning'
//
}).then(() => {
this
.
$confirm
(
'此操作将新增一条补录信息, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
$parent
.
addRepairRecord
(
row
)
//
this.$message({
//
type: 'success',
//
message: '补录成功!'
//
});
//
}).catch(() => {
//
this.$message({
//
type: 'info',
//
message: '取消编辑'
//
});
//
});
this
.
$message
({
type
:
'success'
,
message
:
'补录成功!'
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'取消编辑'
});
});
// this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", {
// datalist:this.columns,
...
...
src/views/djbworkflow/mixin/index.js
View file @
9d1e29f
...
...
@@ -101,26 +101,57 @@ export default {
this
.
$popupDialog
(
"登记簿详情"
,
"registerBook/djbFrame"
,
this
.
currentSelectProps
,
'80%'
,
true
)
break
;
case
"B5"
:
// this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", {
// bsmSlsq: this.bsmSlsq,
// entryType: '1'
// }, '65%', true)
this
.
$confirm
(
'此操作将新增一条补录信息, 是否继续?'
,
'提示'
,
{
const
h
=
this
.
$createElement
;
this
.
$msgbox
({
title
:
'消息'
,
message
:
h
(
'p'
,
null
,
[
h
(
'span'
,
null
,
'内容可以是 '
),
h
(
'i'
,
{
style
:
'color: teal'
},
'VNode'
)
]),
showCancelButton
:
true
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
beforeClose
:
(
action
,
instance
,
done
)
=>
{
if
(
action
===
'confirm'
)
{
instance
.
confirmButtonLoading
=
true
;
instance
.
confirmButtonText
=
'执行中...'
;
setTimeout
(()
=>
{
done
();
setTimeout
(()
=>
{
instance
.
confirmButtonLoading
=
false
;
},
300
);
},
3000
);
}
else
{
done
();
}
}
}).
then
(
action
=>
{
this
.
addRepairRecord
()
this
.
$message
({
type
:
'success'
,
message
:
'补录成功!'
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'
取消编辑'
message
:
'
action: '
+
action
});
});
// this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", {
// bsmSlsq: this.bsmSlsq,
// entryType: '1'
// }, '65%', true)
// this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
// this.addRepairRecord()
// this.$message({
// type: 'success',
// message: '补录成功!'
// });
// }).catch(() => {
// this.$message({
// type: 'info',
// message: '取消编辑'
// });
// });
break
;
case
"B6"
:
...
...
src/views/djbworkflow/workFrame.vue
View file @
9d1e29f
...
...
@@ -79,7 +79,10 @@ import ordinaryMenu from "./components/leftmenu/ordinaryMenu.vue";
import
selectBdc
from
"@/views/ywbl/ywsq/selectBdc.vue"
;
import
{
loadTreeData
,
getNode
}
from
"./components/leftmenu/djbFrameData.js"
;
// 登记簿数据信息
import
{
addRepairRecord
}
from
"@/api/djbbl.js"
import
{
addRepairRecord
}
from
"@/api/djbbl.js"
// 获取权利类型数组
import
{
getQllxByBdcdyid
}
from
"@/api/djbbl.js"
import
{
getBdcqljqtsx
}
from
"@/api/registerBook.js"
;
export
default
{
components
:
{
...
...
@@ -101,6 +104,8 @@ export default {
qllx
:
this
.
$route
.
query
.
qllx
,
//设置那个表单选中
tabName
:
""
,
// 权利类型数组
qllxlist
:[],
//表单集合
tabList
:
[],
//选择加载哪一个组件
...
...
@@ -119,9 +124,18 @@ export default {
};
},
mounted
()
{
},
methods
:
{
getQllxByBdcdyid
(){
getQllxByBdcdyid
(
this
.
currentSelectProps
.
bdcdyid
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
console
.
log
(
"Qllxlist"
,
res
);
}
});
},
// 获取右侧选项卡
getCurrentSelectProps
(
val
)
{
this
.
currentSelectProps
=
val
...
...
@@ -141,7 +155,9 @@ export default {
if
(
res
.
code
===
200
)
{
this
.
treedata
=
loadTreeData
(
res
.
result
,
this
.
bdcdyh
);
this
.
$nextTick
(
function
()
{
console
.
log
(
"this.currentSelectProps.qllx"
,
this
.
currentSelectProps
);
this
.
defaultNode
=
getNode
(
this
.
currentSelectProps
.
qllx
,
{
linShi
:
0
,
xianShi
:
0
,
liShi
:
0
},
""
);
console
.
log
(
"this.defaultNode"
,
this
.
defaultNode
);
this
.
tabName
=
this
.
defaultNode
.
id
;
//data[0].id为默认选中的节点
});
}
...
...
@@ -155,6 +171,7 @@ export default {
arr
[
index
].
value
=
item
.
id
})
this
.
tabList
=
this
.
tabdata
this
.
getQllxByBdcdyid
()
},
200
)
},
...
...
@@ -197,7 +214,6 @@ export default {
break
;
}
}
console
.
log
(
"this.$route.query.sqywbm"
,
this
.
$route
.
query
.
sqywbm
);
this
.
componentTag
=
getForm
(
tabname
,
this
.
$route
.
query
.
sqywbm
);
},
...
...
Please
register
or
sign in
to post a comment