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
956eabfb
authored
2023-07-25 16:29:44 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcdj-web
2 parents
f3de75a2
48c4ee4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
80 deletions
src/views/registerBook/djbFrameall.vue
src/views/registerBook/djbFrameall.vue
View file @
956eabf
...
...
@@ -6,8 +6,16 @@
<
template
>
<div
class=
"content loadingtext"
>
<div
class=
"left"
>
<el-tree
ref=
"tree"
:data=
"treedata"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
:default-expand-all=
"true"
:expand-on-click-node=
"false"
node-key=
"id"
:default-checked-keys=
"[showTab]"
>
<el-tree
ref=
"tree"
:data=
"treedata"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
:default-expand-all=
"true"
:expand-on-click-node=
"false"
node-key=
"id"
:default-checked-keys=
"[showTab]"
>
</el-tree>
</div>
<div
class=
"right"
>
...
...
@@ -16,20 +24,16 @@
</div>
</
template
>
<
script
>
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
import
{
loadTreeData
,
getNode
}
from
"./djbFrameData.js"
;
// import { searchTaskToDo } from "@/api/workflow/search.js";
import
{
getDjbBysearch
}
from
"@/api/search.js"
;
import
{
import
{
getBdcqljqtsx
}
from
"@/api/djbDetail.js"
;
import
{
loadTreeData
,
getNode
}
from
"./djbFrameData.js"
;
// import { searchTaskToDo } from "@/api/workflow/search.js";
import
{
getDjbBysearch
}
from
"@/api/search.js"
;
import
{
leftMenu
}
from
"@/api/workFlow.js"
;
export
default
{
}
from
"@/api/workFlow.js"
;
export
default
{
data
()
{
return
{
//接收参数
// propsParam: this.$attrs,
//左侧目录
catalog
:
{},
//选择加载哪一个组件
componentTag
:
""
,
//子组件接收参数
...
...
@@ -46,6 +50,10 @@
label
:
"label"
,
},
showTab
:
"bdcqldjml"
,
// 选中状态,根据表格中权利类型判断
bdcdyid
:
""
,
bdcdyh
:
""
,
qllx
:
""
,
bsmQlxx
:
""
,
};
},
mounted
()
{
...
...
@@ -74,32 +82,6 @@
bdcdyh
:
this
.
getCaption
(
window
.
location
.
href
)
}
// if (this.getCaption(window.location.href)) {
// this.$startLoading();
// searchTaskToDo({
// ...this.queryForm,
// }).then((res) => {
// if (res.code === 200) {
// this.$endLoading();
// let { records } = res.result;
// if(records.length){
// console.log("true",records.length);
// this.loadBdcdylist(records[0].bsmSlsq, records[0].bestepid);
// }else{
// console.log("false",records.length);
// this.treedata=[]
// }
// }
// });
// }else{
// this.treedata=[]
// }
if
(
this
.
getCaption
(
window
.
location
.
href
))
{
this
.
$startLoading
();
getDjbBysearch
({
...
...
@@ -110,13 +92,14 @@
let
{
records
}
=
res
.
result
;
if
(
records
.
length
){
console
.
log
(
"true"
,
records
.
length
);
this
.
loadBdcdylist
(
records
[
0
].
bdcdyh
,
records
[
0
].
bdcdyid
);
this
.
bdcdyid
=
records
[
0
].
bdcdyid
this
.
bdcdyh
=
records
[
0
].
bdcdyh
this
.
qllx
=
records
[
0
].
qllx
this
.
bsmQlxx
=
records
[
0
].
bsmQlxx
this
.
loadData
()
}
else
{
console
.
log
(
"false"
,
records
.
length
);
this
.
treedata
=
[]
}
}
...
...
@@ -134,42 +117,42 @@
* @param {*} b
* @author: renchao
*/
loadBdcdylist
(
a
,
b
)
{
var
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSlsq"
,
a
);
formdata
.
append
(
"bestepid"
,
b
);
leftMenu
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
result
)
{
this
.
currentSelectProps
=
res
.
result
[
0
];
this
.
loadData
();
}
}
});
},
//
loadBdcdylist (a, b) {
//
var formdata = new FormData();
//
formdata.append("bsmSlsq", a);
//
formdata.append("bestepid", b);
//
leftMenu(formdata).then((res) => {
//
if (res.code === 200) {
//
if (res.result) {
//
this.currentSelectProps = res.result[0];
//
this.loadData();
//
}
//
}
//
});
//
},
/**
* @description: loadData
* @author: renchao
*/
loadData
()
{
getBdcqljqtsx
({
bdcdyid
:
this
.
currentSelectProp
s
.
bdcdyid
,
bdcdyh
:
this
.
currentSelectProp
s
.
bdcdyh
,
bdcdyid
:
thi
s
.
bdcdyid
,
bdcdyh
:
thi
s
.
bdcdyh
,
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
treedata
=
loadTreeData
(
res
.
result
,
this
.
currentSelectProp
s
.
bdcdyh
);
this
.
treedata
=
loadTreeData
(
res
.
result
,
thi
s
.
bdcdyh
);
this
.
$nextTick
(
function
()
{
this
.
defaultNode
=
getNode
(
this
.
currentSelectProp
s
.
qllx
,
{
linShi
:
0
,
xianShi
:
0
,
liShi
:
0
},
""
);
this
.
defaultNode
=
getNode
(
thi
s
.
qllx
,
{
linShi
:
0
,
xianShi
:
0
,
liShi
:
0
},
""
);
this
.
$refs
.
tree
.
setCurrentKey
(
this
.
defaultNode
.
id
);
//data[0].id为默认选中的节点
this
.
loadComponent
(
this
.
defaultNode
.
form
);
});
}
});
this
.
currentSelectProps
=
{
bdcdyid
:
this
.
currentSelectProp
s
.
bdcdyid
,
bdcdyh
:
this
.
currentSelectProp
s
.
bdcdyh
,
qllx
:
this
.
currentSelectProp
s
.
qllx
,
bsmQlxx
:
this
.
currentSelectProp
s
.
bsmQlxx
,
bdcdyid
:
thi
s
.
bdcdyid
,
bdcdyh
:
thi
s
.
bdcdyh
,
qllx
:
thi
s
.
qllx
,
bsmQlxx
:
thi
s
.
bsmQlxx
,
};
},
/*
...
...
@@ -195,14 +178,14 @@
require
.
ensure
([],
()
=>
r
(
require
(
"@/views/registerBook/"
+
form
)));
},
},
};
};
</
script
>
<
style
scoped
lang=
"scss"
>
/
deep
/
.rollTable
{
/
deep
/
.rollTable
{
height
:
calc
(
120vh
-
254px
)
!important
;
}
}
.content
{
.content
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
...
...
@@ -223,31 +206,31 @@
background-color
:
#f5f5f5
;
border
:
1px
solid
rgb
(
228
,
228
,
228
);
}
}
}
/
deep
/
.expanded.el-tree-node__expand-icon
,
/
deep
/
.el-tree-node__expand-icon
{
/
deep
/
.expanded.el-tree-node__expand-icon
,
/
deep
/
.el-tree-node__expand-icon
{
visibility
:
hidden
;
}
}
/
deep
/
.el-tree-node__content
{
/
deep
/
.el-tree-node__content
{
border
:
1px
solid
rgb
(
228
,
228
,
228
);
height
:
45px
;
}
}
/
deep
/
.el-tree-node
:focus
>
.el-tree-node__content
{
/
deep
/
.el-tree-node
:focus
>
.el-tree-node__content
{
background-color
:
#f5f5f5
;
color
:
#0079fe
;
border-right
:
4px
solid
#0079fe
;
}
}
/
deep
/
.el-tree-node
{
/
deep
/
.el-tree-node
{
white-space
:
pre-wrap
;
}
}
/
deep
/
.is-current
>
.el-tree-node__content
{
/
deep
/
.is-current
>
.el-tree-node__content
{
background-color
:
#f5f5f5
;
color
:
#0079fe
;
border-right
:
4px
solid
#0079fe
;
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment